/* Good-fortune themes and source-linked shrine introductions. */
.fortune-word { color: #8b631d; background: linear-gradient(transparent 70%, #f3e4b5 70%); border-radius: .15em; }
.fortune-entrances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 8px; }
.fortune-entrances > a { min-width: 0; padding: 18px 24px; border-radius: 18px; transition: background .2s; }
.fortune-entrances > a:hover { background: #f7efd4; }
.fortune-entrances > a > span { display: block; margin: 0 0 6px; font-size: .875rem; font-weight: 400; color: #7b6a3f; }
.fortune-entrances strong { font-size: 1rem; line-height: 1.7; font-weight: 600; }
.shrine-section { padding-top: 32px; }
.shrine-section .section-heading > p { max-width: 30em; font-size: 1rem; }
.shrine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shrine-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 30px 28px; border: 1px solid #e6d6a9; border-radius: 26px; background: #fffdf4; box-shadow: 0 8px 24px #947d2b08; }
.shrine-card:nth-child(2) { background: #fff8e1; }
.shrine-area { font-size: .875rem; color: #77643c; margin-bottom: 14px; }
.shrine-card h3 { font-size: 1.5rem; line-height: 1.7; font-family: var(--sans); color: var(--green); }
.shrine-card h3 small { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
.shrine-theme { display: inline-block; margin-top: 20px; padding: 5px 12px; border: 1px solid #e6d5a3; border-radius: 999px; background: #fff5d7; color: #77571f; font-size: .875rem; line-height: 1.7; }
.shrine-description { font-size: 1rem; line-height: 2; margin-top: 18px; margin-bottom: 24px; color: #4e6454; }
.shrine-official { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px; margin-top: auto; border: 1px solid #c5d3b9; border-radius: 14px; color: var(--green); background: #f3f7ec; font-size: .875rem; line-height: 1.7; text-align: center; }
.shrine-official:hover { background: #e8f0dd; }
.shrine-reflection { margin-top: 24px; padding: 25px 28px; border: 1px solid #dce4cd; border-radius: 22px; background: #f0f5e8; }
.shrine-reflection h3 { font-size: 1.125rem; font-weight: 600; }
.shrine-reflection p { margin-top: 10px; font-size: 1rem; line-height: 2; }
.shrine-source-note { margin-top: 18px; font-size: .875rem; line-height: 1.9; color: var(--muted); }
.shrine-source-note time { font-size: .8125rem; }
@media(max-width:1050px) {
  .shrine-grid { gap: 16px; }
  .shrine-card { padding: 26px 20px; }
  .fortune-entrances > a { padding: 18px; }
}
@media(max-width:800px) {
  .shrine-grid { grid-template-columns: 1fr; }
  .shrine-card { padding: 28px; }
  .shrine-description { max-width: 44em; }
  .shrine-official { width: fit-content; padding-inline: 22px; }
}
@media(max-width:640px) {
  .fortune-entrances { grid-template-columns: 1fr; gap: 0; padding: 8px 14px; }
  .fortune-entrances > a { padding: 17px 10px; }
  .fortune-entrances > a + a { border-top: 1px solid #e9dfbf; border-radius: 0 0 14px 14px; }
  .fortune-entrances > a > span { font-size: .875rem; margin-bottom: 4px; }
  .shrine-section { padding-top: 24px; }
  .shrine-section h2 { font-size: 1.625rem; }
  .shrine-card { padding: 26px 22px; border-radius: 24px; }
  .shrine-official { width: 100%; }
  .shrine-reflection { padding: 23px 20px; }
}
