/* Smart Workplace Intelligence report simulation (tools/intelligence_demo.py). Light report-app look in the
   WorkplaceCloudHub palette; no inline styles, so the folder CSP keeps style-src 'self'. */
* { box-sizing: border-box; }
html { background: #eef3f9; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eef3f9;
  color: #111827;
  font: 15px/1.5 "Segoe UI", Inter, Arial, sans-serif;
}
a { color: #0b5fb8; }
a:focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

.swi-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; background: #ffffff; border-radius: 6px; }
.swi-skip:focus { left: 8px; }

/* Top bar */
.swi-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: #071527;
  color: #ffffff;
}
.swi-brand { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; font-weight: 700; font-size: 17px; text-decoration: none; }
.swi-brand img { border-radius: 6px; }
.swi-demo-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #3aa0ff;
  color: #071527;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.swi-top-note { color: #c9d6e8; font-size: 13px; flex: 1 1 260px; }
.swi-top-link { color: #ffffff; font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid #2b4a70; border-radius: 6px; }
.swi-top-link:hover { background: #0d2747; }
.swi-top-link--pages { display: none; }

/* Layout: menu on the left, report page in the middle */
.swi-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas: "nav main";
}
.swi-main { grid-area: main; padding: 20px 28px 28px; min-width: 0; }
.swi-nav {
  grid-area: nav;
  background: #ffffff;
  border-right: 1px solid #dfe8f4;
  padding: 18px 0 24px;
}
.swi-nav-title { margin: 0 20px 10px; color: #637083; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.swi-nav-sections, .swi-nav-pages { list-style: none; margin: 0; padding: 0; }
.swi-nav-cover {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  border-left: 4px solid transparent;
}
.swi-nav-cover:hover, .swi-nav-pages a:hover { background: #eaf5ff; }
.swi-nav-number { color: #0b5fb8; font-size: 12px; font-weight: 700; min-width: 20px; }
.swi-nav-count { margin-left: auto; color: #637083; font-size: 12px; font-weight: 400; }
.swi-nav-section--open > .swi-nav-cover { background: #f3f8fe; }
.swi-nav-pages { padding: 4px 0 8px; background: #f3f8fe; }
.swi-nav-pages a {
  display: block;
  padding: 6px 20px 6px 54px;
  color: #26364d;
  font-size: 14px;
  text-decoration: none;
  border-left: 4px solid transparent;
}
.swi-nav a[aria-current="page"] { border-left-color: #3aa0ff; background: #dcecfd; color: #071527; font-weight: 700; }

/* Report page */
.swi-pagebar { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.swi-crumb { margin: 0; width: 100%; color: #0b5fb8; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.swi-pagebar h1 { margin: 0; color: #071527; font-size: 26px; line-height: 1.2; }
.swi-position { margin: 0 0 0 auto; color: #637083; font-size: 13px; }
.swi-lead { margin: -4px 0 14px; color: #3b4a5f; max-width: 820px; }
.swi-canvas { margin: 0; }
.swi-canvas-frame {
  display: block;
  max-width: 1600px;
  background: #ffffff;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 21, 39, .08);
}
.swi-canvas img { width: 100%; }
.swi-canvas figcaption { margin-top: 8px; color: #637083; font-size: 13px; }

/* Section cover links */
.swi-topics { margin-top: 18px; max-width: 1600px; }
.swi-topics-title { margin: 0 0 8px; color: #637083; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.swi-topics-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.swi-topic {
  display: inline-block;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #c9dcf3;
  border-radius: 6px;
  color: #0d2747;
  font-weight: 600;
  text-decoration: none;
}
.swi-topic:hover { border-color: #3aa0ff; background: #eaf5ff; }

/* Previous and next */
.swi-pager { display: flex; gap: 12px; margin-top: 18px; max-width: 1600px; }
.swi-pager-link {
  flex: 1 1 0;
  display: block;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  color: #071527;
  font-weight: 600;
  text-decoration: none;
}
.swi-pager-link:hover { border-color: #3aa0ff; }
.swi-pager-link--next { text-align: right; }
.swi-pager-link--prev:only-child { flex: 0 1 50%; }
.swi-pager-link--next:only-child { flex: 0 1 50%; margin-left: auto; }
.swi-pager-label { display: block; color: #637083; font-size: 12px; font-weight: 400; }
.swi-pager-link--prev .swi-pager-label::before { content: "\2190  "; }
.swi-pager-link--next .swi-pager-label::after { content: "  \2192"; }

.swi-footer { padding: 14px 20px 20px; background: #ffffff; border-top: 1px solid #dfe8f4; color: #637083; font-size: 13px; }
.swi-footer p { margin: 4px 0; max-width: 1100px; }

/* Phones and narrow windows: the page comes first, the menu follows it */
@media (max-width: 900px) {
  .swi-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "nav"; }
  .swi-main { padding: 16px; }
  .swi-nav { border-right: 0; border-top: 1px solid #dfe8f4; }
  .swi-top { padding: 10px 16px; }
  .swi-top-note { display: none; }
  .swi-top-link--pages { display: inline-block; margin-left: auto; }
  .swi-pagebar h1 { font-size: 22px; }
  .swi-position { margin-left: 0; }
  .swi-pager { flex-direction: column; }
  .swi-pager-link--prev:only-child, .swi-pager-link--next:only-child { flex-basis: auto; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
