/* Version R inner pages. Homepage keeps its own style block. */
:root {
  --color-primary: #0078D4;
  --color-primary-dark: #005A9E;
  --color-primary-light: #E8F3FC;
  --color-surface: #ffffff;
  --color-safe: #ffffff;
  --color-safe-border: #e6e6e6;
  --color-border: #e6e6e6;
  --color-success: #0078D4;
  --max-width: 1200px;
}
body { background: #fff; }
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: none;
}
.nav { gap: 0; }
.nav a {
  position: relative;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  padding: 8px 16px !important;
  letter-spacing: 0;
  text-transform: none;
}
.nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  background: #d0d0d0;
  transform: translateY(-50%);
}
.nav a:hover, .nav a.active { color: #0078D4 !important; }
.tool-page, .legal-page, .guide { background: #fff; }
.tool-title, .legal-page h1, .guide h1 {
  font-weight: 650;
  letter-spacing: -0.02em;
}
.tool-workspace {
  background: #fff !important;
  border: 1px solid #c5d0dc !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* Drop target: the white-on-white dashed box was invisible. */
.drop {
  background: #E8F3FC !important;
  border: 2px dashed #0078D4 !important;
  border-radius: 0 !important;
  min-height: 96px;
  box-shadow: inset 0 0 0 4px #f4f9fd;
}
.drop:hover, .drop.drag {
  background: #d7ebfa !important;
  border-color: #005A9E !important;
}
.drop p {
  color: #0C4A6E !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}
.tool-workspace .btn-primary,
.btn-primary,
label.btn-primary {
  background: #0078D4 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: 44px;
  padding: 12px 26px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
}
.tool-workspace .btn-primary:hover,
.btn-primary:hover,
label.btn-primary:hover { background: #005A9E !important; color: #fff !important; }
.btn-secondary {
  background: #fff !important;
  color: #0C4A6E !important;
  border: 1px solid #0078D4 !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
}
.btn-secondary:hover { background: #E8F3FC !important; color: #005A9E !important; }
.note {
  background: #fff !important;
  border: none !important;
  border-left: 3px solid #0078D4 !important;
  border-radius: 0 !important;
  color: #334155 !important;
}
.site-footer {
  background: #fff;
  border-top: 1px solid #e6e6e6;
}
.related-tools .section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 14px;
}
.related-tools .section-title::before { content: none !important; }
.related-tools .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e6e6;
}
.related-tools .tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px dashed #d0d0d0;
  border-left: 1px dashed #d0d0d0;
}
.related-tools .tool-card {
  border-radius: 0 !important;
  border: none !important;
  border-right: 1px dashed #d0d0d0 !important;
  border-bottom: 1px dashed #d0d0d0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  text-align: left;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 16px 14px 14px !important;
}
.related-tools .tool-card .icon {
  width: auto;
  height: auto;
  margin: 3px 0 0;
  background: none !important;
  border-radius: 0;
  font-size: 18px;
  grid-row: 1 / span 2;
  display: block;
  color: inherit;
}
.related-tools .tool-card h3,
.related-tools .tool-card p { grid-column: 2; }
.related-tools .tool-card h3 {
  font-size: 17px !important;
  font-weight: 700;
  margin: 0 0 3px;
  line-height: 1.25;
  color: #0f172a;
}
.related-tools .tool-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  min-height: 0;
  display: block;
  white-space: normal;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.related-tools .tool-card:hover,
.related-tools .tool-card:hover .icon {
  background: #f7faff !important;
  color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
}
.content-block a, .tool-desc a, .legal-page a, .guide a { color: #0078D4; }
/* Old download guides locked the column at 800px. Page shell is 1200, still fluid. */
.guide .container { max-width: 1200px !important; width: 100%; }
@media (max-width: 768px) {
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 8px 0; }
  .nav { display: flex !important; width: 100%; overflow-x: auto; gap: 0; }
  .nav-toggle { display: none !important; }
  .nav a { white-space: nowrap; padding: 8px 12px !important; }
}
