/*
 * CACK: Cognitive Anomaly Classification Kernel
 * Built by Awaiz Ahmed. Copyright (c) 2026 Kanban Studios F.Z.E. All rights reserved.
 * Proprietary: no copying, modification or redistribution without written permission (see LICENSE).
 */
/*
 * CACK paper. Print (and the PDF) follows the IEEE conference layout: US Letter, 0.75 in top and
 * 1 in bottom margins, two 3.5 in columns with a 0.22 in gutter, Times 10 pt body, 24 pt title,
 * 9 pt bold abstract, small-caps section headings with Roman numerals, 8 pt tables, captions and
 * references. The screen version keeps the same typography in a single readable column.
 */
:root {
  --ink: #000;
  --muted: #3f3f46;
  --link: #1d4ed8;
  --page: #fff;
  --desk: #e7e9ee;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--desk); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--desk);
  font: 18px/1.5 "Times New Roman", Times, Tinos, "Liberation Serif", "Nimbus Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.toolbar {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 18px; align-items: center; justify-content: center;
  padding: 9px 16px; background: rgba(8, 11, 18, 0.93); backdrop-filter: blur(8px);
  font: 600 13px/1.2 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
.toolbar a { color: #67e8f9; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.toolbar a:hover { text-decoration: underline; }

article {
  max-width: 860px; margin: 28px auto 64px; padding: 60px 72px 64px; background: var(--page);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Title block */
.paper-head { text-align: center; }
h1 { font-weight: normal; font-size: 2.05em; line-height: 1.15; margin: 0 0 0.85em; }
.author { font-size: 1.05em; line-height: 1.2; margin: 0 0 1.6em; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; column-gap: 4em; }

/* Abstract and index terms */
.abstract, .index-terms {
  font-weight: bold; font-size: 0.9em; line-height: 1.4; text-align: justify; text-indent: 1.5em; margin: 0 0 0.9em;
  hyphens: auto;
}
.index-terms { font-style: italic; margin-bottom: 1.2em; }

/* Headings: I. Introduction (small caps, centered), A. Subsection (italic) */
h2 {
  font-weight: normal; font-size: 1em; font-variant: small-caps; text-align: center; letter-spacing: 0.02em;
  margin: 1.7em 0 0.55em;
}
h3 { font-weight: normal; font-style: italic; font-size: 1em; margin: 1.15em 0 0.35em; }

p { margin: 0 0 0.6em; text-indent: 1.5em; text-align: justify; hyphens: auto; }
p.cont { text-indent: 0; }
a { color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }

/* Equations */
.eq { overflow-x: auto; overflow-y: hidden; }
.katex { font-size: 1.08em; }
.katex-display { margin: 0.55em 0; }

/* Figures: "Fig. 1." captions below */
figure { margin: 1.4em 0; text-align: center; }
figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
figcaption { font-size: 0.8em; line-height: 1.35; text-align: justify; margin-top: 0.6em; hyphens: auto; }
.lab { margin-right: 0.6em; }

/* Tables: "TABLE I." captions above, full grid, bold header */
.tbl { margin: 1.4em 0; overflow-x: auto; }
table { border-collapse: collapse; margin: 0 auto; font-size: 0.8em; line-height: 1.3; }
caption { font-variant: small-caps; text-align: center; padding-bottom: 0.55em; line-height: 1.3; }
caption .lab { font-variant: normal; text-transform: uppercase; margin-right: 1.4em; }
th, td { border: 0.5pt solid #000; padding: 1px 5px; text-align: center; vertical-align: middle; }
th { font-weight: bold; }
td.l, th.l { text-align: left; }
td.k { font-size: 0.95em; }
td.best { font-weight: bold; }
tr.tier td { font-style: italic; text-align: left; }
table.taxonomy td:first-child { text-align: left; }
.sd { font-size: 0.82em; white-space: nowrap; }
.tnote { font-size: 0.72em; line-height: 1.3; text-align: justify; margin: 0.45em auto 0; max-width: 34em; }

/* References: [n] with a hanging indent */
.refs-head { margin-top: 1.9em; }
.refs {
  list-style: none; counter-reset: ref; margin: 0; padding: 0; font-size: 0.8em; line-height: 1.35;
}
.refs li { counter-increment: ref; position: relative; padding-left: 2.6em; margin: 0 0 0.3em; text-align: justify; }
.refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; }

@media screen and (max-width: 760px) {
  body { font-size: 17px; }
  article { margin: 0; padding: 28px 16px 44px; box-shadow: none; }
  h1 { font-size: 1.55em; }
  p, .abstract, .index-terms { text-align: left; }
  table { font-size: 0.72em; }
}

.site-foot {
  max-width: 860px; margin: -40px auto 48px; padding: 0 16px; text-align: center; color: #52525b;
  font: 13px/1.5 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Print / PDF: IEEE conference layout ---------- */
@page { size: 8.5in 11in; margin: 0.75in 0.625in 1in 0.625in; }

@media print {
  html, body { background: #fff; }
  body { font-size: 10pt; line-height: 10.9pt; }
  .toolbar, .site-foot { display: none; }
  article { max-width: none; margin: 0; padding: 0; box-shadow: none; }

  h1 { font-size: 24pt; line-height: 27.6pt; margin: 0 0 21pt; }
  .author { font-size: 11pt; line-height: 12.6pt; margin: 0 0 4pt; }

  .cols { column-count: 2; column-gap: 16pt; column-fill: balance; }

  .abstract, .index-terms { font-size: 9pt; line-height: 10.35pt; text-indent: 13.5pt; margin: 0 0 10pt; }
  .index-terms { margin-bottom: 7pt; }

  h2 { font-size: 10pt; line-height: 11pt; margin: 8pt 0 4pt; letter-spacing: 0; break-after: avoid; }
  h3 { font-size: 10pt; line-height: 11pt; margin: 6pt 0 3pt; break-after: avoid; }
  p { margin: 0 0 6pt; text-indent: 14.4pt; orphans: 2; widows: 2; }
  p.cont { text-indent: 0; }
  a { color: inherit; }

  .katex { font-size: 1.04em; }
  .katex-display { margin: 3pt 0 5pt; }
  .eq { overflow: visible; }

  figure { margin: 6pt 0 10pt; break-inside: avoid; }
  figcaption { font-size: 8pt; line-height: 9pt; margin-top: 4pt; }
  .lab { margin-right: 4pt; }

  .tbl { margin: 8pt 0 10pt; overflow: visible; break-inside: avoid; }
  table { font-size: 8pt; line-height: 9.2pt; }
  caption { padding-bottom: 5pt; line-height: 9.5pt; }
  caption .lab { margin-right: 12pt; }
  th, td { padding: 0.5pt 3.5pt; }
  .tnote { font-size: 7pt; line-height: 8.2pt; margin-top: 3pt; max-width: none; }

  /* Double-column floats (IEEE figure* / table*) */
  .wide { column-span: all; margin: 4pt 0 12pt; }
  figure.wide img { max-width: 100%; }

  .refs-head { margin-top: 8pt; }
  .refs { font-size: 8pt; line-height: 9.1pt; }
  .refs li { padding-left: 18pt; margin: 0 0 2.4pt; }
}
