/* True Fresh Story Manager v1.2 — styles apply only to its shortcode. */
.tfsm-story {
  width: calc(100% - 32px);
  max-width: 920px;
  margin: 54px auto 76px;
  padding: 0;
  box-sizing: border-box;
  color: #282828;
  font-family: inherit;
}
.tfsm-story, .tfsm-story * { box-sizing: border-box; }
.tfsm-story__article {
  background: #faf9f7;
  padding: clamp(24px, 5vw, 54px);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.055);
}
.tfsm-story__eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #d81b60;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 0 0 12px;
}
.tfsm-story__step {
  color: #6a6a6a;
  font-size: 13px;
  margin: 0 0 13px;
}
.tfsm-story__title {
  color: #222;
  font-size: clamp(27px, 3.5vw, 38px) !important;
  line-height: 1.3 !important;
  font-weight: 700;
  margin: 0 0 15px !important;
  text-align: left;
}
.tfsm-story__subtitle {
  color: #555;
  font-weight: 600;
  line-height: 1.65;
  font-size: 16px !important;
  margin: 0 0 30px !important;
}
.tfsm-story__featured { margin: 6px 0 28px; }
.tfsm-story__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 14px;
}
.tfsm-story__body { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.tfsm-story__body p { font-size: inherit !important; line-height: inherit !important; margin: 0 0 20px !important; }
.tfsm-story__body p:last-child { margin-bottom: 0 !important; }
.tfsm-story__body h2, .tfsm-story__body h3 { line-height: 1.45; margin: 28px 0 14px; }
.tfsm-story__body img { max-width: 100%; height: auto; border-radius: 12px; }
.tfsm-story__body a, .tfsm-story__toc a { color: #bf1451; }
.tfsm-story__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.tfsm-story__navigation-slot { flex: 1 1 220px; }
.tfsm-story__navigation-slot--next { text-align: right; }
.tfsm-story__button {
  display: inline-block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none !important;
  text-align: center;
  border-radius: 999px;
  padding: 12px 21px;
  transition: background-color .2s ease, transform .2s ease;
}
.tfsm-story__button:hover { transform: translateY(-2px); }
.tfsm-story__button:focus-visible { outline: 3px solid #df73a1; outline-offset: 3px; }
.tfsm-story__button--primary { color: #fff !important; background: #d81b60; }
.tfsm-story__button--primary:hover { background: #b71550; }
.tfsm-story__button--secondary { color: #b71550 !important; background: #fff; border: 1px solid #d81b60; }
.tfsm-story__button--secondary:hover { background: #fff1f6; }
.tfsm-story__end { display: inline-block; color: #646464; font-size: 13px; line-height: 1.65; }
.tfsm-story__toc { border-top: 1px solid #e8e1df; margin-top: 32px; padding: 19px 4px 0; }
.tfsm-story__toc summary { cursor: pointer; font-weight: 600; color: #333; }
.tfsm-story__toc ol { padding-left: 22px; margin: 16px 0 0; }
.tfsm-story__toc li { margin-bottom: 10px; line-height: 1.55; }
.tfsm-story--empty { color: #555; background: #faf9f7; border-radius: 18px; padding: 30px; text-align: center; }
@media (max-width: 700px) {
  .tfsm-story { width: calc(100% - 28px); margin: 32px auto 54px; }
  .tfsm-story__article { padding: 24px 19px; border-radius: 17px; }
  .tfsm-story__title { font-size: 27px !important; }
  .tfsm-story__subtitle { font-size: 15px !important; }
  .tfsm-story__body { font-size: 15px; line-height: 1.85; }
  .tfsm-story__navigation { align-items: stretch; }
  .tfsm-story__navigation-slot { flex-basis: 100%; }
  .tfsm-story__navigation-slot--next { text-align: left; }
  .tfsm-story__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tfsm-story__button { transition: none; }
  .tfsm-story__button:hover { transform: none; }
}

/* Penutup otomatis khusus bab terbit terakhir. */
.tfsm-story__closing {
  background: #faf9f7;
  border-radius: 22px;
  padding: clamp(26px, 4vw, 42px);
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.055);
  margin-top: 34px;
}
.tfsm-story__closing-heart {
  display: block;
  color: #d81b60;
  font-size: 35px;
  line-height: 1;
  margin-bottom: 15px;
}
.tfsm-story__closing-title {
  color: #222;
  font-size: clamp(22px, 2.5vw, 28px) !important;
  font-weight: 700;
  line-height: 1.4 !important;
  margin: 0 auto 14px !important;
  text-align: center;
}
.tfsm-story__closing-text {
  max-width: 640px;
  margin: 0 auto 24px !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: #555;
  text-align: center;
}
.tfsm-story__closing-link {
  min-width: 200px;
}
@media (max-width: 700px) {
  .tfsm-story__closing { padding: 28px 20px; margin-top: 26px; border-radius: 17px; }
  .tfsm-story__closing-title { font-size: 22px !important; }
  .tfsm-story__closing-text { font-size: 14px !important; }
  .tfsm-story__closing-link { width: auto; }
}
