/* ================================================================
   GEO FINAL UI V6
   Dashboard + Inspector
   ================================================================ */

.geo-dashboard-shell {
  display: grid;
  gap: 24px;
}

.geo-dashboard-hero,
.geo-inspector-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #032e4d, #075783);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(3, 46, 77, .12);
}

.geo-dashboard-hero::after,
.geo-inspector-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,160,221,.32), rgba(4,160,221,0) 68%);
  pointer-events: none;
}

.geo-dashboard-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 32px;
}

.geo-dashboard-hero h2,
.geo-inspector-hero h2 {
  margin: 6px 0 0;
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 650;
  line-height: 1.15;
}

.geo-dashboard-hero p,
.geo-inspector-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  font: 400 .88rem/1.65 "Work Sans", sans-serif;
}

.geo-dashboard-score-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 150px;
  height: 150px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.025);
}

.geo-dashboard-score-ring strong,
.geo-inspector-hero-score strong {
  color: #fff;
  font: 700 2.7rem/1 "Barlow", sans-serif;
}

.geo-dashboard-score-ring span,
.geo-inspector-hero-score span {
  color: rgba(255,255,255,.62);
  font: 600 .72rem "Work Sans", sans-serif;
}

.geo-dashboard-score-ring small,
.geo-inspector-hero-score small {
  margin-top: 5px;
  color: rgba(255,255,255,.78);
  font: 650 .65rem "Work Sans", sans-serif;
}

.geo-dashboard-hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.1);
}

.geo-dashboard-hero-meta > div {
  padding: 17px 22px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.geo-dashboard-hero-meta > div:last-child {
  border-right: 0;
}

.geo-dashboard-hero-meta span,
.geo-dashboard-hero-meta strong {
  display: block;
}

.geo-dashboard-hero-meta span {
  color: rgba(255,255,255,.58);
  font: 550 .62rem "Work Sans", sans-serif;
}

.geo-dashboard-hero-meta strong {
  margin-top: 4px;
  color: #fff;
  font: 700 1.05rem "Barlow", sans-serif;
}

.geo-dashboard-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.geo-dashboard-opportunity-card {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 19px;
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 14px;
  box-shadow: 0 9px 28px rgba(3,46,77,.045);
}

.geo-dashboard-opportunity-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: #054d7f;
  background: #edf6f9;
  border-radius: 10px;
  font: 700 .95rem "Barlow", sans-serif;
}

.geo-dashboard-opportunity-card span,
.geo-dashboard-opportunity-card strong,
.geo-dashboard-opportunity-card p {
  display: block;
}

.geo-dashboard-opportunity-card span {
  color: #6c818a;
  font: 600 .68rem "Work Sans", sans-serif;
}

.geo-dashboard-opportunity-card strong {
  margin-top: 2px;
  color: #032e4d;
  font: 700 1.35rem "Barlow", sans-serif;
}

.geo-dashboard-opportunity-card p {
  margin: 5px 0 0;
  color: #85959b;
  font: 400 .62rem/1.45 "Work Sans", sans-serif;
}

.geo-dashboard-section {
  border-radius: 16px;
}

.geo-dashboard-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.geo-dashboard-section-header h2 {
  margin: 3px 0 0;
  color: #032e4d;
  font: 650 1.25rem "Barlow", sans-serif;
}

.geo-dashboard-section-header p {
  margin: 6px 0 0;
  color: #71858e;
  font: 400 .72rem/1.55 "Work Sans", sans-serif;
}

.geo-dashboard-count-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #054d7f;
  background: #edf6f9;
  border-radius: 999px;
  font: 650 .62rem "Work Sans", sans-serif;
}

.geo-dashboard-review-list,
.geo-dashboard-resource-list {
  display: grid;
  gap: 10px;
}

.geo-dashboard-review-row,
.geo-dashboard-resource-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fafcfd;
  border: 1px solid #e1e8eb;
  border-radius: 11px;
}

.geo-dashboard-review-row {
  grid-template-columns: minmax(0,1fr) auto;
  border-left: 4px solid #d6a23e;
}

.geo-dashboard-review-row.is-high {
  border-left-color: #d86048;
}

.geo-dashboard-review-copy span,
.geo-dashboard-review-copy strong,
.geo-dashboard-review-copy small,
.geo-dashboard-resource-copy span,
.geo-dashboard-resource-copy strong,
.geo-dashboard-resource-copy small {
  display: block;
}

.geo-dashboard-review-copy span,
.geo-dashboard-resource-copy span {
  color: #85959c;
  font: 650 .55rem "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.geo-dashboard-review-copy strong,
.geo-dashboard-resource-copy strong {
  margin-top: 3px;
  color: #274653;
  font: 650 .76rem "Work Sans", sans-serif;
}

.geo-dashboard-review-copy small,
.geo-dashboard-resource-copy small {
  margin-top: 4px;
  color: #7a8d95;
  font: 400 .61rem "Work Sans", sans-serif;
}

.geo-dashboard-resource-row {
  grid-template-columns: 72px minmax(170px,1fr) minmax(150px,.75fr) auto;
}

.geo-dashboard-resource-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #054d7f;
}

.geo-dashboard-resource-score strong {
  font: 700 1.35rem "Barlow", sans-serif;
}

.geo-dashboard-resource-score span {
  color: #8b9aa0;
  font: 550 .57rem "Work Sans", sans-serif;
}

.geo-dashboard-resource-progress {
  height: 7px;
  overflow: hidden;
  background: #e9eff2;
  border-radius: 999px;
}

.geo-dashboard-resource-progress span {
  display: block;
  height: 100%;
  background: #04a0dd;
  border-radius: inherit;
}

.geo-dashboard-resource-row.is-excellent .geo-dashboard-resource-progress span {
  background: #35a66d;
}

.geo-dashboard-resource-row.is-warning .geo-dashboard-resource-progress span {
  background: #d9a640;
}

.geo-dashboard-resource-row.is-critical .geo-dashboard-resource-progress span {
  background: #d86048;
}

/* Inspector hero ------------------------------------------------- */

.geo-inspector-hero {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) minmax(210px,280px);
  gap: 26px;
  align-items: center;
  margin-bottom: 24px;
  padding: 28px 30px;
}

.geo-inspector-hero-score {
  display: grid;
  place-items: center;
  align-content: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
}

.geo-inspector-hero-copy {
  position: relative;
  z-index: 1;
}

.geo-inspector-hero-copy > span {
  color: rgba(255,255,255,.6);
  font: 650 .64rem "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.geo-inspector-progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}

.geo-inspector-progress span {
  display: block;
  height: 100%;
  background: #42c7f4;
  border-radius: inherit;
}

.geo-inspector-potential {
  position: relative;
  z-index: 1;
  padding: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
}

.geo-inspector-potential span,
.geo-inspector-potential strong,
.geo-inspector-potential small {
  display: block;
}

.geo-inspector-potential span {
  color: rgba(255,255,255,.58);
  font: 600 .6rem "Work Sans", sans-serif;
}

.geo-inspector-potential strong {
  margin-top: 5px;
  color: #fff;
  font: 700 1.25rem "Barlow", sans-serif;
}

.geo-inspector-potential small {
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font: 400 .58rem/1.45 "Work Sans", sans-serif;
}

/* Inspector layout ----------------------------------------------- */

.geo-inspector-layout {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.geo-inspector-score-panel,
.geo-inspector-editor {
  min-width: 0;
}

.geo-inspector-check-group + .geo-inspector-check-group {
  margin-top: 16px;
}

.geo-inspector-check-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.geo-inspector-check-group-heading span {
  color: #516974;
  font: 700 .64rem "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.geo-inspector-check-group-heading strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  color: #fff;
  background: #d86048;
  border-radius: 999px;
  font: 700 .6rem "Work Sans", sans-serif;
}

.geo-inspector-check-group.is-passed .geo-inspector-check-group-heading strong {
  background: #35a66d;
}

.geo-check {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(3,46,77,.035);
}

.geo-check + .geo-check {
  margin-top: 8px;
}

.geo-check summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.geo-check summary::-webkit-details-marker {
  display: none;
}

.geo-check-status {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #fff;
  background: #d86048;
  border-radius: 50%;
  font: 700 .7rem "Work Sans", sans-serif;
}

.geo-check.is-pass .geo-check-status {
  background: #35a66d;
}

.geo-check-summary-copy {
  display: block;
  min-width: 0;
}

.geo-check-summary-copy strong,
.geo-check-summary-copy small {
  display: block;
}

.geo-check-summary-copy strong {
  color: #284855;
  font: 650 .75rem "Work Sans", sans-serif;
}

.geo-check-summary-copy small {
  margin-top: 2px;
  color: #809198;
  font: 500 .58rem/1.4 "Work Sans", sans-serif;
}

.geo-check-body {
  padding: 0 14px 14px;
  border-top: 1px solid #edf1f3;
}

.geo-check-body > *:first-child {
  margin-top: 12px !important;
}

.geo-why {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e6edef;
}

.geo-why strong {
  display: block;
  color: #365563;
  font: 650 .65rem "Work Sans", sans-serif;
}

.geo-why p {
  margin: 4px 0 0;
  color: #6e838c;
  font: 400 .66rem/1.55 "Work Sans", sans-serif;
}

/* Editor sections ------------------------------------------------ */

.geo-inspector-editor {
  display: grid;
  gap: 18px;
}

.geo-editor-card {
  border-radius: 15px;
}

.geo-editor-section-heading {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3eaed;
}

.geo-editor-section-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #054d7f;
  background: #edf6f9;
  border-radius: 11px;
  font: 700 .68rem "Work Sans", sans-serif;
}

.geo-editor-section-heading h2 {
  margin: 3px 0 0;
  color: #032e4d;
  font: 650 1.15rem "Barlow", sans-serif;
}

.geo-editor-section-heading > div:last-child > p:last-child {
  margin: 6px 0 0;
  color: #748991;
  font: 400 .68rem/1.5 "Work Sans", sans-serif;
}

.geo-inspector-editor .label {
  color: #3b5966;
  font-size: .75rem;
  font-weight: 650;
}

.geo-inspector-editor .input,
.geo-inspector-editor .textarea,
.geo-inspector-editor .select select {
  color: #213f4e;
  background: #fff;
  border: 1px solid #ccdce4;
  border-radius: 9px;
  box-shadow: none;
  font-size: .82rem;
}

.geo-inspector-editor .input,
.geo-inspector-editor .select select {
  min-height: 46px;
}

.geo-inspector-editor .textarea {
  line-height: 1.55;
}

.geo-inspector-editor .input:focus,
.geo-inspector-editor .textarea:focus,
.geo-inspector-editor .select select:focus {
  border-color: #1388bc;
  box-shadow: 0 0 0 3px rgba(19,136,188,.11);
}

.geo-inspector-editor .admin-help {
  font-size: .62rem;
  line-height: 1.5;
}

/* Mobile --------------------------------------------------------- */

@media screen and (max-width: 1100px) {
  .geo-dashboard-opportunity-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .geo-inspector-layout {
    grid-template-columns: 1fr;
  }

  .geo-inspector-score-panel {
    order: 2;
  }

  .geo-inspector-editor {
    order: 1;
  }
}

@media screen and (max-width: 820px) {
  .geo-dashboard-hero-main {
    grid-template-columns: 1fr;
  }

  .geo-dashboard-score-ring {
    width: 120px;
    height: 120px;
  }

  .geo-dashboard-hero-meta {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .geo-dashboard-hero-meta > div:nth-child(2) {
    border-right: 0;
  }

  .geo-dashboard-hero-meta > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .geo-dashboard-resource-row {
    grid-template-columns: 64px minmax(0,1fr) auto;
  }

  .geo-dashboard-resource-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .geo-inspector-hero {
    grid-template-columns: auto minmax(0,1fr);
  }

  .geo-inspector-potential {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 620px) {
  .geo-dashboard-hero-main,
  .geo-inspector-hero {
    padding: 22px;
  }

  .geo-dashboard-opportunity-grid {
    grid-template-columns: 1fr;
  }

  .geo-dashboard-hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .geo-dashboard-resource-row {
    grid-template-columns: 56px minmax(0,1fr);
  }

  .geo-dashboard-resource-row > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .geo-dashboard-review-row {
    grid-template-columns: 1fr;
  }

  .geo-dashboard-review-row .button {
    width: 100%;
  }

  .geo-inspector-hero {
    grid-template-columns: 1fr;
  }

  .geo-inspector-hero-score {
    width: 105px;
    height: 105px;
  }

  .geo-editor-card {
    padding: 20px !important;
  }

  .geo-editor-section-heading {
    grid-template-columns: 1fr;
  }

  .geo-editor-section-number {
    width: 38px;
    height: 38px;
  }

  .geo-inspector-page-header .admin-header-actions,
  .geo-inspector-page-header .admin-header-actions .button {
    width: 100%;
  }
}
