/* Sona Retreats.  Colours from Bianca's Horizon logo (green #17352c) and her protea drawing
   (rust), on cream paper.  No inline styles anywhere: every page, the payment page included,
   runs under style-src 'self'. */
:root {
  --green: #17352c;
  --green-2: #2c5244;
  --green-soft: #e4ebe5;
  --rust: #a94a2a;
  --rust-soft: #f4e3d9;
  --gold: #c39338;
  --cream: #f6f1e8;
  --paper: #fcfaf5;
  --ink: #1d2622;
  --muted: #5d6862;
  --line: #e2d9c9;
  --good: #2f6b45;
  --bad: #a8321f;
  --warn: #8a5a12;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 53, 44, .06), 0 8px 24px rgba(23, 53, 44, .08);
  --edge: max(16px, calc((100% - 1108px) / 2));   /* the left and right line every section shares */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--green); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rust); margin-bottom: .6em; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.mt { margin-top: 2.5rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--green-2); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; padding: .75em 1.5em; border-radius: 999px; border: 1px solid var(--green); background: var(--green);
  color: var(--paper); font: 500 .95rem var(--sans); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn-quiet { background: transparent; color: var(--green); }
.btn-quiet:hover { background: var(--green-soft); color: var(--green); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--green); }
.btn-light:hover { background: #fff; color: var(--green); border-color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .75); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: #fff; }
.btn-small { padding: .4em 1em; font-size: .85rem; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

/* Demo bar, header, footer */
.demo-bar { background: var(--green); color: #e9efe9; font-size: .82rem; padding: .45rem 16px; text-align: center; }
.demo-bar a { color: #fff; margin-left: .8em; white-space: nowrap; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--edge);
  position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--green); }
.brand-mark { height: 26px; width: auto; }
.brand-mark-ivory { display: none; }
.brand-word { font: 500 1.35rem var(--serif); letter-spacing: .22em; }
.brand-sub { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); font-size: .92rem; }
.site-nav a { color: var(--ink); text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.site-nav a:hover { color: var(--rust); }
.site-nav .nav-trip { border: 1px solid var(--green); border-radius: 999px; padding: .4em 1.1em; color: var(--green); }
.site-nav .nav-trip:hover { background: var(--green); color: #fff; }
body.home .site-head { position: absolute; left: 0; right: 0; }
body.home .demo-bar + .site-head { top: 2rem; }
body.home .site-head .brand, body.home .site-nav a { color: #fff; }
body.home .site-head .brand-sub { color: rgba(255, 255, 255, .8); }
body.home .brand-mark { display: none; }
body.home .brand-mark-ivory { display: inline; }
body.home .site-nav .nav-trip { border-color: rgba(255, 255, 255, .8); }
body.home .site-nav .nav-trip:hover { background: #fff; color: var(--green); }
.site-foot { background: var(--green); color: #dfe7e1; text-align: center; padding: 3rem 16px 2.5rem; margin-top: 4rem; }
.foot-logo { width: 150px; height: auto; opacity: .95; }
.foot-tag { font: italic 1.05rem var(--serif); color: #f0e6d0; margin: .5rem 0 1.2rem; }
.foot-nav { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .9rem; }
.site-foot a, .site-foot button.link { color: #fff; }
.flash { max-width: 1100px; margin: 1rem auto; padding: .8rem 1.1rem; background: var(--rust-soft); border-left: 4px solid var(--rust);
  border-radius: 8px; width: calc(100% - 32px); }
.flash p { margin: 0; }
body.home .flash { position: absolute; top: 6rem; left: 50%; transform: translateX(-50%); z-index: 6; }

@media (max-width: 640px) {
  .brand-sub, .nav-wide, .demo-long { display: none; }
  .brand-mark { height: 22px; }
  .brand-word { font-size: 1.2rem; letter-spacing: .18em; }
  .site-nav { gap: 1rem; font-size: .9rem; }
  .site-nav .nav-trip { padding: .35em .95em; }
  .demo-bar a { margin-left: .6em; }
}

@media (max-width: 400px) {
  .site-nav .nav-cal { display: none; }
  .hero-doors .btn { min-width: 12.5rem; text-align: center; }
}

/* Photographic heroes */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--green); }
.hero .scape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 20, .35) 0%, rgba(10, 25, 20, .1) 35%, rgba(10, 25, 20, .62) 100%); }
.hero-text { position: relative; z-index: 2; width: 100%; padding: 3rem var(--edge) 3.2rem; }
.hero-text > * { max-width: 44rem; }
.hero h1, .hero .eyebrow { color: #fff; }
.hero .eyebrow { color: #f3dcc3; }
.hero .lede { color: rgba(255, 255, 255, .92); }
.hero-when { letter-spacing: .06em; }
.hero-home { min-height: 100vh; min-height: 100svh; align-items: center; justify-content: center; text-align: center; }
.hero-home::after { background: radial-gradient(ellipse at 50% 45%, rgba(10, 25, 20, .45) 0%, rgba(10, 25, 20, .2) 55%, rgba(10, 25, 20, .55) 100%); }
.hero-home .hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-home .scape { object-position: 22% 50%; }
.hero-logo { margin: 0 0 .4rem; line-height: 0; }
.hero-logo img { width: clamp(200px, 32vw, 320px); height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .25)); }
.hero-tag { font: italic clamp(1.2rem, 2.4vw, 1.6rem) var(--serif); color: #f6e7cc; letter-spacing: .04em; margin-bottom: 1rem; }
.hero-home .lede { margin: 0 auto 1.8rem; }
.hero-doors { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.hero-down { position: absolute; z-index: 2; bottom: 1.6rem; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-right: 2px solid rgba(255, 255, 255, .8); border-bottom: 2px solid rgba(255, 255, 255, .8); transform: rotate(45deg); }

/* Sections */
.page { max-width: 1140px; margin: 0 auto; padding: 2.5rem 16px; }
.page section + section, .two-col > div > section + section { margin-top: 2.6rem; }
.page h2 { margin-top: 0; }
.page h2.mt { margin-top: 2.8rem; }
.intro { max-width: 44rem; margin-bottom: 1.6rem; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.page.narrow { padding-left: 16px; padding-right: 16px; }
.two-col { display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.pillars { max-width: 1140px; margin: 0 auto; padding: 4.5rem 16px 1rem; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); text-align: center; }
.pillars .eyebrow { grid-column: 1 / -1; margin: 0 auto; max-width: none; color: var(--rust); }
.pillars h3 { font-size: 1.6rem; }
.pillars p { color: var(--muted); max-width: 22rem; margin: 0 auto; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.retreats { max-width: 1140px; margin: 0 auto; padding: 3rem 16px; }
.retreats > h2 { text-align: center; margin-bottom: 1.5rem; }
.cards { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 53, 44, .06), 0 16px 36px rgba(23, 53, 44, .14); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card .scape { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.55rem; margin-bottom: .25em; }
.card-where { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: .4em; }
.card-when { color: var(--muted); font-size: .92rem; margin-bottom: .7em; }
.card-foot { margin-top: auto; margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card-more { color: var(--green); font-size: .9rem; letter-spacing: .05em; }
.card-more::after { content: " \2192"; }
.pill { display: inline-block; font-size: .78rem; padding: .2em .75em; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.pill-low { background: var(--rust-soft); color: var(--rust); }
.pill-full, .pill-cancelled { background: #eee6dc; color: var(--muted); }
.pill-confirmed, .pill-open { background: #dcebdf; color: var(--good); }
.pill-pending, .pill-draft { background: #f6ead0; color: var(--warn); }
.pill-waitlist { background: var(--rust-soft); color: var(--rust); }
.pill-closed { background: #eee6dc; color: var(--muted); }

/* Retreat page */
.rituals ul, .panel ul { padding-left: 1.1rem; }
.rituals li::marker { color: var(--gold); }
.panel { background: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.panel-note { background: var(--rust-soft); box-shadow: none; }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { padding-left: 1.5rem; position: relative; margin-bottom: .35rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(-45deg); }
dl.dates { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
dl.dates dt { color: var(--muted); font-size: .9rem; }
dl.dates dd { margin: 0; }
details.day { background: var(--paper); border-radius: 10px; margin-bottom: .6rem; padding: .2rem 1rem; box-shadow: var(--shadow); }
details.day summary { cursor: pointer; padding: .7rem 0; font-family: var(--serif); font-size: 1.1rem; color: var(--green); }
ul.slots { list-style: none; padding: 0; margin: 0 0 .5rem; }
.slot { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .4rem 1rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: start; }
.slots .slot:first-child { border-top: 0; }
.day-block h3 { margin-bottom: .2rem; }
.slot-act { grid-column: 2; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
@media (min-width: 700px) { .slot { grid-template-columns: 5.5rem minmax(0, 1fr) auto; } .slot-act { grid-column: auto; justify-content: flex-end; } }
.slot-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; line-height: 1.3; }
.t-start { font-weight: 600; color: var(--green); }
.t-end { font-size: .8rem; color: var(--muted); }
.slot-what p { margin: 0 0 .25em; }
.slot-title { font-weight: 600; color: var(--ink); }
.slot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.slot-desc { color: var(--ink); max-width: 38rem; }
.slot-mine { background: linear-gradient(90deg, var(--green-soft), transparent 75%); border-radius: 10px; padding-left: .75rem; padding-right: .75rem; margin: 0 -.75rem; border-top-color: transparent; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .1em .55em; border-radius: 4px;
  background: #efe8dc; color: var(--muted); vertical-align: middle; }
.tag-ritual { background: #f3e6cc; color: #7a5a17; }
.tag-elective { background: var(--green-soft); color: var(--green); }
.tag-extra { background: var(--rust-soft); color: var(--rust); }
.spots { font-size: .82rem; color: var(--muted); }
.spots-low { color: var(--rust); font-weight: 600; }
.spots-full { color: var(--bad); font-weight: 600; }
.chosen { color: var(--good); font-size: .88rem; font-weight: 600; }
.chosen::before { content: "\2713\00a0"; }
.rooms { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.room-card { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-card .btn { margin-top: auto; align-self: flex-start; }
.price { font: 500 1.5rem var(--serif); color: var(--green); margin-bottom: .2em; }
.price span { font: .85rem var(--sans); color: var(--muted); }
.avail { font-size: .9rem; color: var(--good); }
.avail-low { color: var(--rust); font-weight: 600; }
.avail-full { color: var(--bad); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-size: .92rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); padding: .65rem .8rem; border: 1px solid #d5cab7; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green-2); outline: 2px solid var(--green-soft); }
.form .btn { justify-self: start; }
.form label.choice { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.form label.choice input { width: auto; margin-top: .3em; accent-color: var(--green); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; gap: .8rem; margin: 0; }
legend { font-family: var(--serif); color: var(--green); font-size: 1.1rem; padding: 0 .4rem; }
.errors { background: #f8e1da; border-left: 4px solid var(--bad); padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.errors p { margin: .2em 0; }
.note { background: #f3ead6; border-radius: 10px; padding: .8rem 1rem; }
table.plan { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.plan caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: .3rem; }
table.plan td { padding: .5rem .3rem; border-top: 1px solid var(--line); }
table.plan tr.paid td { color: var(--good); }
table.plan tr.overdue td { color: var(--bad); }
table.plan tr.total td { font-weight: 600; border-top: 2px solid var(--line); }
table.plan td { vertical-align: top; }
.plan-when { display: block; font-size: .82rem; color: var(--muted); }
table.plan tr.paid td, table.plan tr.paid .plan-when { color: var(--good); }
table.plan tr.overdue td, table.plan tr.overdue .plan-when { color: var(--bad); }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: #ebe3d5; overflow: hidden; vertical-align: middle; }
progress.bar::-webkit-progress-bar { background: #ebe3d5; border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--green-2); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--green-2); border-radius: 99px; }
progress.bar-full::-webkit-progress-value { background: var(--rust); }
progress.bar-full::-moz-progress-bar { background: var(--rust); }
.panel progress.bar { margin: 1.1rem 0 .4rem; }
.paid-line { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.paid-line strong { color: var(--green); }
.choice-line { margin-bottom: .45rem; }
.choice-line span { font-weight: 600; color: var(--green); }
.extra-spots { margin-bottom: .8rem; }

/* Payment page */
.pay-page { background: var(--cream); }
.pay { max-width: 460px; margin: 3rem auto; background: var(--paper); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.demo-stamp { font-size: .82rem; background: #f3ead6; border-radius: 8px; padding: .6rem .8rem; color: var(--warn); }
.pay-amount { font: 500 2.4rem var(--serif); color: var(--green); margin: 0 0 1rem; }
.pay-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* Sign-in */
.sign-wrap { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 3rem 16px; overflow: hidden; }
.sign-wrap .scape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sign-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(40, 20, 10, .18); }
.sign-card { position: relative; z-index: 2; width: 100%; max-width: 440px; background: rgba(252, 250, 245, .96); border-radius: 20px;
  padding: 2.2rem 2rem; box-shadow: 0 20px 60px rgba(40, 20, 10, .25); text-align: left; }
.sign-mark { display: block; width: 84px; height: auto; margin: 0 auto 1rem; }
.sign-card h1 { text-align: center; font-size: 2rem; }
.sign-card .lede { font-size: 1rem; }
.sign-card .btn { width: 100%; text-align: center; }
.sign-foot { margin: 1.2rem 0 0; text-align: center; }

/* Trip space */
.trip-head { position: relative; min-height: 34vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--green); }
.trip-head .scape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 20, .05), rgba(10, 25, 20, .65)); }
.trip-head-text { position: relative; z-index: 2; width: 100%; padding: 2rem var(--edge) 1.6rem; }
.trip-head h1 { color: #fff; margin-bottom: .2em; }
.trip-head .eyebrow { color: #f3dcc3; }
.trip-head p { margin: 0; }
.tabs { display: flex; gap: .2rem; overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 calc(var(--edge) - .9rem);
  scrollbar-width: none; position: sticky; top: 0; z-index: 4; }
.tabs a { padding: .95rem .9rem; white-space: nowrap; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-size: .95rem; }
.tabs a[aria-current="page"] { color: var(--green); border-bottom-color: var(--rust); }
.tabs a:hover { color: var(--green); }
@media (max-width: 760px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 3rem; } }
.count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--rust); color: #fff; font-size: .75rem; text-align: center; }
.day-block { margin-bottom: 2rem; }
.day-block h3 { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.cat { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-family: var(--sans); margin-top: 1.5rem; }
.extras { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.extra { background: var(--paper); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.extra-mine { outline: 2px solid var(--green-2); }
.extra form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.msg { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.msg:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.msg h4 { margin-bottom: .1em; }
.msg-full { background: var(--paper); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); border: 0; margin-bottom: 1rem; }
.welcome p:first-of-type { font: italic 1.25rem var(--serif); color: var(--green); }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0; }
.cal-head h2 { margin: 0; }
table.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-bottom: .3rem; }
.cal td { background: var(--paper); border-radius: 8px; vertical-align: top; height: 5.5rem; padding: .35rem .45rem; font-size: .85rem; }
.cal-out { opacity: .4; }
.cal-day { display: block; color: var(--muted); font-size: .8rem; }
.cal-today .cal-day { color: var(--rust); font-weight: 700; }
.cal-on.tone-sea { background: #dbe9e6; }
.cal-on.tone-mountain { background: #e2e8d8; }
.cal-on.tone-forest { background: #d9e6d6; }
.cal-on.tone-desert { background: #f4e0d0; }
.cal-ev { display: block; font-family: var(--serif); color: var(--green); font-size: .95rem; line-height: 1.2; text-decoration: none; }
.cal-note { display: block; font-size: .72rem; color: var(--rust); margin-top: .2rem; }
@media (max-width: 600px) {
  .cal td { height: 3.4rem; padding: .3rem; }
  .cal-ev { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); overflow: hidden; text-indent: 200%; white-space: nowrap; margin-top: .35rem; }
  .cal-note, .cal-ev-cont { display: none; }
}
.date-list { list-style: none; padding: 0; }
.date-list li { display: grid; gap: .15rem 1rem; line-height: 1.45; grid-template-columns: minmax(0, 1fr); padding: .9rem 1rem; background: var(--paper); border-radius: 10px; margin-bottom: .5rem; border-left: 4px solid var(--green-2); }
@media (min-width: 760px) { .date-list li { grid-template-columns: 1.4fr 1fr 1.3fr 1fr auto; align-items: center; } }
.date-list li.tone-desert { border-left-color: var(--rust); }
.date-list li.tone-sea { border-left-color: #4f8a86; }

/* Live updates */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); background: var(--green); color: #fff;
  padding: .8rem 1.1rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: .92rem; }
.toast-on { animation: toast-in .3s ease-out; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.live-flash { animation: live-flash 1.6s ease-out; }
@keyframes live-flash { 0% { background-color: rgba(195, 147, 56, .22); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .live-flash, .toast-on, .card { animation: none; transition: none; } }
@media print { .site-head, .site-foot, .demo-bar, .tabs, .a-head, .a-tabs, .print-hide, .toast { display: none !important; } }
