/* ==========================================================================
   Banner sizes page (/banner-sizes): size picker, template kit, comparison
   table and per size notes. Loaded after style.css and the article style
   block. Motion uses the tokens from :root only, see CLAUDE.md rule 1c.
   Form fields keep the shared FORM CONTROLS look; only layout is set here.
   ========================================================================== */

.sk-answer {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

/* Quick facts under the answer */
.sk-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 1.8rem;
}
.sk-quick div {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-nested);
  padding: 10px 12px;
  min-width: 0;
}
.sk-quick dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.sk-quick dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* The download kit */
.sk-kit {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-nested);
  padding: 20px;
  margin: 0 0 2rem;
}
.article-body .sk-kit h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.sk-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-small);
  overflow: hidden;
}
.sk-preview canvas {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / 0.08);
}
.sk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.sk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tx-interactive);
}
.sk-btn:hover { background: var(--color-ink-soft); }
.sk-btn:active { transform: translateY(1px); }
.sk-btn[disabled] { opacity: 0.6; cursor: progress; }
.sk-btn.sk-btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.sk-btn.sk-btn-ghost:hover { border-color: var(--text); }
.sk-btn .ico {
  width: 16px;
  height: 16px;
  flex: none;
}
.sk-status {
  min-height: 1.5em;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.article-body .sk-kit ul { margin-bottom: 0; }

/* Tables that must not widen the page on a phone */
.sk-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.2rem;
}
/* Size picker */
.sk-picker {
  margin: 0 0 16px;
}
.sk-picker-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.article-body .sk-picker-label { margin-bottom: 8px; }
.sk-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.sk-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--tx-interactive);
}
.sk-chip:hover { border-color: var(--text); }
.sk-chip:active { transform: translateY(1px); }
.sk-chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.sk-chip-size {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.sk-chip-name {
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.8;
}

/* Custom width and height */
.sk-custom { margin: 0; }
.sk-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.sk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.sk-field input { width: 132px; }
.sk-times {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-muted);
  padding-bottom: 11px;
}
.sk-btn.sk-custom-go { min-height: 42px; }
.sk-kit .sk-quick { margin-top: 0; }

/* Tables that must not widen the page on a phone */
.sk-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.2rem;
}
.article-body .sk-compare { font-size: 12.5px; line-height: 1.45; }
.article-body .sk-compare th,
.article-body .sk-compare td { padding: 7px 8px; vertical-align: top; }
.article-body .sk-compare td:first-child,
.article-body .sk-compare td:nth-child(3) {
  font-family: var(--mono);
  white-space: nowrap;
}

/* Per size notes */
.sk-note {
  border: 1px solid var(--border);
  border-radius: var(--radius-nested);
  background: var(--surface);
  margin: 0 0 10px;
  scroll-margin-top: calc(var(--header-h, 64px) + 12px);
  transition: border-color var(--dur-quick) var(--ease-standard);
}
.sk-note[open] { border-color: var(--text); }
.sk-note summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.sk-note summary::-webkit-details-marker { display: none; }
.sk-note summary::after {
  content: "+";
  display: inline-block;
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-muted);
  transition: transform var(--dur-base) var(--ease-standard);
}
.sk-note[open] summary::after { transform: rotate(45deg); }
.sk-note-size {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}
.sk-note-name { font-weight: 600; }
.sk-note-tag {
  font-size: 12px;
  color: var(--text-muted);
}
.article-body .sk-note ul { margin: 0 16px 12px; padding-left: 18px; }
.sk-pick {
  display: inline-block;
  margin: 0 16px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
#kit { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }

@media (max-width: 760px) {
  .article-body .sk-compare { min-width: 680px; }
}

@media (max-width: 520px) {
  .sk-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-kit { padding: 16px; }
  .sk-preview { padding: 10px; }
  .sk-btn { width: 100%; justify-content: center; }
  .sk-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-custom-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .sk-field input { width: 100%; }
  .sk-custom-go { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-btn:active,
  .sk-chip:active { transform: none; }
  .sk-note summary::after { transition: none; }
}
