/* Okito Infographic Download — prefix: okigd- (unique, vanilla) */

.okigd-block {
  --okigd-blue: #134a98;
  --okigd-blue-hover: #0f3a78;
  --okigd-green: #81bc44;
  --okigd-text: #1f1f1f;
  --okigd-muted: #5c5c5c;
  --okigd-border: #e5e7eb;
  --okigd-bg: #f5f5f5;
  --okigd-font: "Poppins", sans-serif;

  margin: 28px 0 40px;
  font-family: var(--okigd-font);
}

.okigd-figure {
  margin: 0 0 20px;
  padding: 0;
}

.okigd-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--okigd-border);
}

.okigd-meta {
  background: var(--okigd-bg);
  border-radius: 8px;
  padding: 16px 18px;
}

.okigd-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.okigd-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--okigd-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.okigd-download-link:hover {
  color: var(--okigd-blue-hover);
}

.okigd-download-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.okigd-filesize {
  color: var(--okigd-muted);
  font-size: 14px;
  font-weight: 400;
}

.okigd-license-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--okigd-muted);
  font-size: 13px;
  line-height: 1.5;
}

.okigd-toggle {
  color: var(--okigd-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.okigd-toggle:hover,
.okigd-toggle[aria-expanded="true"] {
  color: var(--okigd-blue);
}

.okigd-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #c8c8c8;
  flex-shrink: 0;
}

.okigd-popover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.okigd-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 40;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.16), 0 2px 8px rgba(16, 24, 40, 0.06);
  color: var(--okigd-text);
  text-align: left;
}

.okigd-popover--wide {
  width: min(380px, calc(100vw - 32px));
}

.okigd-popover[hidden] {
  display: none !important;
}

.okigd-popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.okigd-popover-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
}

.okigd-popover-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px -6px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #555555;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.okigd-popover-close:hover {
  background: #f3f4f6;
  color: #111111;
}

.okigd-popover-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.okigd-popover-list li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.5;
}

.okigd-popover-list li:last-child {
  margin-bottom: 0;
}

.okigd-popover-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--okigd-green);
  font-weight: 700;
}

.okigd-attr-section {
  margin: 0;
}

.okigd-attr-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #111111;
}

.okigd-attr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.okigd-attr-text {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.45;
}

.okigd-copy-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.okigd-copy-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  font-family: inherit;
  font-size: 11px;
  padding: 7px 10px;
  outline: none;
}

.okigd-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: var(--okigd-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 0 11px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.okigd-copy-btn:hover {
  background: var(--okigd-blue-hover);
}

.okigd-copy-btn.is-copied {
  background: var(--okigd-green);
}

.okigd-attr-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}

.okigd-attr-icon svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 575.98px) {
  .okigd-meta {
    padding: 14px;
  }

  .okigd-download-link {
    font-size: 14px;
  }

  .okigd-license-row {
    font-size: 12px;
  }

  .okigd-divider {
    display: none;
  }

  .okigd-popover,
  .okigd-popover--wide {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .okigd-copy-box {
    flex-direction: column;
  }

  .okigd-copy-btn {
    padding: 9px 12px;
  }
}

/* Detail page header: category + title + description */
.okigd-detail-header {
  margin-bottom: 8px;
}

.okigd-detail-category {
  display: inline-block;
  margin-bottom: 14px;
  color: #134a98;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.okigd-detail-header .postbox-title {
  margin-bottom: 18px;
}

.okigd-detail-desc {
  color: #5c5c5c;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.okigd-detail-desc p {
  margin-bottom: 0;
  color: inherit;
}

.okigd-detail-desc p + p {
  margin-top: 12px;
}

.infographics-card .tp-blog-masonry-content,
.infographics-card .tp-blog-masonry-title,
.infographics-card-desc {
  text-align: center;
}

.infographics-card-desc {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
