/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *

 */

:root {
  --dn-ink: #0f172a;
  --dn-muted: #64748b;
  --dn-line: #e2e8f0;
  --dn-panel: #ffffff;
  --dn-paper: #f8fafc;
  --dn-accent: #0f766e;
  --dn-danger: #dc2626;
  --dn-night: #07111f;
  --dn-night-2: #0d1b2f;
  --dn-cyan: #67e8f9;
}

.dn-site-header {
  background:
    radial-gradient(circle at 12% -30%, rgba(103, 232, 249, 0.22), transparent 20rem),
    linear-gradient(135deg, var(--dn-night) 0%, var(--dn-night-2) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #fff;
  position: relative;
  z-index: 20;
}

.dn-site-nav {
  align-items: center;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(12rem, auto) minmax(16rem, 34rem) auto;
  margin: 0 auto;
  max-width: 76rem;
  padding: 0.9rem 1rem;
}

.dn-site-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.dn-site-brand:hover .dn-site-brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.dn-site-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--dn-cyan), #14b8a6);
  border-radius: 1rem;
  box-shadow: 0 16px 35px rgba(20, 184, 166, 0.25);
  display: inline-flex;
  height: 2.65rem;
  justify-content: center;
  transition: transform 180ms ease;
  width: 2.65rem;
}

.dn-site-brand-mark span {
  background: #07111f;
  border-radius: 999px;
  box-shadow: 0 0 0 0.35rem rgba(7, 17, 31, 0.18);
  height: 0.72rem;
  width: 0.72rem;
}

.dn-site-brand strong,
.dn-site-footer-logo {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dn-site-brand small {
  color: #a5f3fc;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.16rem;
  text-transform: uppercase;
}

.dn-site-check {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 999px;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.28rem;
  position: relative;
}

.dn-site-check-input {
  background: transparent;
  border: 0;
  color: #fff;
  min-width: 0;
  outline: 0;
  padding: 0.7rem 0.9rem;
}

.dn-site-check-input::placeholder {
  color: #94a3b8;
}

.dn-site-check-button {
  background: #e0f2fe;
  border: 0;
  border-radius: 999px;
  color: #082f49;
  cursor: pointer;
  font-weight: 900;
  padding: 0.65rem 1rem;
  transition: background 160ms ease, transform 160ms ease;
}

.dn-site-check-button:hover {
  background: #67e8f9;
  transform: translateY(-1px);
}

.dn-site-check-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.dn-site-check-loading,
.dn-site-check-result,
.dn-site-check-error {
  bottom: -1.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  left: 1rem;
  position: absolute;
}

.dn-site-check-loading {
  color: #a5f3fc;
}

.dn-site-check-result {
  color: #86efac;
}

.dn-site-check-error {
  color: #fca5a5;
}

.dn-site-links {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.dn-site-links a {
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.dn-site-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dn-site-footer {
  background:
    radial-gradient(circle at 88% 0%, rgba(20, 184, 166, 0.16), transparent 20rem),
    linear-gradient(180deg, #08111f 0%, #030712 100%);
  color: #dbeafe;
  padding: 3rem 0 2rem;
}

.dn-site-footer-inner {
  display: grid;
  gap: 2rem;
  margin: 0 auto;
  max-width: 76rem;
  padding: 0 1rem;
}

.dn-site-footer-brand {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(12rem, auto) minmax(0, 42rem);
  padding-bottom: 1.5rem;
}

.dn-site-footer-logo {
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
}

.dn-site-footer p {
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.dn-site-footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dn-site-footer h2 {
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.dn-site-footer a {
  color: #cbd5e1;
  display: block;
  font-weight: 700;
  margin-top: 0.5rem;
  text-decoration: none;
}

.dn-site-footer a:hover {
  color: #fff;
}

.dn-site-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  display: flex;
  font-size: 0.85rem;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.dn-project {
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 116, 144, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--dn-paper) 34rem);
  color: var(--dn-ink);
}

.dn-project-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.dn-project-hero {
  border-bottom: 1px solid var(--dn-line);
  padding: 2rem 0 1.25rem;
}

.dn-project-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
}

.dn-project-eyebrow,
.dn-project-label {
  color: var(--dn-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dn-project-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin: 0.55rem 0 0;
}

.dn-project-copy {
  color: #475569;
  line-height: 1.65;
  margin: 0.85rem 0 0;
  max-width: 42rem;
}

.dn-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.dn-project-pill {
  align-items: center;
  background: #fff;
  border: 1px solid var(--dn-line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

.dn-project-metrics {
  border: 1px solid var(--dn-line);
  border-radius: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
  overflow: hidden;
  background: var(--dn-panel);
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.06);
}

.dn-project-metric {
  min-width: 0;
  padding: 1rem;
}

.dn-project-metric + .dn-project-metric {
  border-left: 1px solid var(--dn-line);
}

.dn-project-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.4rem 0 0;
}

.dn-project-small {
  color: var(--dn-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.dn-project-link {
  color: #0369a1;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.dn-project-link:hover {
  text-decoration: underline;
}

.dn-project-body {
  padding: 2rem 0;
}

.dn-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 2rem;
}

.dn-project-main,
.dn-project-aside {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.dn-project-section {
  border-bottom: 1px solid var(--dn-line);
  padding-bottom: 2rem;
}

.dn-project-section:last-child {
  border-bottom: 0;
}

.dn-project-section-wide {
  margin-bottom: 2rem;
}

.dn-project-section-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.dn-project-section h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

.dn-project-section h3 {
  margin: 0;
}

.dn-project-actions,
.dn-project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dn-project-report-trends {
  margin-top: 1rem;
}

.dn-project-live-strip {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.9fr) minmax(18rem, 0.95fr);
  margin-top: 1.5rem;
}

.dn-project-live-main {
  min-width: 0;
}

.dn-project-live-panel {
  align-self: start;
}

.dn-project-trend-chips {
  margin-top: 0.5rem;
}

.dn-project-button {
  background: var(--dn-ink);
  border: 0;
  border-radius: 0.65rem;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.7rem 1rem;
}

.dn-project-button:hover {
  background: #334155;
}

.dn-project-status-grid,
.dn-project-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.dn-project-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dn-project-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.dn-project-form-grid .dn-project-button,
.dn-project-form-grid .dn-project-chip {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.dn-project-callout,
.dn-project-card {
  background: var(--dn-panel);
  border: 1px solid var(--dn-line);
  border-radius: 0.9rem;
  padding: 1rem;
}

.dn-project-callout {
  border-left-width: 4px;
}

.dn-project-callout.is-up {
  border-left-color: var(--dn-accent);
  background: #f0fdfa;
}

.dn-project-callout.is-down {
  border-left-color: var(--dn-danger);
  background: #fef2f2;
}

.dn-project-good {
  color: var(--dn-accent);
}

.dn-project-bad {
  color: var(--dn-danger);
}

.dn-project-panel {
  background: var(--dn-panel);
  border: 1px solid var(--dn-line);
  border-radius: 1rem;
  padding: 1.1rem;
}

.dn-project-input-row {
  display: flex;
  margin-top: 1rem;
}

.dn-project-input {
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem 0 0 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem;
}

.dn-project-input-row .dn-project-button {
  border-radius: 0 0.65rem 0.65rem 0;
}

.dn-project-report-workspace {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.85fr);
  margin-top: 1.5rem;
}

.dn-project-subhead {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.dn-project-subhead h3 {
  font-size: 1.05rem;
  font-weight: 900;
}

.dn-project-report-list {
  border-bottom: 1px solid var(--dn-line);
  border-top: 1px solid var(--dn-line);
  margin-top: 0.75rem;
}

.dn-project-report {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.dn-project-report > div {
  min-width: 0;
}

.dn-project-report + .dn-project-report {
  border-top: 1px solid var(--dn-line);
}

.dn-project-faq-list {
  border-bottom: 1px solid var(--dn-line);
  border-top: 1px solid var(--dn-line);
  margin-top: 0.75rem;
}

.dn-project-faq-item {
  padding: 1rem 0;
}

.dn-project-faq-item + .dn-project-faq-item {
  border-top: 1px solid var(--dn-line);
}

.dn-project-faq-question {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style-position: inside;
}

.dn-project-faq-item .dn-project-copy {
  margin: 0.85rem 0 0 1.35rem;
  max-width: none;
}

.dn-project-tag,
.dn-project-chip {
  background: #fff;
  border: 1px solid var(--dn-line);
  border-radius: 0.65rem;
  color: #334155;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.dn-project-tag:hover,
.dn-project-chip:hover {
  background: #f1f5f9;
}

.dn-project-details-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.dn-project-rail-list {
  border-bottom: 1px solid #f1f5f9;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.55rem;
}

.dn-project-rail-link {
  color: var(--dn-ink);
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
}

.dn-project-rail-link + .dn-project-rail-link {
  border-top: 1px solid #f1f5f9;
}

.dn-project-rail-link:hover {
  background: #f8fafc;
}

.dn-project-muted {
  color: var(--dn-muted);
}

@media (max-width: 900px) {
  .dn-site-nav {
    grid-template-columns: 1fr;
  }

  .dn-site-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .dn-site-footer-brand,
  .dn-site-footer-grid {
    grid-template-columns: 1fr;
  }

  .dn-project-hero-row,
  .dn-project-layout,
  .dn-project-live-strip,
  .dn-project-report-workspace {
    grid-template-columns: 1fr;
  }

  .dn-project-badges {
    justify-content: flex-start;
  }

  .dn-project-metrics,
  .dn-project-summary-grid,
  .dn-project-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dn-project-metric + .dn-project-metric {
    border-left: 0;
    border-top: 1px solid var(--dn-line);
  }
}

@media (max-width: 640px) {
  .dn-site-nav {
    padding: 0.85rem 0.9rem 1rem;
  }

  .dn-site-check {
    border-radius: 1rem;
    grid-template-columns: 1fr;
  }

  .dn-site-check-button {
    border-radius: 0.8rem;
  }

  .dn-site-check-loading,
  .dn-site-check-result,
  .dn-site-check-error {
    bottom: auto;
    grid-column: 1;
    left: auto;
    padding: 0 0.8rem 0.35rem;
    position: static;
  }

  .dn-site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .dn-project-hero {
    padding-top: 1.35rem;
  }

  .dn-project-metrics,
  .dn-project-status-grid,
  .dn-project-summary-grid,
  .dn-project-form-grid,
  .dn-project-details-grid {
    grid-template-columns: 1fr;
  }

  .dn-project-section-head,
  .dn-project-report,
  .dn-project-input-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dn-project-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .dn-project-input,
  .dn-project-input-row .dn-project-button {
    border-radius: 0.65rem;
  }
}
