/* JINJYA responsive refinements, 2026-11-28. */

/* Paint the faint frame inside the fixed box without consuming title space. */
.oshi-tips.oshi-home:not(.public-comments) .oshi-tip-card .oshi-tip-bubble,
.oshi-tips.oshi-detail .oshi-tip-card .oshi-tip-bubble {
  background: #fff;
  border: 0;
  box-shadow: inset 0 0 0 1px #eee7dd;
}

.oshi-tips.oshi-home:not(.public-comments) .oshi-tip-card .oshi-tip-bubble::before,
.oshi-tips.oshi-detail .oshi-tip-card .oshi-tip-bubble::before {
  content: "";
  position: absolute;
  inset: 14px auto auto -9px;
  display: block;
  width: 0;
  height: 0;
  border: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid #eee7dd;
  transform: none;
  pointer-events: none;
}

.oshi-tips.oshi-home:not(.public-comments) .oshi-tip-card .oshi-tip-bubble::after,
.oshi-tips.oshi-detail .oshi-tip-card .oshi-tip-bubble::after {
  content: "";
  position: absolute;
  inset: 15px auto auto -7px;
  display: block;
  width: 0;
  height: 0;
  border: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid #fff;
  transform: none;
  pointer-events: none;
}

/* 100vw includes a desktop scrollbar; use the actual page width instead. */
.shrine-detail-header .shrine-header-photo {
  box-sizing: border-box;
  width: var(--jinjya-layout-width, 100%);
  max-width: none;
  margin-left: calc((100% - var(--jinjya-layout-width, 100%)) / 2);
  margin-right: 0;
}

/* Desktop navigation occupies its own row; tools stay inside the page. */
@media (min-width: 761px) {
  .shrine-search-toolbar > .shrine-tool-row {
    position: static;
    inset: auto;
    width: min(100%, 480px);
    max-width: 100%;
    margin: 0 0 12px;
  }
}

/* Keep edge-to-edge mobile photo grids without a horizontal page scrollbar. */
@media (max-width: 760px) {
  .shrine-photo-grid,
  .shrine-photo-result .shrine-photo-grid.search-photos-ready {
    box-sizing: border-box;
    width: var(--jinjya-layout-width, 100%);
    margin-left: calc((100% - var(--jinjya-layout-width, 100%)) / 2);
    margin-right: 0;
  }
}
