/* latest-message.css v2 - 2026-oct-24: links row at the bottom (with All past messages, cit-msg-week-skel v2):
   space under the heading block, a light rule above the links. Generated 2026-oct-24 courtesy of Claude (claude.ai) */

/* latest-message.css v1 - 2026-oct-24: MyCIT "Latest Message" page (cit-msg-week-skel.htm,
   CitMsgsHandler v5) - series picture with the tab bar on it, the doc text below, older/newer
   arrows. Uses site.css tokens (--cit-*). Generated 2026-oct-24 courtesy of Claude (claude.ai) */

.page-latest-message {
  background: #f6f6f6;
}

.lm-bar-title {
  flex: 1;
  text-align: center;
}

/* ---- hero: picture + tab bar ---- */
.lm-hero {
  position: relative;
  background: var(--cit-charcoal);
}

.lm-media {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: clamp(190px, 30vw, 400px);
  overflow: hidden;
}

.lm-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lm-play {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
}

.lm-play span {
  position: absolute;
  left: 27px;
  top: 21px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}

.lm-play:hover, .lm-play:focus-visible {
  background: rgba(0, 0, 0, .75);
}

.lm-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(45, 47, 47, .82);
  overflow-x: auto;
}

.lm-media + .lm-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.lm-tab {
  flex: 0 1 auto;
  padding: .7rem 1.4rem .6rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: rgba(255, 255, 255, .78);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.lm-tab:hover {
  color: #fff;
}

.lm-tab[aria-selected="true"] {
  color: #fff;
  border-bottom-color: #fff;
}

.lm-tabs-one .lm-tab {
  cursor: default;
}

/* ---- text column ---- */
.lm-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.6rem 1rem 5rem;
}

.lm-title {
  margin: 0 0 .35rem;
  color: var(--cit-ink);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
}

.lm-head {
  margin-bottom: 1.3rem;
}

.lm-date, .lm-ref {
  margin: 0 0 .25rem;
  color: var(--cit-muted);
  font-size: .95rem;
}

.lm-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  margin: .5rem 0 1.2rem;
  font-size: .9rem;
}

.lm-links a {
  color: var(--cit-teal-dark);
  font-weight: 700;
}

.lm-text {
  color: #222;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* the doc's own HTML (DocxToHtml) */
.lm-text p { margin: 0 0 .55rem; }
.lm-text p.sub { font-weight: 800; margin-top: 1rem; }
.lm-text h2 { font-size: 1.25rem; margin: 1.2rem 0 .5rem; color: var(--cit-ink); }
.lm-text h3 { font-size: 1.08rem; margin: 1rem 0 .45rem; }
.lm-text ol, .lm-text ul { margin: .2rem 0 .7rem; padding-left: 1.6rem; }
.lm-text li { margin: .2rem 0; }
.lm-text ul.manual { list-style: disc; }
.lm-text sup { font-size: .7em; font-weight: 700; }
.lm-text a { color: var(--cit-teal-dark); }
.lm-text table.doc { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; }
.lm-text table.doc td { border: 1px solid var(--cit-line); padding: .45rem .6rem; vertical-align: top; }
.lm-text p.song { margin: 0 0 .35rem; }

.lm-missing {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--cit-teal);
  background: #fff;
}

.lm-missing p { margin: 0 0 .5rem; }
.lm-missing p:last-child { margin-bottom: 0; }

.lm-foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cit-line);
  font-size: .9rem;
}

.lm-foot a { color: var(--cit-teal-dark); font-weight: 700; }

/* ---- older / newer ---- */
.lm-arrow {
  position: fixed;
  bottom: 1.1rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(45, 47, 47, .72);
  color: #fff;
  font-size: 1.9rem;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

.lm-arrow:hover, .lm-arrow:focus-visible { background: rgba(45, 47, 47, .92); color: #fff; }
.lm-older { left: 1rem; }
.lm-newer { right: 1rem; }

@media (max-width: 600px) {
  .lm-media { height: 46vw; min-height: 170px; }
  .lm-tab { padding: .6rem .8rem .5rem; font-size: .72rem; }
  .lm-bar-title { display: none; }
}
