/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi/Satoshi-Variable.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Colors */
  --ifm-color-primary: #e62058;
  --ifm-color-primary-dark: #d01055;
  --ifm-color-primary-darker: #c10f45;
  --ifm-color-primary-darkest: #4d041d;
  --ifm-color-primary-light: #ee246c;
  --ifm-color-primary-lighter: #fd738f;
  --ifm-color-primary-lightest: #f2528b;

  /* Infima Variables Overrides */
  --ifm-font-family-base: "Satoshi";
  --ifm-font-family-heading: "Satoshi";
  --ifm-heading-font-weight: 450;
  --ifm-font-weight-bold: 580;
  --ifm-font-size-base: 16px;
  --ifm-global-radius: 0.625rem;
  --ifm-global-radius-med: 1.25rem;
  --ifm-card-font-weight: 580;
  --ifm-background-color: #ffffff;

  /* Navbar */
  --ifm-navbar-background-color: #fbfbfb;
  --ifm-navbar-padding-vertical: 1rem;
  --ifm-navbar-padding-horizontal: 2rem;
  --ifm-navbar-height: 5.5rem;
  --ifm-navbar-link-color: #777777;
  --ifm-navbar-sidebar-width: 100vw;
  --ifm-navbar-search-dropdown-bg: #ffffff;

  /* Sidebar (Menu) */
  --ifm-menu-color-background-active: #fff1f3;
  --ifm-menu-color-active: #000000;
  --ifm-menu-color: #000000;
  --ifm-sidebar-background-color: #ffffff;

  /* Cards */
  --ifm-card-background-color: #ffe4e8;
  --ifm-card-description-color: #000000;

  /* Breadcrumbs */
  --ifm-breadcrumb-item-background-active: none;
  --ifm-breadcrumb-color-active: #777777;
  --ifm-breadcrumb-border-radius: 2rem;
  --ifm-breadcrumb-padding-vertical: 0.2rem;

  /* Tables */
  --ifm-table-head-font-weight: 500;
  --ifm-table-border-width: 0.8px;
  --ifm-table-border-color: rgba(0, 0, 0, 0.1);
  --ifm-table-head-background: transparent;
  --ifm-table-stripe-background: transparent;

  /* Custom Variables */
  --search-local-highlight-color: var(--ifm-color-primary);
  --ifm-swagger-heading-light: #e3e3e3;
  --ifm-swagger-heading-dark: #1c1e21;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
  /* Colors */
  --ifm-color-primary: #e62058;
  --ifm-color-primary-dark: #ec2d6e;
  --ifm-color-primary-darker: #e62058;
  --ifm-color-primary-darkest: #c91250;
  --ifm-color-primary-light: #f26796;
  --ifm-color-primary-lighter: #f375a0;
  --ifm-color-primary-lightest: #f7a0be;

  /* Infima Variables Overrides */
  --ifm-navbar-background-color: #000000;
  --ifm-navbar-search-input-icon: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="16px" width="16px"><path d="M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z" /></svg>');
  --ifm-footer-background-color: #000000;
  --ifm-background-color: #000000 !important;
  --ifm-card-background-color: #1d1d1d;

  /* Navbar */
  --ifm-navbar-background-color: #050000;

  /* Sidebar (Menu) */
  --ifm-menu-color-background-active: #34101c;
  --ifm-menu-color-active: #f0f0f0;
  --ifm-menu-color: #999999;
  --ifm-sidebar-background-color: #000000;

  /* Cards */
  --ifm-card-description-color: #ababab;

  /* Tables */
  --ifm-table-border-color: rgba(255, 255, 255, 0.1);
  --ifm-table-head-background: var(--ifm-background-color);

  /* Custom Variables */
  --search-local-highlight-color: var(--ifm-color-primary-lighter);
}

/* --- GLOBAL ELEMENT STYLES --- */

/* Resize headings */
h1,
.markdown h1 {
  font-size: 2.2rem;
}

h2,
.markdown h2 {
  font-size: 1.6rem;
}

h3,
.markdown h3 {
  font-size: 1.2rem;
}

h4 {
  font-weight: 575;
  /* Specific weight for h4 */
}

body {
  font-weight: 450;
  /* Specific weight for body */
}

[data-theme="dark"] p {
  color: #ababab;
  /* Off-white in dark mode */
}

html[data-theme="dark"] .markdown ul li,
html[data-theme="dark"] .markdown ol li {
  color: #ababab;
}

.cardTitle,
.tool-name,
.whitepapers-card-title,
h2.cardTitle,
.card h2 {
  font-size: 1.25rem;
  font-weight: var(--ifm-card-font-weight);
}

/* Accessibility helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- LAYOUT & COMPONENTS --- */

/* Announcement bar */
div[class^="announcementBar"] {
  font-size: 20px;
  font-weight: 550;
  background: radial-gradient(
    410px at 49.5% 99%,
    rgb(250, 208, 196) 0%,
    rgb(255, 209, 255) 99.5%
  );
}

/* Navbar */
.navbar {
  background-color: var(--ifm-navbar-background-color);
}

.navbar__title {
  color: var(--ifm-menu-color-active);
  font-weight: var(--ifm-card-font-weight);
  font-size: larger;
}

.navbar-sidebar__back {
  display: none;
  /* Hides the "Back" button on mobile sidebar */
}

.navbar__items {
  color: var(--ifm-navbar-link-color);
}

/* Navbar toggle */
.navbar__toggle {
  color: #1c1b1f;
}

[data-theme="dark"] .navbar__toggle {
  color: #ffffff;
}

/* Navbar GitHub Link */
.header-github-link::before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  background-color: var(--ifm-navbar-link-color);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
  transition: background-color var(--ifm-transition-fast)
    var(--ifm-transition-timing-default);
}

.header-github-link:hover::before {
  background-color: var(--ifm-navbar-link-hover-color);
}

.github-logo-sidebar {
  display: none;
}

@media (max-width: 996px) {
  .navbar__title {
    display: none;
  }

  .github-logo-sidebar {
    display: block;
  }
}

/* Navbar Search */
.navbar__search-input {
  border-radius: var(--ifm-global-radius);
  width: 270px;
  height: 42px;
}

.navbar__search-input:hover {
  outline: solid var(--ifm-global-border-width) var(--ifm-color-primary);
}

.navbar__search-input:focus-visible {
  outline: solid var(--ifm-global-border-width) var(--ifm-color-primary);
}

/* Search Dropdown */
div[class^="searchBar_"] .dropdown-menu {
  /* Target dropdown menu more generically */
  padding: 0px;
  background-color: var(--ifm-navbar-search-dropdown-bg);
  border-radius: var(--ifm-global-radius);
  border: 1px solid var(--ifm-toc-border-color);
  /* Use an existing border color variable */
}

div[class^="searchBar_"] .dropdown-menu a[class^="suggestion_"] {
  /* Target suggestion links */
  margin: 1px;
  border-radius: 0px;
}

div[class^="searchBar_"] div[class*="hitFooter"] {
  /* Target footer, use class contains */
  margin-top: 1px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  /* Use relative line height. Removed !important */
  background-color: var(--ifm-navbar-search-dropdown-bg);
  border-top: 1px solid var(--ifm-toc-border-color);
  /* Add separator */
}

div[class^="searchBar_"] div[class*="hitFooter"] a {
  text-decoration: none;
  color: var(--ifm-color-primary);
}

div[class^="searchBar_"] div[class*="hitFooter"] a:hover {
  text-decoration: underline;
}

/* Footer */
.footer__copyright {
  font-size: 14px;
  color: var(--ifm-navbar-link-color);
}

/* Sidebar Menu (Consolidated Styles) */
.menu {
  background-color: var(--ifm-sidebar-background-color);
  padding-top: 1.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.menu__list-item {
  font-size: 15px;
}

.menu__list-item:not(:first-child) {
  margin-top: 0.75rem;
}

/* Styling for links and collapsible buttons */
.menu__link {
  padding: 10px 12px;
}

.menu__link--active {
  border-left: 4px solid var(--ifm-color-primary-darkest);
}

[data-theme="dark"] .menu__link--active {
  border-left: 4px solid var(--ifm-color-primary-lighter);
}

.menu__list-item-collapsible--active {
  background-color: var(--ifm-menu-color-background-active);
}

[data-theme="dark"] .menu__list-item-collapsible--active {
  background-color: var(--ifm-menu-color-background-active);
}

.theme-doc-sidebar-menu {
  padding-top: 1.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Caret icon */
.menu__caret:before {
  background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 1.5rem;
}

/* Sidebar menu icons. */
/* Sidebar Menu Icons (Consolidated) */
.menu__link[href*="/ftso/overview"]::before,
.menu__link[href*="/fdc/overview"]::before,
.menu__link[href*="/fassets/overview"]::before {
  content: " ";
  display: block;
  flex-shrink: 0;
  /* Prevent icon shrinking */
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 10px;
  /* Consistent margin */
  /* Specific sizes set below */
}

/* Specific Icon Styles (Sizes adjusted here) */
.menu__link[href*="/ftso/overview"]::before {
  width: 26px;
  height: 26px;
  background-size: 28px auto;
  background-image: url("/img/menu/FTSO_light.svg");
}

[data-theme="dark"] .menu__link[href*="/ftso/overview"]::before {
  background-image: url("/img/menu/FTSO_dark.svg");
}

.menu__link[href*="/fdc/overview"]::before {
  width: 26px;
  height: 26px;
  background-size: 26px 26px;
  background-image: url("/img/menu/DATACONNECTOR_light.svg");
}

[data-theme="dark"] .menu__link[href*="/fdc/overview"]::before {
  background-image: url("/img/menu/DATACONNECTOR_dark.svg");
}

.menu__link[href*="/fassets/overview"]::before {
  width: 26px;
  height: 26px;
  background-size: 26px 26px;
  background-image: url("/img/menu/FASSETS_light.svg");
}

[data-theme="dark"] .menu__link[href*="/fassets/overview"]::before {
  background-image: url("/img/menu/FASSETS_dark.svg");
}

/* Table of Contents (TOC) */
.table-of-contents__link {
  padding: 4px 12px;
  width: fit-content;
}

.table-of-contents__link--active {
  color: var(--ifm-menu-color-active);
  background-color: var(--ifm-menu-color-background-active);
}

[data-theme="dark"] .table-of-contents__link--active {
  color: var(--ifm-menu-color-active);
  background-color: var(--ifm-menu-color-background-active);
}

/* Breadcrumbs */
.breadcrumbs__item {
  text-transform: uppercase;
}

.breadcrumbs__item a {
  border: 1px solid var(--ifm-navbar-link-color);
  text-transform: uppercase;
}

.breadcrumbs__item a:hover {
  border-color: var(--ifm-color-primary);
}

.breadcrumbs__item a svg {
  stroke: var(--ifm-color-content);
  stroke-width: 1.5;
  color: transparent;
}

.breadcrumbs__item:not(:last-child):after {
  opacity: 1;
}

/* Tables - Basic Reset (Affects ALL tables) */
table tr:nth-child(2n) {
  background-color: transparent;
}

table tr:nth-child(n) {
  background-color: transparent;
}

table th:first-child,
td:first-child {
  border-left: none;
}

table th:last-child,
td:last-child {
  background-color: transparent;
  border-right: none;
}

table tr:first-child th,
tr:first-child td {
  border-top: none;
}

table thead {
  background-color: transparent;
}

table thead tr {
  border-top: none;
  border-bottom: none;
}

table tr:last-child th,
tr:last-child td {
  border-bottom: none;
  background-color: transparent;
}

/* End Basic Table Reset */

/** Data table for FTSO feeds with copy button */
/* These styles will build upon the basic table reset above */
.data-table {
  /* width: 100%; /* Already set by basic reset */
  /* border-collapse: collapse; /* Already set */
  table-layout: auto;
  /* Allow table to size based on content */
}

.data-table .table-header th {
  /* More specific selector */
  padding: 12px;
  text-align: center;
  font-weight: var(--ifm-font-weight-bold);
  font-size: 16px;
  border-bottom-width: 1px;
}

[data-theme="light"] .data-table .table-header th {
  border-bottom-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .data-table .table-header th {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.data-table .table-row td {
  padding: 12px;
  vertical-align: middle;
  /* Align content vertically */
}

[data-theme="light"] .data-table .table-row td {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .data-table .table-row td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Remove last row border */
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Monospace font for specific cells */
.data-table .mono-font {
  font-family: var(--ifm-font-family-monospace);
  font-size: 14.4px;
}

/* Feed Index/ID specific background & styling */
.data-table .feed-index-text,
.data-table .feed-id-text {
  padding: 1.6px 4px;
  border: 0.1rem solid rgba(0, 0, 0, 0.1);
  border-radius: var(--ifm-global-radius);
  display: inline-block;
}

[data-theme="light"] .data-table .feed-id-text,
[data-theme="light"] .data-table .feed-index-text {
  background-color: #f6f7f8;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1c1e21;
}

[data-theme="dark"] .data-table .feed-id-text,
[data-theme="dark"] .data-table .feed-index-text {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.data-table .feed-id-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.data-table .feed-id-text {
  flex-grow: 1;
  /* Allow text to take available space */
}

.data-table .pointer {
  cursor: pointer;
}

@media (max-width: 768px) {
  .data-table .feed-id-container {
    gap: 4px;
  }
}

/* Tippy.js Custom Theme */
.tippy-box[data-theme="custom"] {
  background-color: #333;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 5px;
  max-width: 300px;
  white-space: normal;
  border-radius: var(--ifm-global-radius);
  box-shadow: var(--ifm-global-shadow-lw);
}

.tippy-box[data-theme="custom"] .tippy-arrow {
  color: #333;
  border-width: 6px;
}

@media screen and (max-width: 768px) {
  .tippy-box[data-theme="custom"] {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* --- Swagger UI Customization --- */
/* NOTE: Swagger UI styles can be fragile. `!important` might be necessary in some cases */
/* due to high specificity or inline styles in Swagger itself. Minimize where possible. */

[data-theme="dark"] .swagger-ui {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .info .title {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .info .title {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .info p {
  color: var(--ifm-swagger-heading-light) !important;
}

[data-theme="light"] .swagger-ui .info p {
  color: var(--ifm-swagger-heading-dark) !important;
}

[data-theme="dark"] .swagger-ui .scheme-container {
  background-color: black;
  box-shadow: none;
}

[data-theme="light"] .swagger-ui .scheme-container {
  background-color: white;
  box-shadow: none;
}

[data-theme="dark"] .swagger-ui .opblock-tag {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .opblock-tag {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .opblock-description-wrapper p {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .opblock-description-wrapper p {
  color: var(--ifm-swagger-heading-dark);
}

.swagger-ui .opblock .opblock-section-header {
  background: none !important;
}

[data-theme="dark"] .swagger-ui .opblock .opblock-section-header h4 {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .opblock .opblock-section-header h4 {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui table thead tr th {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui table thead tr th {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .parameter__name {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .parameter__name {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui table thead tr td,
.swagger-ui table thead tr th {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui table thead tr td,
.swagger-ui table thead tr th {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .response-col_status {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .response-col_status {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .response-col_links {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .response-col_links {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui a.nostyle,
.swagger-ui a.nostyle:visited {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui a.nostyle,
.swagger-ui a.nostyle:visited {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui svg:not(:root) {
  fill: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui svg:not(:root) {
  fill: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .authorization__btn .unlocked {
  fill: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .authorization__btn .unlocked {
  fill: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui section.models .model-container {
  background: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui section.models .model-container:hover {
  background: #181a1d;
}

.swagger-ui .info .title small pre {
  background: none;
  font-weight: bold;
}

[data-theme="dark"] .swagger-ui section.models h4 span {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui section.models h4 span {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="dark"] .swagger-ui .model-title {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .model-title {
  color: var(--ifm-swagger-heading-dark);
}

.swagger-ui table thead tr td,
.swagger-ui table thead tr th {
  padding: 10px !important;
}

.swagger-ui table tbody tr td {
  padding: 10px 10px 0 !important;
}

[data-theme="dark"] .swagger-ui .model-toggle:after {
  filter: invert(1) grayscale(100%) contrast(100%);
}

[data-theme="light"] .swagger-ui .model-toggle:after {
  filter: invert(0) grayscale(100%) contrast(100%);
}

[data-theme="dark"] .swagger-ui .model {
  color: var(--ifm-swagger-heading-light);
}

[data-theme="light"] .swagger-ui .model {
  color: var(--ifm-swagger-heading-dark);
}

[data-theme="light"] .swagger-ui input[type="text"] {
  color: var(--ifm-swagger-heading-dark);
}

.swagger-ui input[type="email"],
.swagger-ui input[type="file"],
.swagger-ui input[type="password"],
.swagger-ui input[type="search"],
.swagger-ui input[type="text"],
.swagger-ui textarea {
  color: var(--ifm-swagger-heading-dark) !important;
}

/* --- Custom Components --- */

/* Custom Card */
.custom-card {
  background-color: var(--ifm-card-background-color);
  border-radius: var(--ifm-global-radius-med);
  padding: 2rem;
  position: relative;
  display: flex;
  text-decoration: none;
  transition: all var(--ifm-transition-fast) ease;
  overflow: hidden;
  transition-property: border, box-shadow;
  box-shadow: none;
}

.custom-card:hover {
  border-color: var(--ifm-color-primary);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

[data-theme="dark"] .custom-card:hover {
  border-color: var(--ifm-color-primary);
  box-shadow: 0 3px 6px 0 rgba(255, 255, 255, 0.2);
}

.custom-card-content {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.custom-card-title {
  font-family: var(--ifm-font-family-base);
  font-weight: var(--ifm-card-font-weight);
  font-size: 1.25rem;
  color: var(--ifm-color-primary);
  margin-bottom: 0.5rem;
  margin-right: 1.5rem;
  /* Space for arrow */
  line-height: 1.4;
}

[data-theme="dark"] .custom-card-title {
  color: #ffffff;
}

.custom-card-date {
  font-family: var(--ifm-font-family-base);
  font-size: 0.9rem;
  font-weight: 400;
  color: #777777;
  margin-bottom: 0;
}

[data-theme="dark"] .custom-card-date {
  color: #999999;
}

.custom-card-description {
  font-family: var(--ifm-font-family-base);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  margin-right: 2rem;
  color: var(--ifm-card-description-color);
}

.custom-card-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--ifm-color-primary);
  transition:
    transform 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

[data-theme="dark"] .custom-card-arrow {
  color: #ffffff;
}

/* Developer Tools Page */
.developer-tools-container {
  margin: 2rem 0;
}

.developer-tools-header {
  margin-bottom: 2.5rem;
}

.developer-tools-header h1 {
  font-weight: 500;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.developer-tools-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 2rem;
  color: var(--ifm-navbar-link-color);
}

/* Network Selector */
.network-selector-container {
  margin-bottom: 2rem;
  background-color: var(--ifm-card-background-color);
  border-radius: var(--ifm-global-radius);
  padding: 1rem;
  max-width: 100%;
  display: flex;
  align-items: center;
}

[data-theme="light"] .network-selector-container {
  background-color: #f5f5f5;
}

.network-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  width: 100%;
}

.network-select {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--ifm-global-radius);
  border: 1px solid var(--ifm-color-emphasis-300);
  background-color: var(--ifm-background-color);
  font-size: 1rem;
  color: var(--ifm-menu-color-active);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

[data-theme="dark"] .network-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.network-select:focus {
  outline: none;
  border-color: var(--ifm-color-primary);
  box-shadow: 0 0 0 2px rgba(var(--ifm-color-primary-rgb), 0.25);
}

/* Developer Tools Category & Cards */

.category-title .header-anchor {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.category-title .header-anchor::before {
  content: "#";
  opacity: 0;
  margin-right: 0.5rem;
  transition: opacity 0.2s;
  font-size: 0.9em;
  color: var(--ifm-color-primary);
}

.category-title:hover .header-anchor::before {
  opacity: 1;
}

/* Developer Tools Styles */
.developer-tools-container {
  margin: 2rem 0;
}

.developer-tools-header {
  margin-bottom: 2.5rem;
}

.developer-tools-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 2rem;
  color: var(--ifm-navbar-link-color);
}

/* Category styling */
.category-section {
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: none;
  position: relative;
  color: var(--ifm-heading-color);
}

/* Anchor Link Styling for Category Titles */
.category-title .header-anchor {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.category-title .header-anchor::before {
  content: "#";
  opacity: 0;
  margin-right: 0.5rem;
  transition: opacity 0.2s;
  font-size: 0.9em;
  font-weight: bold;
  /* Make anchor more visible */
  color: var(--ifm-color-primary);
}

.category-title:hover .header-anchor::before {
  opacity: 1;
}

.tools-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.empty-category {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  border-radius: var(--ifm-global-radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--ifm-font-color-disabled);
  font-style: italic;
}

[data-theme="light"] .empty-category {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Developer Tools Responsive */
@media (max-width: 768px) {
  .tools-cards {
    grid-template-columns: 1fr;
  }

  .network-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .network-select {
    width: 100%;
  }
}

/* YouTube Embed */
.youtube-embed-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Maintain 16:9 aspect ratio using padding-bottom */
  /* padding-bottom: 56.25%; /* 9 / 16 * 100 */
  /* Or use the modern aspect-ratio property */
  aspect-ratio: 16 / 9;
  margin: 30px auto;
  /* Example margin, adjust as needed */
  max-width: 784px;
  /* Optional: Limit max width */
}

.youtube-embed-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Remove default border */
}

/* Input Card Styles (renamed from Voting Round) */
.input-card {
  width: 100%;
  background: var(--ifm-color-primary) !important;
  color: #fff;
  max-width: unset;
  margin: 0;
  box-sizing: border-box;
}

.input-card-title {
  margin-bottom: 16px;
  color: #fff;
}

.input-card-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #fff;
  margin-bottom: 16px;
  width: 100%;
  font-size: 16px;
  color: var(--ifm-color-primary);
  background: #fff;
  box-sizing: border-box;
}

.input-card-button {
  border-radius: 8px;
  width: 100%;
  height: 44px;
  background: #fff;
  color: var(--ifm-color-primary);
  border: none;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    background 0.2s,
    color 0.2s;
}

.input-card-button:hover {
  background: var(--ifm-color-primary-dark);
  color: #fff;
}

.input-card-result {
  text-align: center;
  font-size: 18px;
  margin: 0;
  color: #fff;
}
