/* Date2Thai phase 5 additions: bylines, notes, decoders and month calendars. */
.byline { color: var(--muted); font-size: .86rem; margin: -.2rem 0 1.4rem; }
.byline a { color: var(--green); }
.note-box { margin: 1.4rem 0; padding: .9rem clamp(.8rem, 3vw, 1.2rem); background: #e9ede1; border-left: 3px solid #b88a47; border-radius: 0 5px 5px 0; }
.note-box p:last-child { margin-bottom: 0; }
.sources { font-size: .9rem; color: var(--muted); }
.sources li { margin-bottom: .3rem; }
.reading .wide-table { max-width: none; }
.table-wrap { overflow-x: auto; margin-block: 1.2rem; }
.table-wrap table { margin: 0; }
.inline-tool { margin: 1.6rem 0; }
.inline-tool label { display: block; }
.inline-tool .field-grid { grid-template-columns: 1fr; }
.today-card { display: grid; gap: .25rem; }
.today-card .big { font: clamp(1.5rem, 4vw, 2.2rem)/1.2 var(--heading); color: var(--green); }
.today-card small { color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.month { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .7rem .4rem; }
.month h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.month h3 small { display: block; font: 400 .8rem/1.4 var(--body); color: var(--muted); }
.month table { font-size: .82rem; text-align: center; }
.month th, .month td { padding: .22rem .1rem; text-align: center; border-bottom: 0; }
.month td.hol { background: #f1dfb9; font-weight: 700; border-radius: 3px; }
.month td.obs { box-shadow: inset 0 0 0 1px #b88a47; border-radius: 3px; }
.month td.is-today { outline: 2px solid var(--green); border-radius: 3px; }
.month ul { margin: .4rem 0 .2rem; padding-left: 1rem; font-size: .78rem; color: var(--ink); }
.legend { font-size: .85rem; color: var(--muted); }
.legend span { display: inline-block; width: 1rem; height: 1rem; vertical-align: -.2rem; border-radius: 3px; margin-right: .3rem; }
.legend .k-hol { background: #f1dfb9; }
.legend .k-obs { box-shadow: inset 0 0 0 1px #b88a47; }
tr[aria-current] { background: #f1dfb9; }
