/* Public directory pages (/people/*, /stores/*). Tokens, buttons, pills and the grain cover come from site.css;
   this file only lays out the profile, store and list pages. */

.dirpage { background: var(--bg) }

.d-hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(14, 20, 36, .88);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .08) }
.d-hdr .nav { padding-block: 12px }

.d-main { padding-block: 22px 56px; display: flex; flex-direction: column; gap: 16px }

.d-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0 }
.d-crumbs a { color: var(--muted); text-decoration: none }
.d-crumbs a:hover { color: var(--ink) }
.d-crumbs span:last-child { color: var(--ink); overflow-wrap: anywhere }
.d-sep { color: var(--line) }

.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 16px; align-items: start }
@media (max-width: 1000px) { .d-grid { grid-template-columns: minmax(0, 1fr) } }
.d-col, .d-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
@media (min-width: 1001px) { .d-aside { position: sticky; top: 86px } }

.d-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.d-card > h2 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere }
.d-card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px }
.d-card-h h2 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere }
.d-checked { font-size: 12.5px; white-space: nowrap }
.d-about { line-height: 1.62; overflow-wrap: anywhere }
.d-note { font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 10px }

/* ---- the head card */
.d-head { flex-direction: row; align-items: flex-start; gap: 18px; padding: 26px 22px }
.d-avatar { width: 62px; height: 62px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 600; font-size: 21px }
.d-head-t { min-width: 0; display: flex; flex-direction: column; gap: 5px }
.d-head-t h1 { font-family: var(--display); font-size: clamp(27px, 4vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere }
.d-sub { font-size: 16.5px; overflow-wrap: anywhere }
.d-sub a { font-weight: 600; text-decoration: none }
.d-sub a:hover { text-decoration: underline }
.d-where { font-size: 13.5px }
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
.d-badges .pill { display: inline-flex; align-items: center; gap: 4px }
.d-tick { width: 11px; height: 11px }

/* ---- the masked contact table */
.d-contact { padding: 0; gap: 0 }
.d-contact .d-card-h { padding: 15px 22px; border-bottom: 1px solid var(--line); background: var(--head); border-radius: 16px 16px 0 0 }
.d-rows { display: flex; flex-direction: column }
.d-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px }
.d-row + .d-row { border-top: 1px solid var(--line) }
.d-row-k { min-width: 0; display: flex; flex-direction: column; gap: 3px }
.d-row-k .label { color: var(--muted) }
.d-val { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; overflow-wrap: anywhere }
.d-empty { padding: 18px 22px; font-size: 14px }

.d-rev { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 7px 11px; font-size: 12.5px; font-weight: 600 }
.d-rev:hover { border-color: var(--iris); background: var(--accent-soft) }
.d-lock { width: 13px; height: 13px; color: var(--muted) }

.d-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; border-top: 1px solid var(--line); background: var(--accent-soft); border-radius: 0 0 16px 16px }
.d-band p { font-size: 14.5px; max-width: 62ch }
.d-rev-main { flex: none }

/* ---- colleagues */
.d-people { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px }
.d-people a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; min-width: 0 }
.d-people a:hover { border-color: var(--iris); background: var(--soft) }
.d-chip { width: 32px; height: 32px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 600 }
.d-who { min-width: 0; display: flex; flex-direction: column }
.d-who b, .d-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.d-who span { font-size: 12.5px }

/* ---- facts */
.d-facts { margin: 4px 0 0; display: flex; flex-direction: column; gap: 0 }
.d-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px }
.d-facts dt { color: var(--muted) }
.d-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere }
.d-facts-wide > div { font-size: 14.5px; padding: 9px 0 }

/* ---- the works-at card */
.d-store { color: #F3F5FA; border: 0; padding: 22px }
.d-store .label { color: rgba(243, 245, 250, .62) }
.d-store-n { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere }
.d-store-n a { color: #fff; text-decoration: none }
.d-store-n a:hover { text-decoration: underline }
.d-store .d-facts > div { border-top-color: rgba(255, 255, 255, .15) }
.d-store .d-facts dt { color: rgba(243, 245, 250, .62) }
.d-store .d-facts dd { color: #fff }
.d-store .d-rev { margin-top: 14px; justify-content: center; width: 100%; background: #fff; color: var(--night); border-color: transparent }
.d-store .d-rev:hover { background: var(--ice) }
.d-store .d-lock { color: var(--iris-deep) }

.d-trial { gap: 7px }
.d-trial .btn { margin-top: 8px; justify-content: center }
.d-remove { font-size: 12.5px; padding-inline: 2px }
.d-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px }
.d-links a { text-decoration: none; font-weight: 600 }
.d-links a:hover { text-decoration: underline }
.d-links-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px 18px }

/* ---- the store page's people table */
.d-tablewrap { overflow-x: auto }
.d-table { width: 100%; border-collapse: collapse; font-size: 14px }
.d-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 22px; background: var(--head); white-space: nowrap }
.d-table td { padding: 11px 22px; border-top: 1px solid var(--line); vertical-align: middle }
.d-table td a { font-weight: 600; text-decoration: none }
.d-table td a:hover { text-decoration: underline }
.d-table tr:hover td { background: var(--soft) }

/* ---- hub pages */
.d-hubhead h1 { font-family: var(--display); font-size: clamp(28px, 4.2vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1.06 }
.d-hubhead .btn { align-self: flex-start; margin-top: 6px }
.d-counted { font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px }
.d-tiles { margin-top: 4px }
.d-tile { text-decoration: none; color: inherit; gap: 7px }
.d-tile:hover { border-color: var(--iris) }
.d-tile-m { font-size: 12.5px }
.d-tile .store .nm { overflow-wrap: anywhere }

/* ---- FAQs */
.d-faqs { display: flex; flex-direction: column }
.d-faqs details { border-top: 1px solid var(--line) }
.d-faqs details:first-child { border-top: 0 }
.d-faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; cursor: pointer;
  font-weight: 600; list-style: none; overflow-wrap: anywhere }
.d-faqs summary::-webkit-details-marker { display: none }
.d-faqs summary span { color: var(--muted); flex: none; transition: transform .18s ease }
.d-faqs details[open] summary span { transform: rotate(45deg) }
.d-faqs details p { padding-bottom: 14px; color: var(--muted); line-height: 1.62; overflow-wrap: anywhere }

/* ---- small pages (404, the hold page) */
.d-simple { align-items: center; text-align: center; padding-block: clamp(60px, 14vh, 140px) }
.d-simple h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -.035em }
.d-simple p { max-width: 54ch }
.d-simple .btn { margin-top: 12px }

/* ---- the honeypot: out of sight, out of the tab order, never read aloud */
.d-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* ---- the reveal gate */
.d-gate { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px }
.d-gate[hidden] { display: none }
.d-gate-bg { position: absolute; inset: 0; background: rgba(27, 36, 64, .46); backdrop-filter: blur(2px) }
.d-gate-box { position: relative; width: min(430px, 100%); background: var(--panel); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(27, 36, 64, .6) }
.d-gate-x { position: absolute; right: 10px; top: 10px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer }
.d-gate-x:hover { background: var(--soft); color: var(--ink) }
.d-gate-p { display: flex; flex-direction: column; gap: 9px; padding: 24px }
.d-gate-p h2 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.03em }
.d-gate-p .btn { justify-content: center; margin-top: 6px }
.d-hold { position: relative; margin-top: 10px; height: 54px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
  font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; overflow: hidden; touch-action: none; user-select: none }
.d-hold [data-fill] { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--citron) }
.d-hold [data-label] { position: relative }
.d-hint { font-size: 12.5px; text-align: center }
.d-wall-top { margin: -24px -24px 6px; padding: 22px 24px; color: #F3F5FA; display: flex; flex-direction: column; gap: 8px }
.d-wall-top .label { color: rgba(243, 245, 250, .7) }
.d-wall-top h2 { color: #fff; outline: 0 }
.d-wall-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; font-size: 13.5px }
.d-wall-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 9px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16) }
.d-wall-rows span:first-child { color: rgba(243, 245, 250, .72) }
.d-wall-rows span:last-child { font-family: var(--mono); font-size: 12.5px }

/* the store tiles put the name and the domain on their own lines (site.css leaves .nm/.dm inline) */
.d-tile .store { align-items: flex-start }
.d-tile .store .nm, .d-tile .store .dm { display: block; overflow-wrap: anywhere }

/* the people table scrolls rather than wrapping a masked address across two lines */
.d-table td, .d-table th { white-space: nowrap }
.d-table td:nth-child(2) { white-space: normal; min-width: 9rem }

/* the close button has to read on the white hold step and on the dark wall alike */
.d-gate-x { background: rgba(127, 127, 127, .18) }
