/* Public pages share the app dock while retaining their own content styles. */
.public-guest .public-shell {
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}
.public-guest .public-header .brand-row {
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}
.public-guest .public-header .brand {
  min-width: 0;
  flex: 1 1 auto;
}
.public-guest .public-header .brand > span { min-width: 0; }
.public-guest .public-header .brand strong,
.public-guest .public-header .brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-guest .header-login-button { text-decoration: none; }
.public-guest .public-header > .bottom-app-nav { display: grid; }
.public-guest .public-header > .bottom-app-nav .nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}
.public-guest .public-header > .bottom-app-nav .nav-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.public-guest .public-header > .bottom-app-nav .nav-home-item { justify-content: flex-start; }
.public-guest .public-header > .bottom-app-nav .nav-item.active::after { content: ""; position: absolute; }
.public-guest .public-header > .bottom-app-nav .nav-item:focus-visible,
.public-guest .header-action-button:focus-visible,
.public-guest .header-login-button:focus-visible { outline: 2px solid var(--bottom-nav-accent); outline-offset: -4px; }
.public-guest .public-community-nav { border-top: 1px solid var(--line); border-bottom: 0; }

/* The existing pink stylesheet does not contain public landing/auth surfaces. */
html[data-theme="pink"] .public-guest :is(.auth-stage, .auth-form, .auth-form-body, .seo-landing-stage, .seo-public-article) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
html[data-theme="pink"] .public-guest :is(.auth-card-title, .auth-welcome-title, .public-community-nav, .public-footer) {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}
html[data-theme="pink"] .public-guest :is(.seo-landing-card, .seo-landing-features > *, .public-quick-links a, .seo-public-copy, .seo-public-faq article, .seo-public-links a, .seo-public-breadcrumb, .home-intro-hero, .home-intro-feature, .home-intro-highlights, .home-intro-links, .home-intro-feature-grid article, .home-intro-highlights article, .home-intro-links > nav > a) {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}
html[data-theme="pink"] .public-guest :is(.home-intro, .seo-public-article, .auth-form) :is(h1, h2, h3, strong, label, li) {
  color: var(--text);
  text-shadow: none;
}
html[data-theme="pink"] .public-guest :is(.home-intro, .seo-public-article, .auth-form) :is(p, small) { color: var(--muted); }
html[data-theme="pink"] .public-guest :is(.auth-welcome-title > span, .auth-card-title svg, .home-intro-feature > header > span, .home-intro-highlights article > span, .home-intro-links > nav > a > svg) { color: #ffd2e0; }
html[data-theme="pink"] .public-guest :is(.home-intro-feature > header > span, .home-intro-highlights article > span) { background: #713047; }
html[data-theme="pink"] .public-guest :is(.seo-home-auth-actions a, .seo-landing-actions a) { border-color: var(--line); background: #582c3d; color: #fff0f5; box-shadow: none; }
html[data-theme="pink"] .public-guest :is(.seo-home-auth-actions a.is-login, .seo-landing-actions .seo-landing-primary, .auth-submit) { border-color: #ffa4c1; background: #a33361; color: #fff; }
html[data-theme="pink"] .public-guest :is(.auth-switch, .auth-switch a, .public-footer a, .public-footer small, .public-community-nav a, .seo-home-public-links a, .seo-public-links a, .public-theme-picker) { color: #ffe2ec; }
html[data-theme="pink"] .public-guest .public-theme-picker select { border-color: var(--line); background: #582c3d; color: #fff0f5; }
html[data-theme="soft"] .public-guest .public-community-nav { border-color: var(--line); background: var(--surface-2); }
html[data-theme="soft"] .public-guest .public-community-nav a { color: #276e63; }

@media (max-width: 560px) {
  .public-guest .public-header .brand-row { gap: 7px; padding-inline: 10px; }
  .public-guest .public-header .brand strong { font-size: 17px; }
  .public-guest .public-header .brand small { font-size: 9px !important; }
}
@media (max-width: 370px) {
  .public-guest .public-header .brand small { display: none; }
}
@media (max-width: 350px) {
  .public-guest .header-theme-menu { right: -48px; }
  .public-guest .header-theme-menu::before { right: 61px; }
}
