/**
 * Shanghai Shipping Exchange — Freight Indices intro iframe content
 * Scope: body.sse-indices (HTM files loaded inside parent introduction pages)
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-medium.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-bold.ttf") format("truetype");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.ttf") format("truetype");
}

:root {
  --sse-navy: #0b1f3a;
  --sse-navy-mid: #12325c;
  --sse-ocean: #1a5f8a;
  --sse-teal: #2a8f8f;
  --sse-gold: #c4a052;
  --sse-gold-soft: #e8d5a3;
  --sse-bg: #eef3f8;
  --sse-surface: #ffffff;
  --sse-surface-alt: #f7fafc;
  --sse-border: #d4dee8;
  --sse-text: #1a2d42;
  --sse-text-muted: #5c7086;
  --sse-link: #1a5f8a;
  --sse-link-hover: #0e4568;
  --sse-radius: 6px;
  --sse-font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --sse-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* ── Base ── */
body.sse-indices {
  margin: 0;
  padding: 20px 24px;
  box-sizing: border-box;
  font: 13px/1.65 var(--sse-font);
  color: var(--sse-text);
  background: #fff;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

body.sse-indices a:link,
body.sse-indices a:visited {
  color: var(--sse-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

body.sse-indices a:hover {
  color: var(--sse-link-hover);
  text-decoration: underline;
}

/* ── Introduction content (.aboutttif) ── */
body.sse-indices .aboutttif {
  line-height: 1.7;
  text-align: justify;
}

body.sse-indices .aboutttif p {
  margin: 0 0 12px;
}

body.sse-indices .aboutttif strong {
  font-weight: 600;
  color: var(--sse-navy);
}

body.sse-indices .aboutttif h1,
body.sse-indices .aboutttif h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: var(--sse-serif);
  font-weight: 400;
  color: var(--sse-navy);
  border-bottom: 2px solid var(--sse-gold);
}

body.sse-indices .aboutttif h1 {
  font-size: 26px;
}

body.sse-indices .aboutttif h2 {
  font-size: 22px;
}

body.sse-indices .aboutttif ul {
  margin: 0 0 12px;
  padding-left: 24px;
  list-style: disc;
}

body.sse-indices .aboutttif li {
  margin-bottom: 4px;
}

body.sse-indices .aboutttif img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

body.sse-indices .aboutttif .intro-indent-20,
body.sse-indices .aboutttif span.intro-indent-20 {
  display: block;
  margin-left: 20px;
}

body.sse-indices .aboutttif .intro-indent-50 {
  margin-left: 50px;
}

body.sse-indices .aboutttif div img {
  display: block;
  margin: 8px auto;
}

body.sse-indices .aboutttif table {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  overflow: hidden;
  background: var(--sse-surface);
}

body.sse-indices .aboutttif table td,
body.sse-indices .aboutttif table th {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--sse-border);
}

body.sse-indices .aboutttif table tr:first-child td,
body.sse-indices .aboutttif table tr:first-child th {
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: var(--sse-teal);
  border-color: rgba(255, 255, 255, 0.15);
}

body.sse-indices .aboutttif table tr:not(:first-child) td {
  background: var(--sse-surface-alt);
}

body.sse-indices .aboutttif table tr:not(:first-child):nth-child(even) td {
  background: var(--sse-surface);
}

/* ── Agreement content (.agtt) ── */
body.sse-indices .agtt {
  line-height: 1.7;
  text-align: justify;
}

body.sse-indices .agtt p {
  margin: 0 0 12px;
}

body.sse-indices .agtt table {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  overflow: hidden;
  background: var(--sse-surface);
}

body.sse-indices .agtt table td,
body.sse-indices .agtt table th {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--sse-border);
  background: var(--sse-surface);
}

body.sse-indices .agtt table tr:first-child td {
  font-family: var(--sse-serif);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--sse-navy-mid), var(--sse-ocean));
  border-color: rgba(255, 255, 255, 0.15);
}

body.sse-indices .agtt table tr:nth-child(2) td {
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: var(--sse-teal);
  border-color: rgba(255, 255, 255, 0.15);
}

body.sse-indices .agtt table tr:nth-child(n+3) td {
  background: var(--sse-surface-alt);
}

body.sse-indices .agtt table tr:nth-child(n+3):nth-child(even) td {
  background: var(--sse-surface);
}
