*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: var(--tt-font);
}

body.tt-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;

  background: var(--tt-bg);
  color: var(--tt-text);

  font-size: 14px;
  line-height: 1.55;

  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--tt-blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--tt-blue-dark);
  line-height: 1.3;
}

h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

p {
  margin: 8px 0;
}

a {
  color: var(--tt-blue);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a:hover { color: var(--tt-blue-dark); text-decoration: underline; }

::selection {
  background: var(--tt-blue-pastel);
  color: var(--tt-blue-dark);
}

button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; max-width: 100%; padding: 7px 14px; margin: 0; background: var(--tt-blue-dark); color: #fff; border: 1px solid var(--tt-blue-dark); border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; }
button:hover:not(:disabled) { background: var(--tt-blue); border-color: var(--tt-blue); }
button:disabled { opacity: .52; cursor: not-allowed; }
label { display: block; font-size: 12px; font-weight: 500; }
input, select, textarea { min-width: 0; max-width: 100%; min-height: 35px; padding: 7px 9px; background: #fff; border: 1px solid var(--tt-border-strong); border-radius: 4px; color: var(--tt-text); font-size: 13px; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--tt-blue); outline-offset: 3px; }
input:disabled, select:disabled, textarea:disabled { background: #edf1f5; color: #657481; cursor: not-allowed; }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--tt-blue); vertical-align: middle; cursor: pointer; }
textarea { display: block; width: 100%; min-height: 120px; resize: vertical; }
.meta { color: var(--tt-text-soft); font-size: 12px; }
