/* Public recipient pages: centred brand header, soft dotted background, one centred column. */

.t-public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--color-text-muted) 22%, transparent) 1px, transparent 1.2px),
    linear-gradient(160deg, color-mix(in srgb, var(--brand-accent-soft) 70%, var(--color-bg)) 0%, var(--color-bg) 55%, var(--color-surface-sunken) 100%);
  background-size: 28px 28px, 100% 100%;
}

.t-public-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-warning-bg);
  border-bottom: 1px solid var(--color-warning-border);
  color: var(--color-warning-strong);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: center;
}

.t-public-banner .t-icon {
  width: var(--icon-size);
  height: var(--icon-size);
}

.t-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.t-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.t-public-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.t-public-header .t-brand {
  grid-column: 2;
  justify-self: center;
}

.t-public-header .t-brand__name {
  font-size: 18px;
}

.t-public-header .t-lang {
  grid-column: 3;
  justify-self: end;
}

.t-public-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
}

.t-public-content {
  width: 100%;
  max-width: var(--content-max-public);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.t-public-content--wide {
  max-width: var(--content-max-public-wide);
}

/* Centred heading block inside a public card. */
.t-public-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.t-public-head .t-icon-tile--lg {
  margin-bottom: var(--space-2);
}

.t-public-head h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.25;
}

.t-public-head p {
  color: var(--color-text-muted);
}

.t-public-head .t-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

/* Grey panel with icon rows on the landing page. */
.t-panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-5) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-sunken);
}

.t-panel .t-info dd {
  font-weight: 500;
}

.t-public-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-4) var(--space-6);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.t-public-footer__line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t-public-footer .t-icon {
  width: 14px;
  height: 14px;
}

/* Unavailable page: no card, big icon with a cross. */
.t-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) 0;
  text-align: center;
}

.t-unavailable h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
}

.t-unavailable p {
  color: var(--color-text-muted);
  max-width: 420px;
}

.t-unavailable .t-empty__badge {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-surface-muted);
}

@media (max-width: 720px) {
  .t-public-header {
    grid-template-columns: auto 1fr;
    padding: var(--space-3) var(--space-4);
  }

  .t-public-header .t-brand {
    grid-column: 1;
    justify-self: start;
  }

  .t-public-header .t-lang {
    grid-column: 2;
  }

  .t-public-main {
    padding: var(--space-6) var(--space-4);
  }

  .t-card--elevated {
    padding: var(--space-5);
  }

  .t-card--elevated > .t-card__header {
    margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) 0;
    padding: var(--space-4) var(--space-5);
  }
}

.t-center-self {
  align-self: center;
}
