/* Trust Center (gridtek.com/trust/) */
.trust .tr-h { margin: 48px 0 12px; font-size: 22px; line-height: 30px; }
.trust .tr-note { color: var(--muted, inherit); font-size: 14px; line-height: 22px; max-width: 70ch; }
.tr-fws { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 16px 0 28px; }
.tr-fw { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--bg, var(--paper)); min-width: 0; }
.tr-fw small { font-size: 12px; line-height: 16px; opacity: .7; }
.tr-pct { font-size: 32px; line-height: 40px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tr-word { margin-top: 8px; font-weight: 600; }
.tr-bar { display: block; height: 6px; background: var(--rule); }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
/* bar widths in steps of 5 (no inline styles) */
.tr-bar i[data-w="5"] { width: 5%; }
.tr-bar i[data-w="10"] { width: 10%; }
.tr-bar i[data-w="15"] { width: 15%; }
.tr-bar i[data-w="20"] { width: 20%; }
.tr-bar i[data-w="25"] { width: 25%; }
.tr-bar i[data-w="30"] { width: 30%; }
.tr-bar i[data-w="35"] { width: 35%; }
.tr-bar i[data-w="40"] { width: 40%; }
.tr-bar i[data-w="45"] { width: 45%; }
.tr-bar i[data-w="50"] { width: 50%; }
.tr-bar i[data-w="55"] { width: 55%; }
.tr-bar i[data-w="60"] { width: 60%; }
.tr-bar i[data-w="65"] { width: 65%; }
.tr-bar i[data-w="70"] { width: 70%; }
.tr-bar i[data-w="75"] { width: 75%; }
.tr-bar i[data-w="80"] { width: 80%; }
.tr-bar i[data-w="85"] { width: 85%; }
.tr-bar i[data-w="90"] { width: 90%; }
.tr-bar i[data-w="95"] { width: 95%; }
.tr-bar i[data-w="100"] { width: 100%; }
.tr-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tr-area h3 { font-size: 15px; line-height: 22px; margin: 0 0 8px; }
.tr-area h3 small { opacity: .6; font-weight: 400; }
.tr-area ul, .tr-pols { margin: 0; padding-left: 18px; font-size: 14px; line-height: 22px; }
.tr-pols small { opacity: .6; }
.tr-form { margin-top: 16px; }
.tr-form select { height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 0; background: var(--field-bg); font: inherit; font-size: 16px; color: var(--ink); }
.tr-form .field small { opacity: .6; }
.tr-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .tr-areas { grid-template-columns: minmax(0, 1fr); } .tr-fws { grid-template-columns: minmax(0, 1fr); } .trust .tr-h { margin-top: 36px; } }
.tr-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.tr-upd { white-space: nowrap; opacity: .7; }
.tr-fw h3 { margin: 0; font-size: 17px; line-height: 24px; }
.tr-fw p { margin: 8px 0 0; font-size: 13px; line-height: 20px; opacity: .85; }
.tr-pill { display: inline-block; width: fit-content; margin-top: 8px; padding: 2px 8px; font-size: 12px; line-height: 18px; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.tr-pill.is-ok { background: color-mix(in srgb, #1d7a4a 16%, transparent); color: #1d7a4a; }
.tr-fw .tr-pct { font-size: 12px; margin-top: 2px; }
.tr-fw .tr-bar { margin-top: 8px; }
.tr-area { border: 1px solid var(--rule); padding: 16px; }
.tr-area p { margin: 0; font-size: 14px; line-height: 22px; opacity: .85; }
.tr-pols { columns: 2; column-gap: 32px; }
.tr-pols li { break-inside: avoid; padding: 4px 0; }
.tr-h3 { margin: 32px 0 8px; font-size: 15px; }
@media (max-width: 640px) { .tr-pols { columns: 1; } }
@media (max-width: 1020px) and (min-width: 641px) { .tr-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Frameworks and program areas as rows */
.tr-fwrows, .tr-lines { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.tr-fwrow { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) minmax(160px, 200px); gap: 20px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tr-fwn h3 { margin: 0; font-size: 17px; line-height: 24px; }
.tr-fwn small { font-size: 12px; line-height: 16px; opacity: .7; }
.tr-fwrow p { margin: 0; font-size: 14px; line-height: 22px; opacity: .85; }
.tr-fws-s { display: flex; flex-direction: column; gap: 6px; }
.tr-fws-s .tr-pill { margin-top: 0; }
.tr-fws-s small { font-size: 12px; opacity: .7; }
.tr-lines li { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 22px; }
.tr-lines li span { opacity: .85; }
@media (max-width: 760px) {
  .tr-fwrow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .tr-fwrow p { grid-column: 1 / -1; grid-row: 2; }
  .tr-fws-s { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .tr-fws-s .tr-bar { width: 96px; }
  .tr-lines li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* Framework marks: Gridtek's own squares with an icon (not the standards bodies' logos) */
.tr-mark { flex: none; position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 52px; height: 52px; color: #fff; line-height: 1; text-align: center; overflow: hidden; }
.tr-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%); pointer-events: none; }
.tr-mark svg { width: 20px; height: 20px; }
.tr-mark small { font-size: 8.5px; font-weight: 700; letter-spacing: .06em; opacity: 1; color: #fff; }
.tr-mark.is-soc2 { background: linear-gradient(145deg, #2f74ff, #1846a8); }
.tr-mark.is-iso { background: linear-gradient(145deg, #1d3f6e, #0a2341); }
.tr-mark.is-hipaa { background: linear-gradient(145deg, #17a08c, #0b6a5c); }
.tr-mark.is-pci { background: linear-gradient(145deg, #e0662f, #a83a14); }
.tr-mark.is-gdpr { background: linear-gradient(145deg, #3d55c7, #1f2f86); }
.tr-mark.is-iso20022 { background: linear-gradient(145deg, #8a5be0, #5a2fa5); }
.tr-mark.is-dlt { background: linear-gradient(145deg, #d9a400, #976f00); }
.tr-mark.is-csf { background: linear-gradient(145deg, #3a5f8f, #1c3354); }
.tr-mark.is-n53 { background: linear-gradient(145deg, #5b4a8c, #33275c); }
.tr-fwn { display: flex; gap: 12px; align-items: flex-start; }
.tr-lines li b { display: flex; align-items: center; gap: 10px; }
.tr-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tr-fwrow { transition: background-color .15s ease; }
.tr-fwrow:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.tr-bar { height: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tr-bar i { background: linear-gradient(90deg, var(--accent), #2fb38a); }

/* Framework rows: each opens its own page */
a.tr-fwrow { display: grid; grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) minmax(150px, 190px) 20px; gap: 20px; align-items: center; padding: 16px 8px 16px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
a.tr-fwrow:hover, a.tr-fwrow:focus-visible { background: color-mix(in srgb, var(--accent) 5%, transparent); }
a.tr-fwrow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tr-fwn > span { display: flex; flex-direction: column; min-width: 0; }
.tr-fwname { font-size: 17px; line-height: 24px; }
.tr-fwp { font-size: 14px; line-height: 22px; opacity: .88; }
.tr-chev { display: inline-flex; color: var(--accent); transition: transform .15s ease; }
a.tr-fwrow:hover .tr-chev { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .tr-chev { transition: none; } }
@media (max-width: 760px) {
  a.tr-fwrow { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 12px; padding-right: 0; }
  a.tr-fwrow .tr-fwn { grid-column: 1; grid-row: 1; }
  a.tr-fwrow .tr-chev { grid-column: 2; grid-row: 1; }
  a.tr-fwrow .tr-fwp { grid-column: 1 / -1; grid-row: 2; }
  a.tr-fwrow .tr-fws-s { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  a.tr-fwrow .tr-fws-s .tr-bar { width: 96px; }
}
.tr-back { margin: 0 0 12px; font-size: 14px; }
.tr-fwhead { display: flex; gap: 16px; align-items: center; }
.tr-fwhead .tr-mark { width: 64px; height: 64px; }
.tr-fwhead .tr-mark svg { width: 26px; height: 26px; }
.tr-fwhead .title { margin: 0; }
.tr-stand { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 12px; }
.tr-stand .tr-bar { width: 200px; }
.tr-stand-n { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .tr-chev { transition: none; } }
@media (max-width: 760px) {
  details.tr-fwrow > summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 12px; }
  details.tr-fwrow > summary .tr-fws-s { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  details.tr-fwrow > summary .tr-chev { grid-column: 2; grid-row: 1; }
  .tr-fwd { padding-left: 0; }
}
/* Phones: the two buttons share the row equally; on narrow phones they stack, full width */
@media (max-width: 760px) { .tr-ctas > a { flex: 1 1 0; justify-content: center; text-align: center; } }
@media (max-width: 480px) { .tr-ctas > a { flex: 1 1 100%; } }
/* Licenses and registrations */
.tr-lics { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.tr-lics li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.tr-lic-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-lic-m b { font-size: 15px; }
.tr-lic-m small { font-size: 13px; opacity: .75; }
.tr-lics .tr-pill { margin-top: 0; }
@media (max-width: 480px) { .tr-lics li { grid-template-columns: 34px minmax(0, 1fr); } .tr-lics .tr-pill { grid-column: 2; } }
.tr-form .field > span { display: block; min-height: 20px; line-height: 20px; } .tr-form .field small { line-height: 1; }
/* Marks and icons without their own background: just the icon in the framework's colour */
.tr-mark { width: 44px; height: auto; background: none !important; color: var(--accent); gap: 4px; }
.tr-mark::after { display: none; }
.tr-mark svg { width: 30px; height: 30px; }
.tr-mark small { color: var(--ink, inherit); opacity: .6; font-size: 9px; }
.tr-mark.is-soc2 { color: #1f5fd1; }
.tr-mark.is-iso { color: #0a2341; }
.tr-mark.is-hipaa { color: #0f8a78; }
.tr-mark.is-pci { color: #c24d1d; }
.tr-mark.is-gdpr { color: #2a3f9a; }
.tr-mark.is-iso20022 { color: #6a3fb5; }
.tr-mark.is-dlt { color: #a07800; }
.tr-mark.is-csf { color: #2f5d8f; }
.tr-mark.is-n53 { color: #5b4a8c; }
.tr-fwhead .tr-mark { width: 64px; height: auto; }
.tr-fwhead .tr-mark svg { width: 44px; height: 44px; }
.tr-ico { background: none; width: 26px; height: 26px; }
.tr-ico svg { width: 22px; height: 22px; }
.tr-lics li { grid-template-columns: 26px minmax(0, 1fr) auto; }
@media (max-width: 480px) { .tr-lics li { grid-template-columns: 26px minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-mark.is-iso { color: #8fb4ff; } }
:root[data-theme="dark"] .tr-mark.is-iso { color: #8fb4ff; }

/* One policy (?policy=…) */
.tr-pols a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.tr-pols a:hover, .tr-pols a:focus-visible { text-decoration-color: currentColor; }
.tr-docmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 24px; font-size: 14px; line-height: 20px; }
.tr-docfw { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.tr-docfw .tr-mark small { display: none; }
.tr-docfw:hover span { text-decoration: underline; }
.tr-doc { max-width: 72ch; font-size: 16px; line-height: 26px; }
.tr-doc p { margin: 0 0 14px; }
.tr-doc ul, .tr-doc ol { margin: 0 0 16px; padding-left: 22px; }
.tr-doc li { margin: 0 0 6px; }
.tr-doc .tr-h3 { margin: 28px 0 8px; font-size: 17px; line-height: 24px; }
.tr-doc-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--rule); }
.tr-doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
.tr-doc th, .tr-doc td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.tr-doc tr:last-child td { border-bottom: 0; }
.tr-doc th { font-weight: 600; }
.tr-doc a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.tr-doc a:hover, .tr-doc a:focus-visible { text-decoration-thickness: 2px; }

/* Document access (templates/pages/trust-access.php, the request form's document list) */
.tr-pick { display: none; border: 1px solid var(--rule); padding: 10px 16px 14px; margin: 0; min-width: 0; gap: 0; }
.tr-form:has(select[name=need] option[value=policies]:checked) .tr-pick { display: block; }   /* only when "Security policies" is chosen */
.tr-pick legend { padding: 0 6px; font-size: 14px; line-height: 20px; }
.tr-pick legend small { opacity: .7; }
.tr-pick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 6px 0 0; }
@media (max-width: 700px) { .tr-pick-list { grid-template-columns: 1fr; } }
.tr-pick .tr-pick-row { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; margin: 0; padding: 5px 0; font-size: 14px; line-height: 20px; cursor: pointer; }
.tr-pick .tr-pick-row input[type=checkbox] { flex: none; width: 16px; height: 16px; margin: 2px 0 0; padding: 0; border: 0; accent-color: var(--accent); }
.tr-pick-note { margin: 10px 0 0; font-size: 12px; line-height: 18px; opacity: .75; }
.tr-acc-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 24px 0 8px; }
.tr-acc-form .field { flex: 1 1 220px; max-width: 320px; margin: 0; }
.tr-acc-form input[name=tra_code] { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.tr-acc-list { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--rule); }
.tr-acc-list li { border-bottom: 1px solid var(--rule); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.tr-acc-list li a { font-weight: 600; }
.tr-acc-list li span { font-size: 13px; line-height: 20px; opacity: .75; }
.tr-acc-who { font-size: 13px; line-height: 20px; border-left: 3px solid var(--accent); padding: 6px 12px; margin: 12px 0 24px; }
/* The shared document: no selecting or printing; a faint name stamp over the whole page */
.tr-shared .cols-main { position: relative; overflow: hidden; }
.tr-shared .tr-doc { -webkit-user-select: none; user-select: none; position: relative; }
.tr-stamp { position: absolute; inset: -40%; overflow: hidden; pointer-events: none; z-index: 2; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 72px 48px; padding: 120px 0 0; transform: rotate(-24deg); transform-origin: center; opacity: .07; }
.tr-stamp span { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink); }
@media print { .tr-shared .tr-doc, .tr-shared .tr-stamp { display: none !important; } .tr-shared .cols-main::after { content: "This document can only be read online."; } }
/* Questions (GT_TR_FAQ) */
.tr-faq { margin: 16px 0 0; border-top: 1px solid var(--rule); }
.tr-faq details { border-bottom: 1px solid var(--rule); }
.tr-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15px; line-height: 22px; list-style-position: outside; }
.tr-faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tr-faq details p { margin: 0 0 14px; font-size: 14px; line-height: 22px; opacity: .85; max-width: 68ch; }
.tr-pols small.tr-unrev { opacity: 1; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #8a5600; background: rgba(224, 174, 85, .16); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-pols small.tr-unrev { color: #f0c070; } }
:root[data-theme="dark"] .tr-pols small.tr-unrev { color: #f0c070; }
