/* ICCT paper layout — default single column for easier author input & fewer layout errors.
   Add class layout-two-column on .icct-paper-body for final proceedings PDF. */
@page {
  size: Letter;
  margin: 0.75in 0.62in 1.0in 0.62in;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 10pt;
  line-height: 1.35;
  color: #000;
  background: #fff;
}

.icct-paper {
  max-width: 6.5in;
  margin: 0 auto;
}

.icct-paper.layout-wide {
  max-width: 8.5in;
}

.icct-paper-header {
  text-align: center;
  margin-bottom: 0.25in;
  max-width: 6.5in;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.icct-paper-title {
  font-size: 16pt;
  font-weight: bold;
  margin: 0 0 0.15in 0;
  max-width: 100%;
}

.icct-paper-authors {
  font-size: 9.5pt;
  margin: 0 0 0.1in 0;
  max-width: 100%;
  line-height: 1.35;
}

.icct-author-block {
  display: block;
  margin: 0 0 0.07in 0;
}

.icct-author-line1 {
  display: block;
}

.icct-author-line2 {
  display: block;
  font-size: 9pt;
}

.icct-author-corr-note {
  display: block;
  margin-top: 0.06in;
  font-size: 8.5pt;
  font-style: italic;
}

/* Default: single column */
.icct-paper-body {
  column-count: 1;
  text-align: justify;
}

.icct-paper-body.layout-two-column {
  column-count: 2;
  column-gap: 0.5in;
}

.icct-paper-fullwidth {
  break-inside: avoid;
}

.icct-abstract-block {
  margin-bottom: 0.15in;
}

.icct-abstract-block p {
  margin: 0.05in 0;
  white-space: normal;
}

.icct-keywords {
  font-style: italic;
  margin-bottom: 0.15in;
}

.icct-section-heading {
  font-weight: bold;
  margin: 0.15in 0 0.08in 0;
  break-after: avoid;
}

.icct-section-heading.level-1 {
  font-size: 11pt;
  text-transform: uppercase;
}

.icct-section-heading.level-2 {
  font-size: 10pt;
}

.icct-section-heading.level-3 {
  font-size: 10pt;
  font-style: italic;
}

.icct-section-content p {
  margin: 0 0 0.08in 0;
  text-indent: 0.15in;
}

.icct-figure,
.icct-table-wrap,
.icct-equation {
  break-inside: avoid;
  margin: 0.12in auto;
  display: block;
  box-sizing: border-box;
}

.icct-paper-body.layout-two-column .icct-figure.full-width,
.icct-paper-body.layout-two-column .icct-table-wrap.full-width {
  column-span: all;
}

/* Figures + captions: centered on the page */
.icct-figure {
  text-align: center;
}

.icct-figure img {
  display: block;
  max-width: 100%;
  max-height: 6.5in;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.icct-caption-above,
.icct-caption-below,
.icct-figure .icct-caption-below,
.icct-figure figcaption {
  font-size: 9pt;
  text-align: center !important;
  margin-top: 0.05in;
  margin-bottom: 0.05in;
  width: 100%;
  max-width: 6.5in;
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-sizing: border-box;
}

/* Tables + titles: centered block; keep cell structure intact */
.icct-table-wrap {
  max-width: 100%;
  text-align: center;
}

.icct-table-wrap > .icct-caption-above {
  text-align: center !important;
}

.icct-table-wrap table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 9pt;
  border: 1px solid #333 !important;
  margin-left: auto;
  margin-right: auto;
  table-layout: auto;
}

.icct-table-wrap table th,
.icct-table-wrap table td {
  border: 1px solid #333 !important;
  padding: 0.06in 0.08in;
  vertical-align: middle;
}

.icct-table-wrap table th.icct-th-multiline,
.icct-table-wrap table th[data-lines="multi"] {
  text-align: left;
}

.icct-table-spacing-compact table td,
.icct-table-spacing-compact table th {
  padding: 0.04in 0.06in;
  line-height: 1.15;
}

.icct-table-spacing-normal table td,
.icct-table-spacing-normal table th {
  padding: 0.06in 0.08in;
  line-height: 1.35;
}

.icct-table-spacing-relaxed table td,
.icct-table-spacing-relaxed table th {
  padding: 0.09in 0.1in;
  line-height: 1.55;
}

.icct-equation {
  position: relative;
  text-align: center;
}

.icct-equation .eq-content {
  display: block;
  overflow-x: auto;
}

.icct-equation .eq-num {
  position: absolute;
  right: 0;
  top: 0.35em;
  min-width: 1.6em;
  text-align: right;
  font-weight: 600;
}

.icct-equation .eq-content .katex,
.icct-equation .eq-content .katex-display {
  margin: 0.12em 0;
}

.icct-equation .icct-caption-below {
  display: block;
  width: 100%;
}

.icct-section-content .katex-display {
  margin: 0.2em 0;
}

.icct-references {
  margin-top: 0.15in;
  column-span: all;
  break-before: column;
  break-before: avoid;
  page-break-before: avoid;
}

.icct-references h2 {
  font-size: 10pt;
  text-transform: uppercase;
  margin: 0 0 0.08in 0;
  break-after: avoid;
  page-break-after: avoid;
}

.icct-ref-item {
  display: block;
  clear: both;
  font-size: 9pt;
  margin: 0 0 0.06in 0;
  padding-left: 0.2in;
  text-indent: -0.2in;
  line-height: 1.35;
  break-inside: avoid;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media print {
  .icct-paper-body.layout-two-column {
    column-count: 2;
    column-gap: 0.5in;
  }
}
