/* Brand: tokens and the pieces every page shares (header, headings, the muggu marker).
   The rules behind them: brand/README.md and the brand reference it links. Loaded after
   site.css on every page; page styles (home.css, word.css, wordform.css) use these tokens. */

:root {
  --brand-surface: #ffffff;
  --brand-sunk: #f5f3ef;        /* one quiet band per page */
  --brand-ink: #1d1f1c;         /* text */
  --brand-muted: #5e625b;       /* spellings, dates, meta */
  --brand-line: #e2ded6;        /* hairlines between rows */
  --brand-border: #8c8f88;      /* input and outlined-button borders */
  --brand-leaf: #17643f;        /* the one action colour: buttons, links, focus */
  --brand-leaf-dark: #0f4a2e;
  --brand-leaf-soft: #e7f0ea;   /* region chips, selected rows */
  --brand-mud: #9a5a34;         /* brand moments: word of the day, contributor names */
  --brand-mud-soft: #f6ece3;
  --brand-thatch: #d9a23e;      /* the muggu marker, new-word badges (dark text on it) */
  --brand-thatch-soft: #fbf1da;
  --brand-kumkuma: #b3261e;     /* likes and errors only */
  --font-display: "Anek Telugu", "Noto Sans Telugu", system-ui, sans-serif;
  --font-body: "Noto Sans Telugu", "Kohinoor Telugu", system-ui, sans-serif;
  /* The five-dot muggu that opens a section heading */
  --brand-marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='%23d9a23e'%3E%3Ccircle cx='11' cy='3' r='2.2'/%3E%3Ccircle cx='3' cy='11' r='2.2'/%3E%3Ccircle cx='19' cy='11' r='2.2'/%3E%3Ccircle cx='11' cy='19' r='2.2'/%3E%3Ccircle cx='11' cy='11' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Header: white bar, granary logo, name and tagline */
.site-bar { background: var(--brand-surface); border-bottom: 1px solid var(--brand-line); }
.site-bar .site-brand { gap: 0.7rem; color: var(--brand-ink) !important; }
.site-bar .site-brand img { width: 48px; height: 48px; }
.site-brand-name { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--brand-ink); }
.site-brand-tag { display: block; font-family: var(--font-body); font-size: 0.8rem; line-height: 1.3; color: var(--brand-mud); margin-top: 0.1rem; }
.site-bar .nav-link, .site-bar .dropdown-toggle { color: var(--brand-ink) !important; font-weight: 500; }
.site-bar .nav-link:hover, .site-bar .dropdown-toggle:hover { color: var(--brand-leaf) !important; }
.site-bar .site-menu-btn { color: var(--brand-ink); border-color: var(--brand-line); }
.site-bar .site-nav .nav { border-top-color: var(--brand-line); }
@media (max-width: 991.98px) {
  .site-bar .site-brand img { width: 40px; height: 40px; }
  .site-brand-name { font-size: 1.35rem; }
  .site-brand-tag { display: none; }
}

/* Headings in the display face */
.yh-h2, .yh-list-head h1, .yh-cta h2, .yw-word, .yw-box-title, .yk-title {
  font-family: var(--font-display);
}

/* Section headings open with the muggu marker, so a page reads as titled blocks */
.yh-h2, .yw-box-title { display: flex; align-items: center; gap: 0.55rem; }
.yh-h2::before, .yw-box-title::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px;
  background: var(--brand-marker) center / contain no-repeat;
}
.yh-h2 { font-size: 1.35rem; font-weight: 600; line-height: 1.4; }
.yw-box-title { font-size: 1.15rem; font-weight: 600; flex-wrap: wrap; }

/* Focus: one solid leaf ring everywhere */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand-leaf); outline-offset: 2px;
}

/* Bootstrap's greens become leaf (search button, region pills, add buttons) */
.btn-success { --bs-btn-bg: var(--brand-leaf); background-color: var(--brand-leaf); border-color: var(--brand-leaf); }
.btn-success:hover, .btn-success:focus { background-color: var(--brand-leaf-dark); border-color: var(--brand-leaf-dark); }
.btn-outline-success { color: var(--brand-leaf); border-color: var(--brand-leaf); }
.btn-outline-success:hover { background-color: var(--brand-leaf); border-color: var(--brand-leaf); color: #fff; }
.text-success { color: var(--brand-leaf) !important; }

/* Contributors are credited in the granary's mud */
.yw-by a { color: var(--brand-mud) !important; font-weight: 600; }

/* Word of the day: space between the badge and the word */
.yh-feature-top { margin-bottom: 0.35rem; }
