/* Project-specific layout and typography, extending kyoto-kuji.css. */
.kyoto-project-page [hidden] { display: none !important; }
.kyoto-project-page .kuji-prize img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--placeholder); }
.kyoto-project-page .photo-pair { display: flex; gap: 4px; aspect-ratio: 4/3; }
.kyoto-project-page .photo-pair img { width: calc(50% - 2px); height: 100%; aspect-ratio: auto; }
.kyoto-project-page .kuji-prize p { margin-top: 14px; }
.kyoto-project-page .category-heading { margin-top: 60px; }
.kyoto-project-page .prize-list { width: 100%; border-collapse: collapse; font: inherit; }
.kyoto-project-page .prize-list caption { text-align: left; font: inherit; margin-bottom: 20px; }
.kyoto-project-page .prize-list th,
.kyoto-project-page .prize-list td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kyoto-project-page .prize-list tbody tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.kyoto-project-page .kuji-venues { margin: 30px 0; }
/* Keep the same image dimensions in both categories at every breakpoint. */
.kyoto-project-page .kuji-featured { align-items: start; }
.kyoto-project-page .kuji-prize figure { min-width: 0; }
.kyoto-project-page .photo-pair { overflow: hidden; }
@media(min-width:768px) and (max-width:1199px) {
 .kyoto-project-page .kuji-featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
 .kyoto-project-page .kuji-featured { grid-template-columns: 1fr; }
 .kyoto-project-page .category-heading { margin-top: 40px; }
}

/* Keep pinned section headings below the site header and WordPress toolbar. */
.kyoto-project-page { --project-toolbar-height: 0px; }
.admin-bar .kyoto-project-page { --project-toolbar-height: var(--wp-admin--admin-bar--height, 32px); }
@media(min-width:1200px) {
 .kyoto-project-page .kuji-section-head {
  top: calc(var(--header-h) + var(--project-toolbar-height) + 32px);
 }
}

/* Group organizations with spacing and keep one closing boundary at the site footer. */
.kyoto-project-page #operator .kuji-orgs { margin: 28px 0 36px; }
.kyoto-project-page #operator .kuji-orgs > div { border-bottom: 0; padding: 0; }
.kyoto-project-page #operator .kuji-orgs:last-child { margin-bottom: 0; }
.kyoto-project-page #operator { border-bottom: 0; padding-bottom: clamp(40px, 5vw, 70px); }
.kyoto-project-page .kuji-footer { padding-top: 0; }

/* Give the operator label, company name, and description distinct visual roles. */
.kyoto-project-page #operator .project-operator-label {
 margin: 0 0 12px;
 color: var(--kuji-sub);
 font-size: 14px;
 font-weight: 600;
 line-height: 1.6;
 letter-spacing: .12em;
}
.kyoto-project-page #operator .project-operator-name {
 margin: 0;
 font-size: clamp(18px, 1.5vw, 20px);
 font-weight: 400;
 line-height: 1.65;
 letter-spacing: .04em;
}
.kyoto-project-page #operator .project-operator-description {
 max-width: 52em;
 margin: 16px 0 0;
 color: var(--kuji-sub);
 font-size: 16px;
 line-height: 2;
 letter-spacing: .04em;
}

/* Place the terms below the project identity at every screen width. */
.kyoto-project-page .kuji-footer { display: block; }
.kyoto-project-page .kuji-footer-info {
 display: block;
 margin-top: 24px;
}
.kyoto-project-page .kuji-footer-info > div { padding: 0; }
.kyoto-project-page .kuji-footer-info dt { font-size: 14px; }

/* Use equal card widths for the two tea benefits and three cultural benefits. */
@media(min-width:1200px) {
 .kyoto-project-page .tea-prizes { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .kyoto-project-page .project-culture-prizes { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.kyoto-project-page .project-contacts { margin-top: 40px; }
.kyoto-project-page .project-contacts .kuji-subheading { margin: 28px 0 12px; font-size: 16px; line-height: 1.7; }
.kyoto-project-page .project-contacts p { margin: 0; }

/* Release artwork above the project introduction, preserving its complete composition. */
.kyoto-project-page .project-key-visual {
 max-width: 900px;
 margin: 0 auto clamp(40px, 5vw, 72px);
}
.kyoto-project-page .project-key-visual img {
 display: block;
 width: 100%;
 height: auto;
}
/* Keep the short prefecture name close to the special cooperation organization. */
@media(min-width:768px) {
 .kyoto-project-page .project-special-collaborators {
  grid-template-columns: max-content minmax(0, 1fr);
 }
}

/* A separate contact panel below the organization lists. */
.kyoto-project-page .project-contact {
 margin: 0 0 clamp(48px, 6vw, 80px);
 padding: clamp(28px, 4vw, 56px);
 background: #f5f5f3;
}
.kyoto-project-page .project-contact .section-label {
 margin: 0 0 32px;
}
.kyoto-project-page .project-contact h2 {
 margin: 0 0 12px;
 font-size: 20px;
 line-height: 1.7;
}
.kyoto-project-page .project-contact-details {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 8px 28px;
 font-size: 16px;
 line-height: 1.9;
}
.kyoto-project-page .project-contact-details p {
 margin: 0;
}
.kyoto-project-page .project-contact-details a {
 overflow-wrap: anywhere;
}
