/* Meditations lesson. All rules scoped under .mdt-* */

.mdt-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mdt-q { width: 100%; max-width: 340px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; }
.mdt-q p { margin: 0; font: 500 16px/1.35 var(--serif); color: var(--text); }
.mdt-q small { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }

/* the notebook */
.mdt-book { position: relative; display: flex; width: 100%; max-width: 330px; perspective: 900px; }
.mdt-spine { width: 16px; border-radius: 10px 0 0 10px; background: linear-gradient(90deg, #5a3a22, #7a5234); box-shadow: inset -3px 0 4px rgba(0, 0, 0, .35); }
.mdt-page { flex: 1; min-height: 190px; padding: 18px 18px 14px; border-radius: 0 14px 14px 0; background: #f1e7d3; color: #2a1f14; box-shadow: 0 12px 30px rgba(0, 0, 0, .4), inset 8px 0 12px -8px rgba(90, 58, 34, .45); transform-origin: left center; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.mdt-txt { margin: 0; font: 500 18px/1.4 var(--serif); }
.mdt-txt em { font-style: normal; background: rgba(252, 192, 80, .35); border-radius: 4px; padding: 0 2px; }
.mdt-ref { font-size: 12px; font-weight: 700; color: #6b5a44; }
.mdt-u { background: none; color: #6a3fd0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

/* the view from above */
.mdt-z-sky { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.mdt-z-zoom { width: min(100%, 290px); aspect-ratio: 1; border-radius: 22px; background: radial-gradient(circle at 50% 45%, #1d1a3a, #0b0a18 75%); border: 1px solid var(--line); overflow: hidden; }
.mdt-z-cap { font-size: 14px; font-weight: 800; color: var(--gold); letter-spacing: .02em; min-height: 18px; }
.mdt-z-tent { fill: #4a3a5c; stroke: #8f78b8; stroke-width: 2; stroke-linejoin: round; }
.mdt-z-flap { fill: #3a2d4a; }
.mdt-z-tbl { fill: #7a5634; stroke: #7a5634; stroke-width: 4; }
.mdt-z-cloak { fill: #7b3fc7; }
.mdt-z-face { fill: #e8c39e; }
.mdt-z-laurel { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.mdt-z-page { fill: #f3e6c8; }
.mdt-z-lamp { fill: #b07a3a; }
.mdt-z-lampf { fill: #ffcf5a; }
.mdt-z-river { fill: #2a5bb8; opacity: .8; }
.mdt-z-tt { fill: #5a4a6e; stroke: #8f78b8; stroke-width: 1; }
.mdt-z-pole { stroke: #c9b7e8; stroke-width: 1.5; }
.mdt-z-flag { fill: #9b5cf0; }
.mdt-z-wall { fill: none; stroke: #8f78b8; stroke-width: 2; stroke-dasharray: 6 5; opacity: .6; }
.mdt-z-ocean { fill: #1d3f86; }
.mdt-z-land { fill: #3a3f5e; }
.mdt-z-emp { fill: #8a55e0; }
.mdt-z-sea { fill: #1d3f86; }
.mdt-z-ring { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 3 3; }
.mdt-z-here { fill: var(--gold); }
.mdt-z-cont { fill: #3f8a5a; opacity: .75; }
.mdt-z-star { fill: #fff; opacity: .7; }

/* where */
.mdt-map { position: relative; width: 100%; max-width: 340px; }
.mdt-map svg { width: 100%; display: block; border-radius: 18px; }
.mdt-land { fill: #2c3a2c; }
.mdt-riv { fill: none; stroke: #3f78d8; stroke-width: 7; stroke-linecap: round; }
.mdt-trib { stroke-width: 3.5; }
.mdt-rl { font: 700 13px var(--sans); fill: #c8d6ff; }
.mdt-rome { fill: none; stroke: #c8d6ff; stroke-width: 2; stroke-linecap: round; }
.mdt-pin circle { fill: var(--gold); stroke: #1a1026; stroke-width: 2; }
.mdt-lab { position: absolute; display: flex; flex-direction: column; padding: 4px 8px; border-radius: 10px; background: rgba(11, 10, 24, .82); max-width: 150px; }
.mdt-lab b { font: 600 13px/1.2 var(--serif); color: #f1e7d3; }
.mdt-lab small { font-size: 12px; color: var(--dim); }
.mdt-l1 { left: 8px; top: 96px; }
.mdt-l2 { right: 8px; top: 8px; }

/* why repeat */
.mdt-three { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 340px; }
.mdt-card { padding: 8px 12px; border-radius: 12px; background: #f1e7d3; color: #2a1f14; }
.mdt-card small { font-size: 12px; font-weight: 800; color: #6b5a44; }
.mdt-card p { margin: 2px 0 0; font: 500 15px/1.3 var(--serif); }
.mdt-kit { display: none; flex-direction: column; align-items: center; gap: 6px; animation: mdt-up .5s cubic-bezier(.2, .8, .2, 1); }
.mdt-kitup .mdt-kit { display: flex; }
.mdt-kitup .mdt-three { display: none; }
@keyframes mdt-up { from { opacity: 0; transform: translateY(10px); } }
.mdt-kit svg { width: 260px; height: 83px; }
.mdt-kit span { font-size: 13px; font-weight: 800; color: var(--gold); }
.mdt-roll { fill: #7a5234; stroke: #a8784e; stroke-width: 2; }
.mdt-loop { fill: #5a3a22; }
.mdt-tool { fill: #d8dce8; stroke: #d8dce8; stroke-width: 3; stroke-linecap: round; }

@media (max-height: 700px) {
  .mdt-z-zoom { width: 210px; }
  .mdt-page { min-height: 150px; padding: 12px 14px 10px; }
  .mdt-txt { font-size: 16px; }
  .mdt-card p { font-size: 14px; }
  .mdt-kit svg { width: 220px; height: 70px; }
}
