/* Holidays / Feriados / Festivos: the support and privacy pages. The app icon's blue. */
:root {
  --bg:#F4F8FD; --card:#FFFFFF; --ink:#0F1C2B; --ink-2:#465668; --line:#D9E4F0; --accent-text:#165FA6;
  color-scheme:light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0E151D; --card:#16202B; --ink:#EAF1F8; --ink-2:#AFC0D2; --line:#26323F; --accent-text:#74B4F0; color-scheme:dark; }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:400 17px/1.7 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing:antialiased; }
main { max-width:720px; margin:0 auto; padding:40px 16px 64px; }
a { color:var(--accent-text); text-underline-offset:3px; }
header { display:flex; align-items:center; gap:16px; margin-bottom:28px; }
header img { width:72px; height:72px; border-radius:16px; flex:none; }
h1 { margin:0; font-size:30px; line-height:1.25; }
header p { margin:2px 0 0; color:var(--ink-2); }
h2 { margin:40px 0 10px; font-size:22px; line-height:1.35; }
p, li { color:var(--ink-2); }
p { margin:0 0 12px; }
ul { margin:0 0 12px; padding-left:22px; }
strong { color:var(--ink); }
.box { margin:0 0 24px; padding:18px 20px; background:var(--card); border:1px solid var(--line); border-radius:16px; }
.box p:last-child { margin-bottom:0; }
section { margin-top:48px; padding-top:8px; border-top:1px solid var(--line); }
nav { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:48px; padding-top:20px; border-top:1px solid var(--line); font-size:15px; }
/* The calendar feeds on the support page (tools/gen_ics.py). */
.feeds { list-style:none; padding-left:0; }
.feeds > li { padding:8px 0; border-bottom:1px solid var(--line); }
.feeds > li > strong { margin-right:6px; }
.feeds details { margin-top:2px; font-size:15px; }
.feeds summary { cursor:pointer; color:var(--ink-2); }
.feeds details ul { margin:6px 0 4px; padding-left:18px; }

/* Holiday pages /calendar/<cc>/<word>-<year>/ (tools/gen_pages.py), after the Thai calendar's pages */
h3 { margin:24px 0 6px; font-size:18px; }
table { width:100%; table-layout:fixed; border-collapse:collapse; margin:0 0 12px; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; font-size:16px; }
th, td { padding:9px 12px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
th { color:var(--ink-2); font-weight:500; font-size:14px; }
tr:last-child td { border-bottom:0; }
td:first-child { color:var(--ink); font-weight:600; }
table.list th:first-child { width:42%; }
table.list.dates th:first-child { width:30%; }
table.list.dates td:first-child { white-space:nowrap; }
tr.weekend td:first-child, tr.opt td:first-child { font-weight:400; color:var(--ink-2); }
td .sub { display:block; font-size:14px; font-weight:400; color:var(--ink-2); }
.tag { display:inline-block; margin-left:6px; padding:0 8px; border-radius:999px; border:1px solid var(--line); color:var(--ink-2); font-size:13px; line-height:1.7; white-space:nowrap; }
.chips { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:15px; }
.note, .legend { font-size:14px; }
.next { text-align:center; }
.next .when { margin:0; color:var(--accent-text); font-weight:600; }
.next .date { margin:2px 0; color:var(--ink); font-size:24px; font-weight:700; line-height:1.4; }
.next .lunar { margin:0; }
.app { display:flex; gap:16px; align-items:flex-start; margin-top:28px; }
.app img { width:56px; height:56px; border-radius:12px; flex:none; }
.app p { margin-bottom:6px; }
.button { display:inline-block; padding:6px 16px; border:0; border-radius:999px; background:#1971C2; color:#fff; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.button + .button { margin-left:8px; }
.soon { color:var(--ink-2); font-size:15px; }
.legend span { margin-right:14px; }
.legend .hol { color:#C62828; font-weight:600; }
.legend .opt { color:#C62828; text-decoration:underline dotted; text-underline-offset:3px; }
.legend .obs { color:var(--ink-2); }
.month { break-inside:avoid; }
table.cal { font-size:15px; }
table.cal th, table.cal td { width:14.28%; padding:6px 2px; text-align:center; }
table.cal td b { display:block; color:var(--ink); font-weight:600; }
table.cal th.sun, table.cal td.sun b { color:#C62828; }
table.cal td.hol { background:rgba(198,40,40,.08); }
table.cal td.hol b { color:#C62828; }
table.cal td.opt b { color:#C62828; font-weight:400; text-decoration:underline dotted; text-underline-offset:3px; }
.events { list-style:none; padding:0; margin:0 0 16px; font-size:15px; }
.events li { margin:2px 0; }
.events li b { display:inline-block; min-width:96px; color:inherit; font-weight:600; }
.events li.hol, .events li.opt { color:#C62828; }
.events li.obs { color:var(--ink-2); }
@media (max-width:480px) { th, td { padding:8px 9px; } .app { flex-direction:column; } }
@media (prefers-color-scheme: dark) {
  table.cal th.sun, table.cal td.sun b, table.cal td.hol b, table.cal td.opt b, .events li.hol, .events li.opt, .legend .hol, .legend .opt { color:#FF8A80; }
  .button { background:#1C7ED6; }
}
@media print {
  body { background:#fff; font-size:12px; }
  main { max-width:none; padding:0; }
  .noprint, .app, nav, .chips, header img, .next, #agenda, #agenda ~ p { display:none !important; }
}

/* The app at a glance, at the top of the support page: screenshots and the main features */
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 4px; }
.hero-actions .button + .soon { margin-left:0; }
.button { padding:10px 20px; }
.shots { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin:24px 0; padding:0; list-style:none; }
.shots li { margin:0; }
.shots img { display:block; width:100%; height:auto; border-radius:14px; border:1px solid var(--line); }
@media (max-width:560px) {
  .shots { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:10px; margin-inline:-16px; padding:0 16px 6px; scrollbar-width:none; }
  .shots::-webkit-scrollbar { display:none; }
  .shots li { flex:0 0 66%; scroll-snap-align:center; }
}
.features { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin:0 0 28px; padding:0; list-style:none; }
.features li { margin:0; padding:14px 16px; background:var(--card); border:1px solid var(--line); border-radius:14px; font-size:15.5px; line-height:1.6; }
.features strong { display:block; margin-bottom:2px; font-size:16.5px; }
@media (max-width:560px) { .features { grid-template-columns:minmax(0,1fr); } }
/* bigger tap targets for the footer links */
nav { row-gap:0; }
nav a { display:inline-block; padding:9px 0; }
.soon { white-space:nowrap; }
