/* PROJECT DETAIL PAGE */
.pd-hero { position: relative; color: var(--white); background: var(--night); padding-top: var(--header-h); overflow: hidden; }
.pd-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 51, .55), rgba(8, 26, 51, .85)); }
.pd-hero__inner { position: relative; padding: 3rem 0 3.5rem; }
.pd-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .8rem 0 .3rem; }
.pd-hero p { margin: 0; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.75rem; font-size: .95rem; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a::after { content: "/"; margin-left: .35rem; opacity: .6; }
.crumbs [aria-current] { color: var(--sun); }

.pd-factbar { background: var(--night); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .14); }
.pd-factbar dl { margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pd-factbar dl > div { padding: 1.4rem 1.25rem 1.4rem 0; }
.pd-factbar dl > div + div { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.pd-factbar dt { font-size: .88rem; color: rgba(255, 255, 255, .7); }
.pd-factbar dd { margin: 0; font: 600 1.3rem/1.3 var(--font-head); color: var(--sun); }

.pd-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pd-main h2 { font-size: 1.55rem; margin-top: 2.5rem; }
.pd-main h2:first-child { margin-top: 0; }
.pd-main p { max-width: 68ch; color: #2b3b4c; }
.pd-list { list-style: none; display: grid; gap: .5rem; }
.pd-list li { position: relative; padding-left: 1.4rem; }
.pd-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .55rem; height: .55rem; background: var(--sun); border-radius: 50%; }
.pd-specs { width: 100%; border-collapse: collapse; }
.pd-specs th, .pd-specs td { text-align: left; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-specs th { width: 38%; font: 600 1rem/1.4 var(--font-head); color: var(--night); }
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.pd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: opacity .2s; }
.pd-gallery a:hover img { opacity: .85; }

.pd-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.pd-cta { background: var(--night); color: rgba(255, 255, 255, .88); padding: 1.6rem; border-radius: var(--radius); margin-bottom: 2rem; }
.pd-cta h3 { color: var(--white); font-size: 1.25rem; }
.pd-aside > h3 { font-size: 1.15rem; }
.pd-others { list-style: none; display: grid; gap: .8rem; }
.pd-others a { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: var(--night); }
.pd-others img { width: 84px; height: 60px; object-fit: cover; border-radius: 4px; flex: none; }
.pd-others strong { display: block; font: 600 1rem/1.3 var(--font-head); }
.pd-others small { color: var(--muted); font-size: .88rem; }
.pd-others a:hover strong { color: var(--panel); }

.pd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 4rem; }
.pd-pager a { display: block; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--night); transition: border-color .2s, background-color .2s; }
.pd-pager a:hover { border-color: var(--panel); background: var(--paper); }
.pd-pager small { display: block; color: var(--muted); font-size: .88rem; }
.pd-pager span { font: 600 1.15rem/1.3 var(--font-head); }
.pd-pager__next { text-align: right; }
.pd-missing { padding-top: calc(var(--header-h) + 5rem); }

@media (max-width: 900px) {
  .pd-body__grid { grid-template-columns: 1fr; }
  .pd-aside { position: static; }
}
@media (max-width: 520px) {
  .pd-factbar dl > div + div { border-left: 0; padding-left: 0; }
  .pd-pager { grid-template-columns: 1fr; }
  .pd-pager__next { text-align: left; }
}
