/* Foundation */

/* Dossier wayfinding remains usable as native anchor links without scripts. */
.dossier-navigation { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; min-width: 0; padding: 12px 0; margin: 0 0 36px; background: #fff; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.dossier-navigation-name { font-size: .85rem; font-weight: 700; flex: 0 1 190px; overflow-wrap: anywhere; }
.dossier-navigation-rail { display: flex; gap: 4px; align-items: center; min-width: 0; flex: 1; }
.dossier-navigation-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; min-width: 0; flex: 1; padding: 3px; overscroll-behavior-x: contain; }
.dossier-navigation-scroll { flex: 0 0 44px; width: 44px; min-height: 44px; border: 0; background: #f1f1f1; color: #111; font: inherit; font-size: 1.2rem; cursor: pointer; }
.dossier-navigation-scroll:disabled { color: #888; background: transparent; cursor: default; }
.dossier-navigation-scroll:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.dossier-navigation-links a { display: flex; flex: 0 0 auto; align-items: center; min-width: 44px; min-height: 44px; max-width: 100%; padding: 10px 12px; overflow-wrap: anywhere; text-decoration: none; font-size: .85rem; line-height: 1.25; border: 1px solid transparent; }
.dossier-navigation-links a:hover { background: #eee; }
.dossier-navigation-links a[aria-current="location"] { background: #111; color: #fff; }
.dossier-navigation-links a:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
[data-dossier-section] { scroll-margin-top: calc(var(--dossier-nav-height, 104px) + 16px); }
[data-dossier-section]:focus { outline: none; }
@media (max-width: 900px) { .dossier-navigation { display: block; padding: 8px 0; margin-bottom: 24px; } .dossier-navigation-name { display: block; padding: 0 3px 4px; font-size: .875rem; } .dossier-navigation-links a { padding: 8px 10px; font-size: .875rem; } [data-dossier-section] { scroll-margin-top: calc(var(--dossier-nav-height, 144px) + 16px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

:root {
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  color: #111;
  background: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
}

a {
  color: inherit;
}

input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home,
.dossier {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

.draft-note {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 28px;
  color: #444;
}

/* Homepage and search */

.home {
  padding: 0 max(clamp(18px, 2.35vw, 40px), env(safe-area-inset-right)) 0 max(clamp(18px, 2.35vw, 40px), env(safe-area-inset-left));
}

.home-header h1 {
  font-size: clamp(4.55rem, 17vw, 17.6rem);
  line-height: 0.78;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  margin: clamp(30px, 4vw, 64px) 0 clamp(74px, 10vw, 170px);
  letter-spacing: -0.065em;
}

.home > .draft-note {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-align: right;
  margin: 0 0 30px;
}

.search {
  display: block;
  margin: 0 0 clamp(58px, 6vw, 110px);
}

#company-search {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #111;
  padding: 10px 0;
  font-size: clamp(1.9rem, 3.5vw, 4rem);
  letter-spacing: -0.055em;
  font-weight: 500;
  appearance: none;
  transition: background 0.2s ease, padding 0.2s ease;
}

#company-search::placeholder {
  color: #777;
  animation: search-fade 3s ease-in-out 1;
}

#company-search:focus-visible {
  background: transparent;
  box-shadow: inset 0 -3px #111;
}

#company-search:focus::placeholder {
  animation: none;
  color: #777;
}

#company-search::-webkit-search-cancel-button {
  filter: grayscale(1);
}

#no-results {
  font-size: 1.4rem;
  margin: 35px 0;
}

.index {
  padding-bottom: clamp(28px, 4vw, 64px);
}

/* Company grid and tile fronts */

.company-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
}

.company-tile {
  display: block;
  position: relative;
  text-decoration: none;
  perspective: 1100px;
  outline: 0;
  min-height: clamp(450px, 35vw, 500px);
}

.tile-inner {
  /* Overlap both faces while allowing either face to set the tile height. */
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.19, 1, 0.22, 1);
}

.company-tile:hover .tile-inner,
.company-tile:focus-visible .tile-inner {
  transform: rotateY(180deg);
}

.company-tile:focus-visible {
  outline: 3px solid #111;
  outline-offset: 5px;
}

.tile-face {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  overflow: hidden;
}

.tile-front {
  background: #e9e9e9;
  padding: clamp(25px, 3vw, 48px);
}

.company-tile:nth-child(3n+2) .tile-front {
  background: #d8d8d8;
}

.company-tile:nth-child(3n+3) .tile-front {
  background: #f0f0f0;
}

.tile-logo {
  display: grid;
  place-items: center;
  width: clamp(100px, 12vw, 182px);
  height: clamp(100px, 12vw, 182px);
  background: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 90px;
  letter-spacing: -0.08em;
}

.tile-logo img {
  display: block;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(1);
}

.tile-front-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tile-name {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  overflow-wrap: normal;
}

.tile-sector {
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  line-height: 1.25;
  font-weight: 500;
}

/* Tile backs */

.tile-back {
  background: #111;
  color: #fff;
  transform: rotateY(180deg);
  padding: clamp(26px, 2.4vw, 34px);
  overflow-wrap: anywhere;
}

.tile-back-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tile-back-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 82px;
  height: 82px;
  background: #fff;
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
  color: #111;
}

.tile-back-logo img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  filter: grayscale(1);
}

.tile-back-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tile-back-name {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.75rem, 2.1vw, 2.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.tile-back-sector {
  font-size: 0.95rem;
  line-height: 1.2;
}

.tile-back .tile-summary {
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.3;
  max-width: none;
  margin: auto 0 12px;
  /* Keep the complete summary in the face's intrinsic height. */
  display: block;
  flex-shrink: 0;
}

.tile-evidence {
  line-height: 1.35;
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #d0d0d0;
}

.tile-open {
  font-weight: 700;
  font-size: 1rem;
}

.tile-touch-cue {
  display: none;
}

/* Dossier header and summary */

.dossier {
  padding: 0 max(clamp(18px, 4vw, 68px), env(safe-area-inset-right)) 0 max(clamp(18px, 4vw, 68px), env(safe-area-inset-left));
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 clamp(50px, 7vw, 120px);
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  text-decoration: none;
}

.all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  text-decoration: none;
}

.brand:hover,
.all-link:hover,
.dossier-footer a:hover {
  text-decoration: underline;
}

.dossier .draft-note {
  margin-top: -30px;
  margin-bottom: 42px;
}

.dossier-hero {
  display: grid;
  grid-template-columns: minmax(140px, 25%) 1fr;
  gap: clamp(25px, 4vw, 70px);
  align-items: start;
}

.dossier-logo {
  width: clamp(140px, 20vw, 290px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ededed;
  display: grid;
  place-items: center;
  font-size: clamp(70px, 11vw, 160px);
  font-weight: 800;
}

.dossier-logo img {
  width: 67%;
  height: 67%;
  object-fit: contain;
  filter: grayscale(1);
}

.dossier-sector {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  margin: 0 0 12px;
}

.dossier-hero h1 {
  font-size: clamp(4.5rem, 8.5vw, 10rem);
  line-height: 0.88;
  overflow-wrap: anywhere;
  margin: 0 0 clamp(34px, 5vw, 75px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.dossier-summary {
  font-size: clamp(1.45rem, 2.3vw, 2.45rem);
  line-height: 1.2;
  max-width: 45ch;
  margin: 0;
}

.dossier-summary .status {
  vertical-align: middle;
  margin-left: 7px;
}

.dossier-meta {
  display: flex;
  gap: clamp(25px, 5vw, 90px);
  font-size: clamp(1.1rem, 1.35vw, 1.5rem);
  margin: clamp(55px, 6vw, 90px) 0 clamp(85px, 9vw, 130px);
}

.dossier-meta p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dossier-meta span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.95rem;
  color: #444;
}

/* Article and claim labels */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(240px, 0.72fr);
  gap: clamp(45px, 8vw, 150px);
  align-items: start;
}

.article-section {
  margin-bottom: clamp(65px, 7vw, 110px);
}

.dossier h2 {
  font-size: clamp(2.15rem, 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 34px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.article-section > p {
  font-size: clamp(1.2rem, 1.55vw, 1.6rem);
  line-height: 1.45;
  max-width: 53ch;
  margin: 0 0 24px;
}

.article-section .section-date {
  font-size: 0.95rem;
  color: #666;
  margin-top: 23px;
}

.ref {
  font-weight: 700;
  vertical-align: top;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 0.1em;
  font-size: max(0.875rem, 0.7em);
  color: #222;
}

.ref:hover {
  text-decoration: underline;
}

.status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
  color: #333;
}

.limitations {
  color: #555;
}

.claim-list,
.timeline,
.sources ol,
.article-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.claim-list li + li,
.timeline li + li,
.sources li + li {
  border-top: 1px solid #ddd;
}

.claim-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 22px;
  padding: 22px 0;
  background: #fff;
}

.claim-list p {
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 58ch;
  margin: 0;
}

.claim-list .status {
  text-align: right;
}

/* Assessment table */

.assessment-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 1.05rem;
  line-height: 1.45;
}

.assessment-table th,
.assessment-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 18px 18px 0;
  border-top: 1px solid #d7d7d7;
  overflow-wrap: anywhere;
}

.assessment-table thead th {
  font-size: 0.9rem;
  color: #555;
  font-weight: 700;
  border-top: 2px solid #111;
}

.assessment-table th:first-child {
  width: 32%;
  font-weight: 700;
}

.assessment-table td p {
  margin: 9px 0 0;
}

.assessment-table .missing-record {
  font-size: 0.95rem;
  color: #555;
}

/* Timeline and visual explanations */

.timeline li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 25px;
  padding: 20px 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.timeline time {
  font-weight: 700;
}

.timeline a {
  font-size: 0.95rem;
}

.explainer figure {
  margin: 0;
}

.explainer img {
  display: block;
  max-width: 100%;
  height: auto;
}

.explainer figcaption {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin-top: 18px;
}

.visual-limits {
  margin: 16px 0 0;
  padding-left: 22px;
  max-width: 70ch;
  line-height: 1.55;
}

.visual-limits li + li {
  margin-top: 10px;
}

.visual-source-date {
  color: #555;
  font-size: 0.9em;
}

/* Dossier sidebar */

.article-aside {
  position: sticky;
  top: 30px;
  background: #efefef;
  padding: clamp(24px, 3vw, 45px);
}

.article-aside h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  margin-bottom: 26px;
}

.article-aside li {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 24px;
}

.aside-context {
  margin-top: 80px;
}

.aside-context p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Sources and footer */

.sources {
  margin-bottom: 80px;
}

.sources ol {
  max-width: 950px;
}

.sources li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  padding: 22px 0;
  font-size: 1.15rem;
}

.source-number {
  color: #444;
}

.sources li a {
  font-weight: 700;
  text-decoration: none;
}

.sources li a:hover {
  text-decoration: underline;
}

.sources li p,
.source-cutoff {
  margin: 7px 0 0;
  font-size: 1rem;
  color: #444;
}

.source-cutoff {
  margin-top: 35px;
}

.dossier-footer {
  display: flex;
  justify-content: space-between;
  background: #111;
  color: #fff;
  margin: 0 calc(-1 * clamp(18px, 4vw, 68px));
  padding: 30px clamp(18px, 4vw, 68px);
  font-size: 1rem;
}

.dossier-footer a {
  text-decoration: none;
  font-weight: 800;
}

/* A single, readable search hint cycle. */

@keyframes search-fade {
  50% {
    color: #888;
  }
}

/* Tablet */

@media (max-width: 1050px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-tile {
    min-height: 450px;
  }

  .tile-name {
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    overflow-wrap: normal;
    line-height: 1;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .home-header h1 {
    font-size: 17.5vw;
    margin: 35px 0 75px;
  }

  .search {
    margin-bottom: 46px;
  }

  #company-search {
    font-size: 2rem;
  }

  #company-search::placeholder {
    font-size: min(1em, 10vw);
    letter-spacing: -0.055em;
  }

  .company-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .company-tile {
    min-height: clamp(280px, 80vw, 340px);
  }

  .tile-front {
    padding: 24px;
    gap: 24px;
  }

  .tile-logo {
    width: 126px;
    height: 126px;
  }

  .tile-name {
    font-size: clamp(2rem, 9.2vw, 2.75rem);
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1;
  }

  .tile-back {
    padding: 24px;
  }

  .tile-back-logo {
    width: 66px;
    height: 66px;
  }

  .tile-back .tile-summary {
    font-size: 1rem;
  }

  .dossier-header {
    padding: 22px 0 65px;
  }

  .dossier-hero {
    display: block;
  }

  .dossier-logo {
    width: 120px;
    margin-bottom: 38px;
  }

  .dossier-hero h1 {
    font-size: clamp(4.1rem, 16vw, 8rem);
    margin-bottom: 32px;
  }

  .dossier-summary {
    font-size: 1.5rem;
  }

  .dossier-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    margin: 65px 0 90px;
  }

  .article-layout {
    display: flex;
    flex-direction: column;
  }

  .article-main {
    width: 100%;
  }

  .article-section {
    margin-bottom: 75px;
  }

  .article-aside {
    position: static;
    width: 100%;
    margin: 0 0 75px;
  }

  .claim-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .claim-list .status {
    text-align: left;
  }

  .assessment-table {
    font-size: 1rem;
  }

  .assessment-table th,
  .assessment-table td {
    padding: 15px 10px 15px 0;
  }

  .assessment-table th:first-child {
    width: 34%;
  }

  .timeline li {
    display: block;
  }

  .timeline time {
    display: block;
    margin-bottom: 8px;
  }

  .sources li {
    gap: 12px;
  }
}

/* Touch interaction */

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .home-header h1 { font-size: clamp(3.5rem, 10vw, 6rem); margin: 24px 0 28px; }
  .search { margin-bottom: 24px; }
  #company-search { font-size: 1.75rem; }
  .company-tile { min-height: 300px; }
}

@media (hover: none) {
  .company-tile:hover .tile-inner,
  .company-tile:focus-visible .tile-inner {
    transform: none;
  }

  /* A touch tap opens the dossier directly. Its hidden hover face must not
     reserve a second screen of space or intercept the first tap. */
  .company-tile .tile-back { display: none; }
  .company-tile .tile-front { visibility: visible !important; }

  .tile-touch-cue {
    display: block;
    position: absolute;
    right: 24px;
    top: 18px;
    font-size: 0.9rem;
    font-weight: 700;
  }

}

/* Reduced motion */

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

  #company-search::placeholder {
    animation: none;
    color: #777;
  }

  #company-search {
    transition: none;
  }

  .tile-inner {
    transition: none;
  }

  .company-tile:hover .tile-inner,
  .company-tile:focus-visible .tile-inner {
    transform: none;
  }

  .company-tile:hover .tile-front,
  .company-tile:focus-visible .tile-front {
    visibility: hidden;
  }

  .company-tile:hover .tile-back,
  .company-tile:focus-visible .tile-back {
    transform: none;
  }
}
