.istt-tool {
  --istt-navy: #23445D;
  --istt-charcoal: #263238;
  --istt-muted: #56636A;
  --istt-teal: #2FA7A0;
  --istt-coral: #E9785D;
  --istt-gold: #E8B861;
  --istt-pale: #F3F9F7;
  --istt-warm: #F8F5EF;
  --istt-border: #D8E1DF;
  color: var(--istt-charcoal);
  margin: 1.5rem 0;
}

.istt-tool *,
.istt-tool *::before,
.istt-tool *::after {
  box-sizing: border-box;
}

.istt-tool__header {
  background: var(--istt-warm);
  border: 1px solid var(--istt-border);
  border-radius: 16px;
  padding: clamp(1.1rem, 2vw, 1.7rem);
  margin-bottom: 1rem;
}

.istt-tool__header h2,
.istt-result h3,
.istt-card h3,
.istt-observation-section h3 {
  color: var(--istt-navy);
  margin-top: 0;
}

.istt-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--istt-teal);
  margin: 0 0 .35rem;
}

.istt-note {
  background: var(--istt-pale);
  border-left: 4px solid var(--istt-teal);
  padding: .95rem 1rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.istt-note--plain {
  background: #fff;
  border: 1px solid var(--istt-border);
  border-left: 4px solid var(--istt-gold);
}

.istt-form {
  background: #fff;
  border: 1px solid var(--istt-border);
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.istt-grid,
.istt-check-grid,
.istt-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.istt-field {
  margin-bottom: 1rem;
}

.istt-field label,
.istt-fieldset legend {
  display: block;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--istt-navy);
}

.istt-field input,
.istt-field select,
.istt-field textarea {
  width: 100%;
  border: 1px solid #B8C5C2;
  border-radius: 9px;
  padding: .72rem .8rem;
  font: inherit;
  background: #fff;
  color: var(--istt-charcoal);
}

.istt-field input:focus,
.istt-field select:focus,
.istt-field textarea:focus,
.istt-btn:focus,
.istt-check-grid input:focus {
  outline: 3px solid rgba(47, 167, 160, .28);
  outline-offset: 2px;
}

.istt-fieldset {
  border: 1px solid var(--istt-border);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1rem;
}

.istt-check-grid label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.4;
}

.istt-check-grid input {
  margin-top: .2rem;
}

.istt-help,
.istt-privacy {
  color: var(--istt-muted);
  font-size: .92rem;
}

.istt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .5rem;
}

.istt-btn {
  appearance: none;
  border: 1px solid var(--istt-navy);
  border-radius: 999px;
  background: #fff;
  color: var(--istt-navy);
  padding: .67rem 1rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
}

.istt-btn:hover:not(:disabled) {
  background: var(--istt-pale);
}

.istt-btn--primary {
  background: var(--istt-navy);
  color: #fff !important;
}

.istt-btn--primary:hover:not(:disabled) {
  background: #183447;
}

.istt-btn--quiet {
  border-color: #B8C5C2;
  color: var(--istt-muted);
}

.istt-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.istt-result {
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--istt-pale);
  border: 1px solid #C9DDD8;
  border-radius: 16px;
}

.istt-result ul,
.istt-result ol {
  padding-left: 1.25rem;
}

.istt-result__meta {
  color: var(--istt-muted);
  font-size: .92rem;
}

.istt-result__section {
  background: #fff;
  border: 1px solid var(--istt-border);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin: .8rem 0;
}

.istt-observation-section {
  border-top: 1px solid var(--istt-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.istt-card {
  border: 1px solid var(--istt-border);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.istt-card .istt-btn {
  margin-top: .35rem;
}

.istt-privacy {
  margin-top: .75rem;
  text-align: center;
}

@media (max-width: 720px) {
  .istt-grid,
  .istt-check-grid,
  .istt-card-grid {
    grid-template-columns: 1fr;
  }

  .istt-actions {
    flex-direction: column;
  }

  .istt-btn {
    width: 100%;
    text-align: center;
  }
}

@media print {
  .istt-tool__header,
  .istt-form,
  .istt-actions,
  .istt-note,
  .istt-privacy,
  .site-header,
  .site-footer,
  header,
  footer,
  nav {
    display: none !important;
  }

  .istt-result {
    border: 0;
    background: #fff;
    padding: 0;
  }
}


/* Supporting page copy rendered by the shortcode so tool pages remain useful and indexable even when the WordPress editor contains only the shortcode. */
.istt-supporting-content {
    margin: 2.25rem 0 0;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border: 1px solid #d5e3df;
    border-radius: 12px;
    background: #f8f5ef;
    color: #263238;
}

.istt-supporting-content h2,
.istt-supporting-content h3 {
    color: #23445d;
    line-height: 1.25;
}

.istt-supporting-content h2 {
    margin: 0 0 .85rem;
}

.istt-supporting-content h3 {
    margin: 1.4rem 0 .55rem;
}

.istt-supporting-content p {
    margin: 0 0 1rem;
    line-height: 1.65;
}

.istt-supporting-content p:last-child {
    margin-bottom: 0;
}


.istt-review-warning {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid #e8b861;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fffaf0;
}

.istt-review-flag {
  font-weight: 700;
}

.istt-result__draft {
  margin-top: -.35rem;
  padding-left: .75rem;
  border-left: 3px solid #e8b861;
}
