/* Self-hosted OFL fonts (public/fonts/) — no Google Fonts CDN */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/outfit-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}

:root, [data-theme="dark"] {
  --ink: #e8e5de;
  --paper: #111110;
  --muted: #6b6960;
  --rule: #2a2926;
  --box-bg: rgba(255,255,255,0.04);
  --toggle-bg: #2a2926;
  --json-num: #3b82f6;
  --json-key: #fca5a5;
  --json-str: #86efac;
  --json-bool: #fde047;
  --json-null: #d1d5db;
  /* Semantic status (chips, scores, badges) — shared across tools */
  --status-ok: #4ade80;
  --status-ok-bg: rgba(34, 197, 94, 0.12);
  --status-ok-border: rgba(34, 197, 94, 0.28);
  --status-warn: #fbbf24;
  --status-warn-bg: rgba(245, 158, 11, 0.12);
  --status-warn-border: rgba(245, 158, 11, 0.28);
  --status-bad: #f87171;
  --status-bad-bg: rgba(239, 68, 68, 0.12);
  --status-bad-border: rgba(239, 68, 68, 0.28);
  --status-info: #60a5fa;
  --status-info-bg: rgba(59, 130, 246, 0.12);
  --status-info-border: rgba(59, 130, 246, 0.28);
  --status-accent: #c084fc;
  --status-accent-bg: rgba(168, 85, 247, 0.12);
  --status-accent-border: rgba(168, 85, 247, 0.28);
  --status-orange: #fb923c;
  --status-orange-bg: rgba(249, 115, 22, 0.12);
  --status-orange-border: rgba(249, 115, 22, 0.28);
  --brand: #c4622d;
}
[data-theme="light"] {
  --ink: #1a1a18;
  --paper: #f5f3ee;
  --muted: #5a5851;
  --rule: #beb9a8;
  --box-bg: rgba(0,0,0,0.02);
  --toggle-bg: #e2dfd8;
  --json-num: #2563eb;
  --json-key: #dc2626;
  --json-str: #16a34a;
  --json-bool: #ca8a04;
  --json-null: #6b7280;
  --status-ok: #15803d;
  --status-ok-bg: rgba(22, 163, 74, 0.1);
  --status-ok-border: rgba(22, 163, 74, 0.3);
  --status-warn: #a16207;
  --status-warn-bg: rgba(202, 138, 4, 0.1);
  --status-warn-border: rgba(202, 138, 4, 0.3);
  --status-bad: #b91c1c;
  --status-bad-bg: rgba(220, 38, 38, 0.1);
  --status-bad-border: rgba(220, 38, 38, 0.3);
  --status-info: #1d4ed8;
  --status-info-bg: rgba(37, 99, 235, 0.1);
  --status-info-border: rgba(37, 99, 235, 0.3);
  --status-accent: #7e22ce;
  --status-accent-bg: rgba(126, 34, 206, 0.1);
  --status-accent-border: rgba(126, 34, 206, 0.3);
  --status-orange: #c2410c;
  --status-orange-bg: rgba(234, 88, 12, 0.1);
  --status-orange-border: rgba(234, 88, 12, 0.3);
  --brand: #c4622d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
* { box-sizing: border-box; }
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.display {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}
.display-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}
.font-mono {
  font-family: 'Geist Mono', monospace;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
main { position: relative; z-index: 1; }
footer { position: relative; z-index: 1; }
header { position: relative; z-index: 1; }
.rule-line { border-color: var(--rule); transition: border-color 0.3s ease; }
.contact-box {
  border: 1px solid var(--rule);
  background: var(--box-bg);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.contact-link {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.45; }
.social-link {
  color: var(--muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover { color: var(--ink); }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--ink);
}
.theme-toggle {
  background: var(--toggle-bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.2s;
  color: var(--muted);
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 13px; height: 13px; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.38s; }

.contact-box, .context-box {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .contact-box, [data-theme="light"] .context-box {
  border-color: #beb9a8;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.context-box {
  border: 1px solid var(--rule);
  background: var(--box-bg);
  border-radius: 4px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.context-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: block;
}

/* --- New UI Components --- */
/* --- Unified Bottom Bar --- */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  transition: background 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(12px);
}

.bottom-bar-left, .bottom-bar-center, .bottom-bar-right {
  display: flex;
  align-items: center;
  flex: 1;
}

.bottom-bar-left {
  gap: 0.75rem;
  align-items: center;
}
/* Match tools-trigger / legal-trigger so “Blog” sits on the same baseline as “Tools” */
.blog-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.blog-bar-link:hover {
  border-color: var(--ink);
  background: var(--box-bg);
}
.blog-bar-link:hover span {
  color: var(--ink);
}
.blog-bar-link span {
  line-height: 1;
}

.bottom-bar-center {
  justify-content: center;
  gap: 1rem;
}

.bottom-bar-right {
  justify-content: flex-end;
  gap: 1.5rem;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.copyright {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}


.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tools-widget {
  position: relative;
  /* Add padding to bridge the hover gap */
  padding: 1.5rem 0;
  margin: -1.5rem 0;
}
.tools-menu {
  position: absolute;
  bottom: 80%;
  left: 0;
  margin-bottom: 0.5rem;
  width: max-content;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  visibility: hidden;
  transition-delay: 0.1s; /* Subtle delay on close */
}
@media (hover: hover) {
  .tools-widget:hover .tools-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
}

.tools-widget[data-open] .tools-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  /* Visibility is not in this transition, so the first link can take focus at once. */
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0s;
}
.tools-trigger {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
  box-sizing: border-box;
}
.tools-trigger span {
  line-height: 1;
}
.tools-trigger:hover { 
  border-color: var(--ink);
  background: var(--box-bg);
}
.tool-link {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  padding: 0.25rem 0;
}
.tool-link:hover { color: var(--ink); transform: translateX(2px); }

.legal-widget {
  position: relative;
  padding: 1.5rem 0;
  margin: -1.5rem 0;
}
.legal-menu {
  position: absolute;
  bottom: 80%;
  right: 0;
  margin-bottom: 0.5rem;
  width: 280px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  visibility: hidden;
  transition-delay: 0.1s;
}
@media (hover: hover) {
  .legal-widget:hover .legal-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
}
.legal-widget[data-open] .legal-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0s;
}
.tools-widget.shut .tools-menu,
.legal-widget.shut .legal-menu,
.tools-widget.shut:hover .tools-menu,
.legal-widget.shut:hover .legal-menu {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  visibility: hidden;
}
.legal-trigger {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
  box-sizing: border-box;
}
.legal-trigger span {
  line-height: 1;
}
.legal-trigger:hover { 
  border-color: var(--ink);
  background: var(--box-bg);
}

@media (max-width: 1024px) {
  :root { --theme-label-display: none; }

  .bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    height: 60px;
    padding: 0 1rem;
    gap: 0.5rem;
    justify-content: space-between;
    animation: none;
    transform: none;
  }

  .bottom-bar-center { display: none; }

  .tools-menu, .legal-menu {
    position: fixed;
    bottom: 70px;
    left: 1rem;
    right: 1rem;
    transform: translateY(10px);
    width: auto;
    max-width: none;
    max-height: 75dvh;
    overflow-y: auto;
    box-shadow: 0 10px 80px rgba(0,0,0,0.6);
    z-index: 2000;
    border-radius: 12px;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rule);
  }

  .legal-menu { width: auto; }

  .tools-widget[data-open] .tools-menu,
  .legal-widget[data-open] .legal-menu {
    transform: translateY(0);
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem;
  }

  .tool-link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid var(--rule);
  }
  
  .tool-link:last-child {
    border-bottom: none;
  }
}

/* --- Privacy Tool Components --- */
.privacy-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Shared semantic chips — tools can reuse these class names or the CSS vars */
.status-strong,
.status-ok {
  background: var(--status-ok-bg);
  color: var(--status-ok);
  border: 1px solid var(--status-ok-border);
}
.status-moderate,
.status-warn {
  background: var(--status-warn-bg);
  color: var(--status-warn);
  border: 1px solid var(--status-warn-border);
}
.status-weak,
.status-bad {
  background: var(--status-bad-bg);
  color: var(--status-bad);
  border: 1px solid var(--status-bad-border);
}
.status-info {
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid var(--status-info-border);
}

/* Blog prose (generated static posts under /blog/) */
.blog-prose {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 62ch;
}
.blog-prose > * + * {
  margin-top: 1rem;
}
.blog-prose h2 {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.blog-prose h3 {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1.5rem;
}
.blog-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-prose a:hover {
  opacity: 0.75;
}
.blog-prose code {
  font-family: "Geist Mono", monospace;
  font-size: 0.8em;
  background: var(--box-bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.1em 0.35em;
}
.blog-prose pre {
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  background: var(--box-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
}
.blog-prose pre code {
  background: none;
  border: none;
  padding: 0;
}
.blog-prose ul,
.blog-prose ol {
  padding-left: 1.25rem;
}
.blog-prose li + li {
  margin-top: 0.35rem;
}
.blog-prose blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  color: var(--muted);
}
.blog-prose strong {
  color: var(--ink);
  font-weight: 500;
}
.blog-index-list a {
  text-decoration: none;
}

/* Map tile credits live in the results footer (#mapAttrContainer), not on the map. */
#mapAttrContainer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#mapAttrContainer a:hover {
  color: var(--ink);
  opacity: 0.85;
}
#attrContainer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#attrContainer a:hover {
  color: var(--ink);
  opacity: 0.85;
}

#rawInspector {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    z-index: 2000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    flex-direction: column;
}
#rawInspector.active { display: flex; }
.inspector-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}
.inspector-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
}
.inspector-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1999;
}
.inspector-overlay.active { display: block; }

.raw-toggle-btn {
    background: transparent;
    border: 1px solid var(--rule);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}
.raw-toggle-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--box-bg); }

/* --- Tool Source Badges --- */
.source-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.65rem; color: var(--muted); margin-top: 12px; }
.source-dot { width: 6px; height: 6px; border-radius: 999px; }
.source-dot.browser { background-color: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.source-dot.edge { background-color: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }

/* --- Standard Form Controls --- */
.standard-select {
    background: transparent;
    color: var(--ink);
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem; /* Space for icon */
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: normal;
    border: 1px solid var(--rule);
    border-radius: 4px;
    transition: border-color 0.2s;
    width: 100%;
}
.standard-select:hover {
    border-color: var(--muted);
}
.standard-select:focus {
    border-color: var(--ink);
}
.standard-select option {
    background-color: var(--paper);
    color: var(--ink);
}
[data-theme="light"] .standard-select option {
    background-color: #ffffff;
    color: #1a1a18;
}

/* --- Dropdown Icon Standard --- */
.select-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.select-container::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    width: 14px;
    height: 14px;
    background-color: var(--muted);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    pointer-events: none;
    transition: background-color 0.2s;
}
.select-container:hover::after {
    background-color: var(--ink);
}

/* --- Custom Combobox Dropdowns --- */
.custom-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--paper) !important;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999 !important;
  box-shadow: 0 10px 50px rgba(0,0,0,0.4);
}
[data-theme="light"] .custom-dropdown { box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

.dropdown-item {
  padding: 12px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s;
  color: var(--ink);
}
.dropdown-item:hover { 
    background-color: var(--rule);
}
[data-theme="light"] .dropdown-item:hover {
    background-color: #e2dfd8;
    color: #000000;
}
.dropdown-item span:last-child {
    color: var(--muted);
}

/* --- Global Tool Utilities --- */

/* JSON / raw results — theme-aware; never hardcode dark overlays (light theme bug) */
.json-raw,
pre#rawWrapper,
#rawContent {
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
  /* Transparent so parent contact-box / paper shows through (matches DNS Query) */
  background: transparent;
  border: none;
  padding: 0;
}

/* Standalone raw panel (its own contact-box, not nested) */
pre#rawWrapper.contact-box,
#rawWrapper.contact-box.json-raw {
  padding: 1.5rem;
  background: var(--box-bg);
}

/* Nested raw inside an existing results contact-box */
.contact-box > pre#rawWrapper,
.contact-box > pre.json-raw {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.preset-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(var(--ink-rgb, 0,0,0), 0.1);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.preset-link:hover {
    color: var(--ink);
    text-decoration-color: var(--ink);
}
[data-theme="dark"] .preset-link { 
    text-decoration-color: rgba(255, 255, 255, 0.1); 
}
[data-theme="dark"] .preset-link:hover {
    text-decoration-color: var(--ink);
}
