/* Verify a Graduate (/verify): resources/views/snu-site/pages/verify.blade.php, _verify-result.blade.php, verify.js.
   Uses the website's own tokens (assets/css/style.css, extra/brand.css). Prefix vf-. */
.vf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .vf-layout { grid-template-columns: 1fr; } }
.vf-main { display: grid; gap: 1.5rem; min-width: 0; }
.vf-side { display: grid; gap: 1rem; }
.vf-card { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.vf-form { background: var(--surface); border-color: transparent; box-shadow: none; }
.vf-title { font-size: 1.5rem; margin: 0 0 .4rem; }
.vf-intro { margin: 0 0 1.25rem; color: var(--ink-2); }
.vf-form .field { margin-bottom: 0; }
.vf-inputrow { display: flex; gap: .6rem; }
.vf-inputrow input { flex: 1 1 auto; min-width: 0; font: 600 1.15rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.vf-inputrow input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--font-sans); font-size: 1rem; }
.vf-go { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding-inline: 1.4rem; }
.vf-go[aria-busy="true"] { opacity: .7; pointer-events: none; }
.vf-hint { margin: .45rem 0 0; font-size: .87rem; color: var(--muted); }
.vf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) { .vf-inputrow { flex-direction: column; } .vf-go { justify-content: center; } .vf-card { padding: 1.25rem; } }

/* certificate scanner (shown by verify.js) */
.vf-or { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 1rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.vf-or::before, .vf-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vf-scanbtn { position: relative; display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px dashed var(--blue-600); border-radius: var(--radius); background: var(--white); cursor: pointer; transition: background .15s, border-color .15s; }
.vf-scanbtn:hover, .vf-scanbtn.over { background: var(--blue-50); border-style: solid; }
.vf-scanbtn:focus-within { outline: 3px solid var(--blue-100); outline-offset: 2px; }
.vf-scanbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.vf-scanbtn > i { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); font-size: 1.35rem; }
.vf-scanbtn b { display: block; color: var(--navy); }
.vf-scanbtn small { display: block; color: var(--muted); font-size: .87rem; margin-top: .1rem; }
.vf-scanbtn.busy { opacity: .6; pointer-events: none; }
.vf-privacy { display: flex; gap: .4rem; align-items: center; margin: .6rem 0 0; font-size: .84rem; color: var(--muted); }
.vf-progress { margin-top: 1rem; }
.vf-progress p { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-2); }
.vf-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vf-bar i { display: block; height: 100%; width: 0; background: var(--blue-600); transition: width .25s; }
.vf-cands { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.vf-cands p { margin: 0 0 .6rem; font-size: .92rem; color: var(--ink-2); }
.vf-cands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.vf-cand { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--blue-600); background: var(--white); color: var(--blue-700); font: 600 .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; }
.vf-cand:hover, .vf-cand:focus-visible { background: var(--blue-600); color: var(--white); }
.vf-thumb { display: block; max-width: 100%; max-height: 160px; margin: 0 0 .8rem; border-radius: 8px; border: 1px solid var(--line); }

/* results */
.vf-result:focus { outline: none; }
.vf-res { border-top-width: 5px; }
.vf-res-head { display: flex; gap: 1rem; align-items: flex-start; }
.vf-res-head > i { font-size: 2.2rem; line-height: 1; flex: none; }
.vf-res-head h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.vf-res-head p { margin: 0; color: var(--ink-2); }
.vf-res-ok { border-top-color: var(--success); }
.vf-res-ok .vf-res-head > i { color: var(--success); }
.vf-res-bad { border-top-color: var(--danger); background: linear-gradient(var(--crimson-50, #fbeaea), var(--white) 160px); }
.vf-res-bad .vf-res-head > i, .vf-res-bad h2 { color: var(--danger); }
.vf-res-none { border-top-color: var(--gold); }
.vf-res-none .vf-res-head > i { color: var(--gold-700); }
.vf-res-info { border-top-color: var(--blue-600); }
.vf-res-info .vf-res-head > i { color: var(--blue-600); }
.vf-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vf-dl > div { padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); }
.vf-dl > div:nth-child(even) { border-right: 1px solid var(--line-2); }   /* the left column (the first item spans both) */
.vf-dl > div:first-child { grid-column: 1 / -1; border-right: 0; background: var(--surface); }
.vf-dl > div:first-child dd { font-size: 1.3rem; font-family: var(--font-serif); color: var(--navy); }
.vf-dl dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vf-dl dd { margin: .2rem 0 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) { .vf-dl { grid-template-columns: 1fr; } .vf-dl > div:nth-child(even) { border-right: 0; } }
.vf-res-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; margin-top: 1.25rem; }
.vf-stamp { margin: 0; font-size: .87rem; color: var(--muted); }
.vf-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.vf-note { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-2); font-size: .88rem; color: var(--muted); }
.vf-request { margin-top: 1.25rem; border-top: 1px solid var(--line-2); padding-top: 1rem; }
.vf-request summary { cursor: pointer; font-weight: 700; color: var(--blue-700); }
.vf-reqform { margin-top: 1rem; }
.vf-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .vf-grid { grid-template-columns: 1fr; } }
.vf-reqform .form-status { margin: .6rem 0 0; font-size: .92rem; }
.vf-reqform .form-status.ok { color: var(--success); font-weight: 700; }
.vf-reqform .form-status.err { color: var(--danger); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .vf-bar i, .vf-scanbtn { transition: none; } }

/* print: the result only */
@media print {
  body.vf-printing .site-header, body.vf-printing .site-footer, body.vf-printing .page-hero, body.vf-printing .vf-form, body.vf-printing .vf-side,
  body.vf-printing .vf-actions, body.vf-printing .vf-request, body.vf-printing .skip-link, body.vf-printing footer, body.vf-printing header, body.vf-printing .back-to-top { display: none !important; }
  body.vf-printing .vf-layout { display: block; }
  body.vf-printing .vf-card { box-shadow: none; border-color: #999; }
  body.vf-printing .vf-result::before { content: "Somali National University · Graduate verification"; display: block; font-weight: 700; margin-bottom: 1rem; }
}
