/* Rowan Guardian Trust Center. One stylesheet, no web fonts, no third-party requests. */
:root {
  --bg: #fbfaf6;
  --fg: #1c2420;
  --muted: #4b5a52;
  --card: #ffffff;
  --border: #cfd8d2;
  --accent: #1c6a47;
  --accent-fg: #ffffff;
  --link: #0f5a3a;
  --focus: #0b57d0;
  --st-ok-bg: #e0f2e8; --st-ok-fg: #0f4a2f;
  --st-on-bg: #e3ecfa; --st-on-fg: #183c70;
  --st-bd-bg: #ffefce; --st-bd-fg: #5e3b00;
  --st-cu-bg: #ebe6f6; --st-cu-fg: #3b2a6e;
  --st-na-bg: #e9edef; --st-na-fg: #34414a;
  --st-no-bg: #fbe3e0; --st-no-fg: #741b14;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .08), 0 4px 14px rgba(20, 40, 30, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11171a; --fg: #e6ede8; --muted: #aebbb3; --card: #182024; --border: #34433c;
    --accent: #6fcf9f; --accent-fg: #0b1a12; --link: #86dfb0; --focus: #8ab4ff;
    --st-ok-bg: #173a28; --st-ok-fg: #c4efd5;
    --st-on-bg: #1b2e4c; --st-on-fg: #c7dcfb;
    --st-bd-bg: #46350f; --st-bd-fg: #ffe4ab;
    --st-cu-bg: #2e2850; --st-cu-fg: #ddd4fb;
    --st-na-bg: #2a3337; --st-na-fg: #d3dce0;
    --st-no-bg: #4d201c; --st-no-fg: #ffd2cd;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #11171a; --fg: #e6ede8; --muted: #aebbb3; --card: #182024; --border: #34433c;
  --accent: #6fcf9f; --accent-fg: #0b1a12; --link: #86dfb0; --focus: #8ab4ff;
  --st-ok-bg: #173a28; --st-ok-fg: #c4efd5;
  --st-on-bg: #1b2e4c; --st-on-fg: #c7dcfb;
  --st-bd-bg: #46350f; --st-bd-fg: #ffe4ab;
  --st-cu-bg: #2e2850; --st-cu-fg: #ddd4fb;
  --st-na-bg: #2a3337; --st-na-fg: #d3dce0;
  --st-no-bg: #4d201c; --st-no-fg: #ffd2cd;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-top: .3em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: .6em 0; }
ul, ol { padding-left: 1.3em; }
code { background: color-mix(in srgb, var(--border) 45%, transparent); padding: .05em .35em; border-radius: 5px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
blockquote { margin: 1em 0; padding: .4em 1em; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--border); background: var(--card); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; }
.brand span { color: var(--accent); }
nav.main { display: flex; flex-wrap: wrap; gap: 0 .25rem; margin-left: auto; }
nav.main a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .6rem; text-decoration: none; color: var(--fg); border-radius: 8px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
nav.main a[aria-current="page"] { font-weight: 700; }
.theme-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.theme-toggle button { font: inherit; font-size: .9rem; min-height: 44px; min-width: 44px; padding: 0 .7rem; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.theme-toggle button + button { border-left: 1px solid var(--border); }
.theme-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.theme-toggle button:focus-visible { outline-offset: -3px; }
.rd-page canvas, .rd-thumbs canvas { background: #fff; }

main { padding-bottom: 3rem; }
.crumbs { font-size: .95rem; color: var(--muted); margin: 1rem 0 0; }
.crumbs a { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.stamp { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .95rem; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .45rem .9rem; max-width: 100%; }

.search { margin: 1.4rem 0 .5rem; position: relative; max-width: 40rem; }
.search label { display: block; font-weight: 600; margin-bottom: .3rem; }
.search input[type=search] { width: 100%; min-height: 52px; font: inherit; padding: 0 1rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--fg); }
.search input[type=search]:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
#search-results { margin: .5rem 0 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
#search-results[hidden] { display: none; }
#search-results li { border-bottom: 1px solid var(--border); }
#search-results li:last-child { border-bottom: 0; }
#search-results a { display: block; padding: .7rem 1rem; text-decoration: none; color: var(--fg); min-height: 44px; }
#search-results a:hover, #search-results a:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
#search-results .kind { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.js-only { display: none; }
html.js .js-only { display: revert; }
html.js .no-js-only { display: none; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); padding: 0; margin: 1rem 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; }
.card h3, .card h2 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
a.card { text-decoration: none; color: var(--fg); min-height: 44px; flex: 1; }
.grid > li { display: flex; }
.grid > li > .card { width: 100%; }
a.card:hover { border-color: var(--accent); }
a.card .go { margin-top: auto; padding-top: .4rem; color: var(--link); font-weight: 600; }
.group-title { margin: 2rem 0 .2rem; font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; padding: .12rem .6rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: .6rem; height: .6rem; background: currentColor; flex: none; }
.st-in-place-verified { background: var(--st-ok-bg); color: var(--st-ok-fg); } .st-in-place-verified::before { border-radius: 50%; }
.st-in-place-off-until-enabled { background: var(--st-on-bg); color: var(--st-on-fg); } .st-in-place-off-until-enabled::before { border-radius: 50% 0 0 50%; }
.st-building { background: var(--st-bd-bg); color: var(--st-bd-fg); } .st-building::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.st-customer-responsibility { background: var(--st-cu-bg); color: var(--st-cu-fg); } .st-customer-responsibility::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.st-not-applicable { background: var(--st-na-bg); color: var(--st-na-fg); } .st-not-applicable::before { height: .15rem; }
.st-cognosense-statement { background: var(--st-na-bg); color: var(--st-na-fg); } .st-cognosense-statement::before { border-radius: 2px; }
.st-not-in-place { background: var(--st-no-bg); color: var(--st-no-fg); } .st-not-in-place::before { clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }

.stmts { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: 10px; }
.stmt { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; }
.stmt p { margin: .4rem 0 .3rem; }
.stmt .meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; }
.stmt .note { font-size: .95rem; margin: .3rem 0 0; color: var(--muted); }
.stmt .note strong { color: var(--fg); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; text-decoration: none; background: var(--bg); color: var(--link); font-weight: 600; }
.chip:hover { border-color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: .6rem 0; padding: 0; list-style: none; }

.row-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .4rem 1.1rem 1rem; margin: 1rem 0; }
.row-card h2, .row-card h3 { margin-top: .8rem; font-size: 1.2rem; }
.row-card .asks { color: var(--muted); }
.banner { background: var(--st-bd-bg); color: var(--st-bd-fg); border-radius: 12px; padding: .7rem 1rem; margin: 1rem 0; }
.rollup { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
thead th { background: color-mix(in srgb, var(--accent) 10%, var(--card)); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
.compare-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0; }
.compare-pick label { font-weight: 600; display: block; margin-bottom: .25rem; }
select { width: 100%; min-height: 48px; font: inherit; padding: 0 .8rem; border: 2px solid var(--border); border-radius: 10px; background: var(--card); color: var(--fg); }
.cmp td { min-width: 15rem; }
.cmp td ul { padding-left: 1.1em; margin: .4em 0; }
.cmp .none { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 10px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--link); }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }

.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 10px; }
.checklist li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; display: flex; gap: .8rem; align-items: flex-start; }
.checklist input[type=checkbox] { width: 24px; height: 24px; flex: none; margin-top: .15rem; accent-color: var(--accent); }
.checklist .why { color: var(--muted); font-size: .96rem; margin: 0; }
.checklist a { font-weight: 700; }
.progress { font-weight: 700; margin: .5rem 0; }

.request { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: .4rem 1.2rem 1.2rem; margin: 2rem 0; }

footer.site { border-top: 1px solid var(--border); padding: 1.5rem 0 3rem; color: var(--muted); font-size: .95rem; background: var(--card); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
footer.site a { min-height: 44px; display: inline-flex; align-items: center; }

/* Document pages */
.doc-head .actions { margin-top: .6rem; }
.view-toggle { display: inline-flex; border: 2px solid var(--accent); border-radius: 10px; overflow: hidden; }
.view-toggle button { min-height: 44px; border: 0; padding: 0 1rem; font: inherit; font-weight: 700; background: transparent; color: var(--link); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.twin { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 1.2rem 1.5rem; margin: 1rem 0; }
.twin h1 { font-size: 1.8rem; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: .5rem 1rem; margin: 1rem 0; }
.toc ol { margin: .3rem 0; }
.toc a { display: inline-block; min-height: 32px; }

#reader { margin: 1rem 0; }
#reader[hidden] { display: none; }
.rd-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .5rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; position: sticky; top: 3.4rem; z-index: 10; }
.rd-bar button, .rd-bar .rbtn { min-height: 44px; min-width: 44px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); border-radius: 8px; font: inherit; cursor: pointer; padding: 0 .7rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.rd-bar button:hover, .rd-bar .rbtn:hover { border-color: var(--accent); }
.rd-bar button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.rd-bar input[type=number] { width: 4.5rem; min-height: 44px; font: inherit; text-align: center; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--fg); }
.rd-bar input[type=search] { min-height: 44px; font: inherit; padding: 0 .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--fg); width: 11rem; flex: 1 1 9rem; }
.rd-bar .sp { flex: 1 1 auto; }
.rd-body { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.rd-body.with-thumbs { grid-template-columns: 9.5rem 1fr; }
.rd-thumbs { max-height: 75vh; overflow: auto; display: grid; gap: 8px; align-content: start; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.rd-thumbs[hidden] { display: none; }
.rd-thumbs button { border: 2px solid var(--border); background: #fff; border-radius: 6px; padding: 2px; cursor: pointer; min-height: 44px; }
.rd-thumbs button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.rd-thumbs canvas { width: 100%; height: auto; display: block; }
.rd-stage { background: color-mix(in srgb, var(--border) 55%, var(--bg)); border-radius: 12px; padding: 12px; min-height: 40vh; display: grid; justify-items: center; touch-action: pan-y pinch-zoom; overflow: auto; }
.rd-stage:focus-visible { outline-offset: -3px; }
.rd-page { position: relative; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .25); max-width: 100%; }
.rd-page canvas { display: block; max-width: 100%; height: auto; }
.rd-page .hl { position: absolute; background: rgba(255, 213, 0, .45); mix-blend-mode: multiply; pointer-events: none; }
.rd-turn { animation: turn .22s ease-out; }
@keyframes turn { from { opacity: .2; transform: translateX(var(--from, 24px)); } to { opacity: 1; transform: none; } }
.rd-results { list-style: none; padding: 0; margin: .6rem 0 0; max-height: 14rem; overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.rd-results[hidden] { display: none; }
.rd-results button { width: 100%; text-align: left; min-height: 44px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--fg); font: inherit; padding: .5rem .8rem; cursor: pointer; }
.rd-results button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-msg { color: var(--muted); padding: 1rem; }

/* fullscreen (Fullscreen API) and focus mode (class only, for browsers without element fullscreen) */
#reader.rd-active { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; margin: 0; padding: .4rem; overflow: hidden; background: var(--bg); color: var(--fg); }
#reader.rd-focus, #reader.rd-fs { position: fixed; inset: 0; z-index: 100; width: 100%; }
#reader.rd-focus { height: 100vh; height: 100dvh; }
#reader.rd-active .rd-bar { position: static; flex: none; padding: .3rem; }
#reader.rd-focus .rd-bar { padding-right: 5.5rem; }
#reader.rd-active .rd-body { flex: 1 1 auto; min-height: 0; margin-top: 6px; grid-template-rows: minmax(0, 1fr); }
#reader.rd-active .rd-stage { box-sizing: border-box; height: 100%; min-height: 0; justify-items: safe center; align-content: safe center; }
#reader.rd-active .rd-thumbs { max-height: none; height: 100%; box-sizing: border-box; }
#reader.rd-active .rd-results { flex: none; max-height: 30vh; }
#reader.rd-active .rd-page { max-width: none; }
.rd-exit { display: none; position: fixed; top: .5rem; right: .5rem; z-index: 110; min-height: 44px; min-width: 44px; padding: 0 1rem; border: 2px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 600; cursor: pointer; }
#reader.rd-focus .rd-exit:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
body.rd-focus-on { overflow: hidden; }
body.rd-focus-on header.site, body.rd-focus-on footer.site, body.rd-focus-on .skip { display: none; }

body.view-pages .twin-wrap { display: none; }
body.view-text #reader { display: none; }

@media (max-width: 800px) {
  header.site { position: static; }
  .rd-bar { top: 0; position: static; }
}
@media (max-width: 640px) {
  #reader.rd-active .rd-bar { flex-wrap: nowrap; overflow-x: auto; }
  .rd-body.with-thumbs { grid-template-columns: 1fr; }
  .rd-thumbs { max-height: 11rem; grid-auto-flow: column; grid-auto-columns: 5.5rem; overflow-x: auto; }
  nav.main { margin-left: 0; width: 100%; }
  .rd-bar { top: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  header.site, footer.site, .skip, .search, .actions, .view-toggle, #reader, .rd-bar, .toc, .chip, nav, .request, .banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .twin-wrap { display: block !important; }
  .twin, .stmt { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .stmt { break-inside: avoid; border-bottom: 1px solid #999; border-radius: 0; padding: .4rem 0; }
  a { color: #000; text-decoration: none; }
  .badge { border: 1px solid #000; background: transparent !important; color: #000 !important; }
  .table-wrap { overflow: visible; border: 1px solid #999; }
  thead th { position: static; background: #eee; color: #000; }
  h2, h3 { break-after: avoid; }
}

dialog.drawer { max-width: min(36rem, calc(100vw - 32px)); width: 100%; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--card); color: var(--fg); padding: 1rem 1.2rem; }
dialog.drawer::backdrop { background: rgba(0, 0, 0, .5); }
dialog.drawer .actions, dialog.drawer .chip { margin-right: .5rem; }
dl dt { font-weight: 700; margin-top: .5rem; }
dl dd { margin: 0 0 .2rem; }

.return-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; margin: .8rem 0 0; padding: .1rem .8rem; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; }
.return-bar a { display: inline-flex; align-items: center; min-height: 44px; }
.return-back { font-weight: 700; }
.return-pos { color: var(--muted); font-size: .95rem; }
.return-step { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-left: auto; }
.return-float { position: fixed; left: 1rem; bottom: 1rem; z-index: 30; display: inline-flex; align-items: center; min-height: 44px; max-width: calc(100vw - 2rem); padding: 0 1rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.25); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.return-float[hidden] { display: none; }
@media print { .return-bar, .return-float { display: none; } }
@media (max-width: 600px) { .return-next-t { display: none; } .return-step { margin-left: 0; } }
