/* Solutions pages (/rjesenja/, /rjesenja/privatni-korisnici, /rjesenja/homelab and their EN twins under /en/solutions/).
   Shared blocks and tokens come from sections.css (gs-*); this file holds only what is specific to these pages: the app-window mock-ups,
   the check lists, the product marks that follow the theme, the Vezar band and the small notes. Everything is a class (CSP: no inline styles). */

/* Product marks: the light-background file in the light theme, the dark-background file in the dark theme */
.rj-mark-dark { display: none; }
body.dark-theme .rj-mark-light { display: none; }
body.dark-theme .rj-mark-dark { display: inline-block; }
.rj-marks { display: flex; align-items: center; gap: 8px; }
.rj-mark { height: 26px; width: auto; }
.rj-eyebrow-mark { display: flex; align-items: center; gap: 12px; }

/* Hero extras (the hero band is navy in both themes) */
.rj-crumb { font-size: 14px; color: #cbd5e1; }
.rj-crumb a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 2px; }
.rj-crumb a:hover { color: #ffffff; }
.rj-hero-note { margin: 0; font-size: 14px; color: #cbd5e1; }
.rj-unsigned { margin: 0; font-size: 13px; line-height: 1.5; color: #94a3b8; max-width: 560px; }

/* App window mock-up (fixed light palette, like a screenshot) */
.rj-app { width: 100%; max-width: 460px; background: #ffffff; color: #0F2044; border-radius: 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); overflow: hidden; }
.rj-app-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #e5e9ef; background: #f3f6f9; }
.rj-app-bar img { height: 22px; width: auto; }
.rj-app-title { font-size: 14px; font-weight: 700; flex-grow: 1; }
.rj-app-scope { font-size: 12px; color: #64748B; border: 1px solid #e5e9ef; border-radius: 8px; padding: 4px 10px; background: #ffffff; }
.rj-app-body { padding: 14px 16px 6px; display: flex; flex-direction: column; }
.rj-app-search { margin-bottom: 8px; font-size: 13px; color: #64748B; border-radius: 9px; padding: 9px 12px; background: #f3f6f9; }
.rj-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #e5e9ef; }
.rj-row:last-child { border-bottom: 0; }
.rj-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rj-row-name { font-size: 15px; font-weight: 600; }
.rj-row-sub { font-size: 13px; color: #64748B; overflow-wrap: anywhere; }
.rj-av { flex: none; width: 34px; height: 34px; border-radius: 9px; color: #ffffff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rj-av-1 { background: #1a3a5c; }
.rj-av-2 { background: #2d5a8e; }
.rj-av-3 { background: #6B7FA3; }
.rj-tag { flex: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 9px; }
.rj-tag-ok { background: #ecfdf5; color: #047857; }
.rj-tag-warn { background: #fef3c7; color: #92400e; }
.rj-tag-bad { background: #fee2e2; color: #b91c1c; }
.rj-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.rj-dot-on { background: #10b981; }
.rj-status { flex: none; font-size: 12px; font-weight: 600; color: #64748B; }
.rj-status-on { color: #047857; }
.rj-app-foot { padding: 10px 16px 14px; font-size: 12px; color: #64748B; }
.rj-app-foot-ok { color: #047857; font-weight: 600; }

/* Check lists (in boxes, bands and two columns) */
.rj-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; min-width: 0; }
.rj-checks li { display: flex; gap: 12px; align-items: flex-start; }
.rj-checks li::before { content: "✓"; flex: none; width: 20px; font-weight: 700; color: var(--gs-ok-text); }
.rj-checks-dark li::before { color: var(--gs-sky); }
.rj-checks-note { font-size: 13px; color: var(--text-muted); padding-left: 32px; }
.rj-checks .rj-checks-note::before { content: none; }
.rj-checks-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.rj-bullets { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }

/* Boxes and bands */
.rj-box { padding: 40px; gap: 40px; }
.rj-box .rj-checks { flex: 1 1 340px; }
.rj-vband { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rj-vband-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rj-vband .rj-checks { flex: 1 1 340px; color: #ffffff; }
.rj-vband-label { display: flex; align-items: center; gap: 12px; }
.rj-vband-label img { height: 37px; width: auto; }
.rj-steps { list-style: none; margin: 0; padding: 0; }
.rj-steps .gs-step { background: var(--bg); }
.rj-num { display: inline-flex; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center; background: var(--gs-pill-bg); color: var(--gs-link); font-weight: 700; }
.rj-features .gs-card { gap: 8px; }
.rj-features .gs-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.rj-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rj-final { align-items: center; text-align: center; }
.rj-final .gs-lead { max-width: 560px; }
.rj-final-actions { justify-content: center; }
.rj-final-mark { height: 42px; width: auto; }
.rj-final .rj-unsigned { text-align: center; }
.rj-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; padding: 0 0 56px; }
.rj-aside-box { margin: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; line-height: 1.5; background: var(--surface); }
.rj-aside-box a { color: var(--gs-link); font-weight: 600; }
.rj-inline-link { color: var(--gs-link); font-weight: 600; }

/* List page cards */
.rj-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rj-card-head .gs-pill { align-self: auto; }
.rj-grow { flex: 1 1 auto; }
.rj-card .gs-more { padding: 10px 0; }
.rj-ask { padding: 28px; border: 1px dashed var(--border-strong); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.rj-ask-title { margin: 0; flex: 1 1 280px; font-size: 16px; font-weight: 600; }
.rj-ask-text { margin: 0; flex: 2 1 320px; font-size: 15px; }
.rj-ask-text a { color: var(--gs-link); font-weight: 600; }
.rj-card-dev { border-style: dashed; border-color: var(--border-strong); }

/* Homelab */
.rj-proto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rj-proto-name { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.rj-cli { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rj-cli-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rj-code { flex: 1.6 1 440px; min-width: 0; background: #0b1120; border: 1px solid #1e3048; border-radius: 14px; padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #e2e8f0; }
.rj-code:focus-visible { outline: 3px solid var(--gs-sky); outline-offset: 2px; }
.rj-code-c { color: #94a3b8; }
.rj-code-gap { margin-top: 12px; }
.rj-code-p { color: #93c5fd; }
.rj-code-nowrap { white-space: pre; }

/* Rješenja list: the small label above a situation card (by type of business / by need) and the heading row with the contact link */
.pb-sit-kind { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.rj-head-row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }

/* Situation pages (web v2 PR3, templates/_situacija.html) */
.sp-eyebrow { display: flex; align-items: center; gap: 10px; }
.sp-eyebrow img { flex: none; height: 34px; width: auto; }
.sp-step { gap: 8px; }
.sp-step-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-step-n { font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.sp-step p { margin: 0; font-size: 15px; line-height: 1.5; }
.sp-cols { align-items: start; }
.sp-col { gap: 12px; }
.sp-col-gotovo { border: 2px solid var(--gs-ok-text); }
.sp-col-pill { align-self: flex-start; font-size: 12px; padding: 3px 10px; }
.sp-col .rj-bullets { margin-top: 0; }
.sp-note { margin: 24px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; line-height: 1.55; }
.sp-trust { margin-bottom: 8px; color: var(--text-muted); }
.sp-cols + .sp-note, .sp-cols + .sp-trust { margin-top: 24px; }
.sp-page .rj-links { margin-top: 24px; }
.sp-guide { margin: 0; font-size: 15px; color: #cbd5e1; }
.sp-guide a { color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Roadmap page (web v2 PR3, templates/plan-razvoja.html): per product three columns */
.rm-legend { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.rm-legend .st-pill { font-size: 13px; padding: 3px 12px; }
.rm-legend .st-planirano { color: #cbd5e1; border-color: #64748b; }
.rm-legend .st-gotovo { color: #047857; background: #ecfdf5; }
.rm-products { gap: 36px; }
.rm-product { display: flex; flex-direction: column; gap: 14px; }
.rm-title { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.rm-marks { display: inline-flex; align-items: center; }
.rm-title .rj-mark { height: 28px; width: auto; }
.rm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rm-col { gap: 10px; padding: 18px 20px; border-top-width: 3px; }
.rm-col-gotovo { border-top-color: var(--gs-ok-text); }
.rm-col-uskoro { border-top-color: var(--gs-link); }
.rm-col-planirano { border-top-color: var(--text-muted); }
.rm-col-label { margin: 0; font-size: 13px; font-weight: 700; }
.rm-col-label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rm-col-gotovo .rm-col-label { color: var(--gs-ok-text); }
.rm-col-uskoro .rm-col-label { color: var(--gs-link); }
.rm-col-planirano .rm-col-label { color: var(--text-muted); }
.rm-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.rm-none { list-style: none; margin-left: -18px; color: var(--text-muted); }
.rm-next { padding-bottom: 64px; }

@media (max-width: 820px) {
  .rj-box { padding: 24px; gap: 28px; }
  .rj-vband, .rj-cli { gap: 32px; }
  .rj-checks-two { grid-template-columns: minmax(0, 1fr); }
  .rj-aside { padding-bottom: 40px; }
  .rm-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rj-code { font-size: 13px; }
}
