/* The Methods page, as an apple.com page reads: one column at the home page's width, large bold headlines,
   generous space between sections, hairlines instead of boxes. The estimator sits on top like a configurator. */
#methodology { flex: 1; overflow: auto; }
#methodology[hidden] { display: none; }

.methods { color: var(--color-label); font-family: var(--font-text); }

.methods-hero { margin: 0 0 28px; }

.methods-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.methods-lede {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-label-secondary);
}

/* the estimator, as Apple sets a configurator: one calm tile, the choice read as a sentence with inline pop-ups,
   the figures large and unboxed, everything else one quiet line */
.methods-calc { padding: 28px 32px 26px; border-radius: 18px; background: var(--color-card); }

/* results on the left, a settings sidebar on the right, as Apple's configurators pair a product with its options */
.calc-main { display: flex; flex-direction: column; min-width: 0; }
.calc-main .calc-foot { margin-top: auto; padding-top: 28px; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 36px; }

.calc-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-label-secondary);
}

/* the setup as Apple captions a product: the name in semibold, what it runs on in a quiet line beneath */
.calc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.calc-title span { display: block; margin-top: 1px; font-family: var(--font-text); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--color-label-secondary); }

/* the figures stack, a hairline between them */
.calc-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 0; }
.calc-result { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.calc-result[hidden] { display: none; }

/* the sidebar: grouped settings on the page background, as in System Settings */
.calc-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-background);
}

:root[data-theme="dark"] .calc-settings { background: #323234; }

.calc-setting { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-setting > span { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--color-label); }
.calc-setting > span b { font-weight: 400; color: var(--color-label-secondary); font-variant-numeric: tabular-nums; }

.methods-calc .calc-setting select {
  width: 100%;
  height: 26px;
  padding: 0 24px 0 8px;
  border: 0;
  border-radius: 6px;
  background-color: var(--color-fill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3' fill='none' stroke='%238e8e93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 7px 10px;
  color: var(--color-label);
  font: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* weights: a segmented control */
.calc-segments { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: 7px; background: var(--color-fill); }
.calc-segments label { position: relative; }
.calc-segments input { position: absolute; opacity: 0; pointer-events: none; }
.calc-segments span { display: block; padding: 3px 0; border-radius: 5px; text-align: center; font-size: 12px; font-weight: 500; color: var(--color-label); cursor: pointer; }
.calc-segments input:checked + span { background: var(--color-background); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
:root[data-theme="dark"] .calc-segments input:checked + span { background: #636366; }
.calc-segments input:focus-visible + span { outline: 2px solid var(--color-accent); }

/* context and requests: Apple sliders, a thin track filled up to a white knob */
.calc-setting input[type="range"] {
  --fill: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-setting input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 1.5px;
  background: linear-gradient(to right, var(--color-accent) var(--fill), var(--color-fill) var(--fill));
}

.calc-setting input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--color-fill); }
.calc-setting input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--color-accent); }

.calc-setting input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.5px 4px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .06);
  -webkit-appearance: none;
}

.calc-setting input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0.5px 4px rgba(0, 0, 0, .3); }
.calc-setting input[type="range"]:focus-visible { outline: none; }
.calc-setting input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--color-accent-tint), 0 0.5px 4px rgba(0, 0, 0, .3); }

.calc-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.calc-value small { margin-left: 4px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--color-label-secondary); }
.calc-label { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--color-label); }
.calc-note { font-size: 12px; color: var(--color-label-secondary); }

.calc-num { color: var(--color-accent); }
.calc-results.is-over .calc-num { color: var(--color-label-tertiary); }

/* the fit and the specs share one quiet line under the figures */
.calc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 32px 0 0;
}

/* memory as macOS Storage settings draws it: a rounded bar, colored segments, a legend of dots */
.calc-memory { width: 100%; }
.calc-memory-head { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.calc-memory-head span:first-child { font-weight: 600; color: var(--color-label); }
.calc-memory-head span:last-child { color: var(--color-label-secondary); font-variant-numeric: tabular-nums; }

.calc-memory-bar { display: flex; height: 6px; margin: 8px 0 0; overflow: hidden; border-radius: 3px; background: var(--color-fill); }
.calc-memory-bar i { display: block; height: 100%; transition: width .3s ease; }
.calc-memory-bar i + i { box-shadow: inset 1.5px 0 0 var(--color-card); }
.is-weights { background: #0a84ff; }
.is-cache { background: #bf5af2; }
.is-ssd { background: #ff9f0a; }
.calc-memory.is-over .calc-memory-head span:last-child { color: #ff9f0a; font-weight: 600; }

.calc-memory-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 12px; color: var(--color-label-secondary); }
.calc-memory-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-memory-legend span:last-child { margin-left: auto; }
.calc-memory-legend i { width: 8px; height: 8px; border-radius: 2px; }  /* square chips, as the Rankings key */

@media (max-width: 899px) {
  .methods-calc { padding: 20px 18px; }
  .calc-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .calc-settings { order: -1; }
  .calc-value { font-size: 34px; }
  .calc-results { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}



/* speculative decoding: an iOS switch, its two sliders shown only when it is on */
.calc-switch-row { flex-direction: row; align-items: center; justify-content: space-between; cursor: pointer; }
.calc-switch { position: relative; flex: none; width: 34px; height: 20px; }
.calc-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.calc-switch i { position: absolute; inset: 0; border-radius: 10px; background: var(--color-fill); transition: background .2s; pointer-events: none; }
.calc-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.calc-switch input:checked + i { background: #34c759; }
.calc-switch input:checked + i::after { transform: translateX(14px); }
.calc-switch input:focus-visible + i { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.calc-spec { display: flex; flex-direction: column; gap: 14px; }
.calc-spec[hidden] { display: none; }

.calc-switch-row[hidden] { display: none; }

/* Fairness, as apple.com's spec strips: no boxes, a rule over each item, a fine grey glyph, the value carries it */
.welcome-icon.is-fair { background: linear-gradient(145deg, #34c759, #0a84ff); }
/* the rules drop down as the site's other menus do: the same surface, headings, rows and separators */
.rules-popover {
  position: fixed;
  z-index: 1000;
  min-width: 240px;
  max-width: calc(100vw - 16px);
  padding: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-menu);
  color: var(--color-label);
  background: var(--color-menu);
  box-shadow: var(--shadow-menu);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}
/* facts as Get Info lists them, on the site's menu surface and in its menus' measures: 24px rows, the label at the
   heading's 10px inset, the value right-aligned in grey; no icons and no checkmark column, as nothing here is picked */
.rules-row { display: flex; align-items: center; gap: 16px; height: 24px; padding: 0 10px; border-radius: 5px; font-size: 13px; cursor: default; }
.rules-row .popover-detail { color: var(--color-label-secondary); }
.rules-popover .popover-heading { padding: 5px 10px 3px; }  /* the menus' heading, at the rows' inset */

/* the button names what it opens: an info glyph, then the words */
.rules-button { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--color-label); }
.rules-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }  /* the text colour, as the setup pop-up's glyph */
/* Configuration as a plain toolbar button: no fill at rest, the system fill under the pointer and while its panel is open */
.rules-button { background: none; box-shadow: none; }
.rules-button:hover,
.rules-button[aria-expanded="true"] { background: var(--color-fill); }
/* Hide unavailable: no fill while off, the resting fill while on, one step deeper under the pointer */
#hide-empty,
.platform-hide { background: none; box-shadow: none; }
#hide-empty:hover,
.platform-hide:hover { background: var(--color-hover); }
#hide-empty.is-active,
.platform-hide.is-active { background: var(--color-fill); }
#hide-empty.is-active:hover,
.platform-hide.is-active:hover { background: var(--color-fill-secondary); }
/* on a phone they are capsules, as the setup pop-up beside them */
@media (max-width: 899px) { .rules-button { height: 34px; padding: 0 8px; border-radius: 999px; font-size: 15px; } }  /* the glyph alone, snug beside the last filter */
/* a rule row takes a grey wash on hover: it follows the pointer like a menu row, but blue would promise a pick */

/* the bar's pop-ups take the same light fill as Configuration: one control style across the row, as a macOS toolbar keeps */
.platform-bar .filter-button,
.filter-bar .filter-button { background: var(--color-fill); border-radius: var(--radius-control); }
.platform-bar .filter-button:hover,
.filter-bar .filter-button:hover,
.platform-bar .filter-button[aria-expanded="true"],
.filter-bar .filter-button[aria-expanded="true"] { background: var(--color-fill-secondary); }

/* phones: Configuration uses the select menus' sizes (popover.css), as an iOS list: a 44pt row, the rule on the left on one line,
   its value right-aligned in grey. The menus' "detail under its name" layout is for options, not for these rows. */
@media (max-width: 899px) {
  .rules-popover { padding: 6px; border-radius: 14px; }
  .rules-popover .popover-heading { padding: 8px 12px 4px; font-size: 13px; }  /* the phone menus' heading */
  .rules-row {
    gap: 8px;
    height: auto;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 16px;
  }
  .rules-row .popover-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rules-row .popover-detail {
    flex: none;
    margin-left: auto;
    padding-left: 16px;
    font-size: 16px;
    line-height: normal;
    text-align: right;
    white-space: nowrap;
    color: var(--color-label-secondary);
  }
}

/* phones: the Limit estimator as an iOS settings screen. One grouped panel (no card around a card), 34pt pill selects
   like the toolbar's, an iOS segmented control, 28pt slider thumbs and a 51x31 switch; labels at 15pt. */
@media (max-width: 899px) {
  .methods-calc { padding: 0; border-radius: 0; background: none; }
  .calc-settings { gap: 16px; padding: 16px; border-radius: 14px; }
  .calc-setting { gap: 10px; }
  .calc-setting > span { font-size: 15px; }
  .calc-setting > span b { font-size: 15px; }

  .methods-calc .calc-setting select {
    height: 34px;
    padding: 0 34px 0 14px;
    border-radius: 999px;
    background-position: right 14px center;
    background-size: 8px 11px;
    font-size: 15px;
  }

  .calc-segments { padding: 2px; border-radius: 9px; }
  .calc-segments span { padding: 6px 0; border-radius: 7px; font-size: 15px; }

  .calc-setting input[type="range"] { height: 28px; }
  .calc-setting input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; }
  .calc-setting input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }

  .calc-switch { width: 51px; height: 31px; }
  .calc-switch i { border-radius: 16px; }
  .calc-switch i::after { width: 27px; height: 27px; }
  .calc-switch input:checked + i::after { transform: translateX(20px); }

  .calc-label { font-size: 15px; }
  .calc-note { font-size: 13px; }
}

/* phones: the results read as iOS cards (Health's summary tiles): the label on top in grey, the figure large under it,
   the note last; the model is a section header, and memory is its own card with a thicker bar */
@media (max-width: 899px) {
  .calc-title { margin: 8px 4px 0; font-size: 22px; }
  .calc-title span { margin-top: 2px; font-size: 15px; }
  .calc-results { gap: 12px; margin-top: 14px; }
  .calc-result {
    gap: 2px;
    padding: 14px 16px 16px;
    border-radius: 14px;
    background: var(--color-background);
  }
  .calc-result .calc-label { order: -1; margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--color-label-secondary); }
  .calc-result .calc-value { font-size: 34px; }
  .calc-result .calc-note { font-size: 13px; }

  .calc-main .calc-foot { margin-top: 12px; padding-top: 0; }
  .calc-memory { padding: 14px 16px 16px; border-radius: 14px; background: var(--color-background); }
  .calc-memory-head { font-size: 15px; }
  .calc-memory-bar { height: 8px; margin-top: 10px; border-radius: 4px; }
  .calc-memory-legend { margin-top: 10px; font-size: 13px; }
}
:root[data-theme="dark"] .calc-result,
:root[data-theme="dark"] .calc-memory { background: none; }
@media (max-width: 899px) {
  :root[data-theme="dark"] .calc-result,
  :root[data-theme="dark"] .calc-memory { background: #323234; }
}

/* the Limit settings as a toolbar above the page, as the platform pages set theirs: it stays on top while the page scrolls */
.limit-bar { position: sticky; top: 0; z-index: 5; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.limit-bar::-webkit-scrollbar { display: none; }
.limit-bar > *, .limit-sub > * { flex: none; }
.limit-sub { display: inline-flex; gap: inherit; }
.limit-sub[hidden], .limit-toggle[hidden] { display: none; }

/* a dropdown reads as the other pop-up buttons: its value, then the 8x12 chevron 7px after it, then the button's 9px edge (12px on phones) */
.limit-bar select.limit-select {
  padding-right: 24px;
  border: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3' fill='none' stroke='%238e8e93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 8px 12px;
  color: var(--color-label);
  font: inherit;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* a toggle is a button that turns blue when on, as Hide unavailable does */
.limit-toggle { display: inline-flex; align-items: center; gap: 0; cursor: pointer; white-space: nowrap; }
.limit-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.limit-toggle:has(input:checked) { background: var(--color-accent-tint); color: var(--color-accent); }
.limit-toggle:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* with the settings on top, the results take the page's full width */
.calc-body { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 899px) {
  .limit-bar select.limit-select { padding-right: 27px; background-position: right 12px center; background-size: 8px 12px; font-size: 15px; }
}

/* phones: the Limit bar's dropdowns and toggles are 34pt pills, as the platform bar's are */
@media (max-width: 899px) {
  .limit-bar select.limit-select,
  .limit-bar .limit-toggle { height: 34px; border-radius: 999px; }
  .limit-bar .limit-toggle { padding: 0 14px; font-size: 15px; }
  .limit-bar { gap: 8px; }
}

/* phones: the Limit pop-up buttons are 34pt pills, as the platform bar's are */
@media (max-width: 899px) {
  .limit-bar .limit-pick { height: 34px; padding: 0 12px 0 14px; border-radius: 999px; font-size: 15px; }
}

/* Configuration informs, it does not filter: it stands apart at the bar's trailing end, as a macOS toolbar keeps its info button */
.filter-bar > .rules-button,
.platform-bar > .rules-button { order: 99; flex: none; margin-left: auto; }
.platform-bar > .platform-bar-side.is-end { margin-left: auto; }
.platform-bar:has(> .platform-bar-side.is-end) > .rules-button { margin-left: 0; }

/* Limits as the site's other pages: data tables under the bar, the results' rows and header, the cited works as rows */
.lim-tables { display: flex; flex-direction: column; gap: 24px; padding-bottom: 48px; }
.lim-table { width: 100%; font-size: 13px; }
.lim-table .lim-fill { width: 100%; padding: 0; }
.lim-table .lim-term { color: var(--color-label-secondary); }
.lim-table .lim-how { max-width: 560px; overflow: hidden; text-overflow: ellipsis; color: var(--color-label-secondary); }
/* the formulas typeset as a paper sets them: italic symbols with upright subscripts, stacked fractions, a math face */
.lim-table td.lim-formula { padding-top: 0; padding-bottom: 0; white-space: nowrap; }
:is(.lim-table, .m-doc) .m-eq { display: inline-block; vertical-align: middle; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; color: var(--color-label); }  /* the system font, as the rest of the table */
:is(.lim-table, .m-doc) .m-var { white-space: nowrap; }
:is(.lim-table, .m-doc) .m-var { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 18px; color: color-mix(in srgb, var(--pill, var(--color-accent)) 75%, var(--color-label)); background: color-mix(in srgb, var(--pill, var(--color-accent)) 18%, transparent); }  /* a Numbers token: its colour as text on a tint of it */
:is(.lim-table, .m-doc) .m-tag { display: inline-flex; align-items: center; gap: 7px; }
:is(.lim-table, .m-doc) .m-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--pill); }  /* a square chip, as the Rankings key */
:is(.lim-table, .m-doc) .m-var sub { font-style: normal; font-size: .68em; vertical-align: -.3em; line-height: 0; margin-left: .05em; }
/* an operator over a range, as max over k: the range under its name, centred */
:is(.lim-table, .m-doc) .m-limit { display: inline-flex; flex-direction: column; align-items: center; margin-right: .15em; line-height: 1; }
:is(.lim-table, .m-doc) .m-under { font-size: .68em; margin-top: .1em; }
:is(.lim-table, .m-doc) .m-eq sup { font-size: .68em; vertical-align: .55em; line-height: 0; }
:is(.lim-table, .m-doc) .m-rel { margin: 0 .45em; }
:is(.lim-table, .m-doc) .m-op { margin: 0 .3em; }
:is(.lim-table, .m-doc) .m-comma { margin-right: .35em; }
:is(.lim-table, .m-doc) .m-fn { font-style: normal; }
:is(.lim-table, .m-doc) .m-paren { margin: 0 .15em; color: var(--color-label-secondary); }
.lim-table .lim-source .cite { margin-right: 4px; }
.lim-table .lim-authors, .lim-table .lim-venue { color: var(--color-label-secondary); }
.lim-table a { color: var(--color-label); text-decoration: none; }
.lim-table a:hover { color: var(--color-accent); }
.lim-table .lim-source { color: var(--color-label-secondary); text-align: right; white-space: nowrap; }  /* the same grey as the term, at the far right */
.lim-table .lim-source .cite { cursor: pointer; margin: 0; font-size: inherit; font-weight: inherit; text-decoration: none; color: inherit; }
.lim-table .lim-source .cite:hover { color: var(--color-accent); }
.lim-table thead th:hover { color: var(--color-label-secondary); }  /* nothing to sort, so the headers stay put */
/* a click opens Test Conditions without a focus ring, as the pop-ups do; the keyboard still gets one */
.rules-button:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* iPhone: Test Conditions is its info symbol alone, as iOS sets an ⓘ in a toolbar */
@media (max-width: 899px) {
  .rules-label { display: none; }
  .rules-button { width: 34px; padding: 0; justify-content: center; }
  .rules-button svg { width: 20px; height: 20px; }
  /* the formulas stay a table, as every other page's: one line a row, scrolled sideways when a formula is wider */
  .lim-tables { overflow-x: auto; overscroll-behavior-x: contain; }  /* only the table slides; the bar stays */
}

/* Spec Decode's acceptance: one control in the bar's own style, the light fill the pop-ups beside it take, holding its
   name, the number typed in place, and the pop-up's chevron pair, whose upper half steps up and lower half down */
.spec-field {
  display: inline-flex; align-items: center; height: var(--control-height); padding: 0 4px 0 9px;  /* the bar's own 4px gap from the control before it, as every bar spaces its controls */
  border-radius: var(--radius-control); background: var(--color-fill); color: var(--color-label); white-space: nowrap; font-size: 13px;
}
.spec-field:hover { background: var(--color-fill-secondary); }
.spec-field:focus-within { box-shadow: 0 0 0 3px var(--color-accent-tint), 0 0 0 1px var(--color-accent); }
.spec-field-label { margin-right: 6px; color: var(--color-label-secondary); }
.spec-field input {
  width: 2.1ch; padding: 0; border: 0; outline: none; background: none; color: inherit; font: inherit;
  font-variant-numeric: tabular-nums; text-align: right; caret-color: var(--color-accent); -webkit-appearance: none; appearance: none;
}
.spec-unit { margin-right: 2px; }
/* the same corners as the pop-up buttons in the bar (Engine, Platforms, Makers) */
.platform-bar .spec-field { border-radius: var(--radius-control); }

.spec-stepper { display: inline-flex; flex-direction: column; align-self: stretch; justify-content: center; width: 18px; }
.spec-stepper button {
  display: grid; flex: 0 0 50%; place-items: center; padding: 0; border: 0; background: none; border-radius: 4px;
  color: var(--color-label-secondary); cursor: default;
}
.spec-stepper button:first-child { place-items: end center; padding-bottom: 1px; }
.spec-stepper button:last-child { place-items: start center; padding-top: 1px; }
.spec-stepper button:hover { color: var(--color-label); }
.spec-stepper button:active { color: var(--color-accent); }
.spec-stepper svg { width: 8px; height: 5px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) {
  .spec-field { height: 34px; padding: 0 8px 0 14px; border-radius: 999px; font-size: 15px; }
  .spec-stepper { width: 24px; }
}
  .spec-input, .spec-stepper { height: 28px; }
  .spec-stepper { width: 20px; }
}
  .spec-input, .spec-stepper { height: 26px; }
}
/* every formula one line in a row as tall as the site's others */
.lim-table tbody td { height: var(--row-height); padding-top: 0; padding-bottom: 0; }

/* Test Conditions as a Mac toolbar's info button: the ⓘ symbol alone, square as the bar's controls are tall, named in its tooltip */
.rules-label { display: none; }
.rules-button { width: var(--control-height); height: var(--control-height); padding: 0; justify-content: center; border-radius: var(--radius-control); }
.rules-button svg { width: 16px; height: 16px; }
@media (max-width: 899px) { .rules-button { width: 34px; height: 34px; border-radius: 999px; } .rules-button svg { width: 20px; height: 20px; } }
/* the Roofline table numbers its rows as the catalog tables do */
.lim-table { counter-reset: lim-row; }
.lim-table td.row-number::before { counter-increment: lim-row; content: counter(lim-row); }

/* a limit read as a Methodology chapter (.m-doc): the workload's tabs, then the formulas set one to a line as a paper
   displays its equations, the terms as a definition list, why and what is assumed as prose */
.m-doc > * + * { margin-top: 14px; }
.m-doc h3 { margin-top: 28px; font: 600 15px/1.3 var(--font-display); color: var(--color-label); }
/* the limit's workload pop-up at the right of the chapter's title, filled as the grid's own pickers */
.approach-main .board-section-head > .board-title-pick { align-self: center; height: 28px; padding: 0 8px 0 10px; border-radius: 8px; font-size: 13px; background: var(--color-fill); }
.approach-main .board-section-head > .board-title-pick .mode-icon { margin-left: 0; }
.method-article .method-pane-body .m-doc > p { max-width: 720px; font-size: 14px; line-height: 1.6; }  /* the workload's lede and its why at the chapter's own text size */
.method-article .method-pane-body .m-doc > h3 ~ p { max-width: 60%; }  /* Why at 60% of the column on every workload */
.m-doc-eqs { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.m-doc-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 16px; border-radius: 10px; background: var(--color-fill); }  /* never scrolls: a long formula wraps between its terms, its sources drop under it */
.m-doc-eq-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.m-doc-eq-line > .op { color: var(--color-label-secondary); }
.m-doc .m-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--color-label); }
.m-doc .m-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--pill); }
.m-doc .m-eq { min-width: 0; font-size: 13px; line-height: 26px; font-variant-numeric: tabular-nums; color: var(--color-label); white-space: normal; }
.m-doc .m-eq .m-var, .m-doc .m-eq .m-tag { white-space: nowrap; }  /* a term never breaks inside itself */
.m-doc-cite { margin-left: auto; font-size: 12px; color: var(--color-label-secondary); white-space: nowrap; }
.m-doc .cite { color: var(--color-label-secondary); text-decoration: none; cursor: pointer; }
.m-doc .cite:hover { color: var(--color-accent); }
.m-doc-terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin-top: 10px; font-size: 14px; line-height: 1.5; }
.m-doc-terms dt { margin: 0; }
.m-doc-terms dd { margin: 0; color: var(--color-label-secondary); }
.m-doc-list { margin-top: 8px; padding-left: 20px; list-style: none; color: var(--color-label-secondary); }
.m-doc-list li { position: relative; }
.m-doc-list li::before { content: ""; position: absolute; left: -16px; top: calc(.75em - 2.5px); width: 5px; height: 5px; border-radius: 1.5px; background: var(--color-label-tertiary); }  /* a small rounded square, as the site marks its keys, not a round bullet */
.m-doc-list li + li { margin-top: 6px; }
@media (max-width: 760px) { .m-doc-terms { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .m-doc-terms dd { margin-bottom: 8px; } .m-doc-eq { flex-direction: column; align-items: flex-start; gap: 6px; } .m-doc-cite { margin-left: 0; } }
