/* =====================================================================
   SEGMENT PARTNER STATUS CHECKER : PAGE STYLES
   Loaded after library.css and built on the same tokens.
   ===================================================================== */

.gbb-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

/* ---------------------------------------------------------------- steps */
.step-block { margin-bottom: 1.75rem; }

.step-head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.step-head h2 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.step-head p {
  font-size: .84rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- options */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: .5rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-align: left;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.opt:hover { border-color: var(--line-strong); }
.opt:focus-visible { outline: 3px solid var(--accent-wash); outline-offset: 2px; }

.opt.active {
  border-color: var(--accent-deep);
  background: var(--accent-wash);
}

.opt strong { font-size: .93rem; font-weight: 600; }
.opt.active strong { font-weight: 700; }

/* the radio mark, so the list reads the way the desktop tool does */
.opt-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  position: relative;
  transition: border-color .15s;
}

.opt.active .opt-dot { border-color: var(--accent-deep); }

.opt.active .opt-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent-deep);
}

/* --------------------------------------------------------- show result */
.show-result {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1.5px solid var(--accent-deep);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.show-result:hover { background: var(--accent-deep); transform: translateY(-1px); }
.show-result:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* --------------------------------------------------------------- result */
.placeholder {
  padding: 1.6rem 1.4rem;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  background: var(--surface-2);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}

.placeholder.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-wash); }

.result {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.4rem;
}

.result-reason {
  font-size: .96rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 74ch;
  margin-bottom: 1.1rem;
}

.verdict {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
}

.verdict-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}

.verdict strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.verdict.is-am { background: var(--accent); color: var(--accent-ink); }
.verdict.is-sm { background: var(--ink); color: var(--surface); }

/* ------------------------------------------------------------ slack note */
.slack-note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 2.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--warn-wash);
  border: 1.5px solid var(--warn);
  border-radius: var(--radius);
}

.slack-note .mark { font-size: 1.3rem; line-height: 1.2; }
.slack-note h3 { font-size: .98rem; font-weight: 750; margin-bottom: .3rem; color: var(--warn); }
.slack-note p { font-size: .89rem; line-height: 1.65; color: var(--ink-soft); max-width: 78ch; }

.slack-note .note-lead {
  margin-top: .85rem;
  font-weight: 650;
  color: var(--ink);
}

.slack-note .note-list {
  list-style: none;
  margin-top: .4rem;
  display: grid;
  gap: .3rem;
}

.slack-note .note-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .89rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 78ch;
}

.slack-note .note-list li::before {
  content: '';
  position: absolute;
  left: .1rem;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warn);
}

.slack-note a {
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--warn);
  text-underline-offset: 3px;
}

.slack-note a:hover { color: var(--warn); }

.slack-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--warn);
  border-radius: 6px;
  padding: 0 .35rem;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 640px) {
  .gbb-shell { padding: 1.25rem 1rem 3rem; }
  .slack-note { flex-direction: column; gap: .5rem; padding: 1rem; }
  .slack-note .mark { font-size: 1.15rem; }
  .verdict strong { font-size: 1.3rem; }
  .opt-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------------- print */
@media print {
  .show-result { display: none; }
  .gbb-shell { padding: 0; }
}
