/* ==========================================================================
   Sankey Economy — US Economic Flows Interactive Visualization
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   --------------------------------------------------------------------------
   Color palette chosen for categorical distinction AND colorblind safety.
   Tested against deuteranopia, protanopia, and tritanopia simulations.
   Each category uses a base color plus lighter/darker variants.
   -------------------------------------------------------------------------- */

:root {
  /* --- Typography --- */
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;

  /* --- Spacing scale (4px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* --- Surface colors --- */
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f2ee;
  --color-border: #d6d4ce;
  --color-border-light: #e8e7e3;

  /* --- Text colors --- */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555550;
  --color-text-tertiary: #8a8a82;
  --color-text-inverse: #fafaf8;
  --color-text-inverse-soft: rgba(250, 250, 248, 0.85);
  --color-text-inverse-muted: rgba(250, 250, 248, 0.7);

  /* --- Category: Government (blues) --- */
  --color-govt: #2171b5;
  --color-govt-light: #6baed6;
  --color-govt-lighter: #c6dbef;
  --color-govt-dark: #084594;

  /* --- Category: Households (greens/teals) --- */
  --color-household: #238b45;
  --color-household-light: #74c476;
  --color-household-lighter: #c7e9c0;
  --color-household-dark: #005a32;

  /* --- Category: Business (oranges) --- */
  --color-business: #d94701;
  --color-business-light: #fd8d3c;
  --color-business-lighter: #fdd0a2;
  --color-business-dark: #8c2d04;

  /* --- Category: Financial (purples) --- */
  --color-financial: #6a51a3;
  --color-financial-light: #9e9ac8;
  --color-financial-lighter: #dadaeb;
  --color-financial-dark: #3f007d;

  /* --- Category: Rest of World / Trade (warm grays) --- */
  --color-trade: #636363;
  --color-trade-light: #969696;
  --color-trade-lighter: #d9d9d9;
  --color-trade-dark: #252525;

  /* --- Sankey link opacity --- */
  --link-opacity: 0.35;
  --link-hover-opacity: 0.65;
  --link-muted-opacity: 0.08;

  /* --- Transitions --- */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 350ms ease-out;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-tooltip: 0 3px 12px rgba(0, 0, 0, 0.15);

  /* --- Layout --- */
  --max-width: 1200px;
  --header-height: 64px;
}


/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-govt);
  text-decoration-color: var(--color-govt-light);
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-govt-dark);
}


/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 640px;
}

.label-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}


/* --------------------------------------------------------------------------
   Page Layout
   -------------------------------------------------------------------------- */

.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-5);
}

.page-header .byline {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
}

.page-header .byline time {
  color: var(--color-text-tertiary);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.prose {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.prose p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

footer p {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

footer a {
  color: var(--color-text-secondary);
}


/* --------------------------------------------------------------------------
   Sankey Container
   -------------------------------------------------------------------------- */

.sankey-container {
  position: relative;
  width: 100%;
  margin: var(--space-5) 0 var(--space-7);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sankey-container svg {
  display: block;
  width: 100%;
  height: auto;
}


/* --------------------------------------------------------------------------
   Sankey Nodes
   -------------------------------------------------------------------------- */

.sankey-node rect {
  stroke: none;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.sankey-node rect:hover {
  opacity: 0.85;
}

.sankey-node text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-text-primary);
  pointer-events: none;
}

/* Node category fills */
.sankey-node.node-govt rect        { fill: var(--color-govt); }
.sankey-node.node-household rect   { fill: var(--color-household); }
.sankey-node.node-business rect    { fill: var(--color-business); }
.sankey-node.node-financial rect   { fill: var(--color-financial); }
.sankey-node.node-trade rect       { fill: var(--color-trade); }

/* Node value labels (dollar amounts below names) */
.node-value {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.8;
}

.sankey-node.node-govt .node-value        { fill: var(--color-govt); }
.sankey-node.node-household .node-value   { fill: var(--color-household); }
.sankey-node.node-business .node-value    { fill: var(--color-business); }
.sankey-node.node-financial .node-value   { fill: var(--color-financial); }
.sankey-node.node-trade .node-value       { fill: var(--color-trade); }


/* --------------------------------------------------------------------------
   Sankey Links (flows)
   -------------------------------------------------------------------------- */

.sankey-link {
  fill: none;
  stroke-opacity: var(--link-opacity);
  cursor: pointer;
  transition: stroke-opacity var(--transition-base);
}

.sankey-link:hover {
  stroke-opacity: var(--link-hover-opacity);
}

/* When a node or link is focused, dim everything else */
.sankey-container.has-focus .sankey-link {
  stroke-opacity: var(--link-muted-opacity);
}

.sankey-container.has-focus .sankey-link.is-highlighted {
  stroke-opacity: var(--link-hover-opacity);
}

.sankey-container.has-focus .sankey-node rect {
  opacity: 0.3;
}

.sankey-container.has-focus .sankey-node.is-highlighted rect {
  opacity: 1;
}

/* Link colors by source category */
.sankey-link.link-govt       { stroke: var(--color-govt); }
.sankey-link.link-household  { stroke: var(--color-household); }
.sankey-link.link-business   { stroke: var(--color-business); }
.sankey-link.link-financial  { stroke: var(--color-financial); }
.sankey-link.link-trade      { stroke: var(--color-trade); }


/* --------------------------------------------------------------------------
   Tooltip
   -------------------------------------------------------------------------- */

.tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: var(--shadow-tooltip);
  padding: var(--space-3) var(--space-4);
  max-width: 280px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tooltip-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.tooltip-value {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.tooltip-detail {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

.tooltip-description {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
}

.tooltip-detail--section {
  margin-top: var(--space-1);
}

.tooltip-flow-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.tooltip-flow-label .arrow {
  color: var(--color-text-tertiary);
}


/* --------------------------------------------------------------------------
   Legend
   -------------------------------------------------------------------------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  user-select: none;
}

.legend-item:hover {
  opacity: 0.75;
}

.legend-item.is-muted {
  opacity: 0.35;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-swatch.swatch-govt       { background: var(--color-govt); }
.legend-swatch.swatch-household  { background: var(--color-household); }
.legend-swatch.swatch-business   { background: var(--color-business); }
.legend-swatch.swatch-financial  { background: var(--color-financial); }
.legend-swatch.swatch-trade      { background: var(--color-trade); }


/* --------------------------------------------------------------------------
   Controls Bar
   -------------------------------------------------------------------------- */

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.controls .label-text {
  margin-right: var(--space-1);
}

.control-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.control-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.control-btn:hover {
  background: var(--color-border-light);
  border-color: var(--color-text-tertiary);
}

.control-btn.is-active {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-text-primary);
}

select.control-select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555550' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}


/* --------------------------------------------------------------------------
   Detail Panel (sidebar / modal for node deep-dive)
   -------------------------------------------------------------------------- */

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  padding: var(--space-6) var(--space-5);
}

.detail-panel.is-open {
  transform: translateX(0);
}

.detail-panel-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  transition: background var(--transition-fast);
}

.detail-panel-close:hover {
  background: var(--color-surface-alt);
}

.detail-panel h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
  padding-right: var(--space-7);
}

.detail-panel .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.detail-panel .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

.detail-panel .stat-value {
  font-weight: 700;
  font-size: 0.95rem;
}


/* --------------------------------------------------------------------------
   Annotations
   -------------------------------------------------------------------------- */

.annotation {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.annotation-line {
  stroke: var(--color-text-tertiary);
  stroke-width: 1;
  stroke-dasharray: 3, 3;
}

.annotation-bg {
  fill: var(--color-surface);
  opacity: 0.85;
}


/* --------------------------------------------------------------------------
   Loading & Empty States
   -------------------------------------------------------------------------- */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--color-text-tertiary);
  gap: var(--space-4);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border-light);
  border-top-color: var(--color-govt);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.error-state {
  text-align: center;
  padding: var(--space-7);
  color: var(--color-text-secondary);
}

.error-state h3 {
  color: var(--color-business);
  margin-bottom: var(--space-2);
}


/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet and below */
@media (max-width: 768px) {
  :root {
    --space-5: 16px;
    --space-7: 32px;
    --space-8: 48px;
  }

  .page-header {
    padding-top: var(--space-6);
  }

  .sankey-node text {
    font-size: 9px;
  }

  .legend {
    gap: var(--space-2) var(--space-4);
    padding: var(--space-3) var(--space-4);
  }

  .legend-item {
    font-size: 0.75rem;
  }

  .controls {
    padding: var(--space-3) var(--space-4);
  }

  .tooltip {
    max-width: 220px;
    font-size: 0.85rem;
  }
}

/* Phone */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .legend {
    flex-direction: column;
    gap: var(--space-2);
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-panel {
    width: 100vw;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  :root {
    --max-width: 1360px;
  }
}


/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: white;
    color: black;
  }

  .controls,
  .detail-panel,
  .tooltip {
    display: none !important;
  }

  .sankey-container {
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .sankey-link {
    stroke-opacity: 0.4 !important;
  }

  .tree-back-btn {
    display: none !important;
  }

  footer {
    font-size: 0.75rem;
  }
}


/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* --------------------------------------------------------------------------
   Accessibility: High Contrast Mode
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .sankey-link {
    stroke: LinkText;
  }

  .sankey-node rect {
    fill: ButtonFace;
    stroke: ButtonText;
  }

  .tooltip {
    border: 2px solid ButtonText;
  }
}


/* --------------------------------------------------------------------------
   Accessibility: Focus Styles
   -------------------------------------------------------------------------- */

.legend-item:focus-visible,
.tree-back-btn:focus-visible,
.control-btn:focus-visible,
.detail-panel-close:focus-visible {
  outline: 2px solid var(--color-govt);
  outline-offset: 2px;
}

.sankey-node rect:focus-visible {
  stroke: var(--color-govt);
  stroke-width: 3px;
}

@media (forced-colors: active) {
  .legend-item:focus-visible,
  .tree-back-btn:focus-visible,
  .control-btn:focus-visible,
  .detail-panel-close:focus-visible {
    outline-color: Highlight;
  }

  .sankey-node rect:focus-visible {
    stroke: Highlight;
  }
}


/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

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

.visually-hidden:focus,
.visually-hidden:focus-visible {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  color: var(--color-govt);
  border: 2px solid var(--color-govt);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.text-mono {
  font-family: var(--font-mono);
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }


/* --------------------------------------------------------------------------
   Depreciation Tree Drill-Down
   -------------------------------------------------------------------------- */

.tree-back-btn {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.tree-back-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tree-back-btn:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-text-tertiary);
}

.tree-back-btn .arrow {
  font-size: 1rem;
  line-height: 1;
}

.treemap-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  fill: var(--color-text-primary);
}

.treemap-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  fill: var(--color-text-tertiary);
}

.treemap-cell rect {
  stroke: var(--color-surface);
  stroke-width: 2;
  cursor: default;
  transition: opacity var(--transition-fast),
              filter var(--transition-fast);
}

.treemap-cell-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-text-inverse);
  pointer-events: none;
}

.treemap-cell-value {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  fill: var(--color-text-inverse-soft);
  pointer-events: none;
}

.treemap-cell-pct {
  font-family: var(--font-body);
  font-size: 9px;
  fill: var(--color-text-inverse-muted);
  pointer-events: none;
}

.treemap-cell--dark-text .treemap-cell-label { fill: var(--color-text-primary); }
.treemap-cell--dark-text .treemap-cell-value { fill: var(--color-text-secondary); }
.treemap-cell--dark-text .treemap-cell-pct   { fill: var(--color-text-tertiary); }

.treemap-group-label {
  font-family: var(--font-body);
  font-weight: 700;
  fill: var(--color-text-primary);
  pointer-events: none;
}

.treemap-group-label--d1 {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.treemap-group-label--d2 {
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.treemap-group-label--d3 {
  font-size: 9px;
  font-weight: 600;
}

.treemap-cell-label--sm {
  font-size: 9px;
}

.treemap-cell-label--xs {
  font-size: 8px;
}

/* Treemap hover states — mirrors Sankey's has-focus / is-highlighted pattern */
.treemap-cell--dim rect {
  opacity: 0.6;
}

.treemap-cell--active rect {
  opacity: 1;
  filter: brightness(1.08);
}

.treemap-cell--focus rect {
  opacity: 1;
  filter: brightness(1.15);
  stroke: #fff;
  stroke-width: 2px;
}

/* Hint indicator on depreciation node */
.depreciation-hint {
  font-family: var(--font-body);
  font-size: 9px;
  fill: var(--color-business);
  font-weight: 600;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--transition-base);
}

.sankey-node:hover .depreciation-hint {
  opacity: 1;
}
