/* E019 case entry cards use the existing HP palette and typography. */
.e019-entry-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 26px 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.e019-entry-card__media {
  display: block;
  width: 100%;
  align-self: center;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}
.e019-entry-card__media figcaption { padding: 4px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }
.e019-entry-card__media img {
  display: block;
  width: 100%;
  height: auto;
}
.e019-entry-card__label {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.e019-entry-card h2,
.e019-entry-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.55;
}
.e019-entry-card__summary {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.75;
}
.e019-entry-card__volume {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
  margin: 0 0 8px;
}
.e019-entry-card__volume strong { white-space: nowrap; }
.e019-entry-card__volume small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.e019-entry-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.e019-entry-card__link:focus-visible { outline: 3px solid #d18b31; outline-offset: 3px; }
.e019-detail .article { max-width: 1020px; padding-inline: 24px; }
.e019-detail-hero { padding-top: 28px; }
.e019-detail-hero h1 { max-width: none; font-size: clamp(28px, 3vw, 40px); line-height: 1.45; }
.e019-detail .no-break { white-space: nowrap; }
.e019-detail .case-summary { max-width: 46em; font-size: 16px; line-height: 1.85; }
.e019-detail .case-volume {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.e019-detail .volume-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.e019-detail .volume-value { color: var(--ink); font-size: 22px; line-height: 1.45; }
.e019-detail .volume-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.e019-detail .overview-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 0; }
.e019-detail .overview-link,
.e019-detail .overview-gallery-link,
.e019-detail .return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #285739;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  text-decoration: none;
}
.e019-detail .section-kicker { margin: 0 0 6px; color: var(--teal); font-size: 14px; font-weight: 800; }
.e019-detail .representative-grid { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 420px; justify-content: center; gap: 14px; margin: 18px auto 12px; }
.e019-detail .representative-photo:not(.is-selected) { display: none; }
.e019-detail .representative-photo { min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.e019-detail .representative-photo .photo-place { margin: 12px 12px 8px; font-size: 16px; font-weight: 800; line-height: 1.5; }
.e019-detail .photo-frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--soft); }
.e019-detail .photo-frame img { display: block; width: 100%; height: auto; object-fit: contain; }
.e019-detail .image-fallback { padding: 18px; color: var(--muted); font-size: 14px; }
.e019-detail .representative-photo figcaption { margin: 8px 12px 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.e019-detail .photo-card figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.e019-detail .photo-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 420px; gap: 8px; margin: 18px auto 10px; }
.e019-detail .photo-selector {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b9ccc3;
  border-radius: 8px;
  background: #fff;
  color: #285739;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}
.e019-detail .photo-selector[aria-pressed="true"] { border-color: #285739; background: #e9f2e9; box-shadow: inset 0 -2px #23694e; }
.e019-detail .photo-state { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.e019-detail .e019-guide-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; max-width: 620px; margin: 16px 0; }
.e019-detail .e019-guide-row img { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; background: #fff; }
.e019-detail .e019-guide-row p { margin: 0; font-size: 16px; line-height: 1.8; }
.e019-detail .consultation-photo-note { margin-top: 14px; }
.e019-detail .contact-actions { max-width: 540px; margin: 12px 0 18px; }
.e019-detail .contact-button.line-cta { min-height: 68px; }
.e019-detail .contact-feedback:empty { display: none; }
.e019-detail .gallery-count { margin: 12px 0 4px; font-weight: 800; }
.e019-detail .gallery-groups { display: grid; gap: 22px; }
.e019-detail .photo-group { min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.e019-detail .photo-group-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.e019-detail .photo-group-title { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.5; }
.e019-detail .group-count { color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.e019-detail .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.e019-detail .photo-card { min-width: 0; margin: 0; }
.e019-detail .photo-group[data-photo-count="1"] .photo-grid { grid-template-columns: minmax(0, 330px); }
.e019-detail .photo-group[data-photo-count="4"] .photo-grid,
.e019-detail .photo-group[data-photo-count="10"] .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e019-detail .photo-card .photo-frame img { min-width: 0; }
.e019-detail .group-return-link { margin: 8px 0 0; }
.e019-detail .gallery-status { min-height: 1.5em; margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.e019-detail .gallery-status:empty { display: none; }
.e019-detail .return-link { margin-top: 10px; }
.e019-detail .content-section > p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .e019-entry-card { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .e019-entry-card h2, .e019-entry-card h3 { font-size: 18px; line-height: 1.5; }
  .e019-detail .article { padding-inline: 18px; }
  .e019-detail .representative-grid { grid-template-columns: minmax(0, 1fr); }
  .e019-detail .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .e019-detail .photo-grid { gap: 16px; padding: 12px; }
  .e019-detail .photo-group[data-photo-count="1"] .photo-grid,
  .e019-detail .photo-group[data-photo-count="4"] .photo-grid,
  .e019-detail .photo-group[data-photo-count="10"] .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .e019-detail .gallery-groups { gap: 18px; }
  .e019-detail .photo-selectors { gap: 6px; }
  .e019-detail .photo-selector { padding: 7px 5px; font-size: 14px; }
}
@media (max-width: 350px) {
  .e019-entry-card { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .e019-entry-card h2, .e019-entry-card h3 { font-size: 17px; }
  .e019-detail .photo-selector { font-size: 13px; }
  .e019-detail .volume-value { font-size: 20px; }
}

.e019-entry-card__volume { font-size: 15px; line-height: 1.6; }

@media (max-width: 720px) {
  .e019-detail .photo-grid { padding: 0; }
}
@media (min-width: 721px) and (max-width: 1023px) {
  .e019-detail .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.page-cases #main > .e019-entry-card { max-width: 900px; margin: 26px auto 34px; }
@media (max-width: 720px) {
  .page-cases #main > .e019-entry-card { margin: 26px 18px 34px; }
}
