/* ============================================================
   ICLO public oral screening
   Shared type, rail, spacing and responsive rules: detail.css
   ============================================================ */

.b2g-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(49, 132, 246, .16), transparent 31%),
    linear-gradient(145deg, #f8fbff 0%, #f3f7fb 54%, #edf4fb 100%);
}

.b2g-hero-media { max-width: 500px; }

.b2g-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.b2g-hero-media figcaption,
.b2g-feature figcaption {
  margin-top: 16px;
  color: var(--ds-muted);
  font-size: var(--detail-caption);
  line-height: var(--detail-line-caption);
}

/* Simulated product UI below intentionally keeps its compact fixed type scale. */
/* Hero operation plan */
.b2g-field-visual {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(49, 132, 246, .13);
  border-radius: 28px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 28px rgba(49, 79, 112, .14);
}

.b2g-field-visual::before {
  content: "";
  position: absolute;
  top: -84px;
  right: -76px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(49, 132, 246, .08);
}

.b2g-field-head,
.b2g-plan-head,
.b2g-result-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.b2g-field-head > div,
.b2g-plan-head > div,
.b2g-result-head > div {
  display: grid;
  gap: 3px;
}

.b2g-field-head small,
.b2g-plan-head small,
.b2g-result-head small {
  color: var(--ds-blue);
  font-size: 12px;
  line-height: 18px;
  font-weight: var(--type-weight-bold);
  letter-spacing: .04em;
}

.b2g-field-head strong,
.b2g-plan-head strong,
.b2g-result-head strong {
  color: var(--ds-ink);
  font-size: 20px;
  line-height: 29px;
}

.b2g-field-head > span {
  min-height: 32px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: #9a5b0a;
  background: #fff4dc;
  font-size: 12px;
  line-height: 18px;
  font-weight: var(--type-weight-bold);
  white-space: nowrap;
}

.b2g-field-head > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d58a25;
}

.b2g-field-summary {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-radius: 18px;
  color: var(--ds-white);
  background: linear-gradient(135deg, #2679ed 0%, #4b98ff 100%);
}

.b2g-field-summary > span {
  min-width: 0;
  padding: 0 10px;
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, .24);
}

.b2g-field-summary > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.b2g-field-summary small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  line-height: 18px;
}

.b2g-field-summary strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b2g-field-steps {
  position: relative;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.b2g-field-steps li {
  min-height: 64px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e7ebef;
  border-radius: 14px;
  background: var(--ds-white);
}

.b2g-field-steps li > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ds-line);
  border-radius: 50%;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--type-weight-bold);
}

.b2g-field-steps li.is-complete > span {
  color: var(--ds-white);
  background: #28a97b;
  border-color: #28a97b;
}

.b2g-field-steps li.is-current {
  border-color: rgba(49, 132, 246, .28);
  background: #f7faff;
}

.b2g-field-steps li.is-current > span {
  color: var(--ds-white);
  background: var(--ds-blue);
  border-color: var(--ds-blue);
}

.b2g-field-steps div { min-width: 0; }

.b2g-field-steps strong {
  display: block;
  color: var(--ds-body);
  font-size: 14px;
  line-height: 21px;
}

.b2g-field-steps p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b2g-field-steps b {
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ds-muted);
  background: #f0f3f6;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.b2g-field-steps .is-complete b {
  color: #187657;
  background: #eaf8f2;
}

.b2g-field-steps .is-current b {
  color: var(--ds-blue);
  background: rgba(49, 132, 246, .09);
}

.b2g-field-foot {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--ds-line);
}

.b2g-field-foot span {
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 20px;
}

.b2g-field-foot strong {
  color: var(--ds-ink);
  font-size: 13px;
  line-height: 20px;
  text-align: right;
}

/* Medical and sensitive-data notices */
.b2g-notices {
  margin-top: 48px;
  display: grid;
  gap: 12px;
}

.b2g-notices .detail-disclaimer { margin-top: 0; }

/* Program setup */
.b2g-plan-visual {
  padding: 28px;
  border-radius: 28px;
  background: #f2f6fb;
}

.b2g-plan-head > b {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ds-blue);
  background: rgba(49, 132, 246, .1);
  font-size: 12px;
  line-height: 18px;
}

.b2g-plan-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.b2g-plan-grid article {
  min-width: 0;
  min-height: 128px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e7ed;
  border-radius: 16px;
  background: var(--ds-white);
}

.b2g-plan-grid span {
  color: var(--ds-blue);
  font-size: 12px;
  line-height: 18px;
  font-weight: var(--type-weight-bold);
}

.b2g-plan-grid strong {
  margin-top: 8px;
  color: var(--ds-ink);
  font-size: 15px;
  line-height: 23px;
}

.b2g-plan-grid small {
  margin-top: auto;
  padding-top: 12px;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 18px;
}

.b2g-plan-checks {
  margin-top: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-radius: 14px;
  color: #d9e1e9;
  background: var(--ds-ink);
}

.b2g-plan-checks span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 18px;
}

.b2g-plan-checks i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8ebcff;
}

/* Brushing game */
.b2g-game {
  background: var(--ds-surface-soft);
}

.b2g-game-media {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2g-game-gallery {
  position: relative;
  width: min(100%, 500px);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(49, 132, 246, .12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 18%, rgba(49, 132, 246, .18), transparent 34%),
    linear-gradient(145deg, #f7faff 0%, #eaf2ff 100%);
}

.b2g-game-shot {
  position: absolute;
  width: 168px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 52px rgba(49, 79, 112, .2);
  text-align: center;
}

.b2g-game-shot--home { z-index: 2; top: 42px; left: calc(50% - 84px); }
.b2g-game-shot--timer { z-index: 1; top: 148px; left: 26px; transform: rotate(-4deg); }
.b2g-game-shot--camera { z-index: 3; top: 154px; right: 24px; transform: rotate(4deg); }

.b2g-game-shot img {
  width: 100%;
  height: 296px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 14px;
}

.b2g-game-shot span {
  display: block;
  margin-top: 10px;
  color: var(--ds-ink);
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--type-weight-bold);
}

/* Role handoff */
.b2g-role-visual {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(49, 132, 246, .2), transparent 28%),
    linear-gradient(145deg, #18222d 0%, #223447 100%);
}

.b2g-role-head {
  display: grid;
  gap: 5px;
}

.b2g-role-head span {
  color: #8ebcff;
  font-size: 12px;
  line-height: 18px;
  font-weight: var(--type-weight-bold);
  letter-spacing: .04em;
}

.b2g-role-head strong {
  color: var(--ds-white);
  font-size: 22px;
  line-height: 32px;
}

.b2g-role-lanes {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.b2g-role-lanes li {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
}

.b2g-role-lanes li > span {
  color: #8ebcff;
  font-size: 12px;
  line-height: 18px;
  font-weight: var(--type-weight-bold);
}

.b2g-role-lanes div { min-width: 0; }

.b2g-role-lanes strong {
  display: block;
  color: var(--ds-white);
  font-size: 14px;
  line-height: 22px;
}

.b2g-role-lanes p {
  margin: 3px 0 0;
  color: #b9c4cf;
  font-size: 12px;
  line-height: 18px;
}

.b2g-role-lanes b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ds-white);
  background: var(--ds-blue);
  font-size: 12px;
}

/* Results and operation status */
.b2g-result-visual {
  padding: 28px;
  border-radius: 28px;
  background: #f2f6fb;
}

.b2g-result-head > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ds-muted);
  background: var(--ds-white);
  font-size: 12px;
  line-height: 18px;
}

.b2g-result-stages {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.b2g-result-stages article {
  position: relative;
  min-width: 0;
  min-height: 102px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #e1e7ed;
  border-radius: 16px;
  background: var(--ds-white);
}

.b2g-result-stages span {
  display: block;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 18px;
}

.b2g-result-stages strong {
  display: block;
  margin-top: 8px;
  color: var(--ds-ink);
  font-size: 16px;
  line-height: 24px;
}

.b2g-result-stages i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 4px;
  background: var(--ds-line);
}

.b2g-result-stages i.is-done { width: 100%; background: #28a97b; }
.b2g-result-stages i.is-current { width: 68%; background: var(--ds-blue); }

.b2g-result-list {
  margin-top: 10px;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--ds-white);
}

.b2g-result-list > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e7ebef;
}

.b2g-result-list > div:first-child { border-top: 0; }

.b2g-result-list span {
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 18px;
}

.b2g-result-list strong {
  color: var(--ds-body);
  font-size: 13px;
  line-height: 20px;
}

.b2g-result-list b {
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ds-blue);
  background: rgba(49, 132, 246, .09);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.b2g-result-foot {
  margin-top: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
  color: var(--ds-white);
  background: var(--ds-ink);
}

.b2g-result-foot span {
  color: #aeb8c3;
  font-size: 13px;
  line-height: 20px;
}

.b2g-result-foot strong {
  font-size: 14px;
  line-height: 22px;
  text-align: right;
}

/* Verified records */
.b2g-records {
  padding: var(--detail-section-space) 0;
  background: var(--ds-white);
}

.b2g-records-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: var(--detail-grid-gap);
}

.b2g-records-heading h2 {
  margin-bottom: 0;
  color: var(--ds-ink);
  font-size: var(--detail-h2);
  line-height: var(--detail-line-h2);
  font-weight: var(--type-weight-bold);
  letter-spacing: var(--type-tracking-heading);
}

.b2g-records-heading > p {
  margin: 0 0 4px;
  color: var(--ds-muted);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
}

.b2g-record-list {
  margin: 64px 0 0;
  padding: 0;
  border-top: 2px solid var(--ds-ink);
  list-style: none;
}

.b2g-record-list li {
  min-height: 190px;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 170px;
  align-items: start;
  gap: 42px;
  border-bottom: 1px solid var(--ds-line);
}

.b2g-record-list > li > time,
.b2g-record-date {
  padding-top: 5px;
  color: var(--ds-muted);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
  font-variant-numeric: tabular-nums;
}

.b2g-record-date {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.b2g-record-date time { color: inherit; }

.b2g-record-date i {
  color: var(--ds-line);
  font-style: normal;
}

.b2g-record-list li > div {
  min-width: 0;
}

.b2g-record-list li > div > span {
  color: var(--ds-blue);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
}

.b2g-record-list h3 {
  margin: 9px 0 0;
  color: var(--ds-ink);
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  font-weight: var(--type-weight-bold);
  letter-spacing: var(--type-tracking-title);
}

.b2g-record-list p {
  margin: 10px 0 0;
  color: var(--ds-body);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
  font-weight: var(--type-weight-semibold);
}

.b2g-record-list small {
  display: block;
  margin-top: 9px;
  color: var(--ds-muted);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
}

.b2g-record-list a {
  min-height: 44px;
  padding: 9px 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ds-ink);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.b2g-record-list a:hover,
.b2g-record-list a:focus-visible { color: var(--ds-blue); }

/* Final CTA */
.b2g-contact {
  background:
    radial-gradient(circle at 82% 18%, rgba(49, 132, 246, .4), transparent 34%),
    linear-gradient(135deg, #11181f 0%, #1d2c3d 100%);
}

.b2g-contact::after {
  background: linear-gradient(90deg, rgba(17, 24, 31, .18), transparent 72%);
}

@media (max-width: 1040px) {
  .b2g-hero-media,
  .b2g-feature .detail-feature-media { max-width: 720px; }

  .b2g-records-heading { grid-template-columns: 1fr; gap: 30px; }
  .b2g-records-heading > p { max-width: 720px; }
}

@media (max-width: 820px) {
  .b2g-record-list li {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px 30px;
  }

  .b2g-record-list a {
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .b2g-field-visual,
  .b2g-plan-visual,
  .b2g-role-visual,
  .b2g-result-visual { padding: 20px; border-radius: 20px; }

  .b2g-field-summary {
    padding: 16px 12px;
  }

  .b2g-field-summary > span {
    padding: 0 7px;
  }

  .b2g-field-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .b2g-field-steps b {
    grid-column: 2;
    justify-self: start;
  }

  .b2g-field-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .b2g-field-foot strong { text-align: left; }

  .b2g-plan-grid { grid-template-columns: 1fr; }
  .b2g-plan-grid article { min-height: 116px; }
  .b2g-plan-checks { grid-template-columns: 1fr; }

  .b2g-game-media { min-height: 500px; }
  .b2g-game-gallery { min-height: 480px; }
  .b2g-game-shot { width: 142px; padding: 8px 8px 10px; }
  .b2g-game-shot img { height: 250px; }
  .b2g-game-shot--home { top: 30px; left: calc(50% - 71px); }
  .b2g-game-shot--timer { top: 130px; left: 12px; }
  .b2g-game-shot--camera { top: 136px; right: 12px; }

  .b2g-role-lanes li {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .b2g-role-lanes b { display: none; }

  .b2g-result-stages { grid-template-columns: 1fr; }
  .b2g-result-stages article { min-height: 88px; }

  .b2g-result-list > div {
    padding: 12px 0;
    grid-template-columns: 1fr auto;
    gap: 3px 8px;
  }

  .b2g-result-list strong { grid-column: 1; }
  .b2g-result-list b { grid-column: 2; grid-row: 1 / 3; align-self: center; }

  .b2g-result-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .b2g-result-foot strong { text-align: left; }

  .b2g-record-list { margin-top: 44px; }
  .b2g-record-list li {
    padding: 26px 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .b2g-record-list a {
    grid-column: 1;
    margin-top: 2px;
  }
}
