/* P6 homepage-only jade story cards. Public text only; share PNG and detail flow stay unchanged. */
#home-view .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#home-view .card-tile { border: 0; border-radius: 17px; background: transparent; box-shadow: none; overflow: visible; }
#home-view .card-tile-button { display: block; width: 100%; border-radius: 17px; text-align: left; }
#home-view .card-tile-button:focus-visible { outline: 3px solid #67917B; outline-offset: 4px; }
#home-view .jade-story-paper {
  position: relative; isolation: isolate; display: grid;
  grid-template-rows: minmax(0, 1.85fr) minmax(0, 1fr);
  width: 100%; min-width: 0; min-height: 0; aspect-ratio: 3 / 4;
  overflow: hidden; border: 1px solid rgba(104, 144, 116, .58); border-radius: 17px;
  color: #20352B; background: #FBFAF5 url("/web-assets/jade-story-landscape.svg?v=20261123-jade-story-p6") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(32, 53, 43, .075), 0 2px 6px rgba(32, 53, 43, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#home-view .jade-story-paper::before {
  content: ""; position: absolute; inset: 9px; z-index: 0;
  border: 1px solid rgba(109, 150, 119, .30); border-radius: 10px; pointer-events: none;
}
#home-view .card-tile-button:hover .jade-story-paper,
#home-view .card-tile-button:focus-visible .jade-story-paper {
  border-color: #638A72; transform: translateY(-3px);
  box-shadow: 0 17px 35px rgba(32, 53, 43, .11), 0 4px 10px rgba(32, 53, 43, .05);
}
#home-view .jade-story-upper {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  min-width: 0; min-height: 0; overflow: hidden; padding: 27px 28px 22px;
}
#home-view .jade-story-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#home-view .jade-story-brand {
  flex-shrink: 0; color: #294C3B; font: 600 15px/1.4 "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  letter-spacing: .10em;
}
#home-view .jade-story-topic { color: #627D6A; font-size: 11px; line-height: 1.5; letter-spacing: .08em; }
#home-view .jade-story-text {
  margin: 26px 0 0; max-width: 100%; color: #293A30;
  font: 400 16.5px/1.86 "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  letter-spacing: .015em; overflow-wrap: anywhere; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6;
  overflow: hidden; /* Homepage excerpt only; full body remains in card detail. */
}
#home-view .jade-story-lower {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  min-width: 0; min-height: 0; overflow: hidden; padding: 24px 27px 25px; border-top: 1px solid rgba(101, 139, 110, .26);
  background: linear-gradient(180deg, rgba(250, 251, 246, .36), rgba(249, 250, 245, .18));
}
#home-view .jade-story-quote {
  position: relative; margin: 0; padding: 0 0 0 17px; color: #244A38;
  font: 600 22px/1.56 "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  letter-spacing: .018em; overflow-wrap: anywhere;
}
#home-view .jade-story-quote::before {
  content: "“"; position: absolute; top: -10px; left: -8px;
  color: #719978; font: 500 45px/1 Georgia, serif;
}
#home-view .jade-story-credit {
  align-self: flex-end; margin: 15px 0 0; color: #667A69;
  font-size: 11px; line-height: 1.6; letter-spacing: .035em; text-align: right;
}
/* P8: regular-size thumbnail cards; read the full public story after opening details. */
@media (max-width: 760px) {
  #home-view .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #home-view .jade-story-paper {
    min-height: 0; aspect-ratio: 2 / 3;
    grid-template-rows: minmax(0, 1.7fr) minmax(0, 1.3fr);
  }
  #home-view .jade-story-paper::before { inset: 5px; border-radius: 9px; }
  #home-view .jade-story-upper { padding: 13px 12px 6px; }
  #home-view .jade-story-heading { gap: 5px; align-items: flex-start; }
  #home-view .jade-story-brand { font-size: 10.5px; letter-spacing: .01em; }
  #home-view .jade-story-topic { font-size: 8.5px; letter-spacing: 0; text-align: right; }
  #home-view .jade-story-text {
    margin-top: 11px; font-size: 12px; line-height: 1.62;
    letter-spacing: 0; -webkit-line-clamp: 4;
  }
  #home-view .jade-story-lower { padding: 9px 10px 10px; }
  #home-view .jade-story-quote { padding-left: 9px; font-size: 13.5px; line-height: 1.4; }
  #home-view .jade-story-quote::before { top: -4px; left: -5px; font-size: 25px; }
  #home-view .jade-story-credit { margin-top: 6px; font-size: 8px; letter-spacing: 0; }
}
@media (max-width: 350px) {
  #home-view .card-grid { gap: 8px; }
  #home-view .jade-story-upper { padding: 11px 9px 5px; }
  #home-view .jade-story-lower { padding: 7px 8px 8px; }
  #home-view .jade-story-brand { font-size: 9px; }
  #home-view .jade-story-topic { font-size: 7.5px; }
  #home-view .jade-story-text { margin-top: 9px; font-size: 10.5px; line-height: 1.5; -webkit-line-clamp: 4; }
  #home-view .jade-story-quote { font-size: 11.6px; line-height: 1.36; padding-left: 8px; }
  #home-view .jade-story-credit { font-size: 7px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #home-view .jade-story-paper { transition: none; }
  #home-view .card-tile-button:hover .jade-story-paper { transform: none; }
}
