/* Hawsabah components: buttons, badges, callout, quote, table, form field.
   Every color comes from a theme token, so each component works in all three themes. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-text); font-size: var(--fs-body); font-weight: 600; line-height: 1.2;
  padding: 0.7em 1.3em; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-secondary { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-text { background: transparent; color: var(--link); padding-inline: 0.2em; text-decoration: underline; text-underline-offset: 0.2em; }

.badge {
  display: inline-block; font-size: var(--fs-small); font-weight: 600;
  padding: 0.15em 0.7em; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--heading);
}

.callout {
  background: var(--surface); border: 1px solid var(--rule);
  border-inline-start: 5px solid var(--accent);
  border-radius: 12px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }

blockquote.quote {
  margin: 0; padding-inline-start: 1.4rem; border-inline-start: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.35em; line-height: 1.55; color: var(--heading);
}

table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
table.table th, table.table td { text-align: start; padding: 0.65rem 0.8rem; border-block-end: 1px solid var(--rule); }
table.table th { color: var(--accent-ink); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 0.35rem; max-width: 22rem; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: 10px; padding: 0.65em 0.9em;
}
.field input:focus, .field textarea:focus { border-color: var(--focus); }
.field textarea { resize: vertical; min-block-size: 7rem; }

/* Faceted ornament, echoing the mark's cut planes. Decorative only. */
.facets { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.facets i { position: absolute; display: block; }
.facets .f1 { inset-inline-end: -6%; top: -12%; width: 42%; height: 78%;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  clip-path: polygon(30% 0, 100% 0, 100% 72%, 55% 100%, 0 46%); }
.facets .f2 { inset-inline-end: 4%; bottom: -10%; width: 30%; height: 52%;
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  clip-path: polygon(0 34%, 62% 0, 100% 58%, 46% 100%); }
.facets .f3 { inset-inline-end: 22%; top: 10%; width: 14%; height: 26%;
  background: color-mix(in srgb, var(--link) 16%, transparent);
  clip-path: polygon(50% 0, 100% 40%, 66% 100%, 0 70%); }
