/* Message of the Day — /motivation/
   Sunrise-on-the-river theme, scoped to body.mot-page so no other
   page is affected. The archive fox watermark in the bottom section
   (.mot-arch-section.mot-band::after) is kept exactly as it was. */
.mot-page {
  --mot-ink: #132F3C;
  --mot-river: #11485A;
  --mot-muted: #4A5560;
  --mot-cream: #F4EFE4;
  --mot-paper: #FFFCF7;
  --mot-gold: #C9A227;
  --mot-gold-text: #7A5C0E;
  --mot-line: rgba(19, 47, 60, 0.10);
  background: var(--mot-cream);
  color: var(--mot-ink);
}

/* Hero: morning light on the river, not a solid navy field. */
.mot-page .mot-hero.section.section--navy {
  padding-top: calc(var(--header-h, 4.25rem) + 1.35rem);
  padding-bottom: 2.85rem;
  color: var(--mot-ink);
  background:
    radial-gradient(ellipse 75% 85% at 50% -20%, rgba(232, 168, 112, 0.42), transparent 58%),
    radial-gradient(ellipse 55% 50% at 0% 110%, rgba(17, 72, 90, 0.10), transparent 58%),
    radial-gradient(ellipse 50% 45% at 100% 90%, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(180deg, #F8E9D2 0%, #F4EFE4 58%, #EEF2F0 100%);
  border-bottom: 0;
  box-shadow: none;
}
.mot-page .mot-hero .section__kicker {
  color: var(--mot-gold-text);
  letter-spacing: 0.14em;
  text-align: center;
}
.mot-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--mot-ink);
  margin: 0.2rem 0 1.25rem;
  letter-spacing: -0.025em;
  text-align: center;
  line-height: 1.15;
}
.mot-hero__wrap { max-width: 46rem; }
.mot-days {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.55rem;
  flex-wrap: wrap;
}
.mot-days__btn,
.mot-days__today {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mot-days__btn {
  color: var(--mot-ink);
  border: 1px solid rgba(19, 47, 60, 0.28);
  background: #FFFCF7;
}
.mot-days__btn:hover,
.mot-days__btn:focus-visible {
  color: var(--navy-deep);
  background: var(--gold);
  border-color: var(--gold);
}
.mot-days__today {
  color: var(--navy-deep);
  background: var(--gold);
  border: 1px solid var(--gold);
}
.mot-days__today[aria-current="date"] { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35); }
.mot-days__btn.is-off { visibility: hidden; pointer-events: none; }

/* Quote card: a quiet paper card in the morning light. */
.mot-quote {
  position: relative;
  margin: 0;
  padding: 2.15rem 1.8rem 1.75rem;
  background: var(--mot-paper);
  border: 1px solid var(--mot-line);
  border-top: 3px solid var(--mot-gold);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(19, 47, 60, 0.10);
  text-align: center;
  overflow: hidden;
}
.mot-quote::before,
.mot-quote::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.65), transparent);
}
.mot-quote::before { top: 0.75rem; }
.mot-quote::after { bottom: 0.75rem; }
.mot-quote__ornament {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.08;
}
.mot-quote__fox { width: min(220px, 55%); height: auto; }
.mot-quote__origin {
  position: relative;
  margin: 0 0 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mot-gold-text);
}
.mot-quote__text {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.mot-quote__text p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.4;
  color: var(--mot-ink);
  text-wrap: pretty;
}
.mot-quote__by {
  position: relative;
  margin: 1.05rem 0 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mot-river);
}
.mot-quote__date {
  position: relative;
  margin: 0.55rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--mot-muted);
}

/* Mid sections sit on the same morning cream. The archive band at the
   bottom keeps its original river-navy field so the fox graphic is unchanged. */
.mot-page .section.mot-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  box-shadow: none;
}
.mot-page .section.mot-share.mot-band {
  padding-top: 0.35rem;
  padding-bottom: 1.15rem;
  border-top: 0;
}
.mot-page .section.mot-board.mot-band {
  padding-top: 0.35rem;
  padding-bottom: 1.15rem;
}

/* Bottom section: original navy band, gold edge, wave, and fox watermark. */
.mot-page .section.mot-arch-section.mot-band {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(160deg, #0B3D5C 0%, #07283C 100%);
  border-top: 0;
  border-bottom: 4px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 252, 247, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.mot-page .mot-arch-section.mot-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(201, 162, 39, 0.18) 0%, transparent 60%),
    radial-gradient(60% 90% at 100% 100%, rgba(26, 107, 122, 0.35) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cpath d='M0 24c30-14 60-14 90 0s60 14 90 0 40-10 60-6' fill='none' stroke='%23C9A227' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E") repeat;
}
.mot-arch-section.mot-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: -40px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  background: url("../images/brand/river-fox-icon.svg") center / contain no-repeat;
  opacity: 0.06;
  filter: grayscale(1) brightness(3);
}

.mot-panel {
  background: var(--mot-paper);
  border-radius: 18px;
  border: 1px solid var(--mot-line);
  border-top: 3px solid var(--mot-gold);
  box-shadow: 0 14px 36px rgba(19, 47, 60, 0.08);
  padding: 1.4rem 1.4rem 1.45rem;
}

.mot-share__wrap { max-width: none; }
#mot-share-title,
#mot-board-title,
#mot-arch-title,
#archive {
  scroll-margin-top: calc(var(--header-h, 4.25rem) + 1.5rem);
}
.mot-share__title,
.mot-board__title,
.mot-arch__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mot-ink);
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}
.mot-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.mot-form__intro { margin: 0 0 0.95rem; color: var(--mot-muted); }
.mot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.mot-hint { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--mot-muted); }
.mot-form__error { margin: 0.7rem 0 0; color: #8B3044; font-weight: 600; }
.mot-form__ok { margin: 0.7rem 0 0; color: var(--mot-river); font-weight: 600; }
.mot-submit {
  margin-top: 1rem;
  min-height: 48px;
  min-width: 11rem;
  padding: 0 1.5rem;
  border-radius: 999px;
}
.mot-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mot-form .field label { font-size: 0.82rem; font-weight: 700; color: var(--mot-ink); }
.mot-form .field input,
.mot-form .field select,
.mot-form .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mot-form .field textarea { min-height: 7.5rem; resize: vertical; }
.mot-form .field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23132F3C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px 8px;
  padding-right: 2.2rem;
  background-color: #fff;
}
.mot-form .field input:hover,
.mot-form .field select:hover,
.mot-form .field textarea:hover { border-color: #c9c3b8; }
.mot-form .field input:focus-visible,
.mot-form .field select:focus-visible,
.mot-form .field textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.22);
}
.mot-form .field input::placeholder { color: #5C6168; opacity: 1; }

.mot-board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.mot-board__title { margin-bottom: 0; }
.mot-board__count { margin: 0; color: var(--mot-muted); font-family: var(--font-ui); font-weight: 600; }
.mot-empty { color: var(--mot-muted); margin: 0; }
.mot-list { display: grid; gap: 0.8rem; }
.mot-post {
  background: #FFFEFB;
  border: 1px solid var(--mot-line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem 0.85rem;
  border-left: 3px solid var(--mot-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mot-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.4rem;
}
.mot-post__name { font-weight: 700; color: var(--mot-ink); font-family: var(--font-ui); }
.mot-post__town {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mot-ink);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}
.mot-post__when { margin-left: auto; color: var(--mot-muted); font-size: 0.82rem; }
.mot-post__body { margin: 0; color: var(--ink); text-wrap: pretty; }
.mot-report { margin: 0.45rem 0 0; text-align: right; }
.mot-report__btn {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  color: var(--mot-muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mot-report__btn:hover, .mot-report__btn:focus-visible { color: var(--mot-ink); }
.mot-post.is-hidden { opacity: 0.55; }

.mot-arch__lead { color: var(--mot-muted); margin: 0 0 0.8rem; }
.mot-arch__empty {
  margin: 0;
  padding: 1.05rem 1rem;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--mot-ink);
  background: #FFFEFB;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mot-arch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.mot-arch__list a {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--mot-line);
  background: #FFFEFB;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mot-arch__list a:hover, .mot-arch__list a:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mot-arch__date { font-family: var(--font-ui); font-weight: 600; color: var(--mot-ink); }
.mot-arch__text { color: var(--mot-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .mot-quote { padding: 1.7rem 1.1rem 1.4rem; }
  .mot-row { grid-template-columns: 1fr; }
  .mot-panel { padding: 1.15rem 1rem 1.2rem; }
  .mot-arch__list a { grid-template-columns: 1fr; gap: 0.15rem; }
  .mot-post__when { margin-left: 0; }
  .mot-days { gap: 0.4rem; }
  .mot-days__btn, .mot-days__today { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .mot-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mot-form .field input,
  .mot-form .field select,
  .mot-form .field textarea { transition: none; }
}

/* Admin page */
.mot-admin { background: var(--cream); min-height: 100vh; }
.mot-admin__bar {
  background: var(--navy);
  color: var(--paper);
  padding: 0.8rem 0;
}
.mot-admin__bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.mot-admin__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-ui); font-weight: 700; }
.mot-admin__brand img { width: 32px; height: 32px; }
.mot-admin__bar a, .mot-admin__bar button {
  color: var(--gold-soft);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.mot-login {
  max-width: 22rem;
  margin: 3rem auto;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.mot-login h1 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.4rem; font-size: 1.6rem; }
.mot-admin__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.25rem;
  padding: 1.25rem 0 2.5rem;
}
.mot-card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
}
.mot-card h2 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.8rem; font-size: 1.25rem; }
.mot-day-row {
  display: grid;
  grid-template-columns: 7.5rem 4.2rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--light-line);
  font-size: 0.92rem;
  align-items: start;
}
.mot-day-row:last-child { border-bottom: 0; }
.mot-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}
.mot-tag--paul { background: var(--navy); color: var(--gold-on-navy); }
.mot-tag--plan { background: var(--cream); color: var(--gold-text); border: 1px solid var(--gold); }
.mot-admin .field { margin-bottom: 0.7rem; }
.mot-admin .actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mot-held-item { padding: 0.7rem 0; border-bottom: 1px solid var(--light-line); }
.mot-held-item p { margin: 0.25rem 0; }
@media (max-width: 800px) {
  .mot-admin__grid { grid-template-columns: 1fr; }
}
