/* Samvidhi Shield 3.1 — styles for the consent form reader, Contracts and the How to use box. */

/* sidebar: a small gap before a one-page group (Vendors) */
.nav-gap.sub { height: 6px; margin: 8px 18px 4px; border-top: 1px dashed rgba(255,255,255,.12); }

/* How to use: the words sit in the right-hand box */
.howto-stage { grid-template-columns: 210px 1fr; }
.howto-stage .hs-r.hs-words { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 20px; }
.howto-stage .hs-r .hs-text { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; }
.howto-stage .hs-r.hs-words .ok-list { margin: 0; }

/* a wider modal for two-column work */
.modal.xl { width: min(1120px, 100%); }

/* the consent tester */
.ctest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.ct-left .fld textarea[data-ftext] { min-height: 230px; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.ct-urlrow { display: flex; gap: 8px; align-items: center; }
.ct-urlrow input { flex: 1; min-width: 0; }
.ct-file { position: relative; overflow: hidden; cursor: pointer; }
.ct-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ct-img { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; background: #fbfaff; }
.ct-imgbox { display: flex; gap: 12px; margin-top: 10px; align-items: flex-start; }
.ct-imgbox img { width: 132px; max-height: 190px; object-fit: contain; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex: none; }
.ct-imgbox .toggle-row { padding: 6px 0; }
.ct-right { position: sticky; top: 0; }
.ct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ct-head small { display: block; margin-top: 2px; }
.ct-row { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: #fff; }
.ct-row.s-met { border-left-color: #1a9e5a; }
.ct-row.s-not { border-left-color: #d03b3b; }
.ct-row.s-unknown { border-left-color: #c9a227; }
.ct-row .toggle-row { padding: 2px 0; }
.ct-row .toggle-row b { font-size: 13.5px; }
.ct-why { margin: 2px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
p.ct-why { padding-left: 0; }
.ct-quote { display: block; margin: 4px 0 0; padding: 4px 8px; border-left: 2px solid #c8bdf5; background: #f6f3ff; font-size: 12px; font-style: italic; color: #3c3270; border-radius: 0 6px 6px 0; }
.ct-quote::before, .ct-quote::after { content: none; }
.ct-q { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; background: #fff8e6; border-radius: 8px; padding: 6px 8px; }
.ct-q span { flex: 1 1 220px; }
.ct-q .btn.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.ct-ai { margin-top: 6px; font-size: 12px; color: #3c3270; }
.ct-ai.differs { background: #fff3f0; border-radius: 6px; padding: 4px 6px; }
.ct-ai-row { align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.ct-shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }

/* consent checker cards */
.cc-shot { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 8px 4px 4px; margin: 6px 0; cursor: pointer; font-size: 12px; color: var(--ink-2); }
.cc-shot img { width: 44px; height: 56px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); }
.fails .ct-quote { margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-row .toggle-row .chipx { display: inline-flex; width: auto; justify-self: start; margin-top: 4px; }

/* vendor drawer: its contracts */
.ct-list li { align-items: center; }

@media (max-width: 860px) {
  .ctest { grid-template-columns: 1fr; }
  .ct-right { position: static; }
  .howto-stage { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ct-imgbox { flex-direction: column; }
  .ct-imgbox img { width: 100%; max-height: 220px; }
  .ct-urlrow { flex-direction: column; align-items: stretch; }
}
