/* The JVM arguments tool (/tools/jvm-flags), on css/tools.css. */

/* The four kinds of server, two a row. */
.tool .jvm-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }

.jvm-java { margin: 0; color: var(--sage); font-size: 14px; line-height: 20px; }
.jvm-java strong { color: var(--ink); font-weight: 600; }
.jvm-java.is-bad { color: #c2410c; }

/* The options, one to a row, between lines. */
.jvm-options .tool-switch { padding: 10px 0; }
.jvm-options .tool-switch:first-of-type { padding-top: 0; }
.jvm-options .tool-switch:last-of-type { padding-bottom: 0; }
.jvm-options .tool-switch:not(:last-of-type) { border-bottom: 1px solid var(--twine); }

/* How the memory splits: the heap, and what Java and the system keep. */
.jvm-heap { margin-bottom: 16px; }
.jvm-heap-bar { height: 10px; border-radius: 5px; background: var(--muted); box-shadow: inset 0 0 0 1px #e1e2da; overflow: hidden; }
.jvm-heap-fill { display: block; width: 75%; height: 100%; background: var(--green); transition: width 0.25s var(--ease-out); }
.jvm-heap-legend { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; color: var(--sage); font-size: 13px; line-height: 18px; }
.jvm-heap-legend strong { color: var(--ink); font-weight: 600; }
.jvm-heap-out { text-align: right; }

.jvm-formats { margin-bottom: 12px; }
.jvm-result-actions { display: flex; flex: none; gap: 6px; }
.jvm-result pre { word-break: normal; }
.jvm-arg { display: inline-block; max-width: 100%; word-break: break-all; }
@media (max-width: 639.98px) { .jvm-result pre { font-size: 12.5px; } }
.tool-how code { white-space: nowrap; }
.jvm-next { margin-top: 12px; }
.jvm-next code { padding: 1px 5px; border-radius: 5px; background: var(--muted); color: var(--ink); font-size: 0.92em; white-space: nowrap; }

/* What each flag does. */
.jvm-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.jvm-flag { padding: 14px 0; border-top: 1px solid var(--twine); }
.jvm-flag dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 4px; }
.jvm-flag code { color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.jvm-flag-large { color: var(--green-text); font-size: 13px; font-weight: 600; }
.jvm-flag dd { margin: 0; color: var(--sage); font-size: 15px; line-height: 1.55; }
@media (max-width: 1023.98px) { .jvm-flags { grid-template-columns: minmax(0, 1fr); } }
