/* White and orange presentation shared by the static directory and tool pages. */
:root {
  color-scheme: light;
  --brand-orange: #f97316;
  --brand-orange-hover: #ea580c;
  --brand-ink: #1c1917;
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #fff7ed;
  --bg-hover: #ffedd5;
  --bg-glass: #ffffff;
  --bg-base: #ffffff;
  --bg-card: #ffffff;
  --bg-secondary: #fff7ed;
  --bg-tertiary: #ffedd5;
  --card-bg: #ffffff;
  --border-color: #e7e5e4;
  --border-subtle: #f1efed;
  --border-focus: #c2410c;
  --border-glow: transparent;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --text-inverse: #ffffff;
  --accent-primary: #c2410c;
  --accent-primary-hover: #9a3412;
  --accent-secondary: #ea580c;
  --accent-subtle: #fff7ed;
  --accent-glow: transparent;
  --accent-gradient: #f97316;
  --accent-gradient-radial: none;
  --primary: #c2410c;
  --primary-light: #fff7ed;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-glow: none;
  --card-highlight: none;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --radius-full: 4px;
  --transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  --transition-fast: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  --transition-normal: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  --transition-slow: none;
  --max-width: 1160px;
  --cat-beautifier: #c2410c;
  --cat-text: #c2410c;
  --cat-security: #c2410c;
  --cat-web: #c2410c;
  --cat-developer: #c2410c;
  --cat-images: #c2410c;
  --cat-pdf: #c2410c;
  --cat-math: #c2410c;
  --cat-design: #c2410c;
  --cat-info: #c2410c;
  --cat-utility: #c2410c;
}
[data-theme="dark"] {
  color-scheme: dark;
  --brand-ink: #1c1917;
  --bg-primary: #1c1917;
  --bg-surface: #24201d;
  --bg-elevated: #2b2520;
  --bg-subtle: #30261d;
  --bg-hover: #3b2a1d;
  --bg-glass: #24201d;
  --bg-base: #1c1917;
  --bg-card: #24201d;
  --bg-secondary: #30261d;
  --bg-tertiary: #3b2a1d;
  --card-bg: #24201d;
  --border-color: #514337;
  --border-subtle: #3b322a;
  --border-focus: #fb923c;
  --border-glow: transparent;
  --text-primary: #fafaf9;
  --text-secondary: #d6d3d1;
  --text-muted: #a8a29e;
  --text-inverse: #1c1917;
  --accent-primary: #fdba74;
  --accent-primary-hover: #fed7aa;
  --accent-secondary: #fb923c;
  --accent-subtle: #30261d;
  --accent-glow: transparent;
  --accent-gradient: #f97316;
  --accent-gradient-radial: none;
  --primary: #fdba74;
  --primary-light: #30261d;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-glow: none;
  --card-highlight: none;
}
.wth-site {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  transition: none;
}
.wth-site::before { content: none; }
.wth-site .container { max-width: 1160px; padding-right: 24px; padding-left: 24px; }
.wth-site .site-header {
  position: static;
  height: auto;
  min-height: 80px;
  background: var(--bg-surface);
  border-top: 4px solid var(--brand-orange);
  border-bottom: 1px solid var(--border-color);
  box-shadow: none;
  backdrop-filter: none;
}
.wth-site .site-header-inner { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.wth-site .site-brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; }
.wth-site .site-brand img { width: 38px; height: 38px; object-fit: contain; }
.wth-site .logo-text { font-size: 21px; line-height: 1.2; letter-spacing: -.6px; color: var(--text-primary); }
.wth-site .logo-text span { color: var(--accent-primary); }
.wth-site .site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.wth-site .site-nav .nav-link { min-height: 44px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: 4px; }
.wth-site .site-nav .nav-link:hover { background: var(--bg-subtle); color: var(--accent-primary); }
.wth-site .nav-actions { display: flex; align-items: center; gap: 8px; }
.wth-site .search-trigger-btn { min-height: 44px; padding: 10px 16px; background: var(--brand-orange); border: 1px solid var(--brand-orange); border-radius: 4px; color: #ffffff; font-size: 14px; font-weight: 700; box-shadow: none; transform: none; }
.wth-site .search-trigger-btn:hover { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); color: #ffffff; }
.wth-site .icon-btn { width: 44px; height: 44px; min-width: 44px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-surface); color: var(--text-primary); }
.wth-site .site-directory { width: 100%; max-width: 1160px; margin: 0 auto; padding: 48px 24px 64px; }
.wth-site .directory-intro, .wth-site .category-intro { padding: 2px 0 2px 24px; border-left: 4px solid var(--brand-orange); margin-bottom: 40px; }
.wth-site .directory-intro h1, .wth-site .category-intro h1 { max-width: 850px; font-size: clamp(29px, 4vw, 42px); font-weight: 750; line-height: 1.16; letter-spacing: -1.2px; margin: 0 0 16px; }
.wth-site .directory-intro p, .wth-site .category-intro p { max-width: 76ch; color: var(--text-secondary); font-size: 16px; line-height: 1.75; margin: 0; }
.wth-site .directory-category-nav { border-bottom: 1px solid var(--border-color); padding-bottom: 28px; margin-bottom: 36px; }
.wth-site .directory-category-nav h2, .wth-site .directory-about h2 { font-size: 21px; font-weight: 700; letter-spacing: -.35px; margin: 0 0 16px; }
.wth-site .directory-category-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding: 0; margin: 0; list-style: none; }
.wth-site .directory-category-nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; font-weight: 600; color: var(--accent-primary); text-decoration: none; }
.wth-site .directory-category-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wth-site .tool-directory-category { margin: 0 0 36px; }
.wth-site .tool-directory-category h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.35px; margin: 0 0 4px; }
.wth-site .tool-directory-category h2 a { color: var(--text-primary); text-decoration: none; }
.wth-site .tool-directory-category h2 a:hover { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 4px; }
.wth-site .category-summary { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.wth-site .tool-directory-category ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; list-style: none; padding: 0; margin: 0; }
.wth-site .tool-directory-category li { min-width: 0; border-bottom: 1px solid var(--border-subtle); }
.wth-site .tool-directory-category li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--accent-primary); font-size: 14px; line-height: 1.5; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.wth-site .tool-directory-category li a:hover { text-decoration-color: currentColor; }
.wth-site .directory-about { border-top: 1px solid var(--border-color); padding-top: 32px; margin-top: 12px; }
.wth-site .directory-about p { max-width: 84ch; font-size: 15px; color: var(--text-secondary); margin: 0 0 20px; }
.wth-site .directory-about h2:not(:first-child) { margin-top: 36px; }
.wth-site .directory-about details { padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.wth-site .directory-about summary { cursor: pointer; font-weight: 600; line-height: 1.5; }
.wth-site .directory-about details p { margin: 12px 0 0; }
.wth-site .category-page { padding-top: 20px; padding-bottom: 56px; }
.wth-site .category-page .category-intro { margin-top: 28px; }
.wth-site .category-intro .category-count { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.wth-site .category-page h2 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.35px; }
.wth-site .category-tool-list { list-style: none; padding: 0; margin: 0; max-width: 980px; }
.wth-site .category-tool-list li { border-bottom: 1px solid var(--border-color); padding: 18px 0; }
.wth-site .category-tool-title { display: inline-block; min-height: 44px; padding: 9px 0; color: var(--accent-primary); font-size: 18px; font-weight: 650; text-decoration: none; }
.wth-site .category-tool-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.wth-site .category-tool-list p { max-width: 90ch; color: var(--text-secondary); font-size: 14px; margin: 0; line-height: 1.7; }
.wth-site .category-return { margin-top: 28px; }
.wth-site .category-return a, .wth-site .informational-page a, .wth-site .human-sitemap-section a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
.wth-site .breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; margin: 0 0 16px; padding: 8px 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.wth-site .breadcrumb a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
.wth-site .tool-page-header { padding-top: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--border-color); background: var(--bg-surface); box-shadow: none; }
.wth-site .tool-page-title, .wth-site .tool-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 750; letter-spacing: -.8px; line-height: 1.2; color: var(--text-primary); }
.wth-site .tool-page-subtitle, .wth-site .tool-subtitle { max-width: 82ch; color: var(--text-secondary); line-height: 1.7; }
.wth-site .privacy-badge { display: inline-block; border: 0; border-radius: 0; background: transparent; color: var(--text-muted); padding: 8px 0 0; font-size: 12px; box-shadow: none; }
.wth-site .tool-layout { gap: 28px; margin-top: 28px; align-items: start; }
.wth-site .tool-workspace { min-width: 0; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); padding: 24px; box-shadow: none; }
.wth-site .tool-sidebar { min-width: 0; }
.wth-site .sidebar-card { padding: 20px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-surface); box-shadow: none; }
.wth-site .sidebar-card h3 { margin-bottom: 12px; font-size: 15px; color: var(--text-primary); }
.wth-site .sidebar-links a { min-height: 44px; color: var(--accent-primary); background: transparent; border-radius: 0; border-bottom: 1px solid var(--border-subtle); }
.wth-site .badge-mini { border-radius: 3px; background: var(--bg-subtle); color: var(--text-secondary); border-color: var(--border-color); }
.wth-site .form-label { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.wth-site :is(.form-input, .form-select, .form-control) { min-height: 44px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-surface); color: var(--text-primary); box-shadow: none; }
.wth-site :is(.form-textarea, .textarea-field, .code-textarea) { border: 1px solid var(--border-color); border-radius: 4px; background: var(--bg-surface); color: var(--text-primary); box-shadow: none; max-width: 100%; }
.wth-site .btn { min-height: 44px; border-radius: 4px; font-weight: 600; box-shadow: none; transform: none; }
.wth-site .btn-primary { background: var(--brand-orange); color: #ffffff; border: 1px solid var(--brand-orange); }
.wth-site .btn-primary:hover { background: var(--brand-orange-hover); color: #ffffff; border-color: var(--brand-orange-hover); box-shadow: none; transform: none; }
.wth-site .btn-secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-color); }
.wth-site .btn-secondary:hover { background: var(--bg-subtle); border-color: var(--accent-primary); box-shadow: none; transform: none; }
.wth-site .tool-extra-section { border-radius: 0; border: 0; border-top: 1px solid var(--border-color); background: transparent; padding: 28px 0; box-shadow: none; }
.wth-site .related-tool-grid { gap: 8px 20px; }
.wth-site .related-tool-grid a { color: var(--accent-primary); background: transparent; border-radius: 0; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.wth-site .author-card { border-radius: 0; background: transparent; box-shadow: none; }
.wth-site .author-mark { border-radius: 4px; background: var(--bg-subtle); color: var(--accent-primary); }
.wth-site .site-footer { margin-top: auto; padding: 36px 0 24px; background: var(--bg-subtle); border-top: 1px solid var(--border-color); box-shadow: none; }
.wth-site .footer-intro { margin-bottom: 28px; }
.wth-site .footer-brand { color: var(--text-primary); font-size: 20px; font-weight: 750; text-decoration: none; }
.wth-site .footer-intro p { color: var(--text-secondary); margin: 4px 0 0; font-size: 14px; }
.wth-site .site-footer h2 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.wth-site .footer-category-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.wth-site .footer-category-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent-primary); text-decoration: none; }
.wth-site .footer-category-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wth-site .footer-basic-links { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border-color); }
.wth-site .footer-basic-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.wth-site .footer-copyright { margin-top: 16px; color: var(--text-muted); font-size: 12px; }
.wth-site .informational-page { min-height: 45vh; padding-top: 20px; padding-bottom: 56px; }
.wth-site .informational-page h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.8px; margin: 24px 0 20px; }
.wth-site .informational-page h2 { font-size: 21px; margin: 28px 0 12px; }
.wth-site .informational-page p { max-width: 80ch; margin: 0 0 16px; color: var(--text-secondary); }
.wth-site .human-sitemap-section { padding: 24px 0; border-bottom: 1px solid var(--border-color); }
.wth-site .human-sitemap-section h2 { font-size: 22px; margin-bottom: 12px; }
.wth-site .human-sitemap-section ul { padding-left: 20px; }
.wth-site .human-sitemap-section li { padding: 6px 0; }
.wth-site .search-modal { border-radius: 6px; border-color: var(--border-color); box-shadow: 0 12px 32px rgb(28 25 23 / 12%); }
.wth-site .search-result-item.selected { background: var(--bg-subtle); }
.wth-site .toast-label { font-weight: 700; }
.wth-site :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
@media (max-width: 1000px) {
  .wth-site .site-header-inner { flex-wrap: wrap; gap: 8px 20px; }
  .wth-site .site-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .wth-site .nav-actions { margin-left: auto; }
  .wth-site .tool-layout.with-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .wth-site .directory-category-nav ul, .wth-site .tool-directory-category ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .wth-site .footer-category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wth-site .directory-intro h1, .wth-site .category-intro h1 { letter-spacing: -.7px; }
}
@media (max-width: 480px) {
  .wth-site .container { padding-left: 16px; padding-right: 16px; }
  .wth-site .site-header-inner { gap: 12px; }
  .wth-site .logo-text { font-size: 18px; }
  .wth-site .site-brand img { width: 32px; height: 32px; }
  .wth-site .nav-actions { margin-left: 0; width: 100%; }
  .wth-site .search-trigger-btn { flex: 1; text-align: center; justify-content: center; }
  .wth-site .site-nav { order: 2; gap: 0; }
  .wth-site .site-nav .nav-link { padding-left: 0; padding-right: 18px; }
  .wth-site .site-directory { padding: 32px 16px 40px; }
  .wth-site .directory-intro, .wth-site .category-intro { padding-left: 16px; margin-bottom: 28px; }
  .wth-site .directory-category-nav ul, .wth-site .tool-directory-category ul, .wth-site .footer-category-links { grid-template-columns: minmax(0, 1fr); }
  .wth-site .tool-workspace { padding: 16px; }
  .wth-site .footer-basic-links { gap: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wth-site, .wth-site .btn, .wth-site .nav-link, .wth-site .search-trigger-btn, .wth-site .search-modal { transition: none; animation: none; }
}


/* Page guide, editorial date, and social sharing links. */
.wth-site .content-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
}
.wth-site .content-guide-card {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand-orange);
  border-radius: 4px;
  background: var(--bg-surface);
}
.wth-site .content-guide-card h2 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
}
.wth-site .content-guide-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.wth-site .content-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 24px 0 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}
.wth-site .content-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wth-site .content-share-label { margin-right: 4px; font-weight: 700; }
.wth-site .content-share a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  background: var(--bg-surface);
  font-weight: 600;
  text-decoration: none;
}
.wth-site .content-share a:hover {
  border-color: var(--brand-orange);
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.wth-site .content-share-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
@media (max-width: 700px) {
  .wth-site .content-guide { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wth-site .content-guide-card { padding: 18px; }
}
