/* 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);
  min-height: calc(100dvh - 280px);
}

/* Homepage already fills the viewport — min-height left a dead gap above the footer. */
body.tk-home .tk-public-main,
body.tk-lux .tk-public-main {
  min-height: 0;
}

.tk-page-hero {
  background:
    radial-gradient(70% 80% at 12% 0%, rgba(0, 122, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #152033 100%);
  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;
  padding-inline: 1rem;
}

.tn-auth__card {
  border: 1px solid var(--tn-line, #e2e8f0) !important;
  box-shadow: var(--tn-shadow-xs, 0 1px 2px rgba(11, 18, 32, 0.05)) !important;
  border-radius: var(--tn-radius-lg, 0.875rem) !important;
}

.tn-auth .tn-input {
  font-size: 16px; /* avoid iOS zoom */
}

.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-brand {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.tk-auth-brand .tk-brand-lockup__logo {
  height: 64px;
}

.tk-auth-brand .tk-brand-lockup__name {
  font-size: 1.15rem;
}

.tk-auth-brand .tk-brand-lockup__tag {
  font-size: 0.55rem;
  color: var(--tn-ink-muted, #64748b);
  opacity: 1;
  letter-spacing: 0;
}

.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.75rem 0;
}

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

.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,
  .tk-standards--compact {
    padding: 0.35rem 0 0;
    margin: 0;
  }

  .tk-standards .container {
    padding-inline: 0.85rem;
  }

  .tk-standards__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.65rem;
    border-color: rgba(15, 23, 42, 0.05);
    box-shadow: none;
    background: #fafbfc;
  }

  .tk-standards__logos {
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .tk-standards__logo {
    height: 22px;
    max-width: 42vw;
  }

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

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

  .tk-standards__caption {
    /* flex: 1 1 16rem is row-width on desktop; in column it becomes height. */
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
    max-width: 22rem;
    margin: 0 auto;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #6b7a8a;
  }

  body.tk-home .tk-footer,
  body.tk-lux .tk-footer {
    margin-top: 0;
    padding-top: 0.85rem;
  }
}

/* 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: var(--tn-ink, #0f172a);
  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: var(--tn-ink, #0f172a) !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: var(--tn-ink, #0f172a) !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;
  }
}
