/* ============================================================
   ORDER / DELIVERY DETAIL PAGE
   Used by /orders-deliveries/:id  (server-rendered)
   Loaded AFTER tokens.css + site-nav.css
   ============================================================ */

html, body { margin: 0; padding: 0; background: #0F1214; }
body {
  font-family: 'Barlow', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.page { max-width: 1440px; margin: 0 auto; background: #0F1214; }

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 24px 60px 0;
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: #6E788A; letter-spacing: .22em; text-transform: uppercase;
}
.breadcrumb a:hover { color: #E8B84B; }
.breadcrumb .sep { margin: 0 10px; color: #4A5060; }
.breadcrumb .here { color: #B0B8C4; }

/* ─── HERO STRIP ─── */
.hero {
  margin: 24px 60px 0;
  position: relative;
  background: #0A0C0F;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 2px solid var(--accent-primary);
}
.hero-photo {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.photo-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--rig-color, #7A0F0F) 0%, #0F1214 70%);
}
.photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
}
.photo-placeholder-label {
  position: absolute; left: 36px; bottom: 36px;
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,.4); letter-spacing: .22em; text-transform: uppercase;
  z-index: 2;
}

.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,20,.4) 0%, rgba(15,18,20,0) 30%, rgba(15,18,20,.0) 60%, rgba(15,18,20,.95) 100%);
  pointer-events: none;
}
.status-badge {
  position: absolute; top: 24px; left: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
}
.status-badge.delivered { background: var(--accent-primary); color: #fff; }
.status-badge.ordered { background: var(--accent-gold); color: #0F1214; }
.type-tag {
  position: absolute; top: 24px; right: 24px;
  padding: 8px 14px;
  background: rgba(10,12,15,.8); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #fff;
}
.unit-plate {
  position: absolute; right: 24px; bottom: 24px;
  background: #0A0C0F; border: 2px solid var(--accent-gold);
  padding: 10px 16px;
  display: flex; flex-direction: column; align-items: flex-end;
}
.unit-plate-l {
  font-family: 'Roboto Mono', monospace; font-size: 9px;
  color: var(--accent-gold); letter-spacing: .3em;
}
.unit-plate-n {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px;
  color: #fff; letter-spacing: .04em; line-height: 1;
  margin-top: 2px;
}

/* Identity row */
.identity {
  padding: 32px 36px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.identity-kicker {
  font-family: 'Roboto Mono', monospace; font-size: 11px;
  color: var(--accent-gold); letter-spacing: .3em;
  margin-bottom: 10px;
}
.identity-dept {
  font-family: 'Bebas Neue', sans-serif; font-size: 80px;
  line-height: .9; letter-spacing: .01em; color: #fff;
  text-transform: uppercase; margin: 0;
}
.identity-city {
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px;
  font-weight: 600; color: #B0B8C4;
  letter-spacing: .2em; text-transform: uppercase;
  margin-top: 14px;
}
.identity-facts {
  display: grid; grid-template-columns: repeat(2, minmax(150px, auto));
  gap: 28px 36px;
  padding: 18px 24px;
  background: #171C22;
  border-left: 3px solid var(--accent-gold);
}
.fact-l {
  font-family: 'Roboto Mono', monospace; font-size: 9px;
  color: var(--accent-gold); letter-spacing: .26em;
  margin-bottom: 6px; text-transform: uppercase;
}
.fact-v {
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px;
  font-weight: 700; color: #fff; line-height: 1;
}
.fact-v.big { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: .02em; }

/* ─── Section base ─── */
.section-eyebrow {
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: var(--accent-primary); letter-spacing: .3em;
  margin-bottom: 14px; text-transform: uppercase;
}
.section-h {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px;
  line-height: 1; letter-spacing: .01em; color: #fff;
  text-transform: uppercase; margin: 0;
}
.section-rule {
  width: 64px; height: 3px; background: var(--accent-primary);
  margin: 18px 0 28px;
}

/* ─── Two-column story block ─── */
.story {
  padding: 80px 60px 40px;
  display: grid; gap: 64px;
}
.story-aside {
  padding: 28px 24px;
  background: #171C22;
  border-left: 3px solid var(--accent-primary);
  align-self: start;
}
.joe-notes-eyebrow {
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: var(--accent-gold); letter-spacing: .3em;
  margin-bottom: 14px;
}
.joe-notes-h {
  font-family: 'Bebas Neue', sans-serif; font-size: 36px;
  letter-spacing: .02em; line-height: 1;
  margin: 0 0 18px;
}
.joe-notes-body {
  font-family: 'Barlow', sans-serif; font-size: 17px; line-height: 1.65;
  color: #D4DAE3;
}
.joe-notes-body p { margin: 0 0 14px; }

.aside-h {
  font-family: 'Roboto Mono', monospace; font-size: 9px;
  color: var(--accent-primary); letter-spacing: .3em;
  text-transform: uppercase; margin-bottom: 16px;
}
.aside-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.aside-row:first-of-type { border-top: none; padding-top: 4px; }
.aside-l {
  font-family: 'Roboto Mono', monospace; font-size: 9px;
  color: #9099AA; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 4px;
}
.aside-v {
  font-family: 'Barlow Condensed', sans-serif; font-size: 18px;
  font-weight: 600; color: #fff;
}
.aside-v.big { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: .02em; line-height: 1; }
.aside-sub {
  font-family: 'Barlow', sans-serif; font-size: 13px;
  color: #9099AA; margin-top: 4px;
}

/* ─── What it replaced ─── */
.replaced {
  margin: 0 60px;
  padding: 48px 48px 52px;
  background: #0A0C0F;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center;
}
.replaced-eyebrow {
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: #6E788A; letter-spacing: .3em; text-transform: uppercase;
}
.replaced-years {
  font-family: 'Bebas Neue', sans-serif; font-size: 96px;
  line-height: .9; color: var(--accent-gold); letter-spacing: .01em;
  margin-top: 8px;
}
.replaced-years-l {
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px;
  color: #9099AA; letter-spacing: .22em; text-transform: uppercase;
  margin-top: 4px;
}
.replaced-h {
  font-family: 'Bebas Neue', sans-serif; font-size: 40px;
  line-height: 1; letter-spacing: .01em; color: #fff;
  text-transform: uppercase; margin: 0;
}
.replaced-body {
  font-family: 'Barlow', sans-serif; font-size: 16px;
  line-height: 1.6; color: #B0B8C4; margin: 14px 0 0;
  max-width: 620px;
}

/* ─── Dept profile ─── */
.dept-profile {
  padding: 80px 60px 60px;
  display: grid; gap: 56px;
}
.dept-profile-right {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.08);
  align-self: start;
}
.dept-tile {
  background: #171C22; padding: 22px 22px;
}
.dept-tile-l {
  font-family: 'Roboto Mono', monospace; font-size: 9px;
  color: var(--accent-gold); letter-spacing: .22em; text-transform: uppercase;
}
.dept-tile-v {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px;
  color: #fff; letter-spacing: .02em; line-height: 1.05;
  margin-top: 8px;
}
.dept-prose {
  font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.7;
  color: #D4DAE3;
}
.dept-prose p { margin: 0 0 14px; }

/* ─── Quote (delivered only) ─── */
.quote {
  padding: 80px 60px;
  background: #0A0C0F;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.quote-mark {
  font-family: 'Bebas Neue', sans-serif; font-size: 96px;
  color: var(--accent-primary); line-height: 0.5; margin-bottom: 14px;
}
.quote-body {
  font-family: 'Bebas Neue', sans-serif; font-size: 52px;
  line-height: 1.05; letter-spacing: .01em; color: #fff;
  max-width: 1000px; margin: 0 auto;
}
.quote-attr {
  margin-top: 32px;
  font-family: 'Roboto Mono', monospace; font-size: 11px;
  color: var(--accent-gold); letter-spacing: .3em; text-transform: uppercase;
}

/* ─── Photo journal ─── */
.photos {
  padding: 80px 60px 40px;
}
.photos-grid {
  column-count: 3; column-gap: 8px;
}
.photo-tile {
  position: relative; overflow: hidden;
  background: #171C22;
  break-inside: avoid;
  margin-bottom: 8px;
}
.photo-tile img { width: 100%; height: auto; display: block; }
.photo-tile .photo-placeholder { position: relative; aspect-ratio: 4 / 3; }
.photo-tile .photo-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
}
.photo-tile .photo-cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-family: 'Roboto Mono', monospace; font-size: 9px;
  color: #fff; letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.photo-tile .photo-day-flag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 8px;
  background: var(--accent-gold); color: #0F1214;
  font-family: 'Barlow Condensed', sans-serif; font-size: 9px;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  z-index: 2;
}

/* ─── Lightbox (clickable / enlargeable photos) ─── */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 10, 12, .94);
  padding: 40px;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  cursor: zoom-out;
}
.lightbox-cap {
  position: absolute; left: 0; right: 0; bottom: 24px;
  text-align: center;
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: rgba(255, 255, 255, .82); letter-spacing: .22em; text-transform: uppercase;
  padding: 0 40px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 30px; line-height: 1;
  opacity: .7; transition: opacity .15s ease;
}
.lightbox-close:hover { opacity: 1; }
@media (max-width: 700px) {
  .lightbox { padding: 16px; }
}

/* ─── Request specs CTA ─── */
.cta-strip {
  margin: 60px 60px 0;
  background: linear-gradient(135deg, var(--rig-color, #7A0F0F) 0%, #0F1214 100%);
  padding: 56px 48px;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.cta-strip-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.cta-eyebrow {
  font-family: 'Roboto Mono', monospace; font-size: 11px;
  color: var(--accent-gold); letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 12px;
}
.cta-h {
  font-family: 'Bebas Neue', sans-serif; font-size: 56px;
  line-height: 1; letter-spacing: .01em; color: #fff;
  text-transform: uppercase; margin: 0;
}
.cta-sub {
  font-family: 'Barlow', sans-serif; font-size: 16px;
  color: #D4DAE3; margin: 14px 0 0; max-width: 520px; line-height: 1.55;
}
.cta-btns {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 240px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
}
.btn-primary {
  background: var(--accent-primary); color: #fff; border-color: var(--accent-primary);
}
.btn-primary:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.3);
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.05); }

/* ─── More like this ─── */
.more {
  padding: 80px 60px 60px;
}
.more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 32px;
}
.more-card {
  background: #171C22;
  border-left: 3px solid var(--card-accent, var(--accent-primary));
  transition: transform .15s ease, background .15s ease;
  text-decoration: none;
}
.more-card:hover { background: #1D232B; transform: translateY(-2px); }
.more-card-photo {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--card-color, #4A1010) 0%, #0F1214 75%);
}
.more-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.more-card-photo::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
}
.more-card-status {
  position: absolute; top: 0; right: 0;
  padding: 5px 10px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 9px;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.more-card-status.delivered { background: var(--accent-primary); color: #fff; }
.more-card-status.ordered { background: var(--accent-gold); color: #0F1214; }
.more-card-body { padding: 18px 20px 22px; }
.more-card-dept {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  line-height: 1; color: #fff; text-transform: uppercase;
  letter-spacing: .01em;
}
.more-card-meta {
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: #9099AA; letter-spacing: .16em;
  margin-top: 5px;
}
.more-card-spec {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 14px; padding-top: 14px;
}
.more-card-spec-l {
  font-family: 'Roboto Mono', monospace; font-size: 8px;
  color: var(--accent-gold); letter-spacing: .22em;
}
.more-card-spec-v {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  font-weight: 600; color: #fff; margin-top: 3px;
}

/* ─── Permalink ─── */
.permalink {
  margin: 60px 60px 0;
  padding: 24px 28px;
  background: #0A0C0F;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 18px;
  font-family: 'Roboto Mono', monospace; font-size: 11px;
  color: #9099AA; letter-spacing: .14em;
}
.permalink-url {
  color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.15);
  padding: 8px 14px; color: #B0B8C4;
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer;
}
.copy-btn:hover { color: #fff; border-color: #fff; }

/* ─── Footer ─── */
.footer {
  background: #0A0C0F;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 48px 60px;
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  letter-spacing: .14em;
}
.footer-meta {
  font-family: 'Roboto Mono', monospace; font-size: 10px;
  color: #6E788A; letter-spacing: .16em;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .breadcrumb { padding: 16px 24px 0; }
  .hero { margin: 16px 24px 0; }
  .hero-photo { height: 320px; }
  .identity { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .identity-dept { font-size: 48px; }
  .identity-facts { padding: 16px 18px; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .story, .dept-profile, .photos, .more {
    padding-left: 24px; padding-right: 24px; padding-top: 48px;
  }
  .story { grid-template-columns: 1fr !important; gap: 32px; }
  .replaced {
    margin: 0 24px; padding: 32px 24px;
    grid-template-columns: 1fr; gap: 20px;
  }
  .replaced-years { font-size: 72px; }
  .dept-profile { grid-template-columns: 1fr !important; }
  .quote { padding: 56px 24px; }
  .quote-body { font-size: 32px; }
  .cta-strip { margin: 48px 24px 0; padding: 36px 28px; }
  .cta-strip-inner { grid-template-columns: 1fr; }
  .cta-h { font-size: 36px; }
  .photos-grid { column-count: 1; }
  .more-grid { grid-template-columns: 1fr; }
  .permalink { margin: 48px 24px 0; padding: 20px 22px; flex-wrap: wrap; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 16px; text-align: center; }
}
