/* Public inner pages (about, contact, auth, legal) on the shared theme. */

body.tk-public:not(.tk-lux) {
  padding-top: 76px;
}

.tk-public-main {
  min-height: calc(100vh - 280px);
}

.tk-page-hero {
  background: var(--tk-gradient-hero);
  color: #fff;
  padding: 3.2rem 0 2.6rem;
  margin-bottom: 2rem;
}

.tk-page-hero h1 {
  font-size: var(--tk-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--tk-white);
}

.tk-page-hero p {
  margin: 0.6rem 0 0;
  opacity: 0.92;
  color: #fff;
}

.tk-card {
  background: var(--tk-white);
  border: 0;
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
}

.tk-prose {
  background: var(--tk-white);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  padding: 1.75rem 1.5rem;
  color: var(--tk-dark);
  line-height: 1.7;
}

.tk-prose h1,
.tk-prose h2,
.tk-prose h3 {
  font-weight: 800;
  color: var(--tk-dark);
}

.tk-prose a {
  color: var(--tk-primary);
}

.tk-prose p,
.tk-prose span,
.tk-prose li {
  color: inherit !important;
  font-family: var(--tk-font) !important;
  background: transparent !important;
}

.tk-auth-wrap {
  max-width: 480px;
  margin: 2.5rem auto 4rem;
}

.tk-auth-wrap--wide {
  max-width: 40rem;
}

.tk-auth-wrap .tk-card {
  padding: 2rem 1.5rem;
}

.tk-auth-logo {
  height: 64px;
  width: auto;
}

.tk-auth-wrap .form-control,
.tk-auth-wrap select {
  border-radius: 0.85rem;
  min-height: 48px;
  border-color: var(--tk-dot);
}

.tk-auth-wrap .form-control:focus,
.tk-auth-wrap select:focus {
  border-color: var(--tk-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--tk-primary-rgb), 0.18);
}

.tk-auth-wrap label {
  font-weight: 600;
  color: var(--tk-dark);
}

@media (max-width: 767.98px) {
  .tk-page-hero {
    padding: 2.2rem 0 1.8rem;
  }

  .tk-prose {
    padding: 1.2rem 1rem;
  }

  .tk-auth-wrap {
    margin: 1.5rem auto 3rem;
    padding: 0 0.75rem;
  }
}

.tk-licence-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.tk-licence-siblings a {
  color: var(--tk-primary);
}

/* Swedish authorities / standards trust strip */
.tk-standards {
  padding: 0.35rem 0 1.75rem;
}

.tk-standards--compact {
  padding: 0 0 1.5rem;
  margin-top: -0.5rem;
}

.tk-standards__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.1rem;
  padding: 1rem 1.35rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.tk-standards__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  flex-shrink: 0;
}

.tk-standards__logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 190px;
  object-fit: contain;
}

.tk-standards__logo--ts {
  height: 38px;
}

.tk-standards__logo--tv {
  height: 34px;
}

.tk-standards__caption {
  margin: 0;
  flex: 1 1 16rem;
  max-width: 36rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #64748b;
  text-align: start;
}

@media (max-width: 767.98px) {
  .tk-standards__inner {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.1rem;
  }

  .tk-standards__caption {
    text-align: center;
    max-width: 28rem;
  }

  .tk-standards__logo {
    height: 32px;
  }

  .tk-standards__logo--ts {
    height: 34px;
  }
}

/* Contact — live chat (Crisp) + email */
.tk-muted {
  color: var(--tk-muted);
}

.tk-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tk-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.tk-contact-panel {
  background: var(--tk-white);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  padding: 1.5rem 1.35rem 1.6rem;
}

.tk-contact-panel__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: var(--tk-gradient);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.tk-contact-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tk-dark);
  letter-spacing: -0.02em;
}

.tk-contact-panel > p {
  margin: 0 0 1rem;
  color: var(--tk-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.tk-contact-panel__hint {
  margin: 0.85rem 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--tk-muted) !important;
}

.tk-contact-mail {
  margin: 0 0 1.1rem !important;
}

.tk-contact-mail a {
  font-weight: 600;
  color: var(--tk-primary);
  word-break: break-word;
}

.tk-btn-human {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  background: var(--tk-gradient);
  color: #fff !important;
  border: 0;
  border-radius: var(--tk-radius-pill, 999px);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tk-btn-human:hover,
.tk-btn-human:focus-visible {
  filter: brightness(1.05);
  color: #fff !important;
  outline: none;
}

.tk-btn-human:focus-visible {
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.35);
}

.tk-contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.tk-contact-form .form-control {
  border-radius: 0.75rem;
  min-height: 2.75rem;
  font-size: 16px; /* avoids iOS zoom on focus */
}

.tk-contact-form textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
}

.tk-contact-alerts .alert {
  border-radius: var(--tk-radius);
}

@media (max-width: 575.98px) {
  .tk-contact-panel {
    padding: 1.25rem 1.1rem 1.35rem;
  }
}
