/* Layered visual treatment on top of the Django-compatible dashboard.css.
   Only transform/opacity are animated; reduced-motion users get the static view. */

:root {
  --depth-1: 0 1px 2px rgba(15, 40, 35, .06), 0 10px 28px rgba(15, 40, 35, .06);
  --depth-2: 0 1px 2px rgba(15, 40, 35, .08), 0 18px 44px rgba(15, 40, 35, .09);
  --layer-line: rgba(13, 92, 77, .16);
}

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 140% at 88% -20%, rgba(214, 161, 43, .28), transparent 60%),
    radial-gradient(ellipse 60% 120% at 6% 120%, rgba(255, 255, 255, .12), transparent 62%),
    linear-gradient(135deg, #074337 0%, #0d5c4d 58%, #126251 100%);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.hero-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025);
}

[data-depth="1"] { box-shadow: var(--depth-1); }
[data-depth="2"], [data-depth="3"] { box-shadow: var(--depth-2); }
[data-depth="2"], [data-depth="3"] { border-top: 3px solid var(--layer-line); }

.panel, .instrument-card, .metric-card {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, box-shadow .3s ease;
}
.panel:hover, .instrument-card:hover, .metric-card:hover {
  transform: translateY(-2px);
}

[data-depth].reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
[data-depth].reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.auth-card { position: relative; overflow: hidden; }
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.nav-user { margin: 0 0 0 1rem; color: #cfe6dd; font-size: .82rem; }

.field-hint, .hint {
  color: var(--muted);
  font-size: .82rem;
  margin: .25rem 0 0;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  margin-bottom: .5rem;
}

.notice-error { border-left: 4px solid #a3332a; background: #fde8e6; color: #7b231c; }
.notice-success { border-left: 4px solid #0a6b4d; background: #e8f2ef; color: #074337; }

.chart-wrap svg { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-depth].reveal { opacity: 1; transform: none; }
  .panel:hover, .instrument-card:hover, .metric-card:hover { transform: none; }
}

@media print {
  [data-depth] { box-shadow: none; transform: none !important; opacity: 1 !important; }
}

/* Flexible upload and post-upload remarks */
.template-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.template-card { padding: 1rem; border: 1px solid var(--layer-line); border-radius: 10px; background: #fff; }
.template-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.template-card .button { margin-top: .75rem; }
.upload-steps { margin: 0 0 1.25rem; padding-left: 1.25rem; color: #43514d; }
.upload-steps li + li { margin-top: .35rem; }
.insight-panel { border-left: 4px solid #0d5c4d; }
.insight-summary { font-size: 1.05rem; font-weight: 600; color: #074337; margin-bottom: .35rem; }
.keyword-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.keyword-chip { display: inline-flex; gap: .35rem; align-items: center; padding: .2rem .55rem; border-radius: 999px; background: #e8f2ef; color: #074337; font-size: .82rem; }
.category-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.category-tab { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--layer-line); color: #0d5c4d; text-decoration: none; font-size: .85rem; }
.category-tab.is-active { background: #0d5c4d; color: #fff; border-color: #0d5c4d; }
.remarks-table { min-width: 1180px; width: 100%; border-collapse: separate; border-spacing: 0; }
.remarks-table th, .remarks-table td { vertical-align: top; padding: .6rem; border-bottom: 1px solid #e4e9e7; }
.remarks-table thead th { background: #f4f7f6; font-size: .8rem; }
.remarks-table thead th code { display: block; font-weight: 400; color: #6b7a75; }
.remarks-table .sticky-col { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 120px; }
.remarks-table thead .sticky-col { z-index: 3; background: #f4f7f6; }
.remark-value { font-size: .8rem; font-weight: 600; color: #0d5c4d; margin-bottom: .3rem; }
.remarks-table input, .remarks-table select { min-width: 150px; }

.slide-index { margin: .15rem 0 .45rem; font-size: .9rem; font-weight: 600; color: #0d5c4d; }

/* Consistent alignment for custom and Bootstrap form controls. */
label:not(.checkbox) {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.button,
select:not([multiple]):not(.form-select-sm),
input:not([type="checkbox"]):not([type="radio"]):not(.form-control-sm),
textarea:not(.form-control-sm),
.form-control:not(.form-control-sm),
.form-select:not(.form-select-sm) {
  min-height: 42px;
  border-radius: 6px;
  padding: .55rem .75rem;
}

.page-heading { align-items: center; }
.agreed-page.container {
  width: min(1160px, calc(100% - 2.5rem));
  padding-left: 0;
  padding-right: 0;
}

/* Scope controls grouped on the far right of the overview hero. */
.hero-scope-form {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  margin-left: auto;
  color: inherit;
}
.hero-scope-field { display: flex; flex-direction: column; min-width: 170px; }
.hero-scope-field label { color: #e3efeb; }
.hero-select {
  min-width: 170px;
  background: #fff;
  color: #074337;
  border: 1px solid #b8c7ca;
  font-weight: 600;
  cursor: pointer;
}
.hero-select option { color: #1f2d2a; background: #fff; }
.hero-select:hover, .hero-select:focus { border-color: #fff; }
.hero-select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-scope-form noscript .button { margin-bottom: 0; }

@media (max-width: 640px) {
  .hero-scope-form { width: 100%; margin-left: 0; }
  .hero-scope-field { flex: 1; min-width: 0; }
}
