/* Page-specific learning tools. Use a new asset filename when this immutable file changes. */
.fw-tools {
  color: #485369;
  --fw-width: 100%;
  --fw-gap: 16px;
}

.fw-tools [hidden] { display: none !important; }
.fw-tools .convert_title > .p, .fw-tools .svc-eyebrow { color: #485369; }
.fw-tools input, .fw-tools select, .fw-tools button { font: inherit; }
.fw-tools input[type="checkbox"] { accent-color: #1c4dad; width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; }
.fw-tools :is(input, select, button, a):focus-visible { outline: 3px solid #1c4dad; outline-offset: 4px; }
.fw-tools .fw-context { max-width: 820px; margin: 24px auto 0; text-align: center; font-size: 15px; line-height: 24px; }

.fw-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, .6fr) minmax(200px, 1fr);
  gap: 28px;
  align-items: center;
  width: 100%;
  margin-top: 36px;
  padding: 24px;
  background: #eef3fa;
  border: 1px solid #dce4f0;
  border-radius: 12px;
}
.fw-control { min-width: 0; }
.fw-control-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #121926; font-size: 16px; font-weight: 600; }
.fw-control-label output { color: #1c4dad; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fw-range { display: block; width: 100%; height: 44px; margin: 0; accent-color: #1c4dad; cursor: pointer; }
.fw-select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #8496b7; border-radius: 6px; color: #121926; background: #fff; }
.fw-help { display: block; color: #485369; font-size: 13px; line-height: 20px; font-weight: 400; }
.fw-copy-toggle { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; color: #121926; font-size: 16px; line-height: 24px; font-weight: 600; cursor: pointer; }

.fw-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; margin-top: 28px; align-items: start; }
.fw-example { min-width: 0; margin: 0; padding: 24px; border: 1px solid #dce4f0; border-radius: 12px; background: #f4f6fa; }
.fw-example--fluid { background: #eff7f5; border-color: #cee2dc; }
.fw-example-heading { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 24px; color: #121926; }
.fw-example-heading strong { font-size: 18px; line-height: 26px; }
.fw-code { color: #485369; font: 12px/20px Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.fw-canvas { width: 100%; max-width: 640px; min-width: 0; margin: 0 auto; }
.fw-preview { width: var(--fw-width); max-width: 100%; margin: 0 auto; border: 2px solid #8496b7; border-radius: 8px; overflow: hidden; background: #fff; }
.fw-example--fluid .fw-preview { border-color: #267867; }
.fw-layout { min-height: 260px; padding: 20px; }
.fw-layout--fixed { position: relative; height: 260px; }
.fw-layout--fixed .fw-card-icon { position: absolute; top: 20px; left: 20px; }
.fw-layout--fixed .fw-card-content { position: absolute; top: 20px; left: 88px; width: 210px; }
.fw-layout--fluid { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: var(--fw-gap); }
.fw-layout--fluid .fw-card-content { flex: 1 1 180px; min-width: 0; max-width: 100%; }
.fw-card-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; max-width: 100%; height: 52px; border-radius: 12px; background: #1c4dad; color: #fff; font-size: 28px; line-height: 1; }
.fw-card-title { margin: 0 0 12px; color: #121926; font-size: 21px; line-height: 28px; font-weight: 600; overflow-wrap: anywhere; }
.fw-card-copy { margin: 0; color: #485369; font-size: 15px; line-height: 23px; overflow-wrap: anywhere; }
.fw-card-action { display: inline-block; max-width: 100%; margin-top: 18px; padding: 9px 12px; border-radius: 6px; color: #fff; background: #1c4dad; font-size: 13px; line-height: 19px; font-weight: 600; overflow-wrap: anywhere; }
.fw-example-note { margin: 22px 0 0; font-size: 15px; line-height: 24px; }
.fw-takeaway { width: 100%; margin-top: 28px; padding: 24px 28px; border-left: 4px solid #1c4dad; background: #eef3fa; border-radius: 0 8px 8px 0; }
.fw-takeaway h3 { margin: 0 0 8px; color: #121926; font-size: 20px; line-height: 28px; }
.fw-takeaway p { margin: 0; font-size: 16px; line-height: 26px; }

.fw-checklist-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 32px; }
.fw-progress { margin: 0; color: #121926; font-size: 17px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fw-download, .fw-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #1c4dad; border-radius: 6px; padding: 10px 16px; font-size: 15px; line-height: 22px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; }
.fw-download { color: #fff; background: #1c4dad; }
.fw-download:hover { color: #fff; background: #153d8a; }
.fw-reset { color: #1c4dad; background: #fff; }
.fw-reset:hover { background: #eef3fa; }
.fw-checklist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; margin-top: 40px; }
.fw-check-group { min-width: 0; margin: 0; padding: 20px 24px 24px; border: 1px solid #dce4f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 40px #1922310d; }
.fw-check-group legend { padding: 0 8px; color: #121926; font-size: 20px; line-height: 28px; font-weight: 600; }
.fw-check-item { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 18px 0; border-bottom: 1px solid #e4eaf2; font-size: 15px; line-height: 24px; font-weight: 400; cursor: pointer; }
.fw-check-item:last-child { padding-bottom: 0; border-bottom: 0; }
.fw-check-item span { min-width: 0; }
.fw-check-item strong { display: block; margin-bottom: 4px; color: #121926; font-size: 16px; }
.fw-check-item input:checked + span strong { color: #267867; }

@media screen and (max-width: 991px) {
  .fw-controls { grid-template-columns: minmax(0, 1fr) minmax(130px, .6fr); gap: 20px; }
  .fw-copy-toggle { grid-column: 1 / -1; }
  .fw-comparison, .fw-checklist-grid { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 479px) {
  .fw-controls { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .fw-copy-toggle { grid-column: auto; }
  .fw-example { padding: 16px; }
  .fw-example-heading { margin-bottom: 18px; }
  .fw-check-group { padding: 18px 18px 22px; }
  .fw-takeaway { padding: 20px; }
  .fw-checklist-toolbar { flex-direction: column; gap: 12px; }
}

@media print {
  .fw-controls, .fw-reset, .fw-download { display: none !important; }
  .fw-check-group, .fw-check-item { break-inside: avoid; box-shadow: none; }
}
