/* NanŌmics industry formal — IEEE / IACR / ACM journal typeset
   Authority: INDUSTRY_FORMAL_TYPESET_LOCK_v1.md · Arthur 2026-08-30
   Use: DTS · Sentry whitepaper · investor formal pack · patent formal HTML
   Do not use: Style B / .app manifesto · decks · one-pagers · OEM worksheets */

@page {
  size: letter;
  margin: 0.85in 0.9in 0.85in 0.9in;
}

html {
  font-size: 11pt;
}

body {
  font-family: "Times New Roman", Times, "Liberation Serif", "DejaVu Serif", serif;
  line-height: 1.35;
  color: #111;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: justify;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

/* Browser review: letter margins + left rule (print still uses @page) */
@media screen {
  body {
    max-width: 8.5in;
    margin: 1.25rem auto;
    padding: 0.85in 0.9in 0.85in 0.95in;
    border-left: 3px solid #111;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 0 0 1px #ddd;
  }
}

header#title-block-header {
  display: none;
}

/* Abstract: narrower measure, heading centered, body ~9–10 pt justified */
.paper-abstract,
section.paper-abstract,
section#abstract {
  max-width: 78%;
  margin: 1.15rem auto 1.55rem;
  padding: 0.15rem 0.35rem 0.45rem;
  text-align: justify;
}

.paper-abstract h2,
section.paper-abstract h2,
section#abstract > h2,
h2#abstract {
  text-align: center;
  border-bottom: none;
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
  letter-spacing: normal;
  font-variant: normal;
  font-size: 11pt;
  font-weight: 700;
  padding-bottom: 0;
}

.paper-abstract p,
section.paper-abstract p,
section#abstract p {
  text-align: justify;
  font-size: 9.5pt;
  line-height: 1.32;
  margin: 0.45rem 0;
  hyphens: auto;
}

@media print {
  .paper-abstract,
  section.paper-abstract,
  section#abstract {
    max-width: 72%;
  }
}

h1, h2, h3 {
  text-align: left;
  letter-spacing: normal;
  font-variant: normal;
  hyphens: none;
}

h1 {
  font-size: 16pt;
  font-weight: 700;
  border-bottom: 2px solid #111;
  padding-bottom: 0.35rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  page-break-after: avoid;
}

h2 {
  font-size: 12pt;
  font-weight: 700;
  margin-top: 1.1rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
  page-break-after: avoid;
}

h3 {
  font-size: 11pt;
  font-weight: 700;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

p, li {
  font-size: 10.5pt;
  margin: 0.35rem 0;
  orphans: 3;
  widows: 3;
}

li {
  text-align: justify;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid #bbb;
  margin: 0.85rem 0;
}

blockquote {
  border-left: 3px solid #111;
  margin: 0.6rem 0;
  padding: 0.25rem 0.85rem;
  background: #fafafa;
  text-align: left;
  hyphens: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.55rem 0 0.85rem;
  font-size: 9.5pt;
  page-break-inside: auto;
}

thead {
  display: table-header-group;
}

tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

th, td {
  border: 1px solid #333;
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
  hyphens: none;
}

th {
  background: #f2f2f2;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem auto;
  page-break-inside: avoid;
}

pre, code {
  font-family: "Menlo", "Consolas", "Courier New", monospace;
  font-size: 9pt;
}

pre {
  border: 1px solid #ccc;
  padding: 0.5rem;
  overflow-x: auto;
  background: #fafafa;
  text-align: left;
  hyphens: none;
}

ul, ol {
  margin: 0.35rem 0 0.55rem 1.1rem;
  padding: 0;
}

/* Author–year / report bibliography: hanging indent, left (IEEE/ACM) */
#references p,
section#references p {
  padding-left: 1.5em;
  text-indent: -1.5em;
  text-align: left;
  font-size: 10pt;
  hyphens: auto;
}

/* Close paper → /resources. Heading-row box, not a corner overlay. Arthur 2026-09-23. */
.paper-close { display: none !important; }
.head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.head-row .title { margin: 0; }
a.back {
  flex: 0 0 auto;
  color: #007a8a;
  text-decoration: none;
  border: 1px solid #007a8a;
  padding: 4px 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 12pt;
  font-weight: 400;
}
a.back:hover,
a.back:focus {
  background: #007a8a;
  color: #fff;
}
@media print {
  a.back { display: none !important; }
}

/* Cover-letter address only — never match paper body paragraphs */
.cover-letter > p:first-of-type,
.cover-letter > p:nth-of-type(2),
.cover-letter > p:nth-of-type(3),
.cover-letter > p:nth-of-type(4) {
  margin: 0.15rem 0;
  text-align: left;
  hyphens: none;
}
