/* Styles for custom.html only. Shared tokens and components live in css/styles.css. */
.page-hero .eyebrow:empty { display: none; }

.custom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s8); align-items: start; }
.custom-form { max-width: 680px; }
.custom-form .form-block { border: 0; margin: 0; padding: 0 0 var(--s6); min-width: 0; }
.custom-form .form-block + .form-block { border-top: 1px solid var(--line); padding-top: var(--s5); }
.custom-form legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s4); font: 600 var(--t-lg)/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.custom-form .form-submit { margin-top: 0; padding-top: var(--s5); border-top: 1px solid var(--line); }

/* Form shell shared by custom and contact (copied per page so each stays scoped). */
.custom-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.custom-form .form-block > .field + .field, .custom-form .form-block > .form-row + .field, .custom-form .form-block > .field + .form-row { margin-top: var(--s4); }
.custom-form .opt { font-weight: 400; color: var(--muted); }
.custom-form .hint { font-size: var(--t-xs); line-height: 1.45; color: var(--muted); margin: 0; }
.custom-form .form-submit { display: grid; justify-items: start; gap: var(--s2); margin-top: var(--s6); }
.custom-form .form-submit .btn { min-width: 180px; }
.custom-form .form-status { font-size: var(--t-sm); min-height: 1.4em; }
.custom-form .form-status[data-kind="ok"] { color: var(--success); }
.custom-form .form-status[data-kind="error"] { color: var(--danger); }
@media (max-width: 620px) {
  .custom-form .form-row { grid-template-columns: 1fr; gap: var(--s4); }
  .custom-form .form-submit .btn { width: 100%; }
}

.custom-aside { position: sticky; top: calc(var(--header-h) + var(--s5)); display: grid; gap: var(--s5); padding: var(--s5); background: var(--surface); border-radius: var(--radius); }
.custom-aside h2 { font-size: var(--t-lg); }
.spec-list { margin: 0; display: grid; }
.spec-list > div { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.spec-list > div:first-child { padding-top: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.license-note { display: grid; gap: var(--s2); font-size: var(--t-sm); }
.license-note h3 { font-size: var(--t-md); }
.license-note p { color: var(--ink-2); }

@media (max-width: 1023px) {
  .custom-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .custom-form { max-width: none; }
  .custom-aside { position: static; }
}
.custom-form legend + * { clear: both; }
.custom-form .field { align-content: start; }

/* Phone polish: no column wider than the screen, hints readable at 14px, roomier blocks. */
@media (max-width: 1023px) { .custom-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .custom-form .hint { font-size: var(--t-sm); line-height: 1.5; }
  .custom-form .form-block { padding-bottom: var(--s5); }
  .custom-form legend { margin-bottom: var(--s3); }
  .custom-form .form-submit { gap: var(--s3); }
  .custom-form .form-submit .btn { min-height: 48px; }
  .custom-aside { padding: var(--s5) var(--s4); }
  .spec-list > div { padding: 12px 0; }
  .license-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}
@media (max-width: 380px) {
  .spec-list > div { flex-direction: column; gap: 2px; }
  .spec-list dd { text-align: left; }
}
