/* Story-format share card: 9:16, exported at 1080 × 1920 (Instagram / WhatsApp / Facebook stories). */

.story-share__intro {
  margin: 0 0 1.35rem;
}

.story-share__intro .lead {
  margin-bottom: 0.55rem;
}

.story-card {
  display: grid;
  grid-template-rows: minmax(0, var(--ratio-major)) minmax(0, var(--ratio-minor));
  width: min(100%, 22.5rem, calc(78vh * 9 / 16));
  min-width: 0;
  aspect-ratio: 9 / 16;
  margin: 0 auto 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--photo-pop-shadow);
}

.news-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.news-share:empty {
  display: none;
}

.news-share__icon {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.3rem;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.news-share__icon:hover {
  color: var(--accent);
}

.news-share__icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.news-share__icon:disabled {
  opacity: 0.45;
  cursor: default;
}

.news-share__svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.news-share__status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.news-share__status:empty {
  display: none;
}

.story-card--text-only {
  grid-template-rows: 1fr;
}

.story-card__photo {
  margin: 0;
  min-height: 0;
  background: var(--paper-deep);
}

.story-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card__panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.05rem 1.15rem 1.15rem;
  background: #fff;
  border-top: 3px solid var(--accent);
}

.story-card__brand {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.story-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
}

.story-card__url {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.story-share__note {
  margin: 0.85rem 0 0;
  max-width: 42rem;
}

.story-share__status {
  min-height: 1.3em;
  margin: 0.55rem 0 0;
}

button.btn {
  cursor: pointer;
  appearance: none;
  font-family: var(--font-mono);
}

button.btn-primary {
  border: 0;
}
