/* ============================================================
   Found — "The Golden Drops" archive page
   ============================================================ */

.found-page {
  --gold: #C6A15B;
  --gold-bright: #E8CD8A;
  --gold-dim: rgba(198, 161, 91, 0.55);
  min-height: 100vh;
  overflow-x: hidden;
}

.found-page .site-nav {
  position: absolute;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.found-page .nav-links a[aria-current="page"] {
  position: relative;
}
.found-page .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 1px;
  background: var(--gold, #C9A86A);
}

.found-main {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
  padding: 158px 0 clamp(90px, 10vw, 140px);
}

/* --- Layout: title | map | drop log --- */
.found-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.found-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.found-title {
  margin-top: 26px;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #F9F7F2 0%, #C9C4BD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.found-intro-copy {
  margin-top: 34px;
  max-width: 280px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Map --- */
.found-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1016.371 / 514.609;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.found-map-wrap.is-dragging {
  cursor: grabbing;
}

.found-map {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.found-map-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.found-map-grid text {
  fill: rgba(169, 164, 160, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.found-map-continents path {
  stroke: rgba(198, 161, 91, 0.3);
  stroke-width: 0.5;
  stroke-linejoin: round;
}

.found-glyph-lips {
  stroke: var(--gold);
  stroke-width: 1.8;
}

.found-glyph-eye {
  fill: #070707;
  stroke: var(--gold);
  stroke-width: 1.5;
}

.found-glyph-iris {
  fill: #B98CF0;
}

.found-glyph-highlight {
  fill: #F4F1EC;
  opacity: 0.9;
}

.found-glyph-pupil {
  fill: #070707;
}

.found-marker {
  cursor: pointer;
  transition: filter 0.25s ease;
}

.found-marker:hover .found-glyph-lips,
.found-marker:focus-visible .found-glyph-lips,
.found-marker.is-selected .found-glyph-lips,
.found-marker:hover .found-glyph-eye,
.found-marker:focus-visible .found-glyph-eye,
.found-marker.is-selected .found-glyph-eye {
  stroke: var(--gold-bright);
}

.found-marker:hover .found-glyph-iris,
.found-marker:focus-visible .found-glyph-iris,
.found-marker.is-selected .found-glyph-iris {
  fill: #d3c4ff;
}

.found-marker.is-selected {
  filter: drop-shadow(0 0 5px rgba(201, 168, 106, 0.55));
}

.found-marker:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 5px rgba(213, 154, 250, 0.6));
}

.found-cluster {
  cursor: pointer;
}

.found-cluster circle {
  fill: rgba(5, 5, 5, 0.92);
  stroke: var(--gold);
  stroke-width: 1.4;
  transition: stroke 0.2s ease;
}

.found-cluster text {
  fill: var(--gold-bright);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.found-cluster:hover circle,
.found-cluster:focus-visible circle {
  stroke: var(--gold-bright);
}

.found-cluster:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 5px rgba(213, 154, 250, 0.6));
}

.found-map-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.found-map-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 9, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.found-map-btn--reset {
  font-size: 0.85rem;
}

.found-map-btn:hover:not(:disabled),
.found-map-btn:focus-visible:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.found-map-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.found-callout {
  position: absolute;
  width: 190px;
  padding: 16px 18px;
  background: rgba(8, 8, 9, 0.88);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
}

.found-callout-id {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.found-callout-place {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.found-callout-label {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.found-callout-user {
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
}

.found-callout-time {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* --- Drop log --- */
.found-log {
  border-left: 1px solid var(--border);
  padding-left: clamp(20px, 2vw, 32px);
}

.found-log-head h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.found-log-meta {
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.found-log-list {
  list-style: none;
  margin-top: 22px;
}

.found-log-row + .found-log-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.found-log-empty {
  padding: 28px 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.found-log-entry {
  display: block;
  width: 100%;
  padding: 12px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.found-log-entry:hover,
.found-log-entry:focus-visible {
  background: rgba(255, 255, 255, 0.03);
}

.found-log-entry.is-selected {
  background: rgba(201, 168, 106, 0.06);
}

.found-log-line1 {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.found-log-id { color: var(--text-primary); }
.found-log-dot { margin: 0 7px; color: var(--text-secondary); }

.found-log-line2 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.found-log-user { color: var(--gold-bright); }
.found-log-datetime { color: var(--text-secondary); white-space: nowrap; }

.found-log-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.found-page-btn {
  width: 26px;
  height: 26px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.found-page-btn:hover:not(:disabled),
.found-page-btn:focus-visible:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.found-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --- How It Works --- */
.found-how {
  margin-top: clamp(90px, 10vw, 150px);
  text-align: center;
}

.found-how-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.found-how-steps {
  list-style: none;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.found-how-step {
  padding: 0 32px;
  position: relative;
}

.found-how-step + .found-how-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(141, 122, 232, 0.18);
}

.found-how-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  color: rgba(244, 241, 236, 0.75);
}

.found-how-mark {
  display: block;
  margin: 14px auto;
  width: 1px;
  height: 22px;
  background: rgba(141, 122, 232, 0.5);
  position: relative;
}

.found-how-mark::after {
  content: "+";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
}

.found-how-step h3 {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.found-how-step p {
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.found-page .lunatiq-chaos { margin-top: clamp(90px, 10vw, 150px); }

@media (prefers-reduced-motion: reduce) {
  .found-marker { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .found-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro intro"
      "map map"
      "log log";
  }
  .found-intro { grid-area: intro; }
  .found-map-wrap { grid-area: map; }
  .found-log {
    grid-area: log;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
  }
  .found-intro-copy { max-width: 420px; }
}

@media (max-width: 860px) {
  .found-page .site-nav { padding: 0 24px; }
  .found-main { width: 100%; padding: 118px 24px clamp(70px, 12vw, 110px); }
  .found-title { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .found-how-steps { grid-template-columns: 1fr; gap: 40px; }
  .found-how-step + .found-how-step::before { display: none; }
}

@media (max-width: 520px) {
  .found-log-line2 { flex-direction: column; gap: 2px; }
}
