/* Section links sit below the commercial offer. */
.project-directory { background: #fff; border-bottom: 1px solid var(--line); }
.directory-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 38px; padding-block: 20px; }
.directory-row strong { font-size: 1rem; letter-spacing: -.025em; }
.directory-links { display: flex; flex-wrap: wrap; gap: 5px 24px; }
.directory-links a { padding-block: 5px; text-decoration: none; color: var(--muted); font-size: .93rem; }
.directory-links a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--accent); }

.restore-location-grid, .restore-infra-grid { display: grid; align-items: center; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: clamp(24px,5vw,84px); }
.restore-map { min-width: 0; }
.restore-map > a { display: block; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: clamp(6px,1.1vw,18px); }
.restore-map img { width: 100%; height: auto; }
.restore-map figcaption { margin-top: 10px; font-size: .9rem; }
.restore-location-info h3, .restore-infra-copy h3, .restore-team h3 { font-size: clamp(1.18rem,1.65vw,1.5rem); line-height: 1.25; letter-spacing: -.035em; font-weight: 680; }
.restore-location-info > p, .restore-infra-copy p, .restore-team-grid p, .restore-questions p, .construction-intro, .construction-update, .gallery-description { color: var(--muted); line-height: 1.65; }
.restore-location-info > p { margin: 8px 0 14px; }
.restore-distances { margin: 8px 0 20px; }
.restore-distances > div { display: grid; grid-template-columns: 1.04fr 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.restore-distances dd { margin: 0; font-weight: 680; }
.restore-infrastructure { border-top: 1px solid var(--line); }
.restore-infra-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.restore-infra-copy { display: grid; gap: 26px; max-width: 64ch; }
.restore-infra-copy p { margin-top: 8px; }
.restore-feature-list { margin: 8px 0 0; padding-left: 1.15em; color: var(--muted); line-height: 1.65; }
.restore-feature-list li + li { margin-top: 5px; }
.restore-infra-photo img { width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; border-radius: 6px; }
.restore-infra-photo figcaption { display: grid; gap: 2px; margin-top: 10px; }
.restore-infra-photo figcaption span { color: var(--muted); font-size: .83rem; }

/* All six architectural views remain discoverable on the page. */
.architecture-gallery { background: var(--rail-navy); color: #fff; }
.architecture-gallery .section-heading { align-items: start; }
.architecture-gallery .eyebrow { color: var(--rail-ice); }
.gallery-description { max-width: 50ch; color: var(--rail-ice); }
.architecture-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 23px 16px; }
.gallery-tile:first-child, .gallery-tile:last-child { grid-column: span 2; }
.gallery-tile a, .construction-gallery a { display: block; overflow: hidden; border-radius: 5px; }
.gallery-tile a { cursor: zoom-in; }
.gallery-tile img { width: 100%; height: clamp(165px,16vw,240px); object-fit: cover; transition: transform .24s; }
.gallery-tile:nth-child(2) img { object-position: center 55%; }
.gallery-tile figcaption { margin-top: 9px; color: var(--rail-white); font-size: .91rem; font-weight: 590; }
.gallery-credit { font-size: .86rem; color: var(--rail-ice); margin-top: 24px; }
.gallery-credit a { text-underline-offset: 3px; }
@media(hover:hover){ .gallery-tile a:hover img { transform: scale(1.025); } }

.construction-history { background: var(--rail-wash); }
.construction-history .section-heading { margin-bottom: 12px; }
.construction-history .section-note { color: var(--ink); }
.construction-intro { max-width: 78ch; margin-bottom: 25px; }
.construction-months { border-top: 1px solid var(--rail-line); }
.construction-month { border-bottom: 1px solid var(--rail-line); padding-block: 0; }
.construction-month summary, .restore-questions summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; font-weight: 665; font-size: 1.14rem; padding-block: 16px; }
.construction-month summary::-webkit-details-marker, .restore-questions summary::-webkit-details-marker { display: none; }
.construction-month summary::after, .restore-questions summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; font-weight: 480; color: var(--accent); }
.construction-month[open] summary::after, .restore-questions details[open] summary::after { content: "−"; }
.construction-photo-count { color: var(--muted); font-size: .85rem; font-weight: 550; }
.construction-update { margin-bottom: 16px; max-width: 88ch; font-size: .96rem; }
.construction-update .text-link { white-space: normal; }
.construction-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-bottom: 22px; }
.construction-gallery img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; }
.construction-gallery a { cursor: zoom-in; }
.construction-gallery figcaption { font-size: .88rem; font-weight: 575; margin-top: 6px; }
.construction-actions { margin-top: 24px; display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }

.restore-team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,3vw,48px); }
.restore-team-grid article { border-top: 1px solid var(--line); padding-top: 18px; }
.restore-team-grid p { margin: 10px 0; }
.restore-team-grid .text-link { display: inline-block; font-size: .9rem; }
.restore-faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: .62fr 1.38fr; align-items: start; gap: 30px; }
.restore-faq .section-heading { margin: 0; }
.restore-questions { border-top: 1px solid var(--line); }
.restore-questions details { border-bottom: 1px solid var(--line); }
.restore-questions p { margin: 0 28px 18px 0; }

body.viewer-open { overflow: hidden; }
.project-viewer { width: min(1150px,96vw); max-width: 96vw; max-height: 96dvh; border: 0; padding: clamp(10px,1.8vw,24px); border-radius: 8px; color: #fff; background: var(--rail-ink); }
.project-viewer::backdrop { background: rgba(2,55,96,.86); }
.viewer-head, .viewer-foot, .viewer-controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.viewer-count { font-size: .85rem; color: var(--rail-ice); }
.project-viewer button { border: 1px solid var(--rail-steel-light); border-radius: 5px; padding: 7px 13px; font: inherit; font-size: .9rem; color: white; background: transparent; }
.project-viewer button:hover { background: var(--rail-steel-light); }
.viewer-image { width: 100%; height: min(68dvh,780px); object-fit: contain; margin-block: 10px; }
.viewer-foot { font-size: .95rem; }
.viewer-controls { flex: none; }
.viewer-controls[hidden] { display: none; }

@media(max-width:900px) {
 .restore-location-grid, .restore-infra-grid { gap: 24px; }
 .gallery-description { max-width: 40ch; }
 .architecture-gallery .section-heading { flex-direction: column; gap: 15px; }
 .gallery-description { max-width: 72ch; }
 .restore-faq { grid-template-columns: 1fr; }
}
@media(max-width:680px) {
 .directory-row { display: grid; gap: 8px; padding-block: 16px; }
 .directory-links { gap: 3px 15px; }
 .directory-links a { font-size: .86rem; }
 .restore-location-grid, .restore-infra-grid, .restore-team-grid { grid-template-columns: 1fr; }
 .restore-location-info { order: -1; }
 .restore-location-info .btn { min-height: 44px; }
 .restore-distances { margin-bottom: 15px; }
 .architecture-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
 .gallery-tile img { height: auto; aspect-ratio: 1.27; }
 .gallery-tile:first-child img, .gallery-tile:last-child img { aspect-ratio: 2.12; }
 .gallery-tile figcaption { margin-top: 5px; font-size: .83rem; }
 .restore-questions summary { gap: 16px; font-size: 1.03rem; }
 .construction-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 10px; }
 .construction-gallery figure:first-child:nth-last-child(3) { grid-column: 1/-1; }
 .construction-gallery figure:first-child:nth-last-child(3) img { aspect-ratio: 1.85; }
 .construction-gallery figcaption { font-size: .81rem; }
 .construction-actions { align-items: start; flex-direction: column; }
 .viewer-foot { align-items: flex-start; flex-direction: column; }
 .viewer-foot p { margin: 0; }
 .viewer-image { height: min(60dvh,560px); }
}
