.ocean-index-table {
  width: 100%;
}

.ocean-index-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

@media (max-width: 900px) {
  .ocean-index-table table {
    font-size: 11px;
  }
  .ocean-index-table th,
  .ocean-index-table td {
    padding: 4px 6px;
  }
}

@media (max-width: 640px) {
  .ocean-index-table table {
    font-size: 9px;
  }
  .ocean-index-table th,
  .ocean-index-table td {
    padding: 3px 4px;
  }
  .ocean-index-table td:nth-child(2) {
    min-width: 110px;
    word-break: break-word;
  }
}

@media (min-width: 641px) {
  .ocean-index-table th:nth-child(1),
  .ocean-index-table td:nth-child(1) {
    width: 12.7%;
  }

  .ocean-index-table th:nth-child(2),
  .ocean-index-table td:nth-child(2) {
    width: 36%;
  }

  .ocean-index-table th:nth-child(3),
  .ocean-index-table td:nth-child(3) {
    width: 8.6%;
  }

  .ocean-index-table th:nth-child(4),
  .ocean-index-table td:nth-child(4) {
    width: 10.6%;
  }

  .ocean-index-table th:nth-child(5),
  .ocean-index-table td:nth-child(5) {
    width: 10.6%;
  }

  .ocean-index-table th:nth-child(6),
  .ocean-index-table td:nth-child(6) {
    width: 10.9%;
  }

  .ocean-index-table th:nth-child(7),
  .ocean-index-table td:nth-child(7) {
    width: 10.6%;
  }

  .ocean-index-table td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1024px) {
  .ocean-index-table table {
    font-size: 12px;
  }
  .ocean-index-table th,
  .ocean-index-table td {
    padding: 4px 6px;
  }
  .ocean-index-table th {
    font-size: 11px;
  }
}


.ocean-index {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  color: #1c2b39;
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
}

[data-ocean-index-widget] {
  --ocean-index-stack-max: 640px;
  --ocean-index-sidebar-max: 640px;
  --ocean-index-full-stack-fr: 1.25fr;
  --ocean-index-full-sidebar-fr: 0.75fr;
}

.ocean-index__after-table {
  margin-top: 18px;
}

.ocean-index__disclaimer-block {
  margin-top: 10px;
  width: 100%;
}

.ocean-index__bookmark-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.ocean-index__bookmark {
  border: 1px solid #d2dcea;
  border-radius: 16px;
  background: #eef3fa;
  color: #375068;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.ocean-index__bookmark:hover,
.ocean-index__bookmark:focus-visible {
  background: #eef3fa;
  border-color: #d2dcea;
  color: #375068;
  outline: none;
}

.ocean-index__bookmark-panel {
  display: none;
  margin-top: 10px;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.ocean-index__bookmark-panel.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .ocean-index__bookmark-block {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .ocean-index__changelog-toggle,
  .ocean-index__methodology-toggle,
  .ocean-index__bookmark {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    margin-right: 0;
  }

  .ocean-index__bookmark-block {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }
}

.ocean-index__bookmark-feedback {
  font-size: 13px;
  color: #375068;
  margin: 0;
}

.ocean-index.ocean-index--error {
  text-align: center;
  font-weight: 600;
}

.ocean-index__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ocean-index__title {
  margin-bottom: 4px;
}

.ocean-index__title-main {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #102538;
  letter-spacing: 0;
  text-transform: none;
}

.ocean-index__title-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b7187;
  font-weight: 600;
}

.ocean-index__subtitle {
  font-size: 12px;
  color: #7a90a7;
}

.ocean-index__updated {
  font-size: 12px;
  color: #8193a8;
}

.ocean-index__value {
  text-align: right;
}

.ocean-index__current {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #102538;
}

.ocean-index__change {
  font-size: 14px;
  font-weight: 600;
  color: #5b7187;
}

.ocean-index__change--up {
  color: #0f9d58;
}

.ocean-index__change--down {
  color: #d93025;
}

[data-ocean-index-widget] button {
  appearance: none;
  -webkit-appearance: none;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

[data-ocean-index-widget] button::before,
[data-ocean-index-widget] button::after {
  content: none;
  display: none;
}

[data-ocean-index-modes],
[data-ocean-index-buttons] {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

[data-ocean-index-modes] button,
[data-ocean-index-buttons] button {
  flex: 1;
  padding: 6px 0;
  border-radius: 20px;
  border: 1px solid #cfd8e6;
  background: #f5f8fb;
  color: #425167;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-ocean-index-buttons] button.active,
[data-ocean-index-modes] button.active {
  background: #0a7cc4;
  border-color: #0a7cc4;
  color: #fff;
}

[data-ocean-index-modes] button:hover,
[data-ocean-index-buttons] button:hover,
[data-ocean-index-modes] button:focus-visible,
[data-ocean-index-buttons] button:focus-visible {
  background: #e9f3fb;
  border-color: #b7cbe0;
  color: #2b4054;
}

[data-ocean-index-modes] button.active:hover,
[data-ocean-index-modes] button.active:focus-visible,
[data-ocean-index-buttons] button.active:hover,
[data-ocean-index-buttons] button.active:focus-visible {
  background: #0868a3;
  border-color: #0868a3;
  color: #fff;
}

.ocean-index__plot {
  position: relative;
  width: 100%;
  height: 320px;
  padding-left: 10px;
  box-sizing: border-box;
}

.ocean-index__watermark {
  position: absolute;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 31, 45, 0.25);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.ocean-index__year-row {
  position: relative;
  height: 20px;
  margin-top: 0;
  font-size: 14px;
  color: #0f1f2d;
}

.ocean-index__year-row span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ocean-index__empty {
  padding: 24px;
  text-align: center;
  color: #7a8ca1;
}

.ocean-index-table {
  margin-top: 10px;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.05);
  overflow: hidden;
}

.ocean-index-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ocean-index-table th,
.ocean-index-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f8;
  text-align: left;
}

.ocean-index-table th:nth-child(4),
.ocean-index-table th:nth-child(5),
.ocean-index-table th:nth-child(6),
.ocean-index-table td:nth-child(4),
.ocean-index-table td:nth-child(5),
.ocean-index-table td:nth-child(6) {
  padding-left: 19px;
}

.ocean-index-table td.weight {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ocean-index-table th {
  background: #f7f9fc;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #425167;
}

.ocean-index-table__daily-label {
  white-space: normal;
}

.ocean-index-table__daily-label .label-main,
.ocean-index-table__daily-label .label-suffix {
  display: inline;
}

@media (min-width: 640px) {
  .ocean-index-table__daily-label .label-suffix {
    display: block;
    margin-top: 2px;
  }
}

.ocean-index-table tr[data-symbol] {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ocean-index-table tr[data-symbol]:hover {
  background: #f1f6fb;
}

.ocean-index-table tr.is-active {
  background: #e4f2ff;
  box-shadow: inset 0 0 0 1px #bed8ff;
}

.ocean-index-table td.daily {
  font-weight: 600;
}

.ocean-index-table td.daily.is-up {
  color: #177a32;
}

.ocean-index-table td.daily.is-down {
  color: #c13e3e;
}

.ocean-index-table td.daily.is-flat {
  color: #6b7686;
}

.ocean-index__changelog-toggle,
.ocean-index__methodology-toggle {
  margin-top: 14px;
  margin-right: 8px;
  background: #eef3fa;
  color: #375068;
  border: 1px solid #d2dcea;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ocean-index__changelog-toggle:hover,
.ocean-index__changelog-toggle:focus-visible,
.ocean-index__changelog-toggle:focus,
.ocean-index__changelog-toggle:active,
.ocean-index__methodology-toggle:hover,
.ocean-index__methodology-toggle:focus-visible,
.ocean-index__methodology-toggle:focus,
.ocean-index__methodology-toggle:active {
  background: #eef3fa;
  color: #375068;
  border-color: #d2dcea;
}

.ocean-index__changelog,
.ocean-index__methodology {
  margin-top: 10px;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  padding: 12px;
  display: none;
  background: #fff;
  max-height: 220px;
  overflow-y: auto;
}

.ocean-index__changelog-item {
  font-size: 13px;
  margin-bottom: 10px;
  color: #425167;
}

.ocean-index__changelog-item p {
  margin: 4px 0 0;
}

.ocean-index__methodology p,
.ocean-index__methodology li {
  font-size: 13px;
  color: #3a495a;
  font-weight: 400;
  margin: 6px 0;
}

.ocean-index__methodology ul {
  padding-left: 18px;
  margin: 8px 0;
  list-style: disc;
}

.ocean-index__disclaimer {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(17, 23, 27, 0.85);
  max-width: 100%;
}

.ocean-index__table-hint {
  margin: 0;
  padding: 12px 14px 6px;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  color: #102538;
}


/* Layout + posts waterfall column */
.ocean-index__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 700px) {
  .ocean-index__grid {
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .ocean-index__grid {
    display: grid;
    grid-template-columns: minmax(0, var(--ocean-index-stack-max, 640px)) minmax(0, var(--ocean-index-sidebar-max, 360px));
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
  }
}

.ocean-index__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: var(--ocean-index-stack-max, 640px);
  align-self: center;
  justify-self: center;
}

@media (min-width: 1100px) {
  .ocean-index__stack {
    align-self: flex-start;
    justify-self: stretch;
  }
}

.ocean-index-posts {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  height: 850px;
  max-height: 850px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  box-shadow: none;
  width: 100%;
  max-width: var(--ocean-index-sidebar-max, 360px);
  justify-self: center;
  gap: 12px;
}

@media (min-width: 1100px) {
  .ocean-index-posts {
    justify-self: stretch;
  }
}

.ocean-index-posts__table {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.ocean-index-posts__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.ocean-index-posts__table table th:nth-child(1),
.ocean-index-posts__table table td:nth-child(1) {
  width: 58%;
}

.ocean-index-posts__table table th:nth-child(2),
.ocean-index-posts__table table td:nth-child(2) {
  width: 15.5%;
}

.ocean-index-posts__table table th:nth-child(3),
.ocean-index-posts__table table td:nth-child(3) {
  width: 26.5%;
}

.ocean-index-posts__table thead th {
  text-align: left;
  z-index: 2;
}

.ocean-index-posts__header-row th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.ocean-index-posts__filters-row {
  display: none;
}

.ocean-index-posts__table thead th input {
  border: 1px solid #d7e1ef;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  color: #1c2b39;
  background: #f5f8fb;
  width: 100%;
  box-sizing: border-box;
}

.ocean-index-posts__table thead th input:focus {
  outline: 2px solid #0a7cc4;
  border-color: #0a7cc4;
}

.ocean-index-posts__table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f0f4fb;
  vertical-align: top;
  transition: background 0.15s ease;
}

.ocean-index-posts__table tbody tr:hover td {
  background: #f5f8fc;
}

.ocean-index-posts__table tbody tr:last-child td {
  border-bottom: none;
}

.ocean-index-posts__row {
  position: relative;
}

.ocean-index-posts__title-link {
  font-weight: 500;
  color: #0a3b66;
  text-decoration: none;
}

.ocean-index-posts__title-link:hover,
.ocean-index-posts__title-link:focus {
  text-decoration: underline;
}

.ocean-index-posts__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ocean-index-posts__category-pill {
  background: #eef3fa;
  color: #375068;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.ocean-index-posts__status {
  margin-top: 10px;
  font-size: 12px;
  color: #5b6b80;
  min-height: 16px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .ocean-index-posts__table {
    overflow-x: auto;
  }

  .ocean-index-posts__table table {
    font-size: 12px;
    min-width: 540px;
  }

  .ocean-index-posts__table thead th {
    font-size: 11px;
  }

  .ocean-index-posts__table table th,
  .ocean-index-posts__table table td {
    padding: 8px 6px;
  }
}


.ocean-index-posts__empty td {
  text-align: center;
  font-size: 13px;
  color: #5b6b80;
  padding: 24px 12px;
}


.ocean-index-posts__table input::placeholder {
  text-transform: uppercase;
  color: #425167;
}

.ocean-index-posts__table input::-webkit-input-placeholder {
  text-transform: uppercase;
  color: #425167;
}

.ocean-index-posts__table input::-moz-placeholder {
  text-transform: uppercase;
  color: #425167;
}

.ocean-index-posts__table input:-ms-input-placeholder {
  text-transform: uppercase;
  color: #425167;
}

