/* gujarati.vedictithi.com: the Gujarati Calendar app's site. The colours are
   the app's paper and kumkum palette (VedicTithiMobile src/helper/Colors.ts). */
:root {
  --sheet: #fbf6e9;
  --sheet-edge: #e6d9b8;
  --cell-line: #e8dcbe;
  --ink: #2c1a0e;
  --ink-muted: #6b5440;
  --kumkum: #b71c4a;
  --festival: #b3261e;
  --rule: #b8862b;
  --binding: #7a2e1d;
  --binding-hole: #f3ebd6;
  --page: #f3ebd6;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Noto Sans Gujarati', 'Shruti', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
}

a { color: var(--kumkum); }

.container { margin: 0 auto; max-width: 860px; padding: 0 20px; }

/* The binding strip with its holes, as at the top of the wall calendar */
.binding {
  background: var(--binding)
    radial-gradient(circle, var(--binding-hole) 5px, transparent 6px) center / 48px 100% repeat-x;
  height: 28px;
}

.site-header { background: var(--sheet); border-bottom: 1px solid var(--sheet-edge); }
.site-header .container { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 12px; padding-top: 12px; }
.site-header img { border-radius: 10px; height: 40px; width: 40px; }
.site-header a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; gap: 16px; margin-left: auto; }
.site-header nav a { color: var(--ink-muted); font-size: 0.95rem; font-weight: 500; }

.sheet {
  background: var(--sheet);
  border: 1px solid var(--sheet-edge);
  border-radius: var(--radius);
  margin: 24px 0;
  padding: 32px;
}

h1 { color: var(--ink); font-size: 2rem; line-height: 1.3; margin-bottom: 8px; }
h2 { border-bottom: 2px solid var(--rule); color: var(--festival); font-size: 1.35rem; margin: 28px 0 12px; padding-bottom: 6px; }
h3 { font-size: 1.1rem; margin: 18px 0 8px; }
p, ul, ol { margin-bottom: 12px; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 6px; }
.muted { color: var(--ink-muted); }

/* Landing page */
.hero { text-align: center; }
.hero .app-icon { border-radius: 28px; box-shadow: 0 6px 24px rgba(44, 26, 14, 0.15); height: 128px; margin: 8px auto 16px; width: 128px; }
.hero .lead { color: var(--ink-muted); font-size: 1.1rem; margin: 0 auto 20px; max-width: 560px; }
.play-badge img { height: 64px; width: auto; }
.byline { align-items: center; color: var(--ink-muted); display: flex; font-size: 0.85rem; gap: 6px; justify-content: center; margin-top: 16px; }
.byline img { height: 28px; width: auto; }
.features { columns: 2 260px; list-style: none; padding: 0; }
.features li { break-inside: avoid; border-bottom: 1px solid var(--cell-line); padding: 8px 0; }
.lang-split { border-top: 1px dashed var(--sheet-edge); margin-top: 28px; padding-top: 8px; }

/* Policy pages */
.identity table, .data-table { border-collapse: collapse; margin: 12px 0 20px; width: 100%; }
.identity th, .identity td, .data-table th, .data-table td {
  border-bottom: 1px solid var(--cell-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.identity th { color: var(--ink-muted); font-weight: 600; width: 38%; }
.data-table th { background: var(--binding); color: var(--binding-hole); font-weight: 600; }
.last-updated { border-left: 4px solid var(--kumkum); margin: 16px 0; padding: 8px 14px; }
.toc ol { columns: 2 240px; }
.section { scroll-margin-top: 16px; }
.highlight-box { background: #fff8ea; border: 1px solid var(--sheet-edge); border-radius: 8px; margin: 12px 0; padding: 16px 20px; }
.steps li { margin-bottom: 10px; }

.site-footer { color: var(--ink-muted); font-size: 0.9rem; padding: 24px 0 40px; text-align: center; }
.site-footer a { color: var(--ink-muted); }

@media (max-width: 640px) {
  .sheet { padding: 20px; }
  h1 { font-size: 1.6rem; }
  .site-header nav { font-size: 0.85rem; gap: 10px; }
  .identity th { width: auto; }
  .data-table { font-size: 0.9rem; }
  .data-table th, .data-table td { padding: 8px 6px; }
}
