/* moonical.com – compact layout.
   Palette: brand blue and cream on the site's yellow. */
:root {
  --blue: #153d80;
  --cream: #f7f4ec;
  --yellow: #ffce3e;
  --yellow-deep: #e9b728;
  --bg: #fbfaf6;
  --surface: #fff;
  --ink: #1c2541;
  --text: #3a4160;
  --muted: #5c627a;
  --rule: #e3e0d6;
  --pad: clamp(1rem, 3vw, 2rem);

  /* Category colours: a light tint for the card behind a category and a dark tone for its
     heading and accents. Every tone has at least 5.5:1 contrast on its tint, and --ink at least 12:1.
     In use: coral (body & health), blue (household), green (garden & plants).
     Spare for new categories: teal, rose, lavender, amber. */
  --coral-tint: #fdede8;    --coral-tone: #a3402e;
  --blue-tint: #e4edf9;     --blue-tone: #1d4c8c;
  --green-tint: #e5f2e2;    --green-tone: #2a6a2e;
  --teal-tint: #e3f2f1;     --teal-tone: #1b6660;
  --rose-tint: #fbe8ec;     --rose-tone: #9a2946;
  --lavender-tint: #f1ecf8; --lavender-tone: #5a3b93;
  --amber-tint: #fcefd2;    --amber-tone: #7d5200;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
body > main { flex: 1; width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; top: -10rem; left: 1rem; padding: 0.5rem 0.75rem; background: var(--surface); z-index: 1; }
.skip-link:focus { top: 0.5rem; }

/* Language hint: a bar above the header, only for visitors whose browser prefers another language */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.1rem var(--pad); background: var(--ink); color: var(--cream); font-size: 0.85rem; }
.lang-hint a { padding-block: 0.4rem; text-underline-offset: 0.2em; }
.lang-hint button { width: 2.25rem; height: 2.25rem; border: 0; background: none; font: inherit; font-size: 1.2rem; color: inherit; cursor: pointer; }
.lang-hint :focus-visible { outline-color: var(--cream); }
/* Time zone hint: the same bar, for a first visit from a device in another time zone (fragments.html) */
.tz-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.6rem; padding: 0.4rem var(--pad); background: var(--ink); color: var(--cream); font-size: 0.85rem; }
.tz-hint button { padding: 0.3rem 0.8rem; border: 1px solid var(--cream); border-radius: 999px; background: none; font: inherit; color: inherit; cursor: pointer; }
.tz-hint .tz-use { background: var(--cream); color: var(--ink); font-weight: 600; }
.tz-hint :focus-visible { outline-color: var(--cream); }

/* Header: one row, also on phones */
.site-header { background: var(--yellow); border-bottom: 2px solid var(--yellow-deep); color: var(--blue); }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 1rem; min-height: 3rem; }
.logo { display: flex; align-items: center; padding-block: 0.5rem; }
.logo svg { display: block; height: 19px; width: auto; }
.site-header nav { margin-left: auto; }
.tagline { flex-basis: 100%; margin-top: -0.15rem; padding-bottom: 0.4rem; font-size: 0.75rem; line-height: 1.3; opacity: 0.85; }
.nav-links { display: flex; gap: 0.9rem; height: 100%; }
.nav-links a {
  display: flex; align-items: center; height: 100%; min-height: 2.75rem;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  text-decoration: underline transparent 2px; text-underline-offset: 0.45em;
}
.nav-links a:hover { text-decoration-color: rgb(21 61 128 / 0.35); }
.nav-links a[aria-current="page"] { text-decoration-color: var(--blue); }

/* Page */
.page { padding-block: 0.9rem 2rem; }
.day-layout { display: grid; gap: 1.5rem; }
.day-content { min-width: 0; container-type: inline-size; }
#calendar, #top { scroll-margin-top: 1rem; }

/* Heading + day navigation share one row when there is room */
.day-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
h1 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.heading-date { display: block; color: var(--muted); font-weight: 400; }
.heading-dash { display: none; }
.day-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 2.5rem; padding-inline: 0.75rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--blue); }
.btn-cal { width: 2.5rem; justify-content: center; padding: 0; }
.btn-cal svg { width: 18px; height: 18px; }

/* Moon facts: one dark band instead of four stacked rows */
.moon-strip {
  --band-bg: var(--blue); --band-border: var(--blue); --band-fg: var(--cream);
  --band-label: rgb(247 244 236 / 0.68); --band-icon: var(--yellow); --band-faint: rgb(247 244 236 / 0.5);
  --band-rule: rgb(247 244 236 / 0.18); --moon-dark: #3a61a8;
  margin-top: 0.75rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--band-border); border-radius: 10px; background: var(--band-bg); color: var(--band-fg);
}
.moon-facts { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 0.6rem 1rem; }
.moon-facts > div { position: relative; padding-left: 2.4rem; }
.fact-icon { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); color: var(--band-icon); }
.moon-dark { fill: var(--moon-dark); }
.moon-lit { fill: var(--yellow); }
.line-icon { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.moon-facts dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; color: var(--band-label); }
.moon-facts dd { font-size: 0.95rem; font-weight: 600; line-height: 1.3; }

/* Optional flair (html[data-flair="on"]): zodiac strip under the facts, moon phases in the header */
.zodiac-strip, .header-deco { display: none; }
[data-flair="on"] .zodiac-strip {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0.6rem 0 0; padding: 0.5rem 0 0; border-top: 1px solid var(--band-rule); list-style: none;
}
.zodiac-strip li { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--band-faint); }
.zodiac-strip svg { width: 15px; height: 15px; }
.zodiac-strip li[aria-current] { background: var(--yellow); color: var(--blue); }
.site-header { overflow: hidden; }
.header-deco {
  position: absolute; right: calc(var(--pad) + 20rem); top: -0.5rem; height: 4rem; width: auto; /* left of the tagline */
  fill: currentColor; color: #fff3bb; opacity: 0.6; pointer-events: none;
}
.header-deco .stars { display: none; }

/* Recommendations */
.recs { margin-top: 1.1rem; }
.recs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; }
.recs h2, .good-days h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.recs-intro { color: var(--muted); font-size: 0.82rem; }
.rec-groups { margin-top: 0.7rem; }
/* Jump links to the categories: phones only, hidden once the categories sit in two columns */
.group-chips ul { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.group-chips a {
  display: inline-flex; align-items: center; gap: 0.35rem; height: 2rem; padding-inline: 0.7rem;
  border-radius: 999px; background: var(--tint, #eceef3); color: var(--tone, var(--blue));
  font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.group-chips span { font-weight: 400; opacity: 0.75; }
.rec-group h3 { scroll-margin-top: 1rem; }
.page-intro { margin-top: 0.4rem; color: var(--muted); }
.rec-group { padding-bottom: 0.7rem; break-inside: avoid; }
.rec-group h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
  color: var(--muted);
}
.rec-group h3::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.rec { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0.7rem; padding-top: 0.5rem; }
.rec h4 { font-size: 0.95rem; font-weight: 650; line-height: 1.3; }
.rec h4 a { text-decoration: none; text-underline-offset: 0.15em; }
.rec h4 a::after { content: "›"; margin-left: 0.3em; color: var(--muted); font-weight: 400; }
.rec h4 a:hover { text-decoration: underline; }
.rec p { margin-top: 0.1rem; color: var(--text); font-size: 0.9rem; line-height: 1.45; }

/* Calendar */
.sidebar { min-width: 0; }
.calendar { max-width: 24rem; padding: 0.6rem 0.7rem 0.5rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head strong { font-size: 0.95rem; }
.cal-head a { display: grid; place-items: center; width: 2.5rem; height: 2.25rem; border-radius: 8px; text-decoration: none; font-size: 1.1rem; }
.month { width: 100%; table-layout: fixed; border-collapse: collapse; }
.month th { padding-block: 0.15rem; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.month abbr { text-decoration: none; }
.month td { padding: 1px; }
.month a {
  position: relative; display: grid; place-items: center; height: 2.5rem;
  border-radius: 8px; font-size: 0.9rem; font-variant-numeric: tabular-nums; text-decoration: none;
}
.month a:hover, .cal-head a:hover { background: #efede4; }
.month .is-today { box-shadow: inset 0 0 0 1.5px var(--blue); }
.month .is-good { background: var(--yellow); font-weight: 600; }
.month .is-good:hover { background: var(--yellow-deep); }
.month .is-bad { background: #f7dadf; color: #8f2440; }
.key-bad { width: 9px; height: 9px; border-radius: 3px; background: #f7dadf; box-shadow: inset 0 0 0 1px #e0a3ae; }
.cal-month + .cal-month { margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px solid var(--rule); }
.cal-head strong:only-child { margin: 0.35rem auto; }
.key-good { width: 9px; height: 9px; border-radius: 3px; background: var(--yellow); }
.month a[aria-current="date"] { background: var(--blue); color: var(--cream); font-weight: 700; }
/* Main moon phases as a small dot in the corner of the day */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.dot-full { background: var(--yellow); }
.dot-first { background: linear-gradient(90deg, var(--blue) 50%, var(--yellow) 50%); }
.dot-last { background: linear-gradient(90deg, var(--yellow) 50%, var(--blue) 50%); }
.month .dot { position: absolute; top: 4px; right: 5px; }
.month a[aria-current="date"] .dot { box-shadow: 0 0 0 1px var(--cream); }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; margin-top: 0.3rem; }
.cal-key { display: flex; flex-wrap: wrap; gap: 0 0.8rem; color: var(--muted); font-size: 0.72rem; }
.cal-key span { display: inline-flex; align-items: center; gap: 0.35rem; }
.key-today { width: 9px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--blue); }
.cal-return { padding-block: 0.5rem; font-size: 0.82rem; text-underline-offset: 0.2em; }

/* Ad placeholders. Live AdSense units need Google's responsive code. */
.ad { margin-top: 1rem; }
.ad-label { display: block; margin-bottom: 0.2rem; text-align: center; color: var(--muted); font-size: 0.68rem; }
.ad-slot { display: grid; place-items: center; min-height: 250px; border: 1px dashed #cfcbbd; background: #f3f1e9; color: var(--muted); font-size: 0.8rem; }
.ad-inline { max-width: 300px; margin: 0.2rem auto 0.9rem; break-inside: avoid; }
.ad-sidebar { display: none; }

/* Footer: one wrapping row */
.site-footer { border-top: 1px solid var(--rule); background: #f3f1e9; font-size: 0.82rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; padding-block: 0.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.footer-links a, .footer-links b, .footer-settings .tz-link { display: inline-block; padding-block: 0.5rem; text-decoration: none; }
.footer-settings {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-inner p { margin-left: auto; padding-block: 0.5rem; color: var(--muted); }

/* Wide enough for the facts in a single line */
@container (min-width: 36rem) {
  .moon-strip { padding: 0.65rem 1.1rem; }
  .zodiac-strip li { width: 28px; height: 28px; }
  .zodiac-strip svg { width: 17px; height: 17px; }
  .moon-facts { grid-template-columns: repeat(4, auto); }
}
/* Wide enough for two columns of recommendation groups */
@container (min-width: 40rem) {
  .rec-groups { columns: 2; column-gap: 2rem; }
  .group-chips:not(.always) { display: none; }
  .act-list { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
  .act-list.region-list { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
}

/* Sidebar with calendar and ad */
@media (min-width: 42rem) {
  .header-inner { gap: 0 1.75rem; min-height: 3.25rem; }
  .logo svg { height: 22px; }
  .site-header nav { margin-left: 0; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.95rem; }
  .page { padding-top: 1.1rem; }
  .day-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
  h1 { font-size: 1.45rem; }
  .heading-date, .heading-dash { display: inline; }
  .btn { height: 2.125rem; }
  .btn-cal, .cal-return { display: none; }
  .month a { height: 2rem; font-size: 0.875rem; }
  .cal-head a { height: 2rem; }
  .ad-inline { display: none; }
  .ad-sidebar { display: block; }
}

/* Design variants (html[data-theme]): "night" = night-blue header, "night-card" = same with a light facts card */
[data-theme^="night"] { --blue: #162f66; }
[data-theme^="night"] .site-header { background: var(--blue); border-bottom-color: #0e2250; color: var(--cream); }
[data-theme^="night"] .logo { color: var(--yellow); }
[data-theme^="night"] .site-header a:focus-visible { outline-color: var(--yellow); }
[data-theme^="night"] .nav-links a:hover { text-decoration-color: rgb(255 206 62 / 0.5); }
[data-theme^="night"] .nav-links a[aria-current="page"] { text-decoration-color: var(--yellow); }
[data-theme^="night"] .header-deco { color: var(--cream); opacity: 0.2; }
[data-theme^="night"] .header-deco .stars { display: inline; }
[data-theme="night-card"] .moon-strip {
  --band-bg: var(--surface); --band-border: var(--rule); --band-fg: var(--ink);
  --band-label: var(--muted); --band-icon: var(--blue); --band-faint: #8b90a4;
  --band-rule: var(--rule); --moon-dark: var(--blue);
}
@media (min-width: 48rem) {
  .tagline { flex-basis: auto; align-self: center; margin: 0 0 0 auto; padding: 0; font-size: 0.82rem; }
}
@media (min-width: 68rem) {
  [data-flair="on"] .header-deco { display: block; }
}

/* Category styles (html[data-groups]): "bars" = tinted header bars as on mondinfo.de,
   "cards" = one tinted card per category. Each category class sets its own tint and tone. */
.rec-group { --tint: #eceef3; --tone: var(--blue); }
.group-body-health { --tint: var(--coral-tint); --tone: var(--coral-tone); }
.group-food-drink { --tint: var(--amber-tint); --tone: var(--amber-tone); }
.group-household { --tint: var(--blue-tint); --tone: var(--blue-tone); }
.group-garden-plants { --tint: var(--green-tint); --tone: var(--green-tone); }
.group-pets { --tint: var(--lavender-tint); --tone: var(--lavender-tone); }
[data-groups="bars"] .rec-group h3 {
  padding: 0.35rem 0.6rem; border-bottom: 2px solid #c3cfe6; border-radius: 6px 6px 0 0;
  background: #e2e9f5; color: var(--blue);
}
[data-groups="bars"] .rec-group h3::after { display: none; }
[data-groups="cards"] .rec-group { margin-bottom: 0.7rem; padding: 0.55rem 0.7rem 0.65rem; border-radius: 10px; background: var(--tint); }
[data-groups="cards"] .rec-group h3 { color: var(--tone); }
[data-groups="cards"] .rec-group h3::after { background: var(--tone); opacity: 0.25; }

/* More categories. Day calendar: home & DIY amber, plans teal, pets lavender (in the block above).
   Garden calendar: green, teal and amber keep warm and cool in balance; beekeeping lavender, the
   animals' colour (it was under pets until 2026-11-19). */
.group-home-diy { --tint: var(--amber-tint); --tone: var(--amber-tone); }
.group-plans { --tint: var(--teal-tint); --tone: var(--teal-tone); }
.group-garden-sowing { --tint: var(--green-tint); --tone: var(--green-tone); }
.group-garden-care { --tint: var(--teal-tint); --tone: var(--teal-tone); }
.group-garden-harvest { --tint: var(--amber-tint); --tone: var(--amber-tone); }
.group-garden-bees { --tint: var(--lavender-tint); --tone: var(--lavender-tone); }

/* Header with three sections: phones get the links in a row of their own that can scroll sideways;
   the tagline moves up beside the logo. */
@media (max-width: 41.99rem) {
  .tagline { flex: 1; align-self: center; margin: 0; padding: 0; text-align: right; }
  .site-header nav { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--pad)); padding-inline: var(--pad); border-top: 1px solid rgb(21 61 128 / 0.14); overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .nav-links { gap: 1.15rem; }
  .nav-links a { min-height: 2.5rem; }
}
@media (min-width: 48rem) and (max-width: 57.99rem) {
  .tagline { display: none; }
}

/* Draft activities (only shown with moonical.show-drafts): rule and text are placeholders */
.draft-tag {
  display: inline-block; margin-left: 0.4em; padding: 0 0.45em; border: 1px dashed currentColor; border-radius: 999px;
  color: #8a5a00; background: #fff6d8; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.5;
  text-transform: none; vertical-align: 0.15em; white-space: nowrap;
}
h1 .draft-tag { font-size: 0.8rem; vertical-align: 0.35em; }

/* Review page (/best-days?show_all=true): every activity with its rule */
.review-note { margin-top: 0.6rem; padding: 0.5rem 0.7rem; border: 1px dashed var(--rule); border-radius: 8px; color: var(--muted); font-size: 0.85rem; }
.rec .review-rule { margin-top: 0.15rem; color: var(--muted); font-size: 0.78rem; }
.review-rule code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

/* Garden: the link from the day page's garden card, examples (crops) as chips */
.card-link { margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid rgb(0 0 0 / 0.07); font-size: 0.875rem; font-weight: 600; }
.card-link a { color: var(--tone, var(--blue)); text-underline-offset: 0.2em; }
.crops { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.crops li { padding: 0.05rem 0.5rem; border-radius: 999px; background: rgb(255 255 255 / 0.75); color: var(--tone, var(--blue)); font-size: 0.78rem; font-weight: 600; }
.activity-card .crops { margin-top: 0.5rem; }

/* Garden: the week by plant type, and the crops of each type */
.week { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; margin: 0.6rem 0 0; }
.week a {
  display: grid; justify-items: center; gap: 0.1rem; padding: 0.45rem 0.1rem 0.4rem; border-radius: 10px;
  background: var(--tint); color: var(--tone); text-align: center; text-decoration: none; line-height: 1.2;
}
.week a:hover { box-shadow: inset 0 0 0 1px var(--tone); }
.week .wd { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }
.week .num { color: var(--ink); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.week svg { position: static; width: 20px; height: 20px; margin-block: 0.15rem; transform: none; color: currentColor; stroke-width: 1.8; }
.week .type { font-size: 0.72rem; font-weight: 700; }
.week [aria-current] { box-shadow: inset 0 0 0 2px var(--tone); }
.type-flower { --tint: var(--amber-tint); --tone: var(--amber-tone); }
.type-leaf { --tint: var(--green-tint); --tone: var(--green-tone); }
.type-fruit { --tint: var(--coral-tint); --tone: var(--coral-tone); }
.type-root { --tint: #efe9df; --tone: #6b4a22; }
.plant-types { display: grid; gap: 0.3rem 1.5rem; margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.4; }
.plant-types li { padding-left: 0.6rem; border-left: 3px solid var(--tone); }
.plant-types b { color: var(--tone); }
.plant-types span { color: var(--text); }
@container (min-width: 36rem) {
  .plant-types { grid-template-columns: 1fr 1fr; }
  .week .wd { font-size: 0.72rem; }
}
.coming-up { margin-top: 1rem; }
.coming-up .act-list { grid-template-columns: 1fr; }
.coming-up .act-list a { justify-content: flex-start; }
.coming-up .when { margin-left: auto; padding-left: 0.5rem; color: var(--muted); font-size: 0.78rem; font-weight: 400; white-space: nowrap; }
.act-section { margin-top: 1.4rem; }

/* Activities overview: compact tiles inside the category cards */
.act-groups { margin-top: 0.8rem; }
.act-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 0.5rem; margin-top: 0.35rem; }
.act-list a {
  display: flex; align-items: center; gap: 0.55rem; min-height: 2.5rem; padding: 0.25rem 0.35rem;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600; line-height: 1.25; text-decoration: none;
}
.act-list a:hover { background: rgb(255 255 255 / 0.7); }
.all-link { margin-top: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.all-link a { text-underline-offset: 0.2em; }

/* One activity */
.activity-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start;
  margin-top: 0.75rem; padding: 0.8rem 0.9rem; border-radius: 10px; background: var(--tint, #eceef3);
}
.activity-category { color: var(--tone, var(--blue)); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.activity-category + p { margin-top: 0.15rem; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.notice {
  display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.6rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--yellow-deep); border-radius: 10px; background: #fff6d8; font-size: 0.9rem; line-height: 1.45;
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; color: #8a5a00; stroke-width: 2; }
.region-list { grid-template-columns: 1fr; }
/* names of body regions can wrap to two lines: the icon stays beside the first line */
.region-list a { align-items: flex-start; }
.region-list .act-icon { margin-top: 0.1rem; }
.region-name { display: flex; flex-direction: column; }
.region-name small { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.region-name svg { width: 11px; height: 11px; }
.next-good { display: flex; align-items: center; gap: 0.8rem; }
.next-good .fact-icon { position: static; flex: none; transform: none; }
.next-good p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.7rem; }
.next-label { flex-basis: 100%; color: var(--band-label); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; }
.next-good strong { font-size: 1.05rem; line-height: 1.3; }
.next-good strong a { text-underline-offset: 0.2em; }
.next-sub { color: var(--band-label); font-size: 0.85rem; }
.good-days { margin-top: 1.1rem; }
.good-days h3 { margin-top: 0.7rem; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.day-ranges a {
  display: grid; grid-template-columns: auto auto 1fr; gap: 0 0.6rem; align-items: baseline;
  padding: 0.45rem 0.2rem; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.day-ranges a:hover { background: #f3f1e9; }
.day-ranges strong { font-size: 0.95rem; }
.range-weekdays { color: var(--muted); font-size: 0.85rem; }
.range-when { justify-self: end; color: var(--muted); font-size: 0.8rem; }
.range-moon { grid-column: 1 / -1; color: var(--text); font-size: 0.82rem; }
.related { margin-top: 1.1rem; }

/* Long texts: the about page, with a table and a list of its sections beside it */
.intro-link { color: var(--blue); font-weight: 600; text-underline-offset: 0.2em; white-space: nowrap; }
.prose { max-width: 42rem; }
.prose .lead { margin-top: 0.7rem; color: var(--text); font-size: 1.05rem; line-height: 1.5; }
.prose h2 { margin-top: 1.5rem; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1rem; font-size: 1rem; }
.prose p { margin-top: 0.5rem; color: var(--text); line-height: 1.6; }
.prose ul { margin-top: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.prose li { margin-top: 0.3rem; color: var(--text); line-height: 1.6; }
.table-scroll { margin-top: 0.7rem; overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 0.8rem; line-height: 1.35; } /* small on phones, so that four columns fit */
.data th, .data td { padding: 0.45rem 0.4rem 0.45rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data thead th { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.data td { hyphens: auto; }
.data tbody th { font-weight: 650; white-space: nowrap; }
.data svg { width: 15px; height: 15px; margin-right: 0.45rem; color: var(--blue); vertical-align: -0.15em; }
.box { margin-top: 1.2rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: #f3f1e9; font-size: 0.875rem; line-height: 1.5; }
.box h2 { margin: 0; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.box p { margin-top: 0.2rem; }
.side-box { padding: 0.7rem 0.8rem; border-radius: 10px; background: var(--tint, #eceef3); }
.side-box h2 { color: var(--tone, var(--blue)); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.toc { display: none; } /* on phones the sidebar comes after the text, where a list of its sections is no use */
.toc a { display: block; padding-block: 0.25rem; font-size: 0.9rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 42rem) {
  .toc { display: block; }
  .data { font-size: 0.9rem; }
  .data th, .data td { padding-right: 0.6rem; }
}

/* Time zone: the link under the moon band and in the footer, and the page that changes it */
.tz-note { margin-top: 0.35rem; font-size: 0.8rem; text-align: right; }
.tz-link { color: var(--muted); text-decoration: none; }
.tz-link b { color: var(--ink); font-weight: 600; }
.tz-link span { margin-left: 0.3em; text-decoration: underline; text-underline-offset: 0.2em; }
.tz-link:hover span { color: var(--ink); }
.tz-form { margin-top: 0.9rem; }
.tz-find label { display: block; font-size: 0.8rem; font-weight: 600; }
.tz-find input {
  width: 100%; max-width: 24rem; height: 2.5rem; margin-top: 0.2rem; padding-inline: 0.9rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font: inherit; color: inherit;
}
.tz-device { flex-wrap: wrap; align-items: center; margin: 0 0 0.9rem; }
.tz-find { margin-bottom: 0.7rem; }
.tz-form details { border-bottom: 1px solid var(--rule); }
.tz-form details:first-of-type { border-top: 1px solid var(--rule); }
.tz-form summary { padding: 0.75rem 0.2rem; font-weight: 700; cursor: pointer; }
.tz-form summary:hover { background: #f3f1e9; }
.tz-form summary span { margin-left: 0.4rem; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.is-searching summary span { display: none; }
.tz-list li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.25rem 0.6rem; align-items: center;
  padding-block: 0.3rem; border-top: 1px solid var(--rule); break-inside: avoid; font-size: 0.9rem; line-height: 1.3;
}
.tz-form button {
  grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 2.5rem; padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface);
  font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer;
}
.tz-form button:hover { border-color: var(--blue); }
.tz-form button span { color: var(--muted); font-size: 0.82rem; font-weight: 400; white-space: nowrap; }
.tz-form button[aria-current] { border-color: var(--blue); background: var(--blue); color: var(--cream); }
.tz-form button[aria-current] span { color: inherit; opacity: 0.8; }
@container (min-width: 40rem) {
  .tz-list { columns: 2; column-gap: 2rem; }
}

/* Logo comparison page */
.logo-options { padding-block: 1.1rem 2rem; }
.logo-options section { margin-top: 1.5rem; }
.option-label { padding-bottom: 0.4rem; }
.option-label h2 { font-size: 1rem; }
.option-label p { color: var(--muted); font-size: 0.875rem; }
.option-large { padding-block: 1.25rem; background: var(--yellow); color: var(--blue); }
.option-large svg { display: block; height: clamp(40px, 9vw, 64px); max-width: 100%; }

/* Activity icons: the existing 32 px tiles of mondinfo.de, until the new icon set is in place */
.act-icon { display: block; width: 36px; height: 36px; }
.act-list .act-icon { flex: none; width: 30px; height: 30px; }
.activity-card .act-icon { width: 40px; height: 40px; }

/* Widgets page (/widgets): the gallery of widgets and the builder. The widgets themselves are
   in widget.css and live in iframes. */
.gallery { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.2rem 1.5rem; margin-top: 0.8rem; }
.gallery figure { margin: 0; max-width: 100%; }
.gallery .wide { flex-basis: 100%; }
.gallery figcaption { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.8rem; }
.gallery iframe, .preview iframe { display: block; max-width: 100%; border: 0; }
.embed { margin-top: 0.4rem; font-size: 0.8rem; }
.embed summary { width: fit-content; padding-block: 0.25rem; color: var(--blue); font-weight: 600; cursor: pointer; }
.section-head { margin-top: 1.6rem; }
.section-head h2 { font-size: 1.1rem; }
.section-head p { color: var(--muted); font-size: 0.875rem; }
.builder { display: grid; gap: 1.2rem; margin-top: 0.8rem; padding: 0.9rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.builder > * { min-width: 0; }
.builder fieldset { margin: 0 0 0.8rem; padding: 0; border: 0; }
.builder legend, .builder .label { padding: 0; margin-bottom: 0.3rem; font-size: 0.8rem; font-weight: 700; }
.builder .hint, .builder .size { margin-top: 0.3rem; color: var(--muted); font-size: 0.8rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; height: 2.25rem; padding-inline: 0.8rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--blue); background: var(--blue); color: var(--cream); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg input:disabled + span { opacity: 0.4; cursor: default; }
.builder select, .builder input[type="text"] { width: 100%; max-width: 20rem; height: 2.4rem; padding-inline: 0.7rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); font: inherit; color: inherit; }
.builder input[aria-invalid="true"] { border-color: #a3402e; }
.builder .spaced { margin-top: 0.9rem; }
#pick-tz { margin-top: 0.5rem; }
.preview { display: grid; place-items: center; min-height: 12rem; padding: 1rem; border-radius: 10px; background: repeating-conic-gradient(#f3f1e9 0 25%, #fbfaf6 0 50%) 0 0 / 20px 20px; }
.preview > * { max-width: 100%; }
.code { margin-top: 0.7rem; }
.code pre { margin: 0; padding: 0.7rem 0.8rem; border-radius: 8px; background: var(--ink); color: var(--cream); font: 0.78rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-top: 0.5rem; color: var(--muted); font-size: 0.8rem; }
.btn-primary { border-color: var(--blue); background: var(--blue); color: var(--cream); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
@media (min-width: 52rem) {
  .builder { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 1.1rem; }
}
