/* /window-judge: how the window judge works. Builds on features.css (sections, lists, the judged rows). */
.jd-hero h1 { max-width: 16em; }

/* The flow: what you open, the plan, the judge, the verdict. */
.jd-flow { position: relative; display: grid; grid-template-columns: 1.1fr 1.1fr .8fr .9fr; gap: 40px; align-items: stretch; margin-top: clamp(36px, 5vw, 56px); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.jd-col { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.jd-box { display: grid; gap: 12px; align-content: center; }
.jd-col + .jd-col::before { content: ""; position: absolute; left: -31px; top: calc(50% + 12px); width: 22px; height: 12px; background: url("../assets/img/flow-arrow.svg") no-repeat center / contain; }
.jd-step { font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jd-win { border: 1px solid var(--edge); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 14px 28px -22px rgba(29, 38, 49, .45); }
.jd-wbar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--edge); background: #F7F8F9; font-size: 12px; color: var(--muted); }
.jd-wbar i { width: 7px; height: 7px; border-radius: 50%; background: #D5DADE; }
.jd-wbar span { margin-left: 6px; }
.jd-wt { padding: 12px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.jd-plan { padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; background: #fff; }
.jd-pt { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.jd-judge { display: grid; justify-items: center; gap: 10px; padding: 18px 12px; border-radius: 14px; background: var(--sky); text-align: center; }
.jd-judge p { display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); }
.jd-judge b { font-size: 15px; color: var(--ink); }
.jd-out { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--edge); background: #fff; font-size: 13px; color: var(--muted); }
.jd-out b { font-size: 17px; }
.jd-out.ok b { color: var(--ok); }
.jd-out.no b { color: var(--no); }
.jd-out.ok { border-left: 4px solid var(--ok); }
.jd-out.no { border-left: 4px solid var(--no); }
.jd-flow figcaption { position: absolute; right: 16px; bottom: 10px; font-size: 12px; color: var(--muted); }

/* How it works */
.jd-steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: jd; }
.jd-steps li { position: relative; padding-left: 46px; color: var(--ink-2); counter-increment: jd; }
.jd-steps li::before { content: counter(jd); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: #fff; font-size: 14px; font-weight: 600; }
.jd-steps b { color: var(--ink); font-weight: 600; }

/* The two ways */
.jd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.jd-card { padding: 26px 26px 28px; border: 1px solid var(--edge); border-radius: 16px; background: #fff; }
.jd-card h3 { margin-top: 6px; font: 400 34px/1.05 var(--serif); letter-spacing: -.01em; }
.jd-card .ft-list { margin-top: 18px; }
.jd-under { display: grid; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--edge); font-size: 15px; color: var(--ink-2); }
.jd-under .mk-k { margin-bottom: 2px; }
.jd-under b { color: var(--ink); font-weight: 600; }

/* Questions */
.jd-faq h2 { margin-bottom: 18px; }
.jd-qs { margin-top: 8px; }
.jd-q { padding: 16px 0; border-top: 1px solid var(--line, rgba(20,32,43,.12)); }
.jd-q h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.jd-q p { margin: 0; }

@media (max-width: 899px) {
  .jd-flow { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 36px; }
  .jd-col + .jd-col::before { left: 50%; top: -24px; transform: translateX(-50%) rotate(90deg); }
  .jd-wins .jd-box, .jd-outs .jd-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-judge { grid-template-columns: auto auto; justify-content: center; text-align: left; }
  .jd-cards { grid-template-columns: minmax(0, 1fr); }
}
