/* Shared plant profile stylesheet.
   This file is intentionally light for the first refactor so plant pages keep their original personalities.
   Future repeated profile rules can be moved here from /css/plants/*.css. */

/* Companion plant links: shared across plant profile pages.
   Keeps links subtle so the botanical/profile styling stays in control. */
a.companion-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
  opacity: 0.78;
  transition: opacity 0.18s ease;
}

a.companion-link:hover,
a.companion-link:focus-visible {
  opacity: 1;
}

/* ── KEYSTONE EMPHASIS (central) ─────────────────────────────
   .keystone-callout sits inside .section, so `.section p strong`
   (0,1,2) would otherwise beat a per-page `.keystone-callout strong`
   (0,1,1) and force the dark body-text colour onto the bold —
   invisible on the dark --ink panel. This selector is (0,2,2), so it
   wins regardless of file load order. Pages set only --keystone-strong. */
.section .keystone-callout p strong {
  color: var(--keystone-strong, #fff);
  font-weight: 600;
}


/* ── BOTANICAL PLATE PLACEHOLDERS ──
   Missing plant plates use a predictable filename:
   /images/[plant-page-slug]-plate.png
   Example: plants/catmint.html looks for images/catmint-plate.png.
   Drop the real image into /images/ with that exact name and it will appear automatically.
*/
.botanical-plate-section {
  padding-top: 2.5rem;
}

.botanical-plate {
  margin: 1.2rem 0 0;
}

.botanical-plate-frame {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--border, rgba(140,102,18,0.14));
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(0,0,0,0.03)),
    var(--bg-card, #faf8f0);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.botanical-plate-frame img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.botanical-plate-placeholder {
  position: absolute;
  inset: 1rem;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  text-align: center;
  border: 1px dashed var(--border-silver, rgba(168,126,24,0.28));
  color: var(--text-faint, #887840);
  z-index: 1;
}

.botanical-plate.has-image .botanical-plate-placeholder {
  display: none;
}

.botanical-plate-placeholder-label {
  font-family: var(--display, Georgia, serif);
  font-size: 1.15rem;
  font-style: italic;
}

.botanical-plate-placeholder-file {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.botanical-plate figcaption {
  margin-top: 0.55rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint, #887840);
  text-align: center;
}
