table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 350px;
}

/* Basic cell styling */
table tr th,
table tr td {
  vertical-align: top;
  border-right: 1px solid var(--background-color--navy);
  border-bottom: 1px solid var(--background-color--navy);
  padding: 0.6rem;
}

/* Left border for first cells */
table tr th:first-child,
table tr td:first-child {
  border-left: 1px solid var(--background-color--navy);
}

/* Header styling */
table tr th {
  background: var(--background-color--navy);
  border-top: 1px solid var(--table--border-color);
  color: var(--base-color-brand--fiery-red);
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: left;
  text-transform: uppercase;
}

table tr td {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  padding-left: 2rem;
  padding-right: 2rem;
  color: var(--background-color--light-sand);
}

@media screen and (max-width: 576px) {

  table tr th {
    background: var(--background-color--navy);
    border-top: 1px solid var(--table--border-color);
    color: var(--base-color-brand--fiery-red);
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
    text-transform: uppercase;
  }

  table tr td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: var(--background-color--light-sand);
  }

  table tr td h5 {
    margin-top: 0 !important;

  }

}

/* Style first row when no th present */
table:not(:has(th)) tr:first-child td {
  border-top: 1px solid var(--table--border-color);
  text-align: left;
}

/* Border radius for corners */
/* Top corners for th */
table tr:first-child th:first-child {
  border-top-left-radius: var(--corners--medium);
}

table tr:first-child th:last-child {
  border-top-right-radius: var(--corners--medium);
}

/* Top corners for td when no th present */
table:not(:has(th)) tr:first-child td:first-child {
  border-top-left-radius: var(--corners--medium);
}

table:not(:has(th)) tr:first-child td:last-child {
  border-top-right-radius: var(--corners--medium);
}

/* Bottom corners */
table tr:last-child td:first-child {
  border-bottom-left-radius: var(--corners--medium);
}

table tr:last-child td:last-child {
  border-bottom-right-radius: var(--corners--medium);
}

/* Utility classes */
.data-table {
  width: 100%;
}

.data-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.data-table th {
  white-space: nowrap;
  font-weight: bold;
}

.u-table-code pre {
  margin: 0;
  white-space: nowrap;
  display: inline-block;
}

.blog-rich-text ul {
  padding-left: 2.25rem;
}

.w-code-block {
  margin-bottom: 1rem;
}

/* First column h5 styling */
.data-table td:first-child {
  @extend .heading-style-h5;
}

/* Alternating row backgrounds */
.data-table tbody tr:nth-child(even) {
  background-color: var(--background-color--navy);
}

.data-table tbody tr:nth-child(odd) {
  background-color: var(--background-color--midnight);
}

.table-soft {
  white-space: pre-line;
  line-height: 1.2;

}

.data-table th:last-child {
  width: 60%;
  /* Second column */
}

pre {

  display: inline;
  background-color: var(--base-color-neutral--warm-grey-4);
  border-radius: 4px;
  color: black;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

code {

  display: inline;
  background-color: var(--base-color-neutral--warm-grey-4);
  border-radius: 4px;
  color: black;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.data-table td a {
  white-space: nowrap;
  word-break: keep-all;
}

.data-table td a {
  color: var(--base-color-brand--sky-blue);
}

.blog-rich-text.is-mo a {
  color: var(--base-color-brand--sky-blue);

}

.blog-rich-text.is-tg .data-table strong {

  color: var(--base-color-brand--sky-blue);

}

.blog-rich-text.is-tg .data-table tr td:first-child strong {
  color: var(--background-color--light-sand);
}

[data-line='left']:after {
  content: '';
  position: absolute;
  width: 1200px;
  right: 100%;
  height: 1px;
  bottom: -1px;

  background-color: var(--base-color-neutral--warm-grey-7);

}

[data-line='right']:after {
  content: '';
  position: absolute;
  width: 1200px;
  height: 1px;
  bottom: -1px;
  left: 100%;
  /* Changed from 'right: 0' to 'left: 100%' */
  background-color: var(--base-color-neutral--warm-grey-7);

}

.progress-container {
  position: relative;
  display: inline-block;
  bottom: -10rem;
  transform: rotate(-90deg);
  ;
}

/* Mobile breakpoint */
@media screen and (max-width: 767px) {
  .progress-container {
    position: relative;
    display: inline-block;
    transform: rotate(-90deg) scale(0.9);
    bottom: -5rem;
    /* Reduced spacing for mobile */

    /* Remove rotation on mobile */
  }
}

.progress-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
  pointer-events: none;
}

.settings-button {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0px;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  transition: scale 0.2s;
  z-index: 98;
  pointer-events: all;
}

.settings-icon {
  width: 24px;
  height: 24px;
}

.settings-icon.spinning {
  animation: spin 2s linear infinite;
}

.custom-icon {
  width: 24px;
  height: 24px;
  display: block;
  transform: rotate(-135deg);
  transition: transform 0.5s ease;
  z-index: 4;
}

.custom-icon:hover {
  transform: rotate(-135deg) scale(1.6);
}

.attack-icon {
  transform: rotate(-135deg);
  transition: transform 0.5s ease;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.percentage-text {
  font-size: 2rem;
  font-weight: 600;
  font-family: sans-serif;
}

.tg-hero_chart_layout {
  overflow: hidden;

}

.threat-tooltip {

  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in;
  transform: rotate(-135deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.toc-list-item:has(.w--current) .toc-link-wrap:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--base-color-neutral--warm-grey-3);
  z-index: 0;
  border-radius: 8px;

}

/* Add copy functionality styles */
.code-block {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.code-block pre {}

.code-block code {
  font-family: monospace;
}

.code-block:hover .copy-icon {
  opacity: 1;
}

.copy-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 0.2s;
  width: 20px;
  height: 20px;
}

.copy-icon svg {
  width: 100%;
  height: 100%;
}

.copy-icon.copied svg path {
  fill: #4CAF50;
}

.code-block:hover .copy-icon {
  opacity: 1;
}

/* Tooltip styles */
.code-block::after {
  content: 'Copy to clipboard';
  position: absolute;
  top: -30px;
  left: 0;
  background: var(--base-color-brand--navy);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.code-block:hover:not(.copying)::after {
  opacity: 1;
}

/* Success message */
.copy-alert {
  position: absolute;
  top: -30px;
  max-width: 14rem;
  left: 0;
  background: var(--base-color-brand--poppy-orange);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
}

.drawer-container {
  position: relative;
}

.drawer-button {}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  padding-left: 1rem;
  padding-right: 1rem;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  background: transparent;
}

.drawer.active {
  transform: translateY(-60px);
}

.drawer-content {
  padding: 16px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.drawer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.close-button {
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.close-button:hover {
  color: #374151;
}

.drawer-body {
  max-height: 384px;
  overflow-y: auto;
}

.drawer-body p {
  margin-bottom: 16px;
}

.drawer-body p:last-child {
  margin-bottom: 0;
}

/*
.settings-button:before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 0;
  top: 0;
  background-color: #fff;
  transform: rotate(-135deg);
  transform-origin: 12px 12px;
  border-radius: 24px;
  transition: all 0.53s ease;

}

.settings-button:hover:before {
  content: '';
  position: absolute;
  width: 100px;
  height: 24px;
  left: 0;
  top: 0;
  background-color: #fff;
  transform: rotate(-135deg) scale(1.6);
  transform-origin: 12px 12px;
  border-radius: 24px;

}

.settings-button:hover .custom-icon {
  width: 24px;
  height: 24px;
  display: block;
  transform: rotate(-135deg);
  transition: transform 0.5s ease;
  transform: rotate(-135deg) scale(1.6);
  z-index: 4;
}
*/
.settings-button {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.settings-button:before {
  content: attr(data-tooltip);
  position: absolute;
  width: 0;
  height: 23px;
  left: 0;
  top: 1px;
  border: 1px var(--button-color) solid;
  background-color: var(--background-color--navy);
  transform: rotate(-135deg) scale(1.6);
  transform-origin: 12px 12px;
  border-radius: 24px;
  white-space: nowrap;
  padding-left: 15px;
  padding-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Hover animations */
.settings-button:hover:before {
  animation: showTooltip 0.5s ease forwards;
  animation-delay: 0.3s;
}

.settings-button:not(:hover):before {
  animation: hideTooltip 0.5s ease forwards;
}

.settings-button:hover .custom-icon {
  animation: scaleIcon 0.5s ease forwards;
}

.settings-button:not(:hover) .custom-icon {
  animation: unscaleIcon 0.5s ease forwards;
}

.settings-button:hover .custom-icon circle {
  animation: fadeStroke 0.13s ease forwards;
  animation-delay: 0.1s;
}

.settings-button:not(:hover) .custom-icon circle {
  animation: showStroke 0.13s ease forwards;
}

.custom-icon {
  width: 24px;
  height: 24px;
  transform: rotate(-135deg);
  /* Permanent rotation */
}

/* Keyframe Animations */
@keyframes showTooltip {
  0% {
    opacity: 0;
    width: 0;
  }

  1% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    width: auto;
    padding-left: 25px;
  }
}

@keyframes hideTooltip {
  0% {
    opacity: 1;
    width: auto;
    padding-left: 25px;
  }

  99% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    width: 0;
  }
}

@keyframes scaleIcon {
  0% {
    transform: rotate(-135deg) scale(1);
  }

  100% {
    transform: rotate(-135deg) scale(1.4);
  }
}

@keyframes unscaleIcon {
  0% {
    transform: rotate(-135deg) scale(1.4);
  }

  100% {
    transform: rotate(-135deg) scale(1);
  }
}

@keyframes fadeStroke {
  0% {
    stroke: var(--button-color);
  }

  100% {
    stroke: transparent;
  }
}

@keyframes showStroke {
  0% {
    stroke: transparent;
  }

  100% {
    stroke: var(--button-color);
  }
}

.tg-score-text {

  font-family: "Bebas Neue", serif;
  font-weight: 400;
}

@media (max-width: 478px) {
  .blog-rich-text h5 {
    font-size: 1.2rem;

  }
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

dialog+.dialog-content {
  animation: scaleBack 0.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

dialog {
  border: 0px;
  opacity: 0;
  margin-bottom: auto !important;
  transition: opacity .5s;
  animation: scaleUp 0.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;

}

dialog.closing::backdrop {
  animation: fadeOut 012s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

dialog.closing {
  animation: scaleDown 0.25s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

@-webkit-keyframes show {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0%);
  }
}

@keyframes fadeIn {
  0% {
    background: rgba(0, 0, 0, .0);
  }

  100% {
    background: rgba(0, 0, 0, .7);
  }
}

@keyframes fadeOut {
  0% {
    background: rgba(0, 0, 0, .7);
  }

  100% {
    background: rgba(0, 0, 0, .0);
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(.8) translateY(1000px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
}

@keyframes scaleDown {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }

  100% {
    transform: scale(.8) translateY(1000px);
    opacity: 0;
  }
}

.tl-accordion-card:not(:last-child) {
  padding-bottom: 3rem;
  margin-bottom: -3rem;
}

.data-table td h5 {
  margin-top: 0rem !important;

}
