/* Job Calendar website: static pages, no scripts, no third-party requests (no fonts from another site, no
   analytics, no CDN). Brand rules: docs/design/channels.md § Website. */

/* Colour roles and values from docs/design/foundations.md § Colour (light and dark columns). */
:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --ink: #152120;
  --ink-muted: #4b5957;
  --brand-strong: #07504c;
  --brand-container: #cdebe6;
  --on-brand-container: #00332f;
  --outline: #d3dcda;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #162020;
    --ink: #e5edeb;
    --ink-muted: #a6b4b1;
    --brand-strong: #8eddd3;
    --brand-container: #0f4a45;
    --on-brand-container: #bdeee7;
    --outline: #2d3a38;
  }
}

/* Anek Bangla (SIL OFL 1.1, fonts/OFL.txt), served from this site, for headings and the logo only: 84 KB in all.
   600 holds printable ASCII and the whole Bengali block; 500 holds only the logo's Bangla line. Both are subsets of
   the app's files (apps/mobile/assets/fonts/anek_bangla), cut with fonttools pyftsubset, every layout feature kept. */
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/anek-bangla-600.woff2") format("woff2");
}

@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/anek-bangla-500-wordmark.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font:
    17px/1.65 system-ui,
    "Noto Sans Bengali",
    sans-serif;
}

a {
  color: var(--brand-strong);
}

a:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
}

.top,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* The header keeps the logo's clear space (a quarter of the tile, 11px) free on every side. */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline);
  font-weight: 600;
}

.top a {
  text-decoration: none;
}

/* The language switch: a 48px touch target. */
.top a:not(.logo) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Horizontal lockup (docs/design/brand.md § Logo): the tile, "Job Calendar" in 600, the Bangla name in 500 beneath.
   The standard tile on the light page, the inverse (white) tile on the dark one (the <picture> in each page; owner,
   2026-11-10). The tile's colours are fixed; the words follow the theme. */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo picture,
.logo img {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
}

.logo-name,
h1,
h2 {
  font-family: "Anek Bangla", system-ui, "Noto Sans Bengali", sans-serif;
  font-weight: 600;
}

.logo-name {
  font-size: 24px;
  line-height: 1.1;
}

.logo-name span {
  display: block;
}

.logo-name .logo-bn {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Sizes and Bangla line heights of headline-lg (28 / 38) and title-lg (20 / 30) in foundations.md § Type. */
h1 {
  font-size: 1.75rem;
  line-height: 2.375rem;
  margin: 1.6rem 0 0.4rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.875rem;
  margin: 2rem 0 0.4rem;
}

.updated {
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.note {
  background: var(--brand-container);
  color: var(--on-brand-container);
  border-left: 4px solid var(--brand-strong);
  padding: 0.6rem 1rem;
  margin: 1rem 0;
}

.note a {
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--outline);
}

.table-wrap {
  overflow-x: auto;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--outline);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer nav a {
  margin-right: 1rem;
}
