@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/shared/fonts/sg-latin-ext-wght.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/shared/fonts/sg-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/shared/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/shared/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/shared/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/shared/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.system-page,
.ia-shell,
.ia-site-footer {
  --paper: #f3f1eb;
  --paper-2: #ece9e1;
  --ink: #141513;
  --muted: #5b5e58;
  --rule: rgba(20, 21, 19, 0.12);
  --brand: #1e3a34;
  --instrument: #141513;
  --instrument-card: #1c1e1b;
  --instrument-text: #f3f1eb;
  --instrument-muted: #b5b8b1;
  --instrument-rule: rgba(243, 241, 235, 0.12);
  --review-paper: #a15c12;
  --review-ink: #f0b46a;
  --blocked-paper: #8e2f2f;
  --blocked-ink: #f2a8a8;
  --cleared-paper: #3e6b54;
  --cleared-ink: #9fd1b6;
  --refused-paper: #3d4a66;
  --refused-ink: #b9c4dc;
  --font-display: "Schibsted Grotesk", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --page-width: 1200px;
  --gutter: 48px;
}

.system-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.system-page *,
.ia-shell *,
.ia-site-footer * {
  box-sizing: border-box;
}

.system-page a,
.ia-shell a,
.ia-site-footer a {
  color: inherit;
}

.system-page a:focus-visible,
.system-page button:focus-visible,
.ia-shell a:focus-visible,
.ia-site-footer a:focus-visible {
  outline: 3px solid var(--review-paper);
  outline-offset: 3px;
}

.ia-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
}

.ia-shell__inner {
  width: min(100%, var(--page-width));
  min-height: 80px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.ia-wordmark {
  color: var(--brand) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ia-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.ia-nav a,
.ia-language a,
.ia-footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.ia-nav a:hover,
.ia-footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ia-language {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.ia-language a {
  min-width: 44px;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ia-language a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.ia-button,
.system-page .ia-button {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ia-button:hover {
  background: #142d28;
}

.ia-button--quiet,
.system-page .ia-button--quiet {
  border-color: var(--instrument-rule);
  background: transparent;
  color: var(--instrument-text) !important;
}

.ia-button--quiet:hover {
  background: rgba(243, 241, 235, 0.08);
}

.system-main {
  min-height: 60vh;
}

.page-hero,
.section-inner,
.record-section,
.catalogue-section,
.denial-section,
.company-section {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page-hero {
  padding-top: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--rule);
}

.page-hero__measure {
  max-width: 860px;
}

.page-kicker,
.section-label,
.document-id,
.record-date,
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.page-kicker,
.section-label {
  margin: 0 0 16px;
  color: var(--muted);
}

.page-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.page-hero .lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.record-section,
.catalogue-section,
.denial-section,
.company-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.band {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  max-width: 760px;
  margin: 0 0 48px;
}

.section-heading h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.section-label) {
  margin: 16px 0 0;
  color: var(--muted);
}

.result-with-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: start;
}

.result-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--instrument-rule);
  border-radius: 14px;
  background: var(--instrument);
  color: var(--instrument-text);
  box-shadow: 0 24px 60px rgba(20, 21, 19, 0.16);
}

.result-panel__header {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--instrument-rule);
}

.result-panel__header p,
.result-panel__header h2,
.result-panel__header h3 {
  margin: 0;
}

.result-panel__header h2,
.result-panel__header h3 {
  font-size: 20px;
  line-height: 1.3;
}

.result-panel__eyebrow {
  margin-bottom: 8px !important;
  color: var(--instrument-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.result-lines {
  margin: 0;
  padding: 0 24px;
}

.result-line {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--instrument-rule);
}

.result-line:last-child {
  border-bottom: 0;
}

.result-line dt {
  color: var(--instrument-muted);
  font-size: 15px;
}

.result-line dd {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.result-line dd.mono {
  font-size: 13px;
  line-height: 1.65;
}

.result-panel__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--instrument-rule);
  color: var(--instrument-muted);
  font-size: 15px;
}

.status-chip {
  min-height: 32px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.status-chip[data-state="REVIEW"] { color: var(--review-ink); }
.status-chip[data-state="BLOCKED"] { color: var(--blocked-ink); }
.status-chip[data-state="CLEARED"] { color: var(--cleared-ink); }
.status-chip[data-state="REFUSED"] { color: var(--refused-ink); }

.purpose-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.purpose-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.purpose-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.purpose-list span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.paper-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
}

.paper-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.paper-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.paper-card p:last-child {
  margin-bottom: 0;
}

.command-block,
.hash-line {
  max-width: 100%;
  display: block;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.hash-comparison {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.hash-comparison p {
  margin: 0;
  color: var(--ink);
}

.hash-comparison code {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.check-verdict {
  min-height: 32px;
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-family: var(--font-mono);
  font-size: 13px !important;
}

.check-verdict[data-result="MATCH"] { color: var(--cleared-paper) !important; }
.check-verdict[data-result="MISMATCH"] { color: var(--blocked-paper) !important; }

.download-list,
.catalogue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.download-list a,
.catalogue-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-underline-offset: 4px;
}

.sample-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.packet-selector {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.packet-selector button {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.packet-selector button:hover,
.packet-selector button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.packet-selector strong,
.packet-selector span {
  display: block;
}

.packet-selector strong {
  font-size: 15px;
}

.packet-selector span {
  margin-top: 4px;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
}

.sample-panel {
  min-width: 0;
  max-width: 880px;
}

.sample-panel .result-panel {
  box-shadow: none;
}

.operator-observation {
  margin: 0 24px 24px;
  padding: 16px;
  border-left: 3px solid var(--review-ink);
  background: rgba(240, 180, 106, 0.08);
  color: var(--instrument-text);
  font-size: 15px;
}

.operator-observation strong {
  display: block;
  margin-bottom: 4px;
  color: var(--review-ink);
}

.operator-observation p {
  margin: 0;
}

.contents-list {
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.contents-list li {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}

.contents-list span:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.contents-list code {
  font-family: var(--font-mono);
  font-size: 13px;
}

.catalogue-row {
  padding: 32px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}

.catalogue-row > *,
.result-with-notes > *,
.ia-footer-column {
  min-width: 0;
}

.catalogue-row h2 {
  margin: 8px 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.catalogue-row p {
  margin: 0 0 16px;
  color: var(--muted);
}

.catalogue-meta {
  color: var(--muted);
}

.catalogue-hashes {
  max-width: 100%;
  margin-top: 24px;
  overflow-x: auto;
  border-top: 1px solid var(--rule);
}

.catalogue-hash {
  min-width: 720px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 120px minmax(480px, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.catalogue-hash code {
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}

.catalogue-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.denial-list {
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.denial-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.denial-list p {
  margin: 0;
}

.denial-list strong {
  font-size: 20px;
}

.text-link {
  min-height: 44px;
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--brand) !important;
  font-weight: 600;
  text-underline-offset: 4px;
}

.company-copy {
  max-width: 780px;
}

.company-copy p {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.5;
}

.company-copy .record-date {
  margin-top: 48px;
  color: var(--muted);
}

.ia-site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-display);
}

.ia-site-footer__inner {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 64px var(--gutter) 32px;
}

.ia-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.ia-footer-column h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.ia-footer-links {
  display: grid;
  align-content: start;
}

.ia-footer-links a {
  min-height: 36px;
  font-size: 15px;
}

.ia-footer-disclosure {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.ia-footer-legal {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.system-error {
  max-width: 760px;
  padding: 24px;
  border: 1px solid var(--blocked-paper);
  border-radius: 14px;
  color: var(--blocked-paper);
}

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .system-page,
  .ia-shell,
  .ia-site-footer { --gutter: 32px; }

  .ia-shell__inner {
    grid-template-columns: auto 1fr auto;
  }

  .ia-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
  }

  .ia-shell__inner > .ia-button {
    grid-column: 3;
    grid-row: 1;
  }

  .ia-language {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .result-with-notes {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .packet-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .system-page,
  .ia-shell,
  .ia-site-footer { --gutter: 20px; }

  .ia-shell__inner {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 8px 12px;
  }

  .ia-wordmark {
    font-size: 17px;
  }

  .ia-shell__inner > .ia-button {
    padding: 8px 11px;
    font-size: 14px;
  }

  .ia-language a {
    min-width: 36px;
  }

  .ia-nav {
    gap: 8px;
    overflow-x: auto;
  }

  .ia-nav a {
    min-width: max-content;
    font-size: 13px;
  }

  .page-hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-hero h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .page-hero .lead {
    font-size: 18px;
  }

  .record-section,
  .catalogue-section,
  .denial-section,
  .company-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .result-panel__header {
    display: grid;
  }

  .result-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .packet-selector {
    grid-template-columns: 1fr;
  }

  .catalogue-row {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ia-site-footer__inner {
    padding-top: 48px;
  }

  .ia-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 420px) {
  .ia-wordmark {
    max-width: 122px;
    white-space: normal;
    line-height: 1.05;
  }

  .ia-shell__inner > .ia-button {
    min-width: 74px;
  }

  .ia-nav a {
    font-size: 12px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .ia-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-page *,
  .system-page *::before,
  .system-page *::after,
  .ia-shell *,
  .ia-shell *::before,
  .ia-shell *::after,
  .ia-site-footer *,
  .ia-site-footer *::before,
  .ia-site-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
