/* oro.vakeelji.com — Vakeelji LLP's independent verification portal for OroPocket.
   Palette from vakeelji.com: navy #042B4E, blue #2D9EE0. Blue is an accent only —
   it is 2.9:1 on white, so text and buttons use the deeper --blue-ink. */
@import url('fonts.css');

:root {
  --navy: #042B4E;
  --navy-2: #0B3B66;
  --blue: #2D9EE0;
  --blue-ink: #0F6AA3;
  --blue-wash: #EAF5FC;
  --ink: #17232F;
  --muted: #566475;
  --line: #D6E0EA;
  --paper: #F5F8FB;
  --white: #FFFFFF;
  --ok: #17703F;
  --ok-wash: #EAF6EF;
  --bad: #A33A12;
  --bad-wash: #FDF1EC;
  --gold: #A27A1F;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { text-wrap: balance; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.tnum { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ── Masthead ── */
.mast { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--blue); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--white); }
.brand .tile { background: var(--white); border-radius: 6px; padding: 6px 10px; display: grid; place-items: center; flex: none; }
.brand .tile img { display: block; width: 92px; height: auto; }
.brand .name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand .name b { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .01em; }
.brand .name span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #BFD6EA; }
.mast nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mast nav a { color: #DCE9F5; text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.mast nav a:hover, .mast nav a[aria-current="page"] { background: var(--navy-2); color: var(--white); }

/* ── Hero ── */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: url('guilloche.svg'); background-size: 520px; background-position: right -120px center; background-repeat: no-repeat; opacity: .16; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-block: 56px 64px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 10px 0 14px; max-width: 18ch; }
.hero p { color: #D2E3F2; max-width: 60ch; margin: 0 0 28px; font-size: 17px; }
.hero .eyebrow { color: #9CC6E8; }

.search { background: var(--white); border-radius: 12px; padding: 8px; display: flex; gap: 8px; max-width: 640px; box-shadow: 0 18px 40px rgba(2, 20, 38, .35); }
.search input { flex: 1; min-width: 0; border: 0; font: 600 18px/1.2 var(--mono); letter-spacing: .04em; color: var(--ink); padding: 14px 12px; text-transform: uppercase; background: transparent; }
.search input::placeholder { color: #9AA8B6; text-transform: none; font-family: var(--sans); font-weight: 400; letter-spacing: 0; }
.search input:focus-visible { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--blue), 0 18px 40px rgba(2, 20, 38, .35); }
.btn { appearance: none; border: 0; cursor: pointer; background: var(--blue-ink); color: var(--white); font: 700 16px/1 var(--sans); padding: 0 22px; min-height: 48px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--navy); color: var(--white); }
.btn.ghost { background: transparent; color: var(--blue-ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--blue-wash); color: var(--navy); }
.hint { font-size: 13px; color: #BBD3E8; margin-top: 12px; }
.hint .mono { color: var(--white); }
.field-error { color: #FFD9C7; font-size: 14px; margin-top: 10px; min-height: 1.4em; }

/* ── Sections ── */
main section { padding-block: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 4px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.step .n { font: 400 28px/1 var(--serif); color: var(--blue-ink); }
.step h3 { margin: 10px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.audit-card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; padding: 22px 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.audit-card .meta { min-width: 0; }
.audit-card h3 { margin: 4px 0; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.audit-card p { margin: 0; color: var(--muted); font-size: 15px; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: 12px; padding: 22px 24px; color: var(--muted); }

/* ── Record (verification result) ── */
.record-wrap { padding-block: 40px 56px; }
.record { background: var(--white); border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 24px 60px rgba(4, 43, 78, .10); position: relative; overflow: hidden; }
.record { border: 1px solid var(--line); }
.record-body::before { content: ""; position: absolute; inset: 10px; border: 1px solid #DCE5EE; border-radius: 8px; pointer-events: none; }
.record-band { background: var(--navy); color: var(--white); padding: 14px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.record-band span:last-child { color: #9CC6E8; }
.record-body { padding: 30px 32px 34px; position: relative; }
.record-body::after { content: ""; position: absolute; right: -90px; top: -60px; width: 420px; height: 420px; background: url('guilloche-ink.svg') center/contain no-repeat; opacity: .06; pointer-events: none; }
.verdict { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; position: relative; z-index: 1; }
.verdict .seal { width: 96px; height: 96px; flex: none; }
.verdict h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; margin: 0 0 6px; }
.verdict p { margin: 0; color: var(--muted); max-width: 62ch; }
.verdict.ok h1 { color: var(--ok); }
.verdict.bad h1 { color: var(--bad); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); position: relative; z-index: 1; }
.fact { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fact:nth-child(odd) { padding-right: 24px; }
.fact dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.fact dd small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.metal { font-family: var(--serif); font-weight: 400; font-size: 30px !important; color: var(--navy); }
.metal .unit { font-family: var(--sans); font-size: 16px; color: var(--muted); margin-left: 4px; }

.parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; z-index: 1; background: var(--white); }
.party { padding: 18px 20px; min-width: 0; }
.party + .party { border-left: 1px solid var(--line); }
.party.auditor { background: var(--blue-wash); }
.party .role { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.party .pname { font-weight: 700; margin: 4px 0 6px; font-size: 15px; }
.party .plines { font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }

.reserve { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; position: relative; z-index: 1; }
.reserve svg { flex: none; margin-top: 2px; }
.reserve p { margin: 0; font-size: 15px; }
.stamp-line { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ── Audits ── */
.audit-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.audit-table th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.audit-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.audit-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: 12px; }
.hash { font: 500 13px/1.6 var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.pdf-frame { width: 100%; height: min(80vh, 1100px); border: 1px solid var(--line); border-radius: 10px; background: var(--white); margin-top: 18px; }

/* ── Footer ── */
.foot { background: var(--navy); color: #BFD3E6; font-size: 14px; margin-top: 24px; }
.foot .wrap { padding-block: 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.foot b { color: var(--white); font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .01em; }
.foot a { color: var(--white); }
.foot p { margin: 6px 0 0; }
.fine { border-top: 1px solid #16426B; }
.fine .wrap { display: block; padding-block: 14px; font-size: 12.5px; color: #9FB8CF; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading { color: var(--muted); padding: 40px 0; }

@media (max-width: 760px) {
  .steps, .parties { grid-template-columns: minmax(0, 1fr); }
  .party + .party { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact:nth-child(odd) { padding-right: 0; }
  .verdict { flex-direction: column; align-items: flex-start; }
  .verdict .seal { width: 76px; height: 76px; }
  .record-body { padding: 24px 20px 28px; }
  .record-band { padding: 12px 20px; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .mast .wrap { flex-wrap: wrap; row-gap: 4px; }
  .mast nav { width: 100%; justify-content: flex-start; margin-left: -8px; }
  .mast nav a { padding: 10px 8px; font-size: 13.5px; }
  .pdf-frame { display: none; }
  .record-band span:last-child { display: none; }
  .brand .name span { display: none; }
}

@media print {
  body { background: var(--white); }
  .mast nav, .foot, .actions, .skip { display: none !important; }
  .record { box-shadow: none; border: 1px solid var(--line); }
  .mast { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .record-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

main section.flush-top { padding-top: 0; }
.nf-title { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; }
.nf-text { margin: 0; }
.party .plegal { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: -2px 0 6px; }
