.home-nav {
  position: fixed; top: 1.25rem; left: 1.5rem; z-index: 150;
  font-family: var(--font-sans); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(216,206,184,0.45); text-decoration: none;
  transition: color 0.2s ease;
}
.home-nav:hover { color: var(--gold); }

html, body { overflow-y: auto; }
/* Page itself stays dark/photographic like the rest of the site (homepage
   included) — only the reading-related content sits in cream "boxes" on
   top of it, matching how .reading-card floats over a homepage photo. */
body {
  background-image:
    linear-gradient(rgba(10,5,2,0.72), rgba(10,5,2,0.72)),
    url('/images/backgrounds/reading-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Auth overlay — built by dashboard.js, mirrors gate.js's #gate-overlay ── */
#dash-overlay {
  position: fixed; inset: 0; z-index: 100;
  background-image:
    linear-gradient(rgba(10,5,2,0.78), rgba(10,5,2,0.78)),
    url('/my-readings/background.webp');
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
  overflow-y: auto;
}

.dash-shell {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 3rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}

.dash-eyebrow {
  font-family: var(--font-sans); font-size: 0.55rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold);
}

.dash-title {
  font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300; color: var(--cream);
}

.dash-body {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  color: rgba(216,206,184,0.8); line-height: 1.6;
}

.dash-h2 {
  font-family: var(--font-serif); font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 300;
  color: var(--cream); margin-bottom: 1rem;
}

.dash-section { display: flex; flex-direction: column; }

.dash-dog-hero { margin-top: -1.25rem; }
.dash-dog-hero-label {
  font-family: var(--font-sans); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 0.3rem;
}
.dash-dog-hero-name {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--cream); font-weight: 300;
}

.dash-explore-wrap {
  position: relative;
  height: 620px;
  background: rgba(21,14,1,0.35);
  border: 1px solid rgba(201,169,122,0.2);
  overflow: hidden;
}
.dash-explore-intro {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; text-align: center; padding: 2rem;
  transition: opacity 0.5s ease;
}
.dash-explore-intro .dash-body { max-width: 480px; }
@media (max-width: 768px) {
  .dash-explore-wrap { height: 520px; }
  .dash-shell { padding: 1.5rem 1.25rem; }
  .dash-review-inner { padding: 2rem 1rem; }
}

.dash-empty {
  font-family: var(--font-sans); font-size: 0.8rem;
  color: rgba(216,206,184,0.5);
}

.dash-dog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.dash-dog-card {
  background: rgba(250,248,245,0.7); border: 1px solid rgba(201,169,122,0.45);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.3rem;
}

.dash-dog-name { font-family: var(--font-serif); font-size: 1.1rem; color: #2A1A0E; }
.dash-dog-meta { font-family: var(--font-sans); font-size: 0.65rem; color: rgba(30,15,5,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

.dash-reading-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.dash-reading-card {
  background: rgba(250,248,245,0.91);
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  text-align: left; cursor: pointer;
  border-radius: 20px;
  border: 2px solid rgba(201,169,122,0.65);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}
.dash-reading-card:hover {
  background-color: rgba(240,235,227,0.82);
  box-shadow: 0 10px 36px rgba(0,0,0,0.6);
}
.dash-reading-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 600;
  color: #2A1A0E; margin-bottom: 0.6rem; line-height: 1.2;
}
.dash-reading-card p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.35vw, 1.3rem); font-weight: 400; line-height: 1.6;
  color: rgba(30,15,5,0.75);
}
.dash-reading-card .reading-cta {
  margin-top: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: #2A1A0E; font-weight: 600;
}

.dash-history { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-history-item {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: rgba(250,248,245,0.7); border: 1px solid rgba(201,169,122,0.4);
  padding: 0.85rem 1rem; cursor: pointer; text-align: left;
  font-family: var(--font-sans); color: #2A1A0E;
  transition: border-color 0.2s ease;
}
.dash-history-item:hover { border-color: #7a5a1e; }
.dash-history-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dash-history-dog { font-weight: 600; flex: 1; }
.dash-history-type { flex: 1; color: rgba(30,15,5,0.55); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-history-date { font-size: 0.7rem; color: rgba(30,15,5,0.4); }
.dash-history-question {
  font-family: var(--font-serif); font-style: italic; font-size: 1rem;
  color: rgba(30,15,5,0.6); line-height: 1.4;
}

.dash-review-overlay {
  position: fixed; inset: 0; z-index: 120;
  background-image:
    linear-gradient(rgba(10,5,2,0.78), rgba(10,5,2,0.78)),
    url('/images/backgrounds/reading-background.webp');
  background-size: cover; background-position: center;
  overflow-y: auto;
  padding: 5rem 1.5rem 4rem;
  display: flex; flex-direction: column; align-items: center;
}

/* The review content is its own cream "box" floating on the dark backdrop —
   same idea as .reading-card floating on a homepage photo — rather than the
   whole screen going light. */
.dash-review-inner {
  max-width: 900px; width: 100%;
  background: rgba(250,248,245,0.95);
  border: 1px solid rgba(201,169,122,0.4);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.dash-review-inner .dash-eyebrow { color: #7a5a1e; }
.dash-review-inner .dash-modal-date { text-align: center; }

/* Buttons inside the cream review box sit dark-on-cream instead of
   .gate-btn-primary's default cream-on-dark (reading-shell.css). */
.dash-shell .gate-btn-primary,
.dash-review-inner .gate-btn-primary {
  background: #2A1A0E; color: var(--cream);
}
.dash-review-cards-text {
  width: 100%; max-width: 680px;
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-top: 1rem;
}
.dash-card-wrap {
  width: clamp(72px,8.5vw,120px);
  height: clamp(124px,14.7vw,208px);
  position: relative;
}
/* The base card in a cross-pair sits in a square container wider than
   itself (CARD_H × CARD_H, so the rotated crossing card fits) — without
   this it just sits at the container's top-left in normal flow instead of
   being centered. Matches reading-engine.js's slot0 treatment exactly. */
.dash-card-wrap.dash-base-card {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
}

/* Centers the crossing card on top of the card beneath it and rotates it
   90deg. Centered via negative margins (a layout property, resolved before
   any transform) rather than translate(-50%,-50%) combined with rotate() —
   combining those two in one transform list rotates the translate's own
   direction too, pushing the box off-center diagonally instead of centering
   it. Margin-based centering plus a lone rotate() avoids that entirely,
   since rotating around an element's own center (the default transform
   origin) never moves that center. Deliberately not reusing
   reading-shell.css's .crossing-slot, which stretches to fill the square
   container via inset:0 and would distort the card instead of rotating it. */
.dash-card-wrap.dash-crossing-card {
  position: absolute; top: 50%; left: 50%;
  margin-top: calc(-1 * clamp(124px,14.7vw,208px) / 2);
  margin-left: calc(-1 * clamp(72px,8.5vw,120px) / 2);
  transform: rotate(90deg);
}
.dash-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.dash-card-img.reversed { transform: rotate(180deg); }
.dash-modal-question {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: rgba(30,15,5,0.75); text-align: center; max-width: 560px;
}

.dash-modal-date { font-family: var(--font-sans); font-size: 0.7rem; color: rgba(30,15,5,0.5); }
.dash-modal-card { display: flex; flex-direction: column; gap: 0.3rem; }
.dash-modal-card-position { font-family: var(--font-sans); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: #7a5a1e; }
.dash-modal-card-text { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.3vw, 1.25rem); color: rgba(30,15,5,0.8); line-height: 1.7; }
.dash-modal-card-text p + p { margin-top: 1.25rem; }
.dash-modal-synthesis { border-top: 1px solid rgba(201,169,122,0.4); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
