/* A compact field journal: hierarchy lives in the modal, never over the map. */
#progression-dialog h2, #progression-dialog h3 { font-family: Caladea, serif; font-weight: 400; }
#progression-dialog h2 { font-size: 30px; }
#progression-dialog h3 { font-size: 25px; line-height: 1.2; }
#progression-dialog h4 { font-size: 14px; margin: 14px 0 6px; }
#progression-dialog p { font-size: 14px; line-height: 1.6; }
#progression-dialog small { font-size: 12px; color: #606a57; line-height: 1.5; }
#progression-dialog .eyebrow { font-size: 10px; letter-spacing: 1.5px; color: #526044; }
.progress-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 18px 0 8px; }
#progression-dialog .progress-tabs button { min-height: 44px; padding: 8px 4px; font-size: 12px; background: #eee8cf; border: 1px solid #aca987; box-shadow: none; border-radius: 5px; transition: none; }
#progression-dialog .progress-tabs button[aria-selected=true] { background: #3b5e45; color: #fff1cd; border-color: #3b5e45; }
.progress-status { color: #52694a; padding: 8px 0; min-height: 12px; }
.progress-status:empty { padding: 0; }
.progress-panel { display: grid; gap: 18px; min-width: 0; padding-top: 12px; }
.progress-banner { position: relative; padding: 24px; border: 1px solid #bac6a6; background: #e7ecd8; }
.progress-banner > canvas { float: right; image-rendering: pixelated; margin: 0 0 8px 12px; max-width: 100%; }
.progress-banner > p:last-child { margin-top: 8px; }
.progress-card { display: grid; gap: 10px; padding: 20px; background: #fffcf1; border: 1px solid #ccd0bc; border-left: 4px solid #81996d; min-width: 0; }
.progress-card[data-region=coast] { border-left-color: #bc9d68; }
.progress-card[data-region=alpine] { border-left-color: #91a9bd; }
.progress-card > .button { justify-self: start; max-width: 100%; }
.progress-checklist { list-style: none; display: grid; gap: 7px; margin: 4px 0; padding: 0; font-size: 13px; line-height: 1.6; }
.progress-checklist li { color: #766c58; padding-left: 12px; border-left: 2px solid #ddcfaa; }
.progress-checklist .complete { color: #436548; border-left-color: #8ba773; }
.progress-ladder { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; counter-reset: rank; }
.progress-ladder li { counter-increment: rank; font-size: 12px; padding: 11px 9px; border-bottom: 2px solid #d1d4bf; color: #62664f; }
.progress-ladder li::before { content: counter(rank) " · "; font-weight: bold; }
.progress-ladder li.earned { border-color: #8ba773; color: #436548; }
.progress-ladder li[aria-current=step] { background: #e4ead3; font-weight: bold; }
.progress-reward { padding: 10px 12px; background: #f1ead2; border: 1px solid #ded3ae; }
.progress-panel details { padding: 10px 0; border-top: 1px solid #d8d8c4; }
.progress-panel summary { cursor: pointer; min-height: 36px; padding: 8px 0; font-size: 13px; font-weight: 700; }
.progress-panel details > p { margin: 8px 0 12px; }
.progress-panel details > .button { margin: 5px 8px 5px 0; }
.progress-count { font-weight: 700; color: #526a49; }
.progress-card progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 3px; accent-color: #6f8a58; background: #e6e8d5; }
.progress-card progress::-webkit-progress-bar { background: #e6e8d5; border-radius: 3px; }
.progress-card progress::-webkit-progress-value { background: #6f8a58; border-radius: 3px; }
.progress-gear-heading { display: flex; align-items: center; gap: 12px; }
.progress-gear-heading canvas { image-rendering: pixelated; flex-shrink: 0; }
.progress-pet-looks { display: flex; flex-wrap: wrap; gap: 9px; }
/* The journey banner: app.js writes "Level N"; the rank name sits beside it. */
.level-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35em; min-width: 0; }
#level-rank { font-family: var(--cz-font-display); font-size: 15px; font-weight: 700; color: var(--cz-cocoa, #5a4038); }
/* The trial card leads the Journey tab at the shrine and during a trial. */
#progression-dialog .trial-card { gap: 12px; border-left-color: #d9a441; }
#progression-dialog .trial-card > h3 { margin: 0; }
#progression-dialog .trial-story { margin: 0; color: #5f5a46; font-style: italic; }
#progression-dialog .trial-plan { margin: 0; font-size: 13px; line-height: 1.55; color: #5f5a46; }
#progression-dialog .trial-card > .button.primary { justify-self: start; min-width: 220px; }
#progression-dialog [aria-pressed=true] { outline: 2px solid #6b8657; outline-offset: 2px; }
@media (max-width: 480px) {
  #progression-dialog h2 { font-size: 25px; }
  .progress-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .progress-banner, .progress-card { padding: 16px; }
  .progress-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-ladder li { font-size: 11px; }
  .progress-gear-heading { gap: 8px; }
  #progression-dialog .trial-card > .button.primary { justify-self: stretch; min-width: 0; }
  .progress-pet-looks .button { flex: 1 1 120px; }
  .progress-card > .button { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { #progression-dialog button { transition: none; } }
