/* Setting Up a Restaurant: reader styles.
   Everything is scoped under .rbook so it cannot clash with the rest of the site.
   No external fonts. Light and dark themes via prefers-color-scheme. Print-friendly. */

/* ---------- Theme tokens ---------- */
.rbook {
  --rb-bg: #fcfaf6;
  --rb-ink: #25221e;
  --rb-muted: #5d564e;
  --rb-rule: #e2dbd0;
  --rb-rule-strong: #c9c0b3;
  --rb-accent: #1d5c57;
  --rb-accent-soft: #e5efed;
  --rb-case: #9a5627;
  --rb-case-bg: #f7eee3;
  --rb-tip: #2d6a3a;
  --rb-tip-bg: #eaf3e8;
  --rb-warn: #a3391c;
  --rb-warn-bg: #fcece3;
  --rb-note: #3a5780;
  --rb-note-bg: #ecf1f7;
  --rb-worked-bg: #f3f0ea;
  --rb-panel: #ffffff;
  --rb-field: #ffffff;
  --rb-focus: #d98a2b;
  --rb-good: #2d6a3a;
  --rb-bad: #a3391c;
  --rb-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, "DejaVu Serif", serif;
  --rb-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "DejaVu Sans", sans-serif;

  color-scheme: light;
  background: var(--rb-bg);
  color: var(--rb-ink);
  font-family: var(--rb-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 16px 3rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 48rem) {
  .rbook { font-size: 1.125rem; padding: 2.5rem 1.5rem 4rem; }
}
@media (prefers-color-scheme: dark) {
  .rbook {
    --rb-bg: #1a1917;
    --rb-ink: #ebe6de;
    --rb-muted: #b5ada2;
    --rb-rule: #38342f;
    --rb-rule-strong: #57504a;
    --rb-accent: #82c7bd;
    --rb-accent-soft: #1f2f2d;
    --rb-case: #e0a270;
    --rb-case-bg: #2a221b;
    --rb-tip: #93d29f;
    --rb-tip-bg: #1d2a1f;
    --rb-warn: #f29d7e;
    --rb-warn-bg: #321f19;
    --rb-note: #a5bfe2;
    --rb-note-bg: #1c2431;
    --rb-worked-bg: #23211e;
    --rb-panel: #211f1c;
    --rb-field: #151412;
    --rb-focus: #f0b35e;
    --rb-good: #93d29f;
    --rb-bad: #f29d7e;
    color-scheme: dark;
  }
}

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

/* ---------- Text ---------- */
.rbook p, .rbook ul, .rbook ol { margin: 0 0 1em; }
.rbook ul, .rbook ol { padding-left: 1.4em; }
.rbook li { margin: 0 0 0.35em; }
.rbook li > ul, .rbook li > ol { margin: 0.35em 0 0; }
.rbook strong { font-weight: 700; }
.rbook a { color: var(--rb-accent); text-underline-offset: 0.15em; }

.rbook h1, .rbook h2, .rbook h3, .rbook h4 {
  font-family: var(--rb-sans);
  color: var(--rb-ink);
  line-height: 1.25;
  text-wrap: balance;
}
.rbook h1 { font-size: 2rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; font-weight: 700; }
.rbook h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 2.6rem 0 0.8rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rb-rule);
  scroll-margin-top: 1rem;
}
.rbook h3 { font-size: 1.12rem; font-weight: 700; margin: 1.8rem 0 0.5rem; }
.rbook h4 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
@media (min-width: 48rem) {
  .rbook h1 { font-size: 2.5rem; }
  .rbook h2 { font-size: 1.55rem; }
}

/* ---------- Chapter head ---------- */
.rbook .chapter-head { margin: 0 0 2.4rem; padding-bottom: 1.6rem; border-bottom: 3px double var(--rb-rule-strong); }
.rbook .chapter-head + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.rbook .chapter-num {
  font-family: var(--rb-sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rb-accent); margin: 0 0 0.7rem;
}
.rbook .chapter-lede { font-size: 1.15em; line-height: 1.55; color: var(--rb-muted); margin: 0; font-style: italic; }

/* ---------- Cross-references ---------- */
.rbook .xref {
  font-family: var(--rb-sans); font-size: 0.9em; font-weight: 600;
  color: var(--rb-accent);
  border-bottom: 1px dotted currentColor;
  white-space: normal;
}

/* ---------- Boxes: shared ---------- */
.rbook .case, .rbook .tip, .rbook .warning, .rbook .country-note,
.rbook .worked, .rbook .keypoints {
  margin: 1.6rem 0; padding: 1rem 1.1rem;
  border-radius: 0.4rem;
}
.rbook .case > :last-child, .rbook .tip > :last-child, .rbook .warning > :last-child,
.rbook .country-note > :last-child, .rbook .worked > :last-child, .rbook .keypoints > :last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
  .rbook .case, .rbook .tip, .rbook .warning, .rbook .country-note,
  .rbook .worked, .rbook .keypoints { padding: 1.2rem 1.4rem; }
}

/* Story box */
.rbook .case { background: var(--rb-case-bg); border-left: 4px solid var(--rb-case); }
.rbook .case-name {
  font-family: var(--rb-sans); font-weight: 700; font-size: 0.95rem;
  color: var(--rb-case); margin: 0 0 0.5rem;
}
.rbook .case-name::before {
  content: "उदाहरण";
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85;
  margin-bottom: 0.1rem;
}

/* Tip, warning, country note: small label above */
.rbook .tip { background: var(--rb-tip-bg); border-left: 4px solid var(--rb-tip); }
.rbook .warning { background: var(--rb-warn-bg); border-left: 4px solid var(--rb-warn); }
.rbook .country-note { background: var(--rb-note-bg); border: 1px dashed var(--rb-note); }
.rbook .tip::before, .rbook .warning::before, .rbook .country-note::before {
  display: block; font-family: var(--rb-sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.rbook .tip::before { content: "सुझाव"; color: var(--rb-tip); }
.rbook .warning::before { content: "सावधान"; color: var(--rb-warn); }
.rbook .country-note::before { content: "राज्य के अनुसार नियम अलग-अलग"; color: var(--rb-note); }

/* Worked example */
.rbook .worked { background: var(--rb-worked-bg); border: 1px solid var(--rb-rule); border-top: 4px solid var(--rb-accent); }
.rbook .worked-title { font-family: var(--rb-sans); font-weight: 700; color: var(--rb-accent); margin: 0 0 0.7rem; }
.rbook .worked p, .rbook .worked li { font-variant-numeric: tabular-nums lining-nums; }

/* Key points */
.rbook .keypoints { border: 2px solid var(--rb-accent); background: var(--rb-accent-soft); }
.rbook .keypoints h3 { margin: 0 0 0.6rem; color: var(--rb-accent); font-size: 1.05rem; }
.rbook .keypoints ul { margin: 0; }

/* Two columns */
.rbook .two-col { display: grid; grid-template-columns: 1fr; gap: 0 1.6rem; margin: 1.4rem 0; }
.rbook .two-col > div { min-width: 0; }
.rbook .two-col > div > :first-child { margin-top: 0; }
@media (min-width: 40rem) { .rbook .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Tables ---------- */
.rbook table.data, .rbook table.ws-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--rb-sans); font-size: 0.9rem; line-height: 1.4;
  margin: 1.2rem 0 1.6rem;
  font-variant-numeric: tabular-nums;
}
.rbook table.data th, .rbook table.data td { padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.rbook table.data thead th {
  font-weight: 700; border-bottom: 2px solid var(--rb-rule-strong);
  background: var(--rb-accent-soft); color: var(--rb-ink);
}
.rbook table.data tbody td, .rbook table.data tbody th { border-bottom: 1px solid var(--rb-rule); }
.rbook table.data tbody tr:nth-child(even) { background: color-mix(in srgb, var(--rb-worked-bg) 70%, transparent); }

/* On narrow screens a table scrolls sideways inside its own box instead of widening the page. */
@media screen and (max-width: 47.99rem) {
  .rbook table.data, .rbook table.ws-table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    max-width: 100%;
    /* soft shadow at an edge while there is more table to scroll to */
    background:
      linear-gradient(to right, var(--rb-bg) 30%, transparent) left / 2rem 100% no-repeat local,
      linear-gradient(to left, var(--rb-bg) 30%, transparent) right / 2rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), transparent) left / 0.8rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), transparent) right / 0.8rem 100% no-repeat scroll;
  }
  .rbook table.data th, .rbook table.data td { min-width: 7.5rem; }
  .rbook table.data th:first-child, .rbook table.data td:first-child { min-width: 9rem; }
}

/* ---------- Worksheets ---------- */
.rbook .worksheet {
  margin: 2.4rem 0; padding: 1.1rem 1.1rem 1.2rem;
  border: 2px dashed var(--rb-rule-strong); border-radius: 0.4rem;
  background: var(--rb-panel);
  scroll-margin-top: 1rem;
  overflow-x: auto; /* a very wide worksheet table scrolls inside the box */
}
@media (min-width: 48rem) { .rbook .worksheet { padding: 1.4rem 1.5rem 1.5rem; } }
.rbook .worksheet h3 { margin: 0 0 0.6rem; }
.rbook .worksheet h3::before {
  content: "वर्कशीट \2014  प्रिंट करके भरें";
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-muted);
  margin-bottom: 0.25rem;
}
.rbook .ws-intro { font-size: 0.97em; }
.rbook .ws-note { font-size: 0.9em; color: var(--rb-muted); font-style: italic; margin: 0.6rem 0 0; }
.rbook .worksheet > :last-child { margin-bottom: 0; }

.rbook table.ws-table { margin: 0.8rem 0 1rem; }
.rbook table.ws-table th, .rbook table.ws-table td {
  border: 1px solid var(--rb-rule-strong);
  padding: 0.45rem 0.55rem; text-align: left; vertical-align: top;
}
.rbook table.ws-table thead th { background: var(--rb-accent-soft); font-weight: 700; font-size: 0.85rem; }
.rbook table.ws-table td.fill {
  height: 2.6rem; min-width: 3rem;
  background: var(--rb-field);
}
/* A blank box that follows a printed label ("A. Cost of one batch", "Dish name") needs real room. */
.rbook table.ws-table td:not(.fill) + td.fill { min-width: 8rem; }
.rbook table.ws-table tr > td:first-child:nth-last-child(2):not(.fill) + td.fill { width: 40%; }
.rbook table.ws-table th.ws-score, .rbook table.ws-table td.ws-score { width: 7rem; text-align: center; }
@media screen and (max-width: 47.99rem) {
  .rbook table.ws-table td { min-width: 5rem; }
  .rbook table.ws-table td:not(.fill) { min-width: 10rem; }
}

/* ---------- Calculators ---------- */
.rbook .calc {
  margin: 2rem 0; padding: 0;
  font-family: var(--rb-sans); font-size: 0.95rem; line-height: 1.45;
}
.rbook .calc-fallback {
  margin: 0; padding: 1rem 1.1rem;
  border: 1px solid var(--rb-rule-strong); border-radius: 0.4rem;
  background: var(--rb-worked-bg);
  font-size: 0.95rem;
}
.rbook .calc-fallback::before {
  content: "हाथ से हिसाब"; display: block;
  font-weight: 700; margin-bottom: 0.3rem;
}
.rbook .calc-fallback[hidden] { display: none; }
.rbook .calc-ui {
  border: 1px solid var(--rb-rule-strong); border-radius: 0.5rem;
  background: var(--rb-panel);
  overflow: hidden;
}
.rbook .calc-head { padding: 1rem 1.1rem 0.9rem; border-bottom: 1px solid var(--rb-rule); background: var(--rb-accent-soft); }
.rbook .calc-kicker {
  margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-accent);
}
.rbook .calc h3.calc-title { margin: 0 0 0.35rem; font-size: 1.2rem; }
.rbook .calc-intro { margin: 0; color: var(--rb-muted); font-size: 0.9rem; }
.rbook .calc-body { display: grid; grid-template-columns: 1fr; }
.rbook .calc-form, .rbook .calc-results { padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.rbook .calc-results { background: var(--rb-worked-bg); border-top: 1px solid var(--rb-rule); }

.rbook .calc fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.rbook .calc fieldset:last-child { margin-bottom: 0; }
.rbook .calc legend {
  padding: 0; margin: 0 0 0.6rem;
  font-weight: 700; font-size: 0.95rem; color: var(--rb-ink);
}
.rbook .calc-grid {
  display: grid; gap: 0.75rem 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}
.rbook .calc-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.rbook .calc-field.wide { grid-column: 1 / -1; }
.rbook .calc-field label { font-size: 0.85rem; font-weight: 600; color: var(--rb-ink); }
.rbook .calc-hint { font-size: 0.78rem; color: var(--rb-muted); }
.rbook .calc-input {
  display: flex; align-items: stretch;
  border: 1px solid var(--rb-rule-strong); border-radius: 0.3rem;
  background: var(--rb-field);
  min-width: 0;
}
.rbook .calc-input:focus-within { outline: 3px solid var(--rb-focus); outline-offset: 1px; border-color: var(--rb-focus); }
.rbook .calc-input input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 0; background: transparent; color: var(--rb-ink);
  font: inherit; font-size: 1rem; /* 16px avoids zoom on phones */
  padding: 0.5rem 0.55rem; min-height: 2.6rem;
  font-variant-numeric: tabular-nums;
}
.rbook .calc-input input:focus { outline: none; }
.rbook .calc-affix {
  display: flex; align-items: center; padding: 0 0.55rem;
  color: var(--rb-muted); font-size: 0.9rem; background: var(--rb-worked-bg);
  white-space: nowrap;
}
.rbook .calc-affix.pre { border-right: 1px solid var(--rb-rule); border-radius: 0.3rem 0 0 0.3rem; }
.rbook .calc-affix.post { border-left: 1px solid var(--rb-rule); border-radius: 0 0.3rem 0.3rem 0; }
.rbook .calc-input.is-invalid { border-color: var(--rb-bad); box-shadow: inset 0 0 0 1px var(--rb-bad); }
.rbook .calc-err { font-size: 0.8rem; color: var(--rb-bad); font-weight: 600; }
.rbook .calc-err:empty { display: none; }

/* Repeating rows (ingredients, staff, fixed costs) */
.rbook .calc-rows { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.7rem; }
.rbook .calc-rows-intro { margin: -0.2rem 0 0.7rem; font-size: 0.82rem; color: var(--rb-muted); }
.rbook .calc-row {
  border: 1px solid var(--rb-rule); border-radius: 0.4rem;
  padding: 0.55rem 0.7rem 0.65rem; background: var(--rb-bg);
}
.rbook .calc-row-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  margin: 0 0 0.35rem;
}
.rbook .calc-row-title { font-weight: 700; font-size: 0.85rem; color: var(--rb-muted); margin: 0; }
.rbook .calc-row-out { margin: 0.55rem 0 0; font-size: 0.88rem; color: var(--rb-muted); }
.rbook .calc-row-out strong { color: var(--rb-ink); font-variant-numeric: tabular-nums; }
.rbook .calc-row .calc-grid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.55rem 0.7rem; }
.rbook .calc-row-out { margin-top: 0.45rem; }

.rbook .calc button {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  border-radius: 0.3rem; cursor: pointer;
  padding: 0.5rem 0.9rem; min-height: 2.5rem;
  border: 1px solid var(--rb-accent); color: var(--rb-accent); background: transparent;
}
.rbook .calc button:hover { background: var(--rb-accent-soft); }
.rbook .calc button:focus-visible { outline: 3px solid var(--rb-focus); outline-offset: 2px; }
.rbook .calc button.calc-remove {
  border-color: var(--rb-rule-strong); color: var(--rb-muted);
  padding: 0.25rem 0.65rem; min-height: 2.1rem; font-size: 0.82rem;
}
.rbook .calc button.calc-remove:hover { color: var(--rb-bad); border-color: var(--rb-bad); background: transparent; }
.rbook .calc button.calc-reset { background: var(--rb-accent); color: var(--rb-bg); }
.rbook .calc button.calc-reset:hover { filter: brightness(1.1); background: var(--rb-accent); }
.rbook .calc-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
  padding: 0.8rem 1.1rem; border-top: 1px solid var(--rb-rule);
}
.rbook .calc-actions p { margin: 0; font-size: 0.82rem; color: var(--rb-muted); flex: 1 1 14rem; }

/* Results */
.rbook .calc-results h4 { margin: 0 0 0.7rem; font-size: 1rem; }
.rbook .calc-group { margin: 0 0 1rem; }
.rbook .calc-group:last-child { margin-bottom: 0; }
.rbook .calc-group-title {
  margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--rb-accent);
}
.rbook .calc-out { margin: 0; }
.rbook .calc-out > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.1rem 1rem; padding: 0.42rem 0; border-bottom: 1px solid var(--rb-rule);
}
.rbook .calc-out > div:last-child { border-bottom: 0; }
.rbook .calc-out dt { flex: 1 1 12rem; min-width: 0; font-size: 0.9rem; }
.rbook .calc-out dd {
  margin: 0; font-weight: 700; font-size: 1rem; text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rbook .calc-out .calc-note { flex-basis: 100%; font-size: 0.8rem; color: var(--rb-muted); }
.rbook .calc-out > div.key dt { font-weight: 700; }
.rbook .calc-out > div.key dd { font-size: 1.25rem; color: var(--rb-accent); }
.rbook .calc-out dd.is-missing { font-weight: 400; font-size: 0.85rem; color: var(--rb-muted); white-space: normal; text-align: left; }
.rbook .calc-alert {
  margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 0.3rem;
  font-size: 0.9rem; border-left: 4px solid var(--rb-note); background: var(--rb-note-bg);
}
.rbook .calc-alert.warn { border-left-color: var(--rb-warn); background: var(--rb-warn-bg); }
.rbook .calc-alert.good { border-left-color: var(--rb-good); background: var(--rb-tip-bg); }
.rbook .calc-alert.warn strong { color: var(--rb-warn); }

@media (min-width: 60rem) {
  .rbook .calc { margin-left: -3rem; margin-right: -3rem; }
}
@media (min-width: 68rem) {
  .rbook .calc { margin-left: -5rem; margin-right: -5rem; }
}
@media (min-width: 44rem) {
  .rbook .calc-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .rbook .calc-results { border-top: 0; border-left: 1px solid var(--rb-rule); }
  .rbook .calc-results-inner { position: sticky; top: 1rem; }
}

.rbook .calc .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;
}

/* ---------- Print ---------- */
@media print {
  .rbook {
    --rb-bg: #fff; --rb-ink: #000; --rb-muted: #333; --rb-rule: #999; --rb-rule-strong: #555;
    --rb-accent: #000; --rb-accent-soft: #fff; --rb-case: #000; --rb-case-bg: #fff;
    --rb-tip: #000; --rb-tip-bg: #fff; --rb-warn: #000; --rb-warn-bg: #fff;
    --rb-note: #000; --rb-note-bg: #fff; --rb-worked-bg: #fff; --rb-panel: #fff; --rb-field: #fff;
    color-scheme: light;
    max-width: none; margin: 0; padding: 0;
    font-size: 11pt; line-height: 1.45;
    background: #fff; color: #000;
  }
  .rbook h1 { font-size: 22pt; }
  .rbook h2 { font-size: 15pt; margin-top: 18pt; break-after: avoid; page-break-after: avoid; }
  .rbook h3 { font-size: 12pt; break-after: avoid; page-break-after: avoid; }
  .rbook p, .rbook li { orphans: 3; widows: 3; }
  .rbook .case, .rbook .tip, .rbook .warning, .rbook .country-note,
  .rbook .worked, .rbook .keypoints {
    break-inside: avoid; page-break-inside: avoid;
    border: 1pt solid #555; border-left-width: 3pt;
  }
  .rbook .country-note { border-style: dashed; border-left-width: 1pt; }
  .rbook table.data, .rbook table.ws-table { display: table; font-size: 9.5pt; }
  .rbook thead { display: table-header-group; }
  .rbook tr { break-inside: avoid; page-break-inside: avoid; }
  .rbook table.data tbody tr:nth-child(even) { background: none; }
  .rbook table.data thead th { background: none; border-bottom: 1.5pt solid #000; }

  /* Worksheets start on a fresh page and print with clear boxes to write in. */
  .rbook .worksheet {
    break-before: page; page-break-before: always;
    border: 0; padding: 0; margin: 0; background: none; overflow: visible;
  }
  .rbook .worksheet h3::before { content: none; }
  .rbook table.ws-table th, .rbook table.ws-table td { border: 0.75pt solid #000; }
  .rbook table.ws-table thead th { background: #fff; }
  .rbook table.ws-table td.fill { height: 1.05cm; min-width: 0; background: #fff; }
  .rbook table.ws-table th, .rbook table.ws-table td { min-width: 0; }
  .rbook table.ws-table td:not(.fill) + td.fill { min-width: 3.5cm; }

  /* Calculators do not print: the by-hand method prints instead. */
  .rbook .calc > :not(.calc-fallback) { display: none !important; }
  .rbook .calc .calc-fallback { display: block !important; border: 1pt solid #555; background: #fff; }
  .rbook .calc { margin-left: 0; margin-right: 0; break-inside: avoid; }
  .rbook .xref { border-bottom: 0; font-weight: 700; }
}

/* Country section: dated check box and source lists */
.rbook .country-note.checked { border-style: solid; }
.rbook .country-note.checked::before { content: "तारीख़ के साथ जानकारी"; }
.rbook .sources {
  margin: 2rem 0 1rem; padding-top: 1rem;
  border-top: 2px solid var(--rb-rule-strong);
  font-size: 0.92rem; color: var(--rb-muted);
}
.rbook .sources h3 { margin-top: 0; color: var(--rb-ink); }
.rbook .sources ul { padding-left: 1.2rem; }
.rbook .sources li { margin: 0.35rem 0; }
.rbook .sources a { color: var(--rb-accent); overflow-wrap: anywhere; }
@media print {
  .rbook .sources a::after { content: " (" attr(href) ")"; font-size: 0.8em; overflow-wrap: anywhere; }
}
