/* Journal detail (public + authed share this card): the design-language band --
   breakout cover straddling the band's left edge, serif name, one meta line --
   over stacked rail sections. Values are literals where the public base does not
   define the shared tokens (only --brand-primary/--success/--danger are safe on
   both bases). */

#profile-card-container {
  width: 95%;
  max-width: 1080px;
  position: relative;
  margin: 0 auto;
  padding: 10px 0 40px;
}

#back-button {
  /* Spacing only: .back-btn (components.css) governs size, centring and colour,
     the way it does on every other page (#139, #144). */
  margin-bottom: 10px;
}

/* ---- Band ---- */
.jd-band {
  position: relative;
  min-height: 170px;
  /* the cover overhangs the band by ~37px top and bottom: the top margin keeps it
     off the back button, the bottom keeps it off the first section's rail */
  margin: 48px 0 46px 88px;
  border-radius: 16px;
  background: linear-gradient(120deg, #0d2540, var(--brand-primary) 55%, #29527e);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
  padding: 24px 32px 24px 122px;
}
.jd-band-cover {
  position: absolute;
  left: -88px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.jd-band-cover img {
  display: block;
  width: 176px;
  height: 244px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  background-color: #fff;
}
.jd-band-identity {
  flex: 1 1 auto;
  min-width: 0;
}
.jd-band-name {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;   /* the hero weight -- .profile-cover-title and .journal-band-name match (#147) */
  letter-spacing: 0.5px;
  color: #fff;
}
.jd-band-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.jd-band-sep {
  opacity: 0.6;
  margin: 0 7px;
}
/* Shape + colours from the shared library. */
.jd-dot {
  margin-right: 7px;
}

/* Submit: the band's one action, in the white-pill language. */
#submit-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 26px;
  border: 1px solid rgba(18, 49, 80, 0.35);
  border-radius: 999px;
  background-color: #fff;
  color: var(--brand-primary);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(18, 49, 80, 0.30);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#submit-button:hover {
  background-color: #eaeef3;
  color: var(--brand-primary);
}
#submit-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* The band can now hold two actions, and they always take a row of their own
   under the identity rather than sharing its line. A 100% basis forces the wrap
   at every width, so the band reads the same whether a journal has one action or
   two -- and the layout never depends on how long a journal's name happens to
   be. */
.jd-band-actions {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* Reminder toggle. It shares the band's pill language with #submit-button (a
   standing exception to the Bootstrap btn family) because it sits right beside
   it -- but ghost rather than solid white in both states, so it never competes
   with Submit for the primary action. On a closed journal there is no Submit and
   the ghost is the band's only action, which is the point: a closed journal had
   nothing to offer here before. */
.jd-reminder-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.jd-reminder-btn:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.jd-reminder-btn[aria-pressed="true"] {
  background-color: rgba(255, 255, 255, 0.20);
  border-color: #fff;
}
.jd-reminder-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.jd-reminder-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---- Sections: grid/icon/title come from the shared rail library ---- */
.jd-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: start;
}
.jd-section-body {
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.jd-section-body > :last-child {
  margin-bottom: 0;
}
/* Authored rich text can carry its own headings; they stay subordinate to the
   page chrome (the public base otherwise renders an authored h1 at ~40px). */
.jd-section-body h1,
.jd-section-body h2,
.jd-section-body h3,
.jd-section-body h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
}
.jd-missing {
  color: #5c656d;
  font-style: italic;
}

/* Narrow: cover tucks back inside the band; rails stack above their prose. */
@media (max-width: 900px) {
  .jd-band {
    margin-left: 0;
    padding-left: 24px;
    min-height: 0;
  }
  .jd-band-cover {
    position: static;
    transform: none;
    flex: 0 0 auto;
  }
  .jd-band-cover img {
    width: 104px;
    height: 144px;
  }
}
