/* Clearnet Labs threat intelligence. House style from clearnetlabs.com.au:
   black header, square corners, primary #00a8f3, deep teal panels, rule + label section marks. */
@import url(https://fonts.bunny.net/css?family=figtree:400,500,600,700,800|rubik:500,600,700|jetbrains-mono:400,500);

:root {
  --primary: #00a8f3;
  --primary-dark: #02638f;
  --teal: #0d2638;
  --black: #000;
  --heading: #001448;
  --ink: #2c2c2c;
  --muted: #5d6676;
  --line: #dfe5ec;
  --wash: #f4f7fa;
  --code-bg: #0d2638;
  --code-ink: #d7e9f7;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; overflow-x: hidden; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* header: black, square white CTA */
.topbar { background: var(--black); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.topbar img { height: 30px; display: block; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover { color: var(--primary); }
.topbar nav a.cta { background: #fff; color: #000; padding: 14px 26px; font-weight: 700; }
.topbar nav a.cta:hover { background: var(--primary); color: #fff; }

/* section label: short rule + uppercase word, as on the main site */
.label { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-dark); }
.label::before { content: ''; width: 56px; height: 2px; background: currentColor; flex: none; }

/* hero: dark teal with the logomark */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--teal); padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); }
.hero::after { content: ''; position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: min(52vw, 720px); aspect-ratio: 1; background: url(../img/favicon.svg) center / contain no-repeat; opacity: .09; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .label { color: var(--primary); }
.hero h1 { font-family: 'Rubik', sans-serif; font-weight: 700; letter-spacing: -.015em; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.04; margin: 0 0 24px; max-width: 16ch; }
.hero .lede { font-size: clamp(17px, 1.5vw, 21px); color: #c6d6e4; max-width: 62ch; margin: 0 0 32px; }
.hero dl { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid rgba(255,255,255,.16); max-width: 900px; }
.hero dl div { padding: 16px 32px 0 0; margin-right: 32px; }
.hero dt { font-size: 13px; color: #8fa8bd; }
.hero dd { margin: 2px 0 0; font-weight: 600; color: #fff; }
.tlp { display: inline-block; background: #fff; color: #000; font-weight: 800; padding: 0 8px; letter-spacing: .03em; }

/* layout */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(40px, 6vw, 80px) var(--gutter) 96px; max-width: 1440px; margin: 0 auto; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.toc summary { list-style: none; font-family: 'Rubik', sans-serif; font-weight: 600; color: var(--heading); margin-bottom: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a:hover { border-left-color: var(--primary); color: var(--primary-dark); }

article { min-width: 0; }
article > section { max-width: 920px; padding-top: 56px; scroll-margin-top: 16px; }
article > section:first-child { padding-top: 0; }
article > section.wide { max-width: none; }
article h2 { font-family: 'Rubik', sans-serif; font-weight: 700; color: var(--heading); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
article h3 { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 20px; color: var(--heading); margin: 32px 0 10px; }
article p, article li { max-width: 74ch; }
article p { margin: 0 0 16px; }
article ul { padding-left: 22px; margin: 0 0 16px; }
article li { margin: 5px 0; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em; background: var(--wash); color: var(--heading); padding: 1px 5px; overflow-wrap: anywhere; }
code, pre { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* key judgements: ruled list on teal */
.judgements { background: var(--teal); color: #d6e4ef; padding: clamp(24px, 3vw, 40px); }
.judgements h2 { color: #fff; }
.judgements ul { list-style: none; max-width: 78ch; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.judgements li { max-width: none; margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 16.5px; line-height: 1.6; }
.judgements code { background: rgba(255,255,255,.08); color: #fff; }

/* tables */
.tbl { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { background: var(--teal); color: #fff; text-align: left; font-weight: 600; padding: 12px 16px; font-size: 14px; }
td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td.t { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--primary-dark); min-width: 140px; }
td.h { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; overflow-wrap: anywhere; min-width: 200px; }

/* code */
pre { background: var(--code-bg); color: var(--code-ink); padding: 20px 22px; overflow-x: auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.6; margin: 8px 0 24px; border-left: 4px solid var(--primary); }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; }
.dl a { text-decoration: none; background: var(--primary); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 20px; }
.dl a:hover { background: var(--primary-dark); color: #fff; }

/* landing */
.reports { padding: clamp(40px, 6vw, 80px) 0 96px; }
.report { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.report h3 { font-family: 'Rubik', sans-serif; font-weight: 700; color: var(--heading); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; margin: 0 0 10px; }
.report p { margin: 0; color: var(--muted); max-width: 70ch; }
.report .go { background: var(--primary); color: #fff; font-weight: 600; padding: 14px 24px; white-space: nowrap; }
.report:hover h3 { color: var(--primary-dark); }

footer { background: var(--black); color: #9aa7b6; font-size: 14px; padding: 32px 0; }
footer a { color: #fff; }
.note { color: var(--muted); font-size: 15px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* mobile */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); padding: 14px 18px; }
  .toc summary { cursor: pointer; margin: 0; }
  .toc[open] summary { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .wrap { min-height: 64px; }
  .topbar img { height: 22px; }
  .topbar nav a:not(.cta) { display: none; }
  .topbar nav a.cta { padding: 10px 14px; font-size: 14px; }
  .hero::after { width: 90vw; right: -40vw; opacity: .07; }
  .hero dl div { padding-right: 20px; margin-right: 0; }
  .report { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 9px 12px; }
}
article > section.judgements { max-width: none; padding: clamp(24px, 3vw, 40px); }
