/* =========================================================
   Department full docs (WSP, WisDOT). Night theme; shared bar/signal/close: night.css.
   Photo opener, about (Daylight), units/services (night), path (night),
   perks (Daylight), photo strip (night), how to join (Daylight), green close.
   ========================================================= */

.dd-h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.dd-sub { margin: 0.8rem 0 0; max-width: 52ch; font-size: 1.08rem; color: var(--muted); }

/* ---------- Opener ---------- */
.dd-hero { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: clip; background: var(--night); color: #fff; }
.dd-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dd-hero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 15, 20, 0.97) 0%, rgba(11, 15, 20, 0.72) 45%, rgba(11, 15, 20, 0.15) 85%); }
@media (max-width: 700px) { .dd-hero-scrim { background: linear-gradient(0deg, rgba(11, 15, 20, 0.97) 0%, rgba(11, 15, 20, 0.85) 55%, rgba(11, 15, 20, 0.35) 100%); } }
.dd-hero-copy { position: relative; z-index: 2; padding-block: clamp(96px, 16svh, 160px) clamp(40px, 7svh, 72px); }
.dd-back { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 1.4rem; font-weight: 600; font-size: 0.95rem; color: #dde3ea; text-decoration: none; }
.dd-back:hover { color: #fff; }
.dd-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1rem; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 700; }
.dd-badge img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.dd-title { margin: 0; max-width: 12ch; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.05em; color: #fff; }
.dd-title span { color: var(--sc-accent); }
.dd-lead { margin: 1.2rem 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dde3ea; }
.dd-hero .btn-row { margin-top: 1.8rem; }
@media (prefers-reduced-motion: no-preference) { .dd-hero-img { animation: dd-settle 1.6s var(--sc-ease-out) both; } }
@keyframes dd-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- About (Daylight) ---------- */
.dd-about { background: var(--bg); padding-block: clamp(64px, 10vw, 120px); }
.dd-about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.dd-p { margin: 1.1rem 0 0; max-width: 56ch; font-size: 1.1rem; color: var(--muted); }
.dd-about-media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dd-about-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .dd-about-grid { grid-template-columns: 1fr; } }

/* ---------- Units / services (night) ---------- */
.dd-units, .dd-path, .dd-gallery { background: var(--night); color: var(--night-ink); }
.dd-units { padding-block: clamp(64px, 10vw, 120px) clamp(40px, 6vw, 72px); }
.dd-units .dd-h2, .dd-path .dd-h2 { color: #fff; }
.dd-units .dd-sub, .dd-path .dd-sub { color: var(--night-soft); }
.dd-unit-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin: 2.2rem 0 0; padding: 0; }
.dd-unit { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #141a22; border: 1px solid rgba(255, 255, 255, 0.08); }
.dd-unit-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.dd-unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--sc-ease-out); }
.dd-unit:hover .dd-unit-media img { transform: scale(1.04); }
.dd-unit-body { padding: 20px 22px 24px; }
.dd-unit-unlock { display: inline-block; margin: 0 0 0.7rem; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: rgba(236, 109, 77, 0.16); color: #f5a48f; }
.dd-unit-name { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; color: #fff; }
.dd-unit-text { margin: 0.45rem 0 0; color: var(--night-soft); }
.dd-unit--icon { justify-content: flex-start; }
.dd-unit-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 22px 22px 0; border-radius: 16px; background: rgba(236, 109, 77, 0.14); color: var(--sc-accent); font-size: 1.6rem; }
.dd-unit--icon .dd-unit-body { padding-top: 16px; }
/* Four photo cards: two by two, so there is no lone card on its own row. */
@media (min-width: 701px) { .dd-unit-list--pairs { grid-template-columns: repeat(2, 1fr); } }
/* All-icon lists (DOT services): a tighter four-up grid. */
.dd-unit-list--icons { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 600px) {
  .dd-unit-list--icons { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dd-unit-list--icons .dd-unit-icon { width: 44px; height: 44px; margin: 16px 16px 0; border-radius: 12px; font-size: 1.3rem; }
  .dd-unit-list--icons .dd-unit-body { padding: 12px 16px 18px; }
  .dd-unit-list--icons .dd-unit-name { font-size: 1.05rem; }
  .dd-unit-list--icons .dd-unit-text { font-size: 0.9rem; }
}

/* ---------- Progression path (night) ---------- */
.dd-path { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 10vw, 120px); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.dd-note { margin: 1.4rem 0 0; color: var(--night-soft); font-size: 0.98rem; }

/* Numbered steps (used on night and on Daylight cards). */
.dd-steps { list-style: none; counter-reset: dd; display: grid; gap: 14px; margin: 1.2rem 0 0; padding: 0; }
.dd-steps li { counter-increment: dd; position: relative; display: grid; gap: 2px; padding-left: 50px; min-height: 36px; }
.dd-steps li::before { content: counter(dd); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--sc-font-display); font-weight: 800; background: var(--accent-fill, var(--sc-accent)); color: #1a0d08; }
.dd-steps strong { font-size: 1.05rem; }
.dd-steps span { color: var(--muted); }
.dd-steps--path { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2.2rem; }
.dd-steps--path li { padding: 64px 22px 24px; border-radius: var(--radius); background: #141a22; border: 1px solid rgba(255, 255, 255, 0.08); }
.dd-steps--path li::before { left: 22px; top: 20px; }
.dd-steps--path strong { color: #fff; font-size: 1.2rem; }
.dd-steps--path span { color: var(--night-soft); }
@media (max-width: 860px) { .dd-steps--path { grid-template-columns: 1fr; } }

/* ---------- Perks (Daylight) ---------- */
.dd-perks { background: var(--bg); padding-block: clamp(64px, 10vw, 120px); }
.dd-perk-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px clamp(24px, 5vw, 64px); margin: 2rem 0 0; padding: 0; }
.dd-perk-list li { display: flex; gap: 14px; align-items: flex-start; }
.dd-perk-list .icon { flex: none; margin-top: 0.25em; color: var(--accent); font-size: 1.15rem; }
.dd-perk-list strong { display: block; font-size: 1.08rem; }
.dd-perk-list span { display: block; margin-top: 2px; color: var(--muted); }
@media (max-width: 700px) { .dd-perk-list { grid-template-columns: 1fr; } }

/* ---------- Photo strip (night) ---------- */
.dd-gallery { padding-block: 18px; }
.dd-strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0 10px; }
.dd-strip li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.dd-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .dd-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- How to join (Daylight) ---------- */
.dd-join { background: var(--bg); padding-block: clamp(64px, 10vw, 120px); }
.dd-join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 2rem; }
.dd-card { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.dd-card h3 { margin: 0; font-size: 1.3rem; }
.dd-checks { list-style: none; display: grid; gap: 12px; margin: 1.2rem 0 0; padding: 0; }
.dd-checks li { display: flex; gap: 10px; align-items: flex-start; }
.dd-checks .icon { flex: none; margin-top: 0.22em; color: var(--accent); }
.dd-card .btn-row { margin-top: 1.6rem; }
@media (max-width: 860px) { .dd-join-grid { grid-template-columns: 1fr; } }
