/* formatspec.css - file format specification pages (specs/mpbr.html).
   Byte tables, the layout strip, and code samples. Uses the site tokens
   from styles2.css. ASCII only. */

.fs-wrap { width: 100%; }

/* The crumb wraps on a phone instead of pushing the page sideways. */
.page-head .crumb { white-space: normal; overflow-wrap: anywhere; }

.fs-table a,
.fs-note a { color: var(--accent); text-decoration: none; }
.fs-table a:hover,
.fs-note a:hover { text-decoration: underline; }

.fs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.fs-table th,
.fs-table td {
  text-align: left;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.fs-table thead th {
  border-top: none;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fs-table td { color: var(--text-mid); }
.fs-table td.fs-num,
.fs-table td code { font-variant-ligatures: none; font-family: var(--font-mono); color: var(--text); font-size: 13px; }
.fs-table td.fs-num { white-space: nowrap; width: 1%; }

.fs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.fs-strip {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.fs-strip > div {
  padding: 18px 12px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: center;
}
.fs-strip > div:first-child { border-left: none; }
.fs-strip > div span { display: block; color: var(--text-dim); font-size: 11.5px; margin-top: 4px; }
.fs-strip .fs-h { flex: 1; background: var(--panel-2); }
.fs-strip .fs-m { flex: 1.2; }
.fs-strip .fs-i { flex: 1.4; background: var(--panel-2); }
.fs-strip .fs-d { flex: 4; color: var(--accent-2); }

.fs-code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

.fs-note {
  margin-top: 16px;
  color: var(--text-mid);
  font-size: 14.5px;
}
.fs-note code,
.fs-steps code { font-family: var(--font-mono); color: var(--text); font-size: 13px; }

.fs-steps { margin: 0 0 0 22px; color: var(--text-mid); font-size: 14.5px; }
.fs-steps li { margin: 8px 0; padding-left: 4px; }
.fs-steps li strong { color: var(--text); }

@media (max-width: 720px) {
  .fs-strip { flex-direction: column; }
  .fs-strip > div { border-left: none; border-top: 1px solid var(--line); }
  .fs-strip > div:first-child { border-top: none; }
  .fs-table th, .fs-table td { padding: 9px 10px; }
}

/* Shaded sections: keep the heading on the same left edge as the tables
   below it (styles2's .section-alt > * centers the 760px head). */
.section-alt > .section-head { max-width: 1200px; }
.section-alt > .section-head .section-sub { max-width: 760px; }

.fs-sub {
  margin: 48px 0 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
