@import url("./foundation.css");
.fw-app {
  --f-accent: #f5da5c;
}
.fw-head h2 {
  margin: 0.05em 0;
}
.fw-boundaries {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  background: var(--f-panel);
  border: 1px solid var(--f-rule);
  margin: 18px 0 20px;
}
.fw-boundaries article {
  padding: clamp(16px, 3.5vw, 48px);
}
.fw-boundaries strong {
  display: block;
  font-size: clamp(1.3rem, 3.7vw, 3.4rem);
  letter-spacing: -0.07em;
}
.fw-stripes {
  background: repeating-linear-gradient(
    -45deg,
    #ffda42 0 11px,
    #30352d 11px 22px
  );
}
.fw-entry {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--f-rule);
}
.fw-entry small,
.fw-entry strong {
  display: block;
}
.fw-entry > b {
  font-size: 0.8rem;
  border: 1px solid;
  padding: 2px 7px;
}
.fw-block {
  color: #3b2e12;
  background: #ffe3a4;
}
.fw-allow {
  color: #243c25;
  background: #d4e7c6;
}
.fw-entry code {
  margin-left: auto;
}
.fw-head p {
  margin: 0.2em 0;
}
@media (max-width: 540px) {
  .fw-boundaries {
    grid-template-columns: 1fr 18px 1fr;
  }
  .fw-boundaries article {
    padding: 9px;
  }
}
.fw-boundaries {
  grid-template-columns: 1fr 12px 1fr;
  border-radius: 6px;
}
.fw-boundaries article {
  padding: clamp(14px, 3vw, 32px);
}
.fw-boundaries strong {
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  letter-spacing: -0.035em;
}
.fw-stripes {
  background: repeating-linear-gradient(
    -45deg,
    var(--fx-sidebar, var(--f-paper)) 0 5px,
    var(--f-rule) 5px 7px
  );
}
.fw-entry > b {
  border: 0;
  border-radius: 4px;
}
.fw-route {
  background: var(--fx-sidebar, var(--f-paper));
  border-inline-start: 2px solid var(--f-rule);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.fw-route summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}
.fw-route li {
  padding: 0.3rem 0;
  font-size: 0.86rem;
}
.fw-app .fa-wrap {
  max-width: 1200px;
  margin: auto;
}
.fw-relay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 1.2fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 18px 0 24px;
  border: 4px solid #414e42;
  border-radius: 9px;
  background: #4e5c4b;
  color: #faf8e9;
  box-shadow: inset 0 0 0 1px #88957a;
}
.fw-terminal {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px clamp(8px, 2vw, 24px);
  background-image: radial-gradient(#273524 1px, transparent 1px);
  background-position: 6px 8px;
  background-size: 7px 7px;
  overflow-wrap: anywhere;
}
.fw-terminal span,
.fw-terminal small {
  font:
    0.78rem/1.35 ui-monospace,
    monospace;
  color: #f7f7e4;
  background: #4a5847;
  width: fit-content;
  padding: 2px 4px;
}
.fw-terminal strong {
  font: 600 clamp(1.05rem, 2.4vw, 1.9rem)/1.05 system-ui;
  background: #e6e4c9;
  color: #2c382d;
  letter-spacing: -0.035em;
  width: fit-content;
  padding: 7px 8px;
  border-radius: 2px;
}
.fw-coil {
  display: grid;
  align-content: center;
  background: #e5e6c9;
  color: #983c2c;
  text-align: center;
  border: 5px solid #374538;
  box-shadow: inset 0 0 0 1px #8a947d;
  padding-bottom: 9px;
}
.fw-coil svg {
  display: block;
  width: 100%;
  max-height: 137px;
}
.fw-coil b {
  font:
    700 0.8rem ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.fw-relay[data-contact="closed"] .fw-coil {
  color: #23512b;
}
.fw-keybank {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  background: #465144;
  border-top: 1px solid #273326;
}
.fw-app .fw-keybank button {
  background: #e8e6d4;
  color: #283123;
  border: 1px solid #333d32;
  box-shadow: 0 3px 0 #17281d;
  border-radius: 4px;
  font: 600 0.88rem system-ui;
}
.fw-app .fw-keybank [data-action="run"] {
  background: #f7c679;
}
.fw-app .fw-keybank button:active {
  transform: translateY(2px);
  box-shadow: none;
}
.fw-entry {
  font-family: ui-monospace, monospace;
  font-size: 0.86rem;
}
@media (max-width: 570px) {
  .fw-relay {
    grid-template-columns: 1fr 1fr;
  }
  .fw-coil {
    grid-row: 1;
    grid-column: 1/-1;
  }
  .fw-coil svg {
    max-height: 90px;
  }
  .fw-terminal {
    grid-row: 2;
  }
  .fw-keybank {
    grid-row: 3;
  }
}
