/* Navigation stays in document flow: no form, result or calendar is obscured. */
body { padding-bottom: 0; }
.tabbar { position: static; transform: none; width: calc(100% - 28px); max-width: 620px; height: auto; min-height: 70px; margin: 14px auto 0; }
.tabbar-item { min-width: 0; min-height: 52px; }
.tabbar-item span { white-space: normal; text-align: center; }
.tabbar-item[data-tip]::before, .tabbar-item[data-tip]::after { display: none; }
.site-header .nav-desktop { display: none; }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .site-header .header-inner { width: min(1120px, calc(100% - 40px)); }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; }
  .site-header .nav-desktop { display: inline-flex; }
}
@media (max-width: 899px) {
  .site-header nav a:not(.nav-contact):not(.nav-blog) { display: none; }
}

/* A single daily card: date, calendar facts, then the shared daily thought. */
.home-page-title { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.common-daily-thought > summary { min-height: 44px; padding: 8px 0; color: #8c1e50; font-size: 1rem; font-weight: 800; cursor: pointer; }
.common-daily-thought > summary:focus-visible { outline: 3px solid #703658; outline-offset: 3px; }
.home-today-card.has-personal-result { min-height: 0; padding-right: 20px; padding-bottom: 20px; }
.home-today-card.has-personal-result::after { display: none; }
.today-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
.today-facts > div { flex: 1 1 120px; min-width: 0; padding: 10px 12px; background: #fff7cf; border: 1px solid #af986a; border-radius: 12px; }
.today-facts dt { font-size: .875rem; font-weight: 700; color: #514056; }
.today-facts dt a { text-decoration: underline; text-underline-offset: 3px; }
.today-facts dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.today-facts dd small { display: inline-block; font-size: .8rem; }
.personal-hint-note, .birthdate-summary { margin: 8px 0; color: #514056; font-size: .95rem; line-height: 1.8; }
.birthdate-summary { padding: 10px 12px; background: #fff9fc; border-radius: 10px; }
.birthdate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 14px 0; }
.birthdate-actions .you-today-change { margin: 0; min-height: 44px; padding: 8px; }
.birthdate-status:empty { display: none; }
.birthdate-status { padding: 12px 16px; background: #fffdf9; color: var(--ink); border-radius: 12px; }
#you-today-result #today-action-card { margin: 18px 0; background: #fffdf9; box-shadow: none; }
#today-action-card[hidden] { display: none; }
#personal-hint-title { scroll-margin-top: 24px; }

/* Show the active criterion and matching dates together, without relying on color. */
.calendar-matches { margin: 14px 0 22px; padding: 14px 16px; border: 1px solid #c8b39c; border-radius: 14px; background: #fff7cf; color: var(--ink); }
.calendar-matches p { margin: 0 0 10px; font-size: .95rem; line-height: 1.8; }
.calendar-matches h2 { margin: 12px 0 6px; font-size: 1rem; }
.calendar-date-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.calendar-date-list button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.calendar-date-list button:hover { background: var(--brand-pink-pale); }
.birthdate-actions button:focus-visible, .calendar-date-list button:focus-visible { outline: 3px solid #703658; outline-offset: 3px; }
@media (max-width: 520px) {
  .home-today-card { min-height: 0; padding-bottom: 20px; }
  .home-today-card::after { display: none; }
  .today-facts { gap: 8px; }
  .today-facts > div { flex-basis: 95px; padding: 8px 10px; }
  #you-today-result #today-action-card { padding: 14px 12px; }
}

/* The introduction and privacy note remain legible before and after card creation. */
.my-shuku-intro { padding: 22px 18px; margin-bottom: 24px; background: #fffdf9; color: var(--ink); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--brand-lavender); }
.my-shuku-intro .intro-lead { transform: none; font-size: clamp(1.35rem, 4vw, 2rem); overflow-wrap: anywhere; }
.my-shuku-intro .intro-sub, .my-shuku-intro .privacy-note { color: #514056; }
.my-shuku-intro .privacy-note { margin: 16px 0 0; font-size: .875rem; line-height: 1.8; }
.my-shuku-page > #my-shuku-forget, .my-shuku-page > #my-shuku-status, .my-shuku-page > noscript { background: #fffdf9; color: var(--ink); border-radius: 10px; padding: 10px 14px; }
.my-shuku-page > #my-shuku-status:empty { display: none; }
.my-shuku-page .my-shuku-link a, .my-shuku-page #my-shuku-change { display: inline-block; background: #fffdf9; color: var(--ink); border-radius: 10px; padding: 10px 14px; }
#calendar-purpose-basis { color: #514056; font-size: .9rem; line-height: 1.8; margin: 8px 0 14px; }
.day-cell .juni-choku[hidden] { display: none; }
.day-cell .juni-choku { color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.4; }
.day-grid.has-purpose .day-cell:not(.is-blank) { aspect-ratio: auto; min-height: 84px; padding: 4px 0; }
.day-grid.has-purpose .rokuyou { color: #514056; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
#calendar-all-matches { margin-top: 14px; }
#calendar-all-matches > summary { min-height: 44px; display: list-item; padding: 10px 0; cursor: pointer; font-weight: 700; }
#calendar-all-matches > summary:focus-visible { outline: 3px solid #703658; outline-offset: 3px; }
