* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; min-height: -webkit-fill-available; }

:focus-visible {
  outline: 1px solid #887060;
  outline-offset: 3px;
  border-radius: 1px;
}

body {
  background: #181410;
  color: #cfc0a0;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.6;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

#page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 48px 64px;
}

/* ── Header ── */
#header {
  text-align: center;
  border-bottom: 1px solid #2e2820;
  padding-bottom: 16px;
  margin-bottom: 0;
}

#title {
  font-size: 3.2rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #e0d8b8;
  margin-bottom: 8px;
}

#subtitle {
  font-style: italic;
  font-size: 1.3rem;
  color: #887060;
  letter-spacing: 1px;
}

/* ── Columns ── */
#columns {
  display: flex;
  gap: 0;
}

.col {
  flex: 1;
  padding: 0 36px;
  border-right: 1px solid #2e2820;
}

.col:last-child  { border-right: none; }

.col-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e0d8b8;
  margin-bottom: 3px;
}

.col-days {
  font-size: 1.2rem;
  color: #686058;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ── Blocks ── */
.block {
  margin-bottom: 20px;
  cursor: pointer;
}

.block-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #e0d8b8;
}

.block-patron {
  font-size: 1.2rem;
  color: #887060;
  margin-top: 1px;
}

.block-desc {
  font-size: 1.15rem;
  color: #686058;
  margin-top: 4px;
  line-height: 1.5;
}

.block-list {
  list-style: none;
  margin-top: 4px;
}

.block-list li {
  font-size: 1.15rem;
  color: #686058;
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.block-list li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: #554840;
}

/* ── Morning Detail ── */
#morning-detail-weekday,
#morning-detail-sunday,
#midday-detail-weekday,
#midday-detail-sunday,
#afternoon-detail-weekday,
#afternoon-detail-sunday,
#evening-detail-weekday,
#evening-detail-sunday {
  overflow-x: auto;
  justify-content: center;
}

.morning-detail-inner {
  display: flex;
  gap: 0;
}

.day-col {
  width: 175px;
  flex-shrink: 0;
  padding: 0 16px;
  border-right: 1px solid #2e2820;
}

.day-col:first-child { padding-left: 0; }
.day-col:last-child { padding-right: 0; border-right: none; }

.day-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e0d8b8;
  margin-bottom: 2px;
}

.day-dedication {
  font-size: 1.3rem;
  font-style: italic;
  color: #686058;
  margin-bottom: 16px;
  line-height: 1.4;
}

.day-step {
  margin-bottom: 12px;
}

.day-step-label {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #887060;
  margin-bottom: 2px;
}

.day-step-text {
  font-size: 1.4rem;
  color: #686058;
  line-height: 1.5;
}

.day-step-text + .day-step-text {
  margin-top: 1.4em;
}

.morning-trigger,
.midday-trigger,
.afternoon-trigger,
.evening-trigger {
  cursor: pointer;
}

.morning-trigger:hover .block-name,
.midday-trigger:hover .block-name,
.afternoon-trigger:hover .block-name,
.evening-trigger:hover .block-name {
  color: #cfc0a0;
}

.day-prayer {
  font-style: italic;
  color: #554840;
}

.block-motto {
  font-size: 1.3rem;
  font-style: italic;
  color: #554840;
  margin-top: 6px;
  line-height: 1.55;
}

/* ── Nav ── */
#nav {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid #2e2820;
  margin-bottom: 84px;
}

.nav-link {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #686058;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: Georgia, serif;
}

.nav-link:hover {
  color: #cfc0a0;
}

.nav-sep {
  font-size: 1.1rem;
  color: #2e2820;
  margin: 0 14px;
}

#about-panel,
#music-panel {
  max-width: 640px;
  margin: 0 auto;
}

/* ── Guides Panel ── */
.guides-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 0;
}

.guide {
  width: 300px;
  flex-shrink: 0;
  padding: 0 40px 0 0;
}

.guide-title {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e0d8b8;
  margin-bottom: 3px;
}

.guide-day {
  font-size: 1.2rem;
  font-style: italic;
  color: #887060;
  margin-bottom: 6px;
}

.guide-supplies {
  font-size: 1.3rem;
  color: #686058;
  margin-bottom: 8px;
  line-height: 1.5;
}

.guide-sub {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #887060;
  margin: 10px 0 4px;
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.guide-steps li {
  font-size: 1.4rem;
  color: #686058;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
  counter-increment: step;
}

.guide-steps li::before {
  content: counter(step) '.';
  position: absolute;
  left: 0;
  color: #554840;
  font-size: 1rem;
}

.guide-done {
  font-size: 1.2rem;
  font-style: italic;
  color: #554840;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Today View ── */

#today-view .col-name {
  font-size: 2.8rem;
  letter-spacing: 6px;
  margin-bottom: 24px;
}

#today-view .block {
  margin-bottom: 0;
  padding: 14px 0;
  border-bottom: 1px solid #2e2820;
}

#today-view .block:first-of-type {
  border-top: 1px solid #2e2820;
}

#today-view .block-name {
  font-size: 1.5rem;
  color: #cfc0a0;
  letter-spacing: 1px;
}

#today-view .block:hover .block-name {
  color: #e0d8b8;
}

/* Single-column Sunday detail panels */
#morning-detail-sunday .morning-detail-inner,
#midday-detail-sunday .morning-detail-inner,
#afternoon-detail-sunday .morning-detail-inner,
#evening-detail-sunday .morning-detail-inner {
  width: 100%;
}

#morning-detail-sunday .day-col,
#midday-detail-sunday .day-col,
#afternoon-detail-sunday .day-col,
#evening-detail-sunday .day-col {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  #page {
    padding: 24px 20px 40px;
  }

  #today-view .col-name {
    font-size: 2.2rem;
    letter-spacing: 4px;
  }
}

/* ── Title ── */
#title {
  cursor: pointer;
}

#title:hover {
  color: #cfc0a0;
}


/* ── Guides TOC ── */
.guides-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.guides-toc-item {
  padding: 10px 0;
  border-bottom: 1px solid #2e2820;
  cursor: pointer;
}

.guides-toc-item:first-child {
  border-top: 1px solid #2e2820;
}

.guides-toc-item:hover .guides-toc-name {
  color: #cfc0a0;
}

.guides-toc-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #e0d8b8;
}

.guides-toc-day {
  font-size: 1.2rem;
  font-style: italic;
  color: #686058;
  margin-top: 2px;
}

/* ── Guide detail view ── */
#guide-detail {
  max-width: 640px;
  margin: 0 auto;
}

#guide-detail .guide {
  width: auto;
  max-width: 600px;
  padding-right: 0;
}
