/* Certifications app: components of the Truth Pages of proof.
   Built on the tokens and classes of static/css/site.css (never edited here):
   hairline grids, small uppercase labels, no icons, no rounded corners. */

/* status badges (the fact table's .status comes from site.css; these add the two other states and reuse outside tables) */
.status { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.status.unverified, .fact-table td .status.unverified { border-style: dashed; color: var(--muted-dark); }
.status.verified, .fact-table td .status.verified { color: #2f5d3a; border-color: #2f5d3a66; }
.status.locked { color: var(--oxblood); border-color: #7c2e4366; }
.fact-table td .status { margin-left: 10px; }
.fact-source { margin-left: 10px; color: var(--oxblood); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #7c2e4366; }

/* facts section: table beside the evidence box */
.cert-facts { margin-top: clamp(40px, 5vw, 70px); }
.cert-facts .fact-table { margin-top: 0; }
.cert-evidence .notice { margin: 0 0 18px; }
.cert-evidence-link { margin: 0 0 22px; }
.cert-meta { margin: 0; }
.cert-meta dt { padding-top: 14px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cert-meta dd { margin: 6px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: #2b2d29; }
.cert-meta dd:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-meta dt .status { margin: 0; }
.tbc { color: var(--oxblood-deep); }
.cert-register-link { color: var(--oxblood); border-bottom: 1px solid #7c2e4366; }

/* statement section */
.cert-defs { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 28px; max-width: 760px; margin: 0 0 40px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.cert-defs dt { padding-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cert-defs dd { margin: 0; color: #2b2d29; }
.section-bone .prose, .section-paper .prose { max-width: 760px; }

/* scope cards on dark sections */
.scope-grid .hair-card { min-height: 300px; }
.scope-card h3 { margin-top: 44px; }
.scope-card ul { margin: 0; padding-left: 18px; color: var(--white-70); font-size: 15px; line-height: 1.68; }
.scope-card li { margin-bottom: 10px; }
.scope-card li:last-child { margin-bottom: 0; }

/* verification record grid: a third line under the title, and a variant for dark sections */
.record-grid > a { align-items: start; }
.record-note { display: block; margin-top: 10px; color: var(--muted-dark); font-size: 12px; line-height: 1.55; }
.record-note .status { display: inline-block; margin-top: 8px; }
.record-grid.light { border-color: var(--line-light); }
.record-grid.light > a { border-color: var(--line-light); color: #fff; }
.record-grid.light > a:hover { color: var(--gold); background: #ffffff0d; }
.record-grid.light > a > span { color: var(--gold); }
.record-grid.light small, .record-grid.light .record-note { color: var(--white-70); }
.record-grid.light .status { color: var(--white-70); border-color: var(--line-light); }
.record-group { margin-top: 64px; }
.record-group-title { margin: 0; color: var(--oxblood); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.record-group .record-grid { margin-top: 18px; }

/* certification cards on the index */
.cert-cards .hair-card h3 { margin-top: 52px; }
.cert-more { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 48px; }

/* questions (index) */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(70px, 9vw, 126px); border: 1px solid var(--line-light); }
.faq-item { padding: 34px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: #ffffff05; }
.faq-item:nth-child(2n) { border-right: 0; }
.faq-item:nth-last-child(-n+2):nth-child(2n+1), .faq-item:last-child { border-bottom: 0; }
.faq-item .index { display: block; margin-bottom: 26px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.faq-item h3 { margin: 0 0 16px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.03em; }
.faq-item p { margin: 0; color: var(--white-70); font-size: 15px; line-height: 1.68; }

/* glossary */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(50px, 7vw, 90px) 0 0; border-top: 1px solid var(--line); }
.glossary-item { padding: 24px 28px 24px 0; border-bottom: 1px solid var(--line); }
.glossary-item:nth-child(2n) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.glossary dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.glossary dd { margin: 10px 0 0; color: #2b2d29; font-size: 15px; line-height: 1.65; }

/* review line */
.review-line { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.review-line a { color: var(--oxblood); border-bottom: 1px solid #7c2e4366; }

/* export approvals: approval cards and the destination-market table */
.approval-card h3.sm { margin-top: 34px; }
.approval-card > p { margin-bottom: 18px; }
.approval-card > p .status { margin-left: 8px; }
.approval-notes { font-size: 14px; }
.approval-meta { width: 100%; margin: 0 0 24px; font-size: 13px; }
.approval-meta dt { margin-top: 12px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.approval-meta dd { margin: 4px 0 0; color: #2b2d29; line-height: 1.5; }
.approval-card .text-link { margin-top: auto; }
.market-table { width: 100%; border-collapse: collapse; margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line-light); font-size: 14px; }
.market-table th, .market-table td { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; color: var(--white-70); line-height: 1.6; }
.market-table thead th { padding-top: 16px; padding-bottom: 16px; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.market-table tbody th { font-weight: 400; }
.market-table tbody th strong { display: block; color: #fff; font-weight: 500; font-size: 19px; letter-spacing: -.025em; }
.market-table td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.market-table .text-link { color: var(--gold); }
.market-fact { display: block; margin-top: 8px; font-size: 13px; color: var(--white-70); }

@media (width > 1220px) {
  /* column widths only while the rows are table rows; below this the cells stack as blocks */
  .market-table th:nth-child(1), .market-table td:nth-child(1) { width: 19%; }
  .market-table th:nth-child(2), .market-table td:nth-child(2) { width: 17%; }
  .market-table th:nth-child(3), .market-table td:nth-child(3) { width: 26%; }
}
@media (width <= 1220px) {
  .faq-grid, .glossary { grid-template-columns: 1fr; }
  .faq-item { border-right: 0; }
  .faq-item:nth-last-child(-n+2):nth-child(2n+1) { border-bottom: 1px solid var(--line-light); }
  .faq-item:last-child { border-bottom: 0; }
  .glossary-item:nth-child(2n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .glossary-item { padding-right: 0; }
  .approval-grid .hair-card { min-height: 0; }
  .market-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .market-table tr { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
  .market-table th, .market-table td { display: block; padding: 6px 0; border: 0; }
  .market-table td:last-child { text-align: left; padding-top: 14px; }
}
@media (width <= 580px) {
  .cert-defs { grid-template-columns: 1fr; gap: 4px 0; }
  .cert-defs dd { margin-bottom: 14px; }
  .cert-defs dd:last-child { margin-bottom: 0; }
  .record-grid > a { grid-template-columns: 28px 1fr auto; padding: 20px 0; }
  .review-line { gap: 10px 20px; }
}
