/* Warm editorial hierarchy and a single material-story disclosure. */
.mineral-story {
  margin-top: 68px;
  background: linear-gradient(130deg, #eee7db, #f5efe5 75%);
  border-top: 1px solid #cbbc9f;
}
.story-details {
  overflow: hidden;
}
.story-details > summary {
  list-style: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 28px;
  padding: 34px 40px;
  cursor: pointer;
  touch-action: manipulation;
}
.story-details > summary::-webkit-details-marker {
  display: none;
}
.story-details > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
}
.story-heading {
  display: block;
  position: relative;
  z-index: 1;
}
.story-kicker {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #59705c;
  margin-bottom: 11px;
}
.story-title {
  display: block;
  font: 600 27px/1.8 var(--serif);
  letter-spacing: 0.045em;
  color: #513e28;
}
.story-title > span {
  display: inline-block;
}
.disclosure-action {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.disclosure-action i {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #8f9f89;
  border-radius: 50%;
  transition: background 0.45s;
}
.disclosure-action i:before,
.disclosure-action i:after {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 12px;
  height: 1px;
  background: var(--green);
  transition: transform 0.5s;
}
.disclosure-action i:after {
  transform: rotate(90deg);
}
.story-details[open]:not([data-expanded="false"]) .disclosure-action i:after {
  transform: rotate(0);
}
.close-label {
  display: none;
}
.story-details[open]:not([data-expanded="false"]) .open-label {
  display: none;
}
.story-details[open]:not([data-expanded="false"]) .close-label {
  display: inline;
}
.story-content {
  padding: 0 40px 42px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 38px;
  align-items: center;
  padding: 15px 0 36px;
  border-top: 1px solid #d6c9b5;
}
.strata-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.story-note {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 11px;
}
.story-note + .story-note {
  margin-top: 30px;
}
.story-mark {
  font: 500 23px/1.6 var(--sans);
  color: #8a7050;
}
.story-note h4,
.extraction-copy h4 {
  margin: 0 0 12px;
  font: 600 22px/1.7 var(--serif);
  color: #513e28;
  letter-spacing: 0.035em;
}
.story-note p,
.extraction-copy p {
  font-size: 14px;
  line-height: 2.15;
  letter-spacing: 0.025em;
  color: #514d43;
}
.story-content strong {
  font-weight: 600;
  color: #315d4b;
}
.extraction-heading {
  border-top: 1px solid #cfc2ad;
  padding-top: 29px;
  margin-bottom: 28px;
}
.extraction-kicker {
  font-size: 17px;
  font-weight: 600;
  color: #59705c;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
}
.extraction-heading h4 {
  font: 600 26px/1.7 var(--serif);
  color: #513e28;
  margin: 0;
}
.extraction-content {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 38px;
  align-items: start;
}
.material-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 6px;
}
.material-photos img {
  height: 145px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: #f6f1e9;
}
.material-photos .extract-photo img {
  object-fit: contain;
  width: min(100%, 193px);
  margin: auto;
}
.material-photos figcaption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 12px;
  text-align: center;
  color: #69533c;
}
.extraction-copy p + p {
  margin-top: 18px;
}
/* Light expands from the contact point without following or replacing the cursor. */
.button,
:is(.header-shop, .footer-link),
.mobile-purchase .header-shop,
.story-details > summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --light-x: 50%;
  --light-y: 50%;
  transition:
    background 0.45s,
    box-shadow 0.45s,
    transform 0.3s;
}
.button:before,
:is(.header-shop, .footer-link):before,
.mobile-purchase .header-shop:before,
.story-details > summary:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--light-x);
  top: var(--light-y);
  width: 220%;
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, #fff7da66 0%, #f9e7b526 38%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.08);
  transition:
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s;
}
:is(.header-shop, .footer-link):before,
.story-details > summary:before {
  background: radial-gradient(circle, #d0ba8455, transparent 66%);
}
.button:focus-visible:before,
:is(.header-shop, .footer-link):focus-visible:before,
.mobile-purchase .header-shop:focus-visible:before,
.story-details > summary:focus-visible:before,
.is-lit:before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.button span,
:is(.header-shop, .footer-link) span,
.mobile-purchase .header-shop span {
  transition: transform 0.5s;
}
@media (hover: hover) {
  .button:hover:before,
  :is(.header-shop, .footer-link):hover:before,
  .mobile-purchase .header-shop:hover:before,
  .story-details > summary:hover:before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .button:hover {
    box-shadow: 0 8px 24px #294c3922;
    transform: translateY(-2px);
  }
  .button:hover span,
  :is(.header-shop, .footer-link):hover span,
  .mobile-purchase .header-shop:hover span {
    transform: translate(3px, -3px);
  }
  .story-details > summary:hover .disclosure-action i {
    background: #fff7e8;
  }
}
.button:active,
.mobile-purchase .header-shop:active {
  transform: translateY(1px) scale(0.992);
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: #a7906d;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.stone-figure,
.texture-photo,
.family-image {
  overflow: hidden;
}
.stone-figure img,
.texture-photo img,
.family-image img {
  transform: translateY(var(--photo-shift, 0px)) scale(1.035);
}
@media (max-width: 1000px) {
  .story-details > summary {
    padding: 28px;
    gap: 18px;
  }
  .story-title {
    font-size: 24px;
  }
  .story-content {
    padding: 0 28px 32px;
  }
  .story-grid,
  .extraction-content {
    gap: 26px;
  }
  .story-note h4 {
    font-size: 20px;
  }
  .material-photos {
    gap: 10px;
  }
  .material-photos img {
    height: 110px;
  }
}
@media (max-width: 700px) {
  .mineral-story {
    margin: 42px -7px 0;
  }
  .story-details > summary {
    padding: 25px 20px;
    gap: 14px;
  }
  .story-title {
    font-size: 20px;
    line-height: 1.85;
    letter-spacing: 0.015em;
  }
  .story-kicker {
    font-size: 14px;
    letter-spacing: 0.035em;
    margin-bottom: 9px;
  }
  .story-heading {
    min-width: 0;
  }
  .disclosure-action {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }
  .disclosure-action i {
    width: 34px;
    height: 34px;
  }
  .disclosure-action i:before,
  .disclosure-action i:after {
    left: 10px;
    top: 16px;
  }
  .story-content {
    padding: 0 22px 30px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 0 29px;
  }
  .strata-figure {
    margin: 0 -10px;
  }
  .story-note {
    grid-template-columns: 25px 1fr;
    gap: 8px;
  }
  .story-note h4 {
    font-size: 21px;
  }
  .story-note p,
  .extraction-copy p {
    font-size: 14px;
    line-height: 2.1;
  }
  .story-note + .story-note {
    margin-top: 26px;
  }
  .extraction-kicker {
    font-size: 16px;
  }
  .extraction-heading {
    padding-top: 26px;
    margin-bottom: 23px;
  }
  .extraction-heading h4 {
    font-size: 23px;
  }
  .extraction-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .material-photos {
    gap: 16px;
  }
  .material-photos img {
    height: 110px;
  }
  .material-photos figcaption {
    font-size: 12px;
  }
  .extraction-copy h4 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button:before,
  :is(.header-shop, .footer-link):before,
  .mobile-purchase .header-shop:before,
  .story-details > summary:before {
    display: none;
  }
  .stone-figure img,
  .texture-photo img,
  .family-image img {
    transform: none;
  }
  .button,
  :is(.header-shop, .footer-link),
  .mobile-purchase .header-shop,
  .button span,
  :is(.header-shop, .footer-link) span,
  .mobile-purchase .header-shop span {
    transform: none;
  }
}

.story-details > summary > .disclosure-action {
  margin-bottom: 4px;
  flex-shrink: 0;
}
.story-content.is-opening {
  opacity: 0;
}
.story-pending {
  opacity: 0;
}
.family-message .family-pending {
  opacity: 0;
}
@media print {
  .family-message .family-pending {
    opacity: 1;
  }
}

/* v23: keep the title and disclosure control legible on small screens. */
@media (max-width: 700px) {
  .mineral-story {
    margin: 36px 0 0;
  }
  .story-details > summary {
    padding: 24px 16px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
  .story-title {
    font-size: clamp(18px, 4.9vw, 20px);
    letter-spacing: 0;
    line-height: 1.8;
  }
  .story-kicker {
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.8;
  }
  .story-content {
    padding: 0 18px 28px;
  }
  .disclosure-action {
    font-size: 12px;
    gap: 7px;
  }
  .story-note p,
  .extraction-copy p {
    font-size: 15px;
    line-height: 2.05;
    letter-spacing: 0;
    text-wrap: pretty;
  }
  .story-note h4 {
    font-size: 20px;
    letter-spacing: 0;
    text-wrap: balance;
  }
  .extraction-heading h4,
  .extraction-copy h4 {
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1.8;
    text-wrap: balance;
  }
  .extraction-copy h4 br {
    display: none;
  }
  .material-photos {
    gap: 12px;
  }
  .material-photos img {
    height: auto;
    aspect-ratio: 4/3;
  }
}

/* Origin stays visible. Extraction is initially CLOSED in the approved HTML. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.story-intro {
  padding: 32px 40px 22px;
}
.story-overview {
  padding: 0 40px;
}
.story-overview strong {
  font-weight: 600;
  color: #315d4b;
}
.story-overview .story-grid {
  padding-top: 18px;
  padding-bottom: 28px;
}
.extraction-details {
  border-top: 1px solid #cfc2ad;
}
.extraction-details > summary {
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  gap: 18px;
}
.extraction-title {
  display: block;
  font: 600 26px/1.7 var(--serif);
  color: #513e28;
}
.extraction-details .extraction-kicker {
  display: block;
}
.extraction-details .disclosure-action {
  margin: 0;
}
.extraction-details .story-content {
  padding-bottom: 34px;
}
@media (max-width: 1000px) {
  .story-intro {
    padding: 28px 28px 20px;
  }
  .story-overview {
    padding: 0 28px;
  }
  .extraction-details > summary {
    padding: 25px 28px;
  }
  .extraction-title {
    font-size: 23px;
  }
}
@media (max-width: 700px) {
  .story-intro {
    padding: 24px 18px 18px;
  }
  .story-overview {
    padding: 0 18px;
  }
  .story-overview .story-grid {
    padding-top: 6px;
    padding-bottom: 24px;
  }
  .extraction-details > summary {
    padding: 22px 18px;
    gap: 12px;
  }
  .extraction-title {
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: 0;
  }
  .extraction-details .story-content {
    padding-bottom: 28px;
  }
}

/* v33: keep the disclosure beside the actual title, including wrapped lines. */
.extraction-details > summary {
  display: block;
}
.extraction-ending {
  display: inline-block;
  white-space: nowrap;
}
.extraction-title .disclosure-action {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0 2px 14px;
}
@media (max-width: 700px) {
  .extraction-title .disclosure-action {
    margin-left: 10px;
  }
}
