/* WordPress integration only; approved visual styles are in home.css/pages.css. */
body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
.site-menu { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); padding: 0; margin: 0; list-style: none; font-size: inherit; }
.header nav .site-menu a { display: block; }
.admin-bar .header { top: 32px; }
html { scroll-padding-top: 110px; }
.site-footer .site-menu { justify-content: flex-start; }
.work-image-placeholder { min-height: 220px; display: grid; place-items: center; background: linear-gradient(140deg,#d0dce4,#f5f8fa); color: #718995; letter-spacing: .18em; }
.slide-image .work-image-placeholder { aspect-ratio: 1.5; transform: rotate(-9deg); }
.archive-image { display: block; position: relative; min-width: 0; }
.archive-image img { width: 100%; height: auto; max-height: 520px; object-fit: contain; display: block; }
.archive-item dd { margin: 0; overflow-wrap: anywhere; }
/* Approved works-filter.css design, with links for server-side filtering. */
.works-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 24px; }
.works-filters a { display: inline-flex; align-items: center; border: 1px solid var(--line); background: transparent; border-radius: 30px; padding: 10px 18px; font-size: 13px; min-height: 44px; }
.works-filters a[aria-current="page"] { background: #223b49; color: white; border-color: #223b49; }
.single-works .detail-hero h1 { max-width: 21em; }
/* Match the approved HTML lead; main.css also serves other templates. */
.single-works .detail-lead { font-size: 16px; line-height: 2.1; margin-block: 16px; }
.single-works .detail-client { font-size: 16px; margin-block: 16px; }
.work-gallery { width: min(87.4%, 1040px); max-width: 1040px; padding: 24px; margin: 0 auto; background: #dfe6ea; }
.gallery-stage { height: min(48svh, 400px); padding: 0; }
.gallery-item figcaption { max-width: none; padding: 16px 0 0; font-size: 13px; line-height: 1.7; }
.gallery-controls { flex-wrap: wrap; gap: 16px; padding-top: 20px; margin-top: 0; }
.gallery-thumbnails { gap: 8px; padding: 0; max-width: 100%; }
.gallery-thumbnail { flex-basis: 68px; width: 68px; background: transparent; }
.gallery-navigation { margin-left: auto; }
.gallery-position { font-size: 13px; margin-right: 8px; }
.gallery-navigation button { border-color: var(--ink); color: var(--ink); font-size: 20px; }
.work-gallery button:focus-visible, .gallery-track:focus-visible { outline: 2px solid #315bdd; outline-offset: 4px; }
.case-overview { align-items: start; }
.case-overview h2 { margin: 0; }
.case-overview dl { display: grid; grid-template-columns: 110px 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; margin: 0 0 30px; font-size: 14px; }
.case-overview dt, .case-overview dd { font-size: inherit; color: inherit; }
.case-overview dd { white-space: normal; }
.case-story .work-body { min-width: 0; padding: 0; background: transparent; }
.case-story .work-body > * { max-width: none; margin-left: 0; margin-right: 0; }
.case-story .work-body h2, .case-story .work-body h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; line-height: 1.7; margin: 45px 0 18px; padding-top: 35px; border-top: 1px solid var(--line); }
.case-story .work-body > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.case-story .work-body p, .case-story .work-body li { font-size: 16px; line-height: 2.1; }
.case-story .work-body p { margin-bottom: 20px; }
.single-works .related-section .work-card-image { aspect-ratio: 1.65; background: #e8edf0; margin: 0 0 20px; padding: 18px; }
.single-works .related-section .work-card-image img { height: 100%; object-fit: contain; }
.single-works .related-section .work-card-services { display: none; }
.single-works .related-section .work-client { color: var(--muted); }
.single-works .related-section .work-card h2 { margin-top: 8px; font-size: 22px; }
.work-body .wp-block-gallery .wp-block-image img { width: 100%; }
.work-body { clear: both; }
.work-body .wp-block-image figcaption { font-size: 13px; color: var(--muted); }
.work-body .wp-block-video video { width: 100%; max-height: 460px; }
.work-card-link { display: block; }
.work-card h2, .work-card h3 { font-size: clamp(20px,2vw,28px); }
.related-grid { margin-bottom: 0; gap: 48px 32px; align-items: start; }
.service-related { grid-column: 1 / -1; margin-top: 40px; min-width: 0; }
.service-related .related-grid { gap: 32px; margin-top: 24px; }
.service-related .section-label { margin-bottom: 12px; }
.wpcf7-form p { margin-top: 0; }
.wpcf7-form .form-field label > br { display: none; }
.wpcf7-form .form-field label { flex-wrap: wrap; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form .form-field label .wpcf7-form-control-wrap { flex-basis: 100%; padding: 0; border: 0; font-size: 16px; color: inherit; }
.wpcf7-form .wpcf7-not-valid-tip { padding-top: 8px; font-size: 13px; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .form-consent label { display: flex; gap: 12px; align-items: flex-start; }
.wpcf7-form .page-button { cursor: pointer; }
.wpcf7-form .page-button:disabled { opacity: .55; cursor: default; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #536f5d; }
.help-choice { display: none; }
.ui-enabled .help-choice { display: grid; }
body:not(.ui-enabled) .work-slide[hidden] { display: grid !important; margin-top: 80px; }
body:not(.ui-enabled) .carousel-controls { display: none; }
@media (max-width:1000px) { .site-menu { gap: 16px; } }
@media (max-width:782px) { .admin-bar .header { top: 46px; } }
@media (max-width:760px) {
  .header nav .site-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .header nav .nav-contact { margin-top: 10px; }
  .site-footer .site-menu { flex-wrap: wrap; }
  .work-gallery { width: 86%; padding: 14px; }
  .gallery-stage { height: min(38svh,280px); }
  .gallery-item figcaption { font-size: 12px; padding-top: 12px; }
  .gallery-controls { gap: 10px; padding-top: 16px; }
  .gallery-thumbnail { flex-basis: 52px; width: 52px; height: 44px; }
  .gallery-thumbnails { flex-basis: auto; }
  .gallery-navigation { gap: 6px; }
  .case-overview dl { grid-template-columns: 82px minmax(0,1fr); gap: 20px 12px; }
  .case-story .work-body h2, .case-story .work-body h3 { margin-top: 30px; padding-top: 25px; }
  .case-story .work-body > :first-child { margin-top: 0; padding-top: 0; }
}
@media (max-width:600px) { .admin-bar .header { top: 0; } }
