.ld-pages {
  min-height: 100vh;
  background: #fff;
}

.ld-pages-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: #fff;
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.ld-pages-header-inner {
  display: flex;
  width: min(1024px, calc(100% - 64px));
  height: 72px;
  align-items: center;
  margin-inline: auto;
}

.ld-pages-logo {
  display: block;
  width: 144px;
  flex: 0 0 144px;
}

.ld-pages-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
  transform: translate(2px, .5px);
}

/* The legacy compiled Location bundle still includes a Staff link. */
.ld-primary-nav a[href*="page=Staff"],
.ld-primary-nav a[href*="page=staff"] {
  display: none;
}

.location-deck-preview[data-view="overview"],
.location-deck-preview[data-view="section"] {
  display: flex;
  flex-direction: column;
}

.location-deck-preview[data-view="overview"] {
  background: #fff;
  color: #111;
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .15px;
  line-height: 1.95;
}

.location-deck-preview[data-view="overview"] > .ld-section-page,
.location-deck-preview[data-view="section"] > .ld-section-page {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.ld-overview-cards {
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - 40px);
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 48px;
}

.ld-overview-card-link {
  display: block;
  min-width: 0;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.ld-overview-card-link:hover > [data-slot="card"] {
  border-color: #8d8d8d;
}

.ld-overview-card-link:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 3px;
}

.ld-overview-card-meta { gap: 8px; min-height: 54px; }

.ld-overview-card-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-overview-category {
  flex: none;
  padding: 0 5px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  background: transparent;
  color: #767676;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 17px;
  white-space: nowrap;
}

.ld-map-unavailable {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #f5f5f5;
  color: #767676;
  font-size: 11px;
}

.ld-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 7px;
  margin-top: 3px;
}

.ld-breadcrumb,
.ld-script-updated,
.ld-script-caption {
  color: #000;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.6;
}

.ld-breadcrumb a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.ld-breadcrumb a:hover,
.ld-breadcrumb [aria-current="page"] { color: #000; }
.ld-breadcrumb a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.ld-breadcrumb svg { display: block; width: 12px; height: 12px; flex: none; }
.ld-breadcrumb > svg { margin-inline: -5px; stroke-width: 1.35; }
.ld-breadcrumb a[aria-label="Home"] svg { transform: translateY(-1px); stroke-width: 1.6; }
.ld-section-page > .ld-back-navigation { margin-top: auto; padding-top: 12px; }

/* Article pages omit the reference site's category and date, but retain its header rhythm. */
.ld-article-width-page > .ld-listing-header,
.ld-overview-page > .ld-listing-header { padding: 24px 0 48px; }

.ld-section-content,
.ld-gear-section {
  width: calc(100% - 40px);
  margin-right: auto;
  margin-left: auto;
}

.ld-section-content { padding-bottom: 48px; }
.ld-section-info { width: 100%; margin: 0; }
.ld-cast-gallery { margin-bottom: 60px; }
.ld-cast-photo { border: 1px solid #dedede; }
.ld-gear-section { padding-bottom: 48px; }

.ld-gear-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
}

.ld-gear-table-scroll:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.ld-gear-table {
  width: 100%;
  min-width: 624px;
  border-top: 1px solid #ddd;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #111;
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.5;
}

.ld-gear-table th,
.ld-gear-table td {
  overflow: hidden;
  padding: 11px 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-gear-table thead th {
  border-bottom: 1px solid #ddd;
  background: #fff;
  color: #888;
  font-weight: 600;
}

.ld-gear-table tbody td { border-bottom: 1px solid #ddd; }
.ld-gear-table th:nth-child(1) { width: 8%; }
.ld-gear-table th:nth-child(2) { width: 45%; }
.ld-gear-table th:nth-child(3) { width: 9%; }
.ld-gear-table th:nth-child(4) { width: 17%; }
.ld-gear-table th:nth-child(5) { width: 21%; }

@media (min-width: 768px) {
  .ld-overview-cards {
    width: min(1024px, calc(100% - 40px));
    padding-bottom: 64px;
  }

  .ld-section-content,
  .ld-gear-section { width: min(1024px, calc(100% - 40px)); }
  .ld-cast-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 72px;
  }
}

@media (min-width: 768px) {
  .ld-listing-header,
  .ld-location-gallery,
  .ld-location-details,
  .ld-back-navigation {
    width: min(1024px, calc(100% - 40px));
  }
}

@media (min-width: 761px) {
  /* BicField article column for every section landing page. */
  .ld-article-width-page > .ld-listing-header,
  .ld-article-width-page > .ld-section-content,
  .ld-article-width-page > .ld-cast-gallery,
  .ld-article-width-page > .ld-overview-cards,
  .ld-article-width-page > .ld-gear-section,
  .ld-overview-page > .ld-listing-header,
  .ld-overview-page > .ld-overview-cards,
  .ld-overview-page > .ld-back-navigation,
  .ld-article-width-page > .ld-back-navigation {
    width: min(576px, calc(100% - 40px));
  }

  .ld-article-width-page > .ld-cast-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-article-width-page > .ld-listing-header,
  .ld-overview-page > .ld-listing-header { padding-top: 60px; }


  .ld-overview-page .ld-overview-card-meta {
    display: flex;
    height: 54px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .ld-overview-page .ld-overview-card-name {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.4;
  }
  .ld-overview-page .ld-overview-category { align-self: center; }
}

@media (max-width: 760px) {
  .location-deck-preview[data-layout="desktop"] > header > div:first-child {
    height: 60px;
    padding-inline: 20px;
  }
  .location-deck-preview[data-layout="desktop"] > header > div:first-child > a:first-child {
    width: 128px;
    flex-basis: 128px;
  }
  .ld-pages-header-inner {
    width: auto;
    height: 60px;
    padding: 0 20px;
  }
  .ld-pages-logo { width: 128px; flex-basis: 128px; }
  .ld-pages-logo img { transform: none; }
}

/* Product links keep the equipment table typography and change to grey on hover. */
.ld-gear-product-link { color: #111; text-decoration: none; transition: color 120ms ease; }
.ld-gear-product-link:hover,
.ld-gear-product-link:focus-visible { color: #767676; }
.ld-gear-product-link:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }


/* Script article body follows BicField; chapter tools and note boxes are user-directed. */
.ld-script-page > .ld-listing-header,
.ld-script-content { width: calc(100% - 40px); margin-inline: auto; }
/* All site page titles use the original Script title typography. */
.location-deck-preview .ld-listing-header h1,
.location-deck-preview .ld-home-page h1 { color: #111; font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 24px; font-style: normal; font-weight: 650; line-height: 36px; letter-spacing: 0; font-feature-settings: "palt" 0; }
.ld-script-page > .ld-listing-header h1,
.ld-location-title-header h1 { display: flex; align-items: center; gap: 12px; }
.ld-script-draft-tag { display: inline-flex; flex: none; align-items: center; justify-content: center; padding: 2px 6px; border: 1px solid #111; border-radius: 2px; background: transparent; color: #111; font-size: 11px; font-weight: 400; line-height: 16px; letter-spacing: .02em; white-space: nowrap; }
.ld-script-title-text { min-width: 0; }
.ld-script-updated { margin: 12px 0 4px; }
.ld-script-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.ld-script-meta-lines { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.ld-script-meta .ld-script-updated,
.ld-script-meta .ld-breadcrumb { margin: 0; }

.ld-script-caption { margin: 0 0 24px calc(var(--ld-script-number-center, 5px) - .5px); padding-left: calc(var(--ld-script-title-offset, 20px) - var(--ld-script-number-center, 5px) - .5px); border-left: 1px solid #000; font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif; }
.ld-script-caption-heading { position: relative; padding-right: 44px; }
.ld-script-caption-heading[data-no-notes] { padding-right: 0; }
.ld-script-caption-toggle { position: absolute; top: -13px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: #767676; font: inherit; cursor: pointer; }
.ld-script-caption-toggle svg { display: block; width: 14px; height: 14px; }
.ld-script-caption-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ld-script-caption-toggle:hover { color: #111; }
.ld-script-caption-toggle:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.ld-script-caption-notes { margin-top: 1.6em; }
.ld-script-caption-notes[hidden] { display: none !important; }

.ld-script-content {
  margin-top: 0;
  margin-bottom: 36px;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", YuGothic, "Yu Gothic Medium", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: normal;
  -webkit-font-smoothing: auto;
  overflow-wrap: anywhere;
}
.ld-script-content p { margin: 0 0 24px; line-height: inherit; }
.ld-script-content .ld-script-speaker { font-weight: 700; }
.ld-script-content h2 {
  margin: 44px 0 16px;
  color: #111;
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 29.25px;
  letter-spacing: .015em;
}
.ld-script-toc { --ld-toc-icon-size: 16px; --ld-toc-icon-gap: 10px; padding: 16px 20px; border-radius: 4px; background: #f5f5f5; font-weight: 400; }
.ld-script-toc h2 { display: flex; align-items: center; gap: var(--ld-toc-icon-gap); margin: 0; color: inherit; font: inherit; font-weight: 700; letter-spacing: inherit; }
.ld-script-toc-icon { flex: none; width: var(--ld-toc-icon-size); height: var(--ld-toc-icon-size); }
.ld-script-toc ol { margin: 12px 0 0; padding-left: calc(var(--ld-toc-icon-size) + var(--ld-toc-icon-gap)); list-style: decimal; font-weight: 400; }
.ld-script-toc li + li { margin-top: 4px; }
.ld-script-toc a { color: inherit; font-weight: 400; text-decoration: none; }
.ld-script-toc a:hover { color: #767676; }
.ld-script-chapter { scroll-margin-top: 84px; }
.ld-script-chapter + .ld-script-chapter { border-top: 1px solid #e5e5e5; margin-top: 40px; padding-top: 32px; }
.ld-script-chapter + .ld-script-chapter h2 { margin-top: 0; }
.ld-script-chapter h2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-synthesis: none; }
.ld-script-chapter h2 > span { flex: 1; min-width: 0; }
.ld-script-camera-toggle {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: auto;
  margin-top: .5px;
  padding: 0;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
}
.ld-script-camera-toggle svg { width: 18px; height: 18px; }
.ld-script-camera-toggle[aria-pressed="false"] { background: #f5f5f5; }
.ld-script-camera-toggle:hover { color: #767676; border-color: #aaa; }
.ld-script-content p.ld-script-camera { padding: 12px 16px; border-radius: 4px; background: #f5f5f5; color: #666; }
.ld-script-camera[hidden] { display: none !important; }
.ld-script-chapter:last-child > p:last-child { margin-bottom: 0; }
.ld-script-toc a:focus-visible,
.ld-script-camera-toggle:focus-visible,
.ld-script-chapter:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (min-width: 761px) {
  .ld-script-page > .ld-listing-header,
  .ld-script-content { width: min(576px, calc(100% - 40px)); }
  .location-deck-preview .ld-listing-header h1,
  .location-deck-preview .ld-home-page h1 { font-size: 32px; line-height: 48px; }
  .ld-script-content {
    font-family: YuGothic, "Yu Gothic Medium", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.95;
  }
  .ld-script-chapter { scroll-margin-top: 96px; }
}

.ld-script-camera-toggle:focus-visible { outline-color: #767676; }

/* Temporarily show narrative only; keep camera source and controls for later restoration. */
.ld-script-camera-toggle,
.ld-script-content p.ld-script-camera { display: none !important; }

/* Empty chapter illustration slots are replaced with image elements when artwork is ready. */
.ld-script-toc + .ld-script-chapter { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e5e5e5; }
.ld-script-illustration { width: 100%; aspect-ratio: 16 / 9; margin: 0 0 24px; background: #f2f2f2; }
.ld-script-chapter > h2 { margin-top: 0; margin-bottom: 16px; font-size: 18px; line-height: 1.75; }

.ld-script-scene-break { display: flow-root; border-top: 1px solid #e5e5e5; margin-top: 40px; padding-top: 32px; }

.ld-script-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Standalone project landing page, using the article title and existing link system. */
.ld-home-page { width: calc(100% - 40px); max-width: 576px; margin: 0 auto; padding: 64px 0 48px; text-align: center; font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif; }
.ld-home-page h1 { margin: 0 0 32px; }
.ld-home-links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ld-home-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #000; font-size: 15px; font-weight: 400; line-height: 1.95; text-decoration: none; }
.ld-home-links a:hover { color: #767676; }
.ld-home-links a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@media (min-width: 761px) { .ld-home-page { padding-top: 96px; } }

/* Shot cards share the Location card frame and the wider detail-page canvas. */
.ld-shot-list-page.ld-article-width-page > .ld-listing-header,
.ld-shot-list-page.ld-article-width-page > .ld-back-navigation,
.ld-shot-grid { width: min(1024px, calc(100% - 40px)); margin-inline: auto; }
.ld-shot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 48px; }
.ld-shot-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; }
.ld-shot-image { width: 100%; aspect-ratio: 16 / 9; background: #f2f2f2; border-bottom: 1px solid #e8e8e8; }
.ld-shot-card figcaption { margin: 0; padding: 12px 16px; color: #111; font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 12px; font-weight: 400; line-height: 20px; letter-spacing: .02em; }
@media (min-width: 761px) { .ld-shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 64px; } }

/* Location detail shares Script title/metadata typography, retaining gallery width. */
.ld-location-title-header { padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 761px) { .ld-location-title-header { padding-top: 60px; } }

/* Photo captions acknowledge server persistence and retain drafts on failure. */
.ld-caption-sync { display: contents; color: #666; font-size: 11px; line-height: 1.6; }
.ld-caption-sync p { margin: 0; }
.ld-caption-sync-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 4px 12px; }
.ld-caption-sync button { min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: #111; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ld-caption-sync button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.ld-photo-dialog:has(.ld-caption-sync) .ld-polaroid { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }

.ld-polaroid-caption-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 4px 12px; margin-top: 10px; }
.ld-polaroid-caption-row .ld-polaroid-caption { grid-column: 1; grid-row: 1; min-width: 0; margin-top: 0; }
.ld-caption-status { grid-column: 2; grid-row: 1; justify-self: end; }
.ld-caption-message { grid-column: 1 / -1; grid-row: 2; }
.ld-caption-state-icon { display: block; width: 18px; height: 18px; color: #666; }
.ld-caption-a11y { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ld-caption-sync-actions, .ld-caption-sync > button { grid-column: 1 / -1; }
.ld-polaroid-caption-row .ld-polaroid-caption input { min-height: 44px; height: 44px; padding-block: 10px; font-size: 16px; line-height: 24px; }

/* Scene groups reuse the existing gallery column geometry and photo IDs. */
.ld-photo-sections { width: min(1024px, calc(100% - 40px)); margin-inline: auto; }
.ld-photo-section { margin: 0 0 48px; }
.ld-photo-section-title { margin: 0 0 24px; padding-top: 24px; border-top: 1px solid #dedede; color: #111; font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 15px; font-weight: 700; line-height: 29.25px; letter-spacing: .225px; font-synthesis: none; overflow-wrap: anywhere; }
.ld-photo-sections .ld-location-gallery { width: 100%; margin: 0; }
.ld-photo-sections .ld-location-gallery figure { aspect-ratio: auto; min-width: 0; background: transparent; }
.ld-photo-sections .ld-gallery-photo { position: relative; height: auto; aspect-ratio: 4 / 3; background: transparent; }
.ld-photo-sections .ld-gallery-photo img { position: absolute; inset: 0; }

.ld-gallery-caption { margin: 10px 0 0; color: #666; font-size: 11px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 760px) { .ld-photo-sections { width: calc(100% - 40px); } .ld-photo-section { margin-bottom: 36px; } }

.ld-shot-number { display: block; color: #111; font-weight: 600; }
.ld-shot-paragraph { margin-top: 12px; }
.ld-shot-paragraph a { color: #666; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.ld-shot-paragraph p { margin: 6px 0 0; color: #111; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.ld-shot-number { overflow-wrap: anywhere; }
.ld-shot-paragraph a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
