/* ARN Explainer: builds on /labs/csp/tool.css and /labs/cors/tool.css. */

.arn-main form + .results {
  margin-top: 24px;
}
.arn-input {
  font-size: 0.95rem !important;
}
.cron-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #afbdd0;
  font-size: 0.85rem;
}
.cron-examples .chip {
  font: inherit;
  font-size: 0.8rem;
  color: #c4d2e2;
  background: transparent;
  border: 1px solid #35465d;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
.cron-examples .chip:hover,
.cron-examples .chip:focus-visible {
  border-color: var(--mint);
  color: #fff;
}
.arn-card {
  border: 1px solid #22324a;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arn-card[data-valid="false"] {
  border-color: #6b3b45;
}
.arn-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.arn-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.arn-verdict {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(83, 227, 189, 0.14);
  color: var(--mint);
}
.arn-card[data-valid="false"] .arn-verdict {
  background: rgba(255, 120, 140, 0.14);
  color: #ff9aa8;
}
.arn-split {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.arn-seg {
  padding: 1px 3px;
  border-radius: 4px;
}
.arn-colon {
  color: #6c7f97;
}
.arn-partition {
  background: rgba(130, 170, 255, 0.16);
}
.arn-service {
  background: rgba(83, 227, 189, 0.16);
}
.arn-region {
  background: rgba(243, 201, 105, 0.16);
}
.arn-account {
  background: rgba(200, 150, 255, 0.16);
}
.arn-resource {
  background: rgba(255, 160, 120, 0.16);
}
.arn-empty {
  color: #6c7f97;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.arn-parts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.arn-parts th,
.arn-parts td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #22324a;
  vertical-align: top;
}
.arn-parts th {
  color: #8fa3bb;
  font-weight: 500;
  white-space: nowrap;
}
.arn-parts code {
  white-space: nowrap;
}
.arn-parts tr[data-part="resource"] code,
.arn-parts tr:last-child code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.arn-code {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.arn-code h3,
#policy-block h3 {
  font-size: 0.9rem;
  margin: 10px 0 6px;
}
.arn-code pre,
#build-policy {
  white-space: pre;
  overflow-x: auto;
}
.cron-build {
  border-top: 1px solid #22324a;
  padding-top: 14px;
}
.cron-expression code {
  font-size: 1.05rem;
  color: var(--mint);
  overflow-wrap: anywhere;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #c4d2e2;
}
@media (max-width: 560px) {
  /* Stack each row: label and value on one line, meaning underneath. */
  .arn-parts tr {
    display: grid;
    grid-template-columns: 6.5em minmax(0, 1fr);
    border-bottom: 1px solid #22324a;
    padding: 6px 0;
  }
  .arn-parts th,
  .arn-parts td {
    border: 0;
    padding: 2px 8px;
  }
  .arn-parts th {
    white-space: normal;
  }
  .arn-parts td:last-child {
    grid-column: 2;
    color: #8fa3bb;
    font-size: 0.8rem;
  }
  .arn-parts code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .arn-parts tr[data-part="account"] code,
  .arn-parts tr[data-part="region"] code {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .arn-code {
    grid-template-columns: minmax(0, 1fr);
  }
}
