/* The personal projection page. Rules: short lines, aligned fields, nothing overflows its box. */
.report-page { background: var(--paper); }
.on-dark { color: rgba(255, 255, 255, .72) !important; }
.brand.on-dark { color: #fff !important; }
.brand.on-dark .logo-mark { color: var(--yellow); }

.r-loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--navy); color: #fff; z-index: 5; }
.r-loading .logo-mark { color: var(--yellow); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.r-missing { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.r-missing .card { max-width: 520px; }

/* ---------- Hero ---------- */
.r-hero { background: radial-gradient(110% 130% at 100% 0%, var(--navy-3) 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #fff; padding: 16px 0 84px; position: relative; overflow: hidden; }
.r-hero::after { content: ''; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(252,210,0,.16), transparent 70%); pointer-events: none; }
.r-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 30px; position: relative; z-index: 1; }
.r-actions { display: flex; align-items: center; gap: 10px; }
.presenter-tag { background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; position: relative; z-index: 1; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px; } }
.hero-grid { margin-top: 24px; }
.r-hero h1, .r-sub, .r-hero .eyebrow { position: relative; z-index: 1; }
.hero-copy { min-width: 0; }
.r-kicker { position: relative; z-index: 1; margin: 0 0 2px; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.8); font-weight: 500; }
.r-hero h1 { color: #fff; font-size: clamp(52px, 8vw, 88px); line-height: .95; white-space: nowrap; }
.r-hero h1 em { font-style: normal; color: var(--yellow); }
.r-sub { color: rgba(255,255,255,.72); margin: 14px 0 0; font-size: 16px; }
.route-pills { display: grid; gap: 8px; }
.rp { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 14px; }
.rp i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.rp span { flex: 1; min-width: 0; font-size: 14.5px; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp b { font-family: var(--display); font-weight: 800; font-size: 22px; font-stretch: 88%; white-space: nowrap; }
.rp.is-key { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.rp.is-key span { color: rgba(10,18,73,.75); }
.hero-chart { min-width: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px 16px 10px; }
.hero-chart .legend { margin: 0 0 6px; }

/* ---------- Numbers bar: every field the same height and baseline ---------- */
.nbar { position: relative; z-index: 2; margin-top: -52px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: var(--border); padding: 14px 16px; }
@media (min-width: 720px) { .nbar { padding: 18px 22px; } }
.nbar-head { display: flex; align-items: center; gap: 12px; }
.nbar-head h3 { font-size: 17px; white-space: nowrap; }
.nbar-sum { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbar-grid { display: none; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.nbar.is-open .nbar-grid { display: grid; }
@media (min-width: 900px) {
  .nbar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .nbar-sum, #adjustToggle { display: none; }
}
.nf { display: block; background: var(--paper); border-radius: 14px; padding: 9px 14px; border: 1.5px solid transparent; transition: border-color .2s, background .2s; cursor: text; min-width: 0; }
.nf:focus-within { border-color: var(--navy); background: #fff; }
.nf > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.nf-v { display: flex; align-items: center; height: 30px; gap: 2px; }
.nf-v em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 22px; font-stretch: 88%; line-height: 1; }
.nf-v input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-family: var(--display); font-weight: 800; font-size: 22px; font-stretch: 88%; line-height: 1; height: 30px; color: var(--navy); padding: 0; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.r-section { padding: 40px 0; }
@media (min-width: 720px) { .r-section { padding: 56px 0; } }
.r-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.r-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.r-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 20px; }

.vis { background: #fff; border-radius: var(--radius); border: var(--border); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
@media (min-width: 720px) { .vis { padding: 24px 26px; } }
.vis-dark { background: radial-gradient(120% 90% at 100% 0%, var(--navy-3) 0%, var(--navy) 50%, var(--navy-deep) 100%); border: 0; box-shadow: var(--shadow-lg); color: #fff; }
.vis-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.vis-lab { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.chart-lab { margin-top: 18px; }
.vis-num span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.vis-num b { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(34px, 5vw, 50px); line-height: 1; color: var(--navy); background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 4px; white-space: nowrap; }
@media (min-width: 640px) { .vis-num { text-align: right; } }
.note { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--muted); }
.note::before { content: 'i'; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font: italic 700 12px/20px Georgia, serif; text-align: center; }
.note.on-dark { background: rgba(255,255,255,.07); color: rgba(255,255,255,.78); }
.note.on-dark::before { background: var(--yellow); color: var(--navy); }

.seg { display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--grey-100); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--muted); line-height: 1.2; }
.seg button small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.seg button.is-on { background: var(--navy); color: #fff; }
.legend-light { margin: 0 0 8px; }
.legend-light .legend-item { color: var(--muted); }
.legend-light .legend-item b { color: var(--navy); }
.legend-light .legend-when { color: var(--grey-500); }

/* ---------- Lookups: compact, one row on desktop ---------- */
.lookup { display: grid; gap: 14px; grid-template-columns: 1fr; background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
@media (min-width: 960px) { .lookup { grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 18px 22px; } }
.lookup > * { min-width: 0; }
.lk-ask { display: grid; gap: 10px; }
.lk-age { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--grey-200); border-radius: 14px; padding: 4px 14px; height: 52px; width: max-content; }
.lk-age:focus-within { border-color: var(--navy); background: #fff; }
.lk-age span { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lk-age input { border: 0; outline: 0; background: transparent; width: 3ch; font-family: var(--display); font-weight: 800; font-size: 28px; font-stretch: 86%; color: var(--navy); padding: 0; height: 40px; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-chip { border: 1.5px solid var(--grey-300); background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13.5px; transition: all .15s; }
.lk-chip:hover { border-color: var(--navy); }
.lk-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.lk-out { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lk-out { grid-template-columns: repeat(3, 1fr); } }
.lk-cell { background: var(--paper); border-radius: 14px; padding: 12px 14px; border-top: 4px solid var(--c); min-width: 0; }
.lk-cell small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-cell b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; font-stretch: 86%; line-height: 1.15; white-space: nowrap; }
.lk-cell.is-key { background: var(--yellow); border-top-color: var(--navy); }
.lk-cell.is-key small { color: rgba(10,18,73,.75); }
.lookup-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; margin-bottom: 18px; }
.lookup-dark .lk-age { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.lookup-dark .lk-age span { color: rgba(255,255,255,.72); }
.lookup-dark .lk-age input { color: #fff; }
.lookup-dark .lk-chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.lookup-dark .lk-chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.lookup-dark .lk-cell { background: rgba(255,255,255,.08); }
.lookup-dark .lk-cell small { color: rgba(255,255,255,.7); }
.lookup-dark .lk-cell b { color: #fff; }
.lookup-dark .lk-cell.is-key { background: var(--yellow); }
.lookup-dark .lk-cell.is-key small, .lookup-dark .lk-cell.is-key b { color: var(--navy); }

/* ---------- Waiting ---------- */
.wait-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.wait-ctrl { flex: 1; min-width: 200px; max-width: 380px; }
.why-box { position: relative; background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 16px; margin-top: 16px; }
.why-box b { display: block; color: var(--yellow); font-size: 14.5px; margin-bottom: 2px; }
.why-box p { margin: 0; font-size: 15px; color: rgba(255,255,255,.9); }
.why-box p + p { color: rgba(255,255,255,.7); }
.why-arrow { position: absolute; right: 60px; top: -8px; width: 16px; height: 16px; background: var(--navy); transform: rotate(45deg); border-radius: 3px; }
@media (max-width: 639px) { .why-arrow { right: auto; left: 40px; } }

/* ---------- Goal: thesis ---------- */
.thesis-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 900px) { .thesis-row { grid-template-columns: 1fr 1fr; gap: 14px; } }
.tr-card { background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.tr-card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tr-card h3 { font-size: 22px; margin: 6px 0 10px; }
.tr-card .t-def { margin: 0; }
.tr-card .t-look { margin-top: 10px; }
.goal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.goal-stats div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.goal-stats small { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-stats b { font-family: var(--display); font-weight: 800; font-size: 24px; font-stretch: 86%; }
.goal-stats .is-key { background: var(--yellow); color: var(--navy); }
.goal-stats .is-key small { color: rgba(10,18,73,.7); }

/* ---------- Experience ---------- */
.hbars { display: grid; gap: 14px; }
.hb .hb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; margin-bottom: 6px; }
.hb .hb-top b { font-family: var(--display); font-size: 22px; font-stretch: 88%; white-space: nowrap; }
.hb .hb-track { height: 22px; border-radius: 8px; background: var(--grey-100); overflow: hidden; }
.hb .hb-fill { height: 100%; border-radius: 8px; }
.fee-wrap { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 720px) { .fee-wrap { grid-template-columns: 190px 1fr; gap: 30px; } }
.fee-ring { display: grid; place-items: center; }
.ring-legend { display: grid; gap: 10px; font-size: 15px; }
.ring-legend div { display: flex; align-items: center; gap: 10px; }
.ring-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.ring-legend b { margin-left: auto; font-family: var(--display); font-size: 20px; font-stretch: 88%; white-space: nowrap; }

/* ---------- Call-outs ---------- */
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 14px 16px 14px 20px; border-radius: 18px; background: var(--yellow); }
.nudge p { margin: 0; flex: 1; min-width: 200px; font-size: 16px; font-weight: 600; color: var(--navy); }

/* ---------- Next step: stacked until there is genuinely room for two columns ---------- */
.r-next { padding-top: 24px; }
.next-card { background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 4px); overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: var(--shadow-lg); }
@media (min-width: 1100px) { .next-card { grid-template-columns: 1fr 1fr; } }
.video { position: relative; aspect-ratio: 16/9; background: linear-gradient(150deg, var(--navy-3), var(--navy-deep)); display: flex; align-items: flex-end; padding: 18px; cursor: pointer; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(252,210,0,.18); transition: transform .25s var(--ease); }
.video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video > span { font-weight: 600; font-size: 15px; }
.video small { display: block; font-weight: 400; opacity: .6; font-size: 13px; }
.next-copy { padding: 24px 22px 26px; min-width: 0; }
@media (min-width: 1100px) { .next-copy { padding: 40px; align-self: center; } }
.next-copy h2 { color: #fff; margin-bottom: 10px; font-size: clamp(25px, 2.6vw, 32px); }
.next-copy p { color: rgba(255,255,255,.78); font-size: 16px; margin: 0; }
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.next-actions .btn { max-width: 100%; }
.channel { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; background: #fff; border-radius: 20px; border: var(--border); box-shadow: var(--shadow); }
.ch-icon { width: 46px; height: 46px; border-radius: 14px; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.ch-copy { flex: 1; min-width: 0; }
.ch-copy h3 { font-size: 17px; }
.ch-copy p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.r-small { color: var(--muted); font-size: 13px; }
.r-small h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }

/* Presenter mode */
.is-presenter .r-next, .is-presenter .nudge, .is-presenter #stickyBook, .is-presenter .r-print { display: none !important; }
.is-presenter .nbar { position: sticky; top: 10px; }
.is-presenter .nbar-grid { display: grid; }
.is-presenter .nbar-sum, .is-presenter #adjustToggle { display: none; }

@media print {
  .r-print, .nbar, .data-fab, .data-panel, .channel, .next-actions, .video, .nudge, .sticky-bar { display: none !important; }
  .r-section { break-inside: avoid; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
@media (max-width: 400px) { .r-top .brand-name { display: none; } }
@media (max-width: 400px) {
  .note { font-size: 13px; padding: 9px 12px; gap: 8px; }
  .tr-card h3 { font-size: 19px; }
  .channel { gap: 10px; padding: 12px; }
  .ch-icon { width: 38px; height: 38px; border-radius: 12px; }
  .ch-copy h3 { font-size: 16px; }
  .ch-copy p { font-size: 13px; }
}
@media (max-width: 400px) { .goal-stats { gap: 6px; } .goal-stats div { padding: 10px; } .goal-stats b { font-size: 19px; } .goal-stats small { font-size: 11.5px; } }
.next-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); display: block; margin-bottom: 14px; }
.video.is-photo { background: linear-gradient(180deg, transparent 55%, rgba(6,11,48,.85)), url('../assets/eduardo.jpg') center 22% / cover; cursor: default; }
@media (min-width: 1100px) { .video.is-photo { aspect-ratio: auto; min-height: 100%; } }

/* Booking: a yellow box on the right of every section heading */
.r-head { flex-wrap: wrap; }
.r-head h2 { flex: 1; min-width: 0; }
.book-cta { display: inline-flex; flex-direction: column; justify-content: center; background: var(--yellow); color: var(--navy); text-decoration: none; border-radius: 16px; padding: 10px 16px; box-shadow: 0 12px 26px -14px rgba(252,210,0,.95); transition: transform .2s var(--ease), background .2s; }
.book-cta:hover { background: var(--yellow-2); transform: translateY(-1px); }
.book-cta small { font-size: 12px; font-weight: 600; opacity: .75; line-height: 1.2; }
.book-cta b { font-size: 15.5px; white-space: nowrap; }
@media (max-width: 719px) { .book-cta { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; } }
.hero-book { margin-top: 16px; width: 100%; }
.is-presenter .book-cta, .is-presenter .hero-book { display: none !important; }
@media print { .book-cta, .hero-book { display: none !important; } }
