/* Name-day and guide pages (US-100 phase C), loaded after /assets/birthdays.css:
 * the parts only these pages have, in the same flat light look. */

.main-col > h2, .main-col > section:not(.today):not(.live):not(.faq):not(.picker) > h2 {
  margin-top: var(--s12); padding-bottom: var(--s3); border-bottom: 2px solid var(--text);
  font-size: var(--text-lg); line-height: 1.27; font-weight: 600;
}
.main-col > h3, .main-col section > h3 { margin-top: var(--s6); font-size: var(--text-md); line-height: 1.33; font-weight: 600; }
.main-col > p:not(.lead):not(.sources), .main-col > section > p { margin-top: var(--s4); max-width: 70ch; }
.main-col > ul:not([class]), .main-col > ol:not([class]), .main-col > section > ul:not([class]) { margin: var(--s4) 0 0; padding-left: var(--s6); max-width: 70ch; }
.main-col ul:not([class]) > li + li, .main-col ol:not([class]) > li + li { margin-top: var(--s1); }
.main-col strong { font-weight: 600; }
.lead strong { font-weight: 600; }

/* Name chips: a wrapped row of outlined links, never pills on a tinted card. */
ul.names { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
ul.names a, ul.names span, .live [data-live-names] > a, .live [data-live-names] > span:not(.note) {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: var(--s2) var(--s4);
  border: 1px solid var(--divider); border-radius: var(--radius-md); color: var(--text); text-decoration: none; line-height: 1.33;
}
ul.names a:hover, .live [data-live-names] > a:hover { border-color: var(--outline); color: var(--text); }
ul.names span, .live [data-live-names] > span:not(.note) { color: var(--muted); }
ul.names small { font-size: var(--text-xs); color: var(--muted); }

/* A day per row: date left, names right; one column on phones. */
ul.people { list-style: none; margin: var(--s4) 0 0; padding: 0; }
ul.people > li { display: grid; gap: var(--s1) var(--s6); padding: var(--s3) 0; border-bottom: 1px solid var(--divider); margin: 0; }
ul.people > li > strong, ul.people > li > a:first-child { font-weight: 600; }
ul.people > li > span { display: block; color: var(--text); }
@media (min-width: 600px) { ul.people > li { grid-template-columns: 10rem minmax(0, 1fr); } ul.people > li > span + span { grid-column: 2; } }
ul.people a { text-underline-offset: 0.2em; }

ul.dates { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 var(--s6); }
ul.dates li { margin: 0; padding: var(--s3) 0; border-bottom: 1px solid var(--divider); }
ul.dates li.main { font-weight: 600; }

.wishes { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); }
.wishes .wish, .nd .wish { grid-column: 1 / -1; }
.wishes .wish p, .nd .wish p { max-width: 62ch; }

/* Names of the day: a card per name, the same rhythm as the person cards. */
.nd { display: grid; gap: var(--s2); padding: var(--s6) 0; border-bottom: 1px solid var(--divider); }
.nd h3 { font-size: var(--text-lg); line-height: 1.27; font-weight: 600; }
.nd h3 a { color: var(--text); text-decoration-color: var(--divider); }
.nd h3 a:hover { color: var(--primary); text-decoration-color: currentColor; }
.nd-when, .nd-alias { max-width: 62ch; }
.nd-alias { color: var(--muted); font-size: var(--text-xs); }
.nd .wish { margin-top: var(--s2); }
.nd-rest { padding: var(--s6) 0 0; }
.nd-rest h3 { font-size: var(--text-sm); font-weight: 600; }
.nd-rest ul.names { margin-top: var(--s3); }

.live { margin-top: var(--s6); padding: var(--s4) var(--s6); border: 1px solid var(--divider); border-radius: var(--radius-md); }
.live h2 { font-size: var(--text-md); line-height: 1.33; font-weight: 600; }
.live [data-live-names] { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.live .note { padding: var(--s2) 0; }

nav.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s12); padding-top: var(--s4); border-top: 1px solid var(--divider); }
nav.pager a { display: inline-block; padding: var(--s2) 0; font-weight: 500; }

input.search, textarea.search { display: block; width: 100%; max-width: 28rem; min-height: 48px; padding: var(--s3) var(--s4); border: 1px solid var(--outline); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 var(--text-sm) / 1.4 var(--font); }
textarea.search { max-width: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs); }
input.search:focus-visible, textarea.search:focus-visible, input[type="date"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
section[data-letter] h3 { margin-top: var(--s6); font-size: var(--text-md); }
section[data-letter] ul.names { margin-top: var(--s2); }

details { margin-top: var(--s4); }
summary { cursor: pointer; padding: var(--s2) 0; font-weight: 500; color: var(--primary); }
details p { margin-top: var(--s2); color: var(--muted); }

#calendar-feed { margin-top: var(--s12); padding: var(--s6); border-radius: var(--radius-md); background: var(--surface); }
#calendar-feed h2 { font-size: var(--text-lg); line-height: 1.27; font-weight: 600; padding: 0; border: 0; margin: 0; }
#calendar-feed h2 + p + p a { display: inline-block; margin: var(--s1) var(--s2) var(--s1) 0; padding: var(--s2) var(--s4); border: 1px solid var(--primary); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; background: var(--bg); }
#calendar-feed ul { margin: var(--s4) 0 0; padding-left: var(--s6); }

.table-wrap { margin-top: var(--s6); overflow-x: auto; }
.date-table { border-collapse: collapse; width: 100%; font-size: var(--text-xs); }
.date-table caption { text-align: left; padding-bottom: var(--s3); color: var(--muted); }
.date-table th, .date-table td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--divider); vertical-align: top; }
.date-table thead th { border-bottom: 2px solid var(--text); }

.main-col > section[data-angel] { margin-top: var(--s8); padding: var(--s6); border-radius: var(--radius-md); background: var(--surface); }
.main-col > section[data-angel] h2 { margin: 0; padding: 0; border: 0; }
section[data-angel] input { min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--outline); border-radius: var(--radius-sm); background: var(--bg); font: inherit; }

.main-col .facts small { text-transform: none; }
.sources { margin-top: var(--s8); }
.sources a { color: var(--muted); }

/* Guide pages: cards of steps or notes, the hub's list, the birthday calculator's result. */
.main-col > div.faq { margin-top: var(--s4); display: grid; gap: var(--s3); }
@media (min-width: 600px) { .main-col > div.faq:has(> .glass + .glass) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.main-col > div.faq > .glass { padding: var(--s4) var(--s6); border: 1px solid var(--divider); border-radius: var(--radius-md); }
.main-col > div.faq > .glass h3 { font-size: var(--text-md); line-height: 1.33; font-weight: 600; margin-bottom: var(--s2); }
.main-col > div.faq > .glass p + p { margin-top: var(--s2); }
.main-col > div.faq > .glass ul { margin: 0; padding-left: var(--s6); }
.main-col > div.faq > .glass li + li { margin-top: var(--s2); }
ul.guides { list-style: none; margin: var(--s6) 0 0; padding: 0; }
ul.guides li { padding: var(--s4) 0; border-bottom: 1px solid var(--divider); }
ul.guides h2 { font-size: var(--text-md); line-height: 1.33; font-weight: 600; }
ul.guides p { margin-top: var(--s1); color: var(--muted); max-width: 70ch; }
.picker .result { margin-top: var(--s4); }
.picker .result p + p { margin-top: var(--s2); }
.picker .result .big { font-size: var(--text-xl); line-height: 1.27; font-weight: 700; color: var(--on-primary-soft); }
.picker input { min-height: 44px; width: 8rem; padding: var(--s2) var(--s3); border: 1px solid var(--outline); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 var(--text-sm) / 1.25 var(--font); }
.main-col > .picker { margin-top: var(--s6); }
.main-col p.note.bridge { margin-top: var(--s6); }
/* A lone card is running text: no frame around a single paragraph or list. */
.main-col > div.faq > .glass:only-child { padding: 0; border: 0; border-radius: 0; max-width: 70ch; }
.wish-gen .form input { width: 12rem; }
.wish-gen .wg-actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.wish-gen .wg-actions button, .wish-gen .wg-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s2) var(--s4); border: 1px solid var(--primary); border-radius: var(--radius-sm); background: var(--bg); color: var(--primary); font: 600 var(--text-sm) / 1.25 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.wish-gen .wg-actions button:hover, .wish-gen .wg-actions a:hover { background: var(--surface); color: var(--on-primary-soft); }
.wish-gen option:disabled { color: var(--muted); }
