/* activedirectoryreports.com homepage: neutral gallery, so each report's thumbnail carries the colour */

:root {
  --bg: #E9EDF2;   /* backgrounds shared with the Reports Gateway */
  --band: #F6F8FB;
  --ink: #111214;
  --ink-2: #3C3D40;
  --muted: #6B6D70;
  --faint: #D4D5D6;
  --site: #4C5BD4; /* this site's colour on the Reports Gateway (Active Directory: indigo) */
  --rule: rgba(17, 18, 20, .12);
  --rule-strong: rgba(17, 18, 20, .22);
  --hatch: rgba(17, 18, 20, .07);
  --thumb-bg: #EDEDEB;
  --live: #1A7F37;
  --red: #C8102E;   /* a tile title's titleRed part */
  color-scheme: light;

  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101828; --band: #172238; --ink: #EEEEEC; --ink-2: #C2C3C0; --muted: #8E908C; --faint: #3A3C40;
    --rule: rgba(238, 238, 236, .14); --rule-strong: rgba(238, 238, 236, .28); --hatch: rgba(238, 238, 236, .07);
    --site: #9AA5FF;
    --thumb-bg: #172238; --live: #3FB950; --red: #FF6B61; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --site: #9AA5FF;
  --bg: #101828; --band: #172238; --ink: #EEEEEC; --ink-2: #C2C3C0; --muted: #8E908C; --faint: #3A3C40;
  --rule: rgba(238, 238, 236, .14); --rule-strong: rgba(238, 238, 236, .28); --hatch: rgba(238, 238, 236, .07);
  --thumb-bg: #172238; --live: #3FB950; --red: #FF6B61; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; transition: background .25s ease, color .25s ease; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 12px; background: var(--ink); color: var(--bg); z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; border-bottom: 3px solid var(--site); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; flex: none; color: var(--ink); } /* the Reports mark, no tile, as on the Reports Gateway */
.brand-logo .mark-up { fill: var(--live); }
.brand-text { display: flex; align-items: baseline; gap: 2px 10px; flex-wrap: wrap; min-width: 0; }
.brand-name { font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand-sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }
.nav a { padding: 12px; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.theme { /* round light/dark switch, as on the Reports Gateway */
  margin-left: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--rule-strong); border-radius: 21px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.theme:hover { border-color: var(--ink); }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero h1 { margin: 0; font-size: clamp(40px, calc(4.6vw - 6px), 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.hero-sub { display: block; margin-top: .45em; font-size: max(16px, .38em); line-height: 1.3; letter-spacing: -.01em; font-weight: 500; color: var(--ink-2); }
.lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.legend { margin: 20px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: pre-wrap; }

/* tiles */
.reports { padding-bottom: 96px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
.tiles > li { display: flex; }
.tile { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 14px; border-top: 3px solid var(--site); text-decoration: none; }
.tile.planned { border-top-color: color-mix(in srgb, var(--site) 45%, transparent); }
.tile-head { display: flex; align-items: center; gap: 14px; }
.scope { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 12px; line-height: 1.35; letter-spacing: .02em; }
.scope-1 { color: var(--ink); font-weight: 500; }
.scope-2 { color: var(--muted); }
.scope-2:empty::before { content: "\00a0"; }
.planned .scope-1 { color: var(--muted); font-weight: 400; }
.num { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.planned .num { color: var(--faint); }
.status { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.planned .status { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.status .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); background: var(--thumb-bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.live:hover .thumb img, .live:focus-visible .thumb img { transform: scale(1.03); }
.planned .thumb { background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 10px); }
.tile-body { display: flex; flex-direction: column; gap: 6px; }
.rid { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.live:hover .title, .live:focus-visible .title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.planned .title { color: var(--muted); }
.desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.planned .desc { color: var(--muted); }
.opens { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tags li { padding: 3px 8px; border: 1px solid var(--rule-strong); font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.err { grid-column: 1 / -1; padding: 16px; border: 1px solid var(--rule-strong); color: var(--ink-2); }

/* about + footer */
.band { background: var(--band); }
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.about h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.about p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.band + .band { border-top: 1px solid var(--rule); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: tip; }
.tips li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.6; color: var(--ink-2); counter-increment: tip; }
.tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tips b { font-weight: 600; color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 56px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(28px, calc(7.6vw - 6px), 56px); }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .tiles { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .theme { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status .dot::after { animation: none; opacity: 0; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.foot .contact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.foot .contact svg { flex: none; }
.foot .contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--faint); }
.foot .contact a:hover { border-bottom-color: var(--ink); }
@media (min-width: 720px) { .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; } .foot > :last-child { justify-self: end; } }
.t-red { color: var(--red); }
