/* mathzetta.com's own pieces, in the Shioh style. Loaded after shioh-style.css (the base: cells, bands,
   controls), site-theme.css (the frame's pieces) and the family's palette (mathzetta-sites/src/site.css,
   for the showcase cards and the focus ring). Everything sits in a cell, so tiles are translucent white,
   drawn maths is on white, and text is the ink. */
.ss-cell a:not(.ss-btn):not(.ss-logo) { text-decoration: underline; text-underline-offset: 2px; }
.toc a, .mz-showcase a { text-decoration: none !important; }
code, pre, .mono, input.mono, textarea { font-family: var(--ss-font-mono); font-size: 13px; }
pre { background: var(--ss-panel); border: 1px solid var(--ss-rule); border-radius: var(--ss-radius-sm); padding: 10px 12px; overflow-x: auto; margin: 6px 0; white-space: pre-wrap; }
code { background: rgb(255 255 255 / 0.45); padding: 1px 5px; border-radius: var(--ss-radius-sm); }
pre code { background: none; padding: 0; }
h3 { font-size: 16px; margin: 16px 0 6px; }
.muted { color: var(--ss-muted); } .err { color: var(--ss-red); }
p.lead { font-size: 17px; max-width: 760px; margin: 0 0 12px; }

/* the try box on the home page */
.try { margin-top: 14px; }
.try input[type=text] { width: 100%; }
.try .big { font-size: 17px; }
.try .opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 10px 0 0; font-size: 13px; color: var(--ss-muted); }
.try .opts label { display: flex; gap: 6px; align-items: center; }
.try .opts input[type=text] { width: 180px; padding: 4px 7px; font-size: 13px; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.examples button, button.small { font: inherit; font-size: 12.5px; padding: 3px 10px; border: var(--ss-chip-border); border-radius: var(--ss-chip-radius); background: #fff; color: var(--ss-ink); cursor: pointer; }
.examples button:hover, button.small:hover { background: var(--ss-panel-strong); }
.outputs { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin-top: 14px; align-items: start; }
.outputs > div:nth-child(odd) { color: var(--ss-muted); padding-top: 4px; font-size: 13px; }
.outputs pre { margin: 0; }
.outputs .live { background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-sm); overflow-x: auto; padding: 8px 12px; font-size: 20px; margin-top: 6px; }
math { font-size: 22px; }

/* "Ways to use it": tiles on a cell */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--ss-panel); border: 1px solid var(--ss-rule); border-radius: var(--ss-radius-sm); padding: 12px 14px; min-width: 0; }
.card h3 { margin: 0 0 6px; font-family: var(--ss-font-head); font-size: 15px; }
.card p { margin: 6px 0; } .card p code { overflow-wrap: anywhere; }
.card pre { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; background: rgb(255 255 255 / 0.55); }

/* the "Built on it" cards (mathzetta-sites' showcase) on a cell */
.mz-showcase a.mz-card { background: var(--ss-panel); border-color: var(--ss-rule); color: var(--ss-ink); }
.mz-showcase a.mz-card:hover { background: var(--ss-panel-strong); border-color: var(--ss-rule); box-shadow: none; }
.mz-showcase a.mz-card:hover strong { color: var(--ss-ink); }
.mz-showcase a.mz-card .mz-what { color: var(--ss-muted); }
.mz-showcase a.mz-card .mz-uses { border-top-color: var(--ss-rule); }
.mz-showcase .mz-tag { color: var(--ss-muted); border-color: var(--ss-rule); }

table.plain { border-collapse: collapse; width: 100%; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--ss-rule); vertical-align: top; overflow-wrap: anywhere; }
table.plain th { color: var(--ss-muted); font-weight: 600; }

/* phones: a table scrolls sideways inside its own box instead of squeezing its words apart */
@media (max-width: 560px) {
  table.plain { display: block; overflow-x: auto; }
  table.plain th, table.plain td { min-width: 8.5rem; overflow-wrap: normal; }
}

/* API page */
.toc { display: flex; gap: 6px 8px; flex-wrap: wrap; font-size: 14px; margin: 10px 0 0; }
.toc a { background: var(--ss-panel); border: var(--ss-chip-border); border-radius: var(--ss-chip-radius); padding: 2px 10px; }
.toc a:hover { background: var(--ss-panel-strong); }
.entry > .import { margin: 0 0 10px; }
.fn { margin: 14px 0 0; padding: 12px 14px; background: var(--ss-panel); border: 1px solid var(--ss-rule); border-radius: var(--ss-radius-sm); }
.fn h3 { margin: 0 0 4px; font-family: var(--ss-font-mono); font-size: 15px; }
.fn .doc { margin: 0 0 8px; }
.fn table.plain { margin: 6px 0 10px; }
.fn pre { background: rgb(255 255 255 / 0.55); }
.ex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; align-items: start; }
.ex > * { min-width: 0; } .ex pre { overflow-wrap: anywhere; }
.ex .left label { font-size: 12px; color: var(--ss-muted); display: block; margin: 4px 0 2px; }
.ex input.mono { width: 100%; }
.ex pre { margin: 0; min-height: 36px; }
.ex .title { font-size: 13px; color: var(--ss-muted); margin-bottom: 2px; }
.ex .live { font-size: 20px; padding: 6px 10px; background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius-sm); margin-top: 6px; overflow-x: auto; }
@media (max-width: 760px) { .ex { grid-template-columns: 1fr; } .outputs { grid-template-columns: 1fr; } }
/* phones: an option table reads as a list — the name and type on a line, what it does below */
@media (max-width: 560px) {
  .fn table.plain thead { display: none; }
  .fn table.plain, .fn table.plain tbody, .fn table.plain tr { display: block; overflow: visible; }
  .fn table.plain tr { padding: 6px 0; border-bottom: 1px solid var(--ss-rule); }
  .fn table.plain td { display: inline; border: 0; padding: 0 6px 0 0; min-width: 0; }
  .fn table.plain td:last-child { display: block; padding: 2px 0 0; }
}
/* phones: tap-sized example chips and table-of-contents chips */
@media (max-width: 860px) {
  .examples button, button.small, .toc a { padding: 6px 12px; }
  .outputs .live, .ex .live { font-size: 18px; }
}

