/* WaggleTails web, phase 2 slice C: Analytics & Reports (wt-analytics-*), the public profile preview (wt-public-*),
   the Resource Directory (wt-resource-*), the social composer and the Post Details page (wt-social-*). Only what
   wt-components.css / wt-shelter.css / wt-thread.css do not already have; every colour is a wt-tokens.css token. */

/* Font Awesome glyphs these pages use that the earlier sheets do not declare (same TTFs as wt-icons.css). */
.fa-clock::before { content: "\f017"; }
.fa-globe::before { content: "\f0ac"; }
.fa-pencil::before { content: "\f303"; }
.fa-camera::before { content: "\f030"; }
.fa-video::before { content: "\f03d"; }
.fa-thumbtack::before { content: "\f08d"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-circle-exclamation::before { content: "\f06a"; }

/* ================================================================
   Analytics & Reports - ShelterAnalyticsPage.xaml:33-122
   ================================================================ */
.wt-analytics-title {
  color: var(--wt-primary);
  font-weight: 700;
}
.wt-analytics-heading {
  font-weight: 600;
  font-size: 19px;
  color: var(--wt-text);
}
/* KPI grid: 2 x 2 gradient cards, 28 px bold white number, 12 px label, 10 px footnote (XAML:34-51) */
.wt-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .wt-analytics-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.wt-analytics-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 145px;
  padding: 16px;
  border-radius: var(--wt-radius-card);
  color: #fff;
  overflow-wrap: anywhere;
}
.wt-analytics-kpi--teal {
  background: var(--wt-gradient-brand);
}
/* XAML:40 keeps #EAB308 -> #D89410 in both themes (no AppThemeBinding, unlike the blue and green cards): white on the fixed fill */
.wt-analytics-kpi--gold {
  background: linear-gradient(135deg, var(--wt-fixed-gold), var(--wt-fixed-gold-deep));
}
.wt-analytics-kpi--blue {
  background: var(--wt-gradient-blue);
}
.wt-analytics-kpi--green {
  background: linear-gradient(135deg, var(--wt-success), var(--wt-primary-pressed));
}
.wt-analytics-kpi__icon {
  font-size: 22px;
  opacity: .85;
}
.wt-analytics-kpi__value {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}
.wt-analytics-kpi__label {
  font-size: 12px;
}
.wt-analytics-kpi__note {
  font-size: 10px;
  opacity: .85;
}
/* Cards: 17 px padding, 17 px semibold title (XAML:53-111) */
.wt-analytics-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 17px;
}
.wt-analytics-card__title {
  font-weight: 600;
  font-size: 17px;
  color: var(--wt-text);
}
.wt-analytics-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.wt-analytics-row .wt-icon-disc {
  border-radius: 12px;
}
.wt-analytics-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-analytics-row__title {
  font-weight: 500;
  font-size: 13px;
  color: var(--wt-text);
}
.wt-analytics-row__sub {
  font-size: 10px;
  color: var(--wt-text-secondary);
}
.wt-analytics-row__value {
  font-weight: 700;
  font-size: 23px;
  color: var(--wt-text);
}
.wt-analytics-row__value--gold {
  color: var(--wt-warm-border);
}
.wt-analytics-row__value--green {
  color: var(--wt-success);
}
/* Monthly bar chart: 24 px columns, 7 px apart, 150 px tall, bars 20 px wide with the app's 104 px scale (XAML:62-79) */
.wt-analytics-chart {
  display: flex;
  gap: 7px;
  height: 150px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.wt-analytics-chart::-webkit-scrollbar {
  display: none;
}
.wt-analytics-chart__column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex: 0 0 24px;
}
@media (min-width: 480px) {
  .wt-analytics-chart__column {
    flex: 1 1 24px;
  }
}
.wt-analytics-chart__count {
  font-weight: 500;
  font-size: 10px;
  color: var(--wt-text);
}
.wt-analytics-chart__bar {
  display: block;
  width: 20px;
  min-height: 1px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(0deg, var(--wt-primary), var(--wt-success));
}
.wt-analytics-chart__month {
  font-size: 9px;
  color: var(--wt-text-secondary);
}
/* Top breeds: 12 px name, 11 px medium count, 7 px teal bar (XAML:81-92) */
.wt-analytics-breeds {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-analytics-breed {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wt-analytics-breed__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}
.wt-analytics-breed__name {
  font-size: 12px;
  color: var(--wt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-analytics-breed__count {
  font-weight: 500;
  font-size: 11px;
  color: var(--wt-text);
}
.wt-analytics-breed__track {
  display: block;
  height: 7px;
}
.wt-analytics-breed__fill {
  display: block;
  background: var(--wt-primary);
}
/* Recent adoptions: soft-teal tiles, 48 px image, 13 px semibold name, 10 px breed, 9 px date (XAML:94-111) */
.wt-analytics-recent {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-analytics-adoption {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 17px;
  background: var(--wt-soft-teal-bg);
}
.wt-analytics-adoption__image {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--wt-card);
  color: var(--wt-soft-teal);
  font-size: 20px;
}
.wt-analytics-adoption__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-analytics-adoption__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-analytics-adoption__name {
  font-weight: 600;
  font-size: 13px;
  color: var(--wt-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wt-analytics-adoption__breed {
  font-size: 10px;
  color: var(--wt-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-analytics-adoption__date {
  font-size: 9px;
  color: var(--wt-text-secondary);
  white-space: nowrap;
}
/* Profile Engagement: warm gradient, gold hairline, two columns of 23 px bold, teal total (XAML:113-120) */
.wt-analytics-engagement {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--wt-gold-hairline);
  border-radius: var(--wt-radius-card);
  background: var(--wt-gradient-warm);
}
.wt-analytics-engagement__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.wt-analytics-engagement__icon {
  font-size: 26px;
  color: var(--wt-primary);
}
.wt-analytics-engagement__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wt-analytics-engagement__total {
  font-weight: 500;
  font-size: 11px;
  color: var(--wt-primary);
}
.wt-analytics-empty {
  margin: 0 14px;
  font-size: 12px;
  text-align: center;
  color: var(--wt-text-secondary);
}

/* ================================================================
   Public profile preview - ShelterPublicProfilePage.xaml:19-296
   ================================================================ */
.wt-public {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Hero: brand gradient, min 286 px, white discs, 98 px round logo, 24 px bold white name (XAML:22-76) */
.wt-public__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 286px;
  padding: 16px 16px 56px;
  border-radius: var(--wt-radius-card);
  /* XAML:22-27: the brand pair on a 0,0 -> 1,1 diagonal, not the token's horizontal sweep. */
  background: var(--wt-gradient-brand-diagonal);
  color: #fff;
  text-align: center;
}
/* The top bar is pinned to the hero's top edge so the centred block below it is centred in the whole hero (XAML:29, 53). */
.wt-public__hero .wt-public__bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  width: auto;
}
.wt-public__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.wt-public__bar-actions {
  display: flex;
  gap: 8px;
}
.wt-public__disc {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 21px;
  background: rgba(255, 255, 255, .95);
  color: var(--wt-fixed-ink); /* the glyph stays #374151 on the white disc in both themes (XAML:37, Dark = BorderColorDark) */
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.wt-public__logo {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 40px;
}
.wt-public__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-public__name {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}
.wt-public__location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #fff;
}
.wt-public__shared {
  font-size: 12px;
  color: #fff;
}
/* Stats card overlapping the hero by 31 px: four columns, 22 px bold teal, 10 px label (XAML:78-100) */
.wt-public__stats {
  /* QC 2026-10-14 (Hiba, "public profile.. top layout to be fixed"): the card is pulled up over the hero, and the hero is
     positioned, so without a stacking order the hero painted over the numbers (XAML:78 gives the card ZIndex="2"). */
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: -47px 16px 0;
  padding: 16px 12px;
  border-radius: var(--wt-radius-card);
  background: var(--wt-card);
  box-shadow: var(--wt-shadow-card);
}
.wt-public__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wt-public__stat-value {
  font-weight: 700;
  font-size: 22px;
  color: var(--wt-primary);
}
.wt-public__stat-label {
  font-size: 10px;
  color: var(--wt-text-secondary);
}
/* Tab strip: two equal pills, selected white with teal semibold text (XAML:110-139) */
.wt-public__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: var(--wt-surface-muted);
}
.wt-public__tab {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--wt-text-body-soft);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.wt-public__tab.is-selected {
  background: var(--wt-card);
  color: var(--wt-primary);
  font-weight: 600;
  box-shadow: var(--wt-shadow-sm);
}
.wt-public__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wt-public__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}
.wt-public__card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  color: var(--wt-text);
}
.wt-public__card-title i {
  color: var(--wt-primary);
  font-size: 18px;
}
/* Our Mission - ShelterMissionBorderStyle: mint-to-warm gradient */
.wt-public__card--mission {
  border-radius: var(--wt-radius-card);
  background: linear-gradient(135deg, var(--wt-soft-teal-bg), var(--wt-soft-gold-bg));
}
/* Operating hours: day 13 px, hours 12 px medium, teal when open (XAML:158-170) */
.wt-public__hours {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.wt-public__hour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--wt-card-border);
  font-size: 13px;
  color: var(--wt-text);
}
.wt-public__hour:last-child {
  border-bottom: 0;
}
.wt-public__hour dd {
  margin: 0;
  font-weight: 500;
  font-size: 12px;
  color: var(--wt-text-secondary);
}
.wt-public__hour dd.is-open {
  color: var(--wt-primary);
}
.wt-public__animal {
  font-weight: 500;
  font-size: 12px;
  border-radius: 16px;
}
.wt-public__prose {
  font-size: 13px;
  line-height: 1.5;
  color: var(--wt-text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-public__link {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
.wt-public__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wt-public__address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-public__address i {
  margin-top: 2px;
  color: var(--wt-primary);
}
/* The read-only map card's place: a link to the pin on OpenStreetMap, muted rounded-16 as DetailsLocationMapCard */
.wt-public__map {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--wt-surface-muted);
  color: var(--wt-text);
  font-size: 13px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wt-public__map i {
  color: var(--wt-primary);
}
.wt-public__map-hint {
  font-weight: 500;
  font-size: 12px;
  color: var(--wt-primary);
  white-space: nowrap;
}
/* Events tab: 20 px bold heading, the empty state, cards with a 56 x 58 date tile (XAML:262-291) */
.wt-public__events-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--wt-text);
}
.wt-public__events-empty {
  padding: 40px 16px;
  text-align: center;
}
.wt-public__events {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-public__event {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--wt-text);
}
.wt-public__date {
  width: 56px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--wt-gradient-brand);
  color: #fff;
}
.wt-public__date-month {
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
}
.wt-public__date-day {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}
.wt-public__event-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.wt-public__event-title {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.wt-public__event-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: var(--wt-text-secondary);
}
.wt-public__event-line i {
  color: var(--wt-primary);
  font-size: 11px;
}
.wt-public__event-location {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-public__event-attending {
  font-weight: 500;
  font-size: 10px;
  color: var(--wt-primary);
}
.wt-public__event-chevron {
  color: var(--wt-text-secondary);
}

/* ================================================================
   Resource Directory - ShelterResourceDirectoryPage.xaml:12-129
   ================================================================ */
.wt-resource-title {
  color: var(--wt-primary);
  font-size: 21px;
}
/* Category chips: white with grey text, the category colour when selected (XAML:33-47, ShelterResourceCategoryItem:
   the five fills are literals in both themes - #4B5563, #0D9488, #EAB308, #9333EA, #2563EB - with white text on them) */
.wt-resource-chips {
  gap: 8px;
}
.wt-resource-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--wt-border);
  border-radius: 18px;
  background: var(--wt-card);
  color: var(--wt-text-body-soft);
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.wt-resource-chip.is-selected {
  border-color: transparent;
  color: #fff;
}
.wt-resource-chip--gray.is-selected,
.wt-resource-group--gray > .wt-resource-group__head {
  background: var(--wt-fixed-slate);
}
.wt-resource-chip--teal.is-selected,
.wt-resource-group--teal > .wt-resource-group__head {
  background: var(--wt-fixed-teal);
}
.wt-resource-chip--gold.is-selected,
.wt-resource-group--gold > .wt-resource-group__head {
  background: var(--wt-fixed-gold);
}
.wt-resource-chip--purple.is-selected,
.wt-resource-group--purple > .wt-resource-group__head {
  background: var(--wt-fixed-purple);
}
.wt-resource-chip--blue.is-selected,
.wt-resource-group--blue > .wt-resource-group__head {
  background: var(--wt-fixed-blue);
}
.wt-resource-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Group header: rounded-22 in the category colour, 24 px white icon, 15 px medium title, 11 px count, + / - (XAML:55-67) */
.wt-resource-group__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.wt-resource-group__head::-webkit-details-marker {
  display: none;
}
.wt-resource-group__icon {
  font-size: 22px;
}
.wt-resource-group__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-resource-group__title {
  font-weight: 500;
  font-size: 15px;
}
.wt-resource-group__count {
  font-size: 11px;
  opacity: .9;
}
.wt-resource-group__toggle {
  font-size: 24px;
  line-height: 1;
}
.wt-resource-group__minus {
  display: none;
}
.wt-resource-group[open] > .wt-resource-group__head .wt-resource-group__plus {
  display: none;
}
.wt-resource-group[open] > .wt-resource-group__head .wt-resource-group__minus {
  display: inline;
}
.wt-resource-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 0 8px;
}
/* Article row: 38 px soft-teal tile, 13 px medium title, the chevron; one open at a time (details name=) (XAML:69-106) */
.wt-resource-article {
  padding: 0;
}
.wt-resource-article__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.wt-resource-article__head::-webkit-details-marker {
  display: none;
}
.wt-resource-article__tile {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-soft-teal);
  font-size: 18px;
}
.wt-resource-article__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-resource-article__title {
  font-weight: 500;
  font-size: 13px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-resource-article__category {
  font-size: 10px;
  color: var(--wt-text-secondary);
}
.wt-resource-article__chevron {
  color: var(--wt-text-secondary);
  transition: transform 120ms ease-out;
}
.wt-resource-article[open] .wt-resource-article__chevron {
  transform: rotate(180deg);
}
.wt-resource-article__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}
.wt-resource-article__line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-resource-article__tips-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 12px;
  color: var(--wt-text);
}
.wt-resource-article__tips {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-resource-article__tips li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-resource-article__bullet {
  color: var(--wt-secondary);
}
.wt-resource-empty {
  padding: 60px 28px;
  text-align: center;
}
/* Footer CTA: primary rounded-22 card, white heart, white button with primary text (XAML:118-129) */
.wt-resource-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: var(--wt-primary);
  color: #fff;
}
.wt-resource-cta__icon {
  font-size: 20px;
}
.wt-resource-cta__title {
  font-weight: 500;
  font-size: 14px;
}
.wt-resource-cta__text {
  font-size: 12px;
  line-height: 1.5;
  opacity: .9;
}
.wt-resource-cta__button {
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--wt-card);
  color: var(--wt-primary);
  font-weight: 500;
  font-size: 14px;
}

/* ================================================================
   Social composer - SocialPostPage.xaml:139-551
   ================================================================ */
.wt-social-heading {
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
}
/* Author preview card: 48 px avatar, "Posting as", 15 px bold name, 12 px subtitle (XAML:139-185) */
.wt-social-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.wt-social-author__avatar,
.wt-social-picker__avatar,
.wt-social-pet__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-primary);
}
.wt-social-author__avatar {
  width: 48px;
  height: 48px;
  font-size: 20px;
}
.wt-social-author__avatar img,
.wt-social-picker__avatar img,
.wt-social-pet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-social-author__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-social-author__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-social-author__sub {
  font-size: 12px;
  color: var(--wt-text-secondary);
}
/* Segmented toggle: two equal halves, the active one on the card surface with primary text (XAML:202-264) */
.wt-social-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: var(--wt-surface-muted);
}
.wt-social-toggle__half {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--wt-text-body-soft);
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}
.wt-social-toggle__half input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.wt-social-toggle__half:has(input:checked) {
  background: var(--wt-card);
  color: var(--wt-primary);
  box-shadow: var(--wt-shadow-sm);
}
.wt-social-toggle__half:has(input:focus-visible) {
  outline: 2px solid var(--wt-primary);
}
/* Pet dropdown: the trigger row and the panel, shown while "One of my pets" is on (IsAuthorPetPickerVisible) */
.wt-social-picker {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.wt-social-composer-form:has(input[name="AuthorMode"][value="pet"]:checked) .wt-social-picker {
  display: flex;
}
/* The trigger is a button (ToggleAuthorPetPickerCommand); it takes the selection fill and stroke once a pet is chosen (XAML:279-284) */
.wt-social-picker__trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-input);
  background: var(--wt-card);
  color: var(--wt-text);
  font-family: var(--wt-font);
  text-align: left;
  cursor: pointer;
}
.wt-social-picker__trigger.is-selected {
  border-color: var(--wt-primary);
  background: var(--wt-selection-bg);
}
.wt-social-picker__avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.wt-social-picker__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-social-picker__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-social-picker__sub {
  font-size: 12px;
  color: var(--wt-text-secondary);
}
.wt-social-picker__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: var(--wt-card);
}
.wt-social-picker__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-muted);
}
.wt-social-picker__search input {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-size: 14px;
}
.wt-social-picker__search input:focus {
  outline: none;
}
.wt-social-picker__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--wt-border);
  border-top-color: var(--wt-primary);
  border-radius: 50%;
  animation: wt-social-spin 800ms linear infinite;
}
@keyframes wt-social-spin {
  to { transform: rotate(360deg); }
}
.wt-social-pets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
/* Row: 36 px avatar, 14 px bold name, 11 px muted type • breed, the Manage Pets status pill (XAML:19-93) */
.wt-social-pet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
}
.wt-social-pet input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.wt-social-pet.is-selected,
.wt-social-pet:has(input:checked) {
  border-color: var(--wt-primary);
  background: var(--wt-selection-bg);
}
.wt-social-pet:has(input:focus-visible) {
  outline: 2px solid var(--wt-primary);
}
.wt-social-pet__avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.wt-social-pet__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-social-pet__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-social-pet__sub {
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-social-picker__empty {
  padding: 12px;
  font-size: 13px;
  text-align: center;
  color: var(--wt-text-secondary);
}
/* Media tile - MediaPickerBorderStyle: dashed, the preview fills it, the camera empty state (XAML:408-494) */
.wt-social-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 2px dashed var(--wt-border);
  border-radius: var(--wt-radius-panel);
  background: var(--wt-surface-subtle);
  cursor: pointer;
}
.wt-social-media:has(input:focus-visible) {
  border-color: var(--wt-primary);
}
.wt-social-media__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.wt-social-media__preview {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.wt-social-media__video,
.wt-social-media__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--wt-text-secondary);
}
.wt-social-media__video i,
.wt-social-media__empty i {
  font-size: 30px;
  color: var(--wt-primary);
}
.wt-social-media__headline {
  font-weight: 600;
  font-size: 14px;
  color: var(--wt-text);
}

/* ================================================================
   Post Details - PostDetailsPage.xaml:24-639
   ================================================================ */
.wt-social-post {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wt-social-post__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wt-social-post__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
/* 44 px avatar with the mint ring (HomeSurfaceCardBorderStyle) */
.wt-social-post__avatar,
.wt-social-comment__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--wt-soft-teal-bg);
  background: var(--wt-surface-muted);
  color: var(--wt-primary);
}
.wt-social-post__avatar {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.wt-social-post__avatar img,
.wt-social-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-social-post__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wt-social-post__author {
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-social-post__meta {
  font-size: 11px;
  color: var(--wt-text-secondary);
}
.wt-social-post__body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--wt-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* One attachment fills the width; several snap horizontally (the app's carousel) */
.wt-social-media-single,
.wt-social-media-strip {
  border-radius: 16px;
  overflow: hidden;
  background: var(--wt-surface-muted);
}
.wt-social-media-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.wt-social-media-strip::-webkit-scrollbar {
  display: none;
}
.wt-social-media-strip > * {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.wt-social-post__image {
  display: block;
  aspect-ratio: 1 / 1;
}
.wt-social-post__image img,
.wt-social-post__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-social-post__video {
  aspect-ratio: 1 / 1;
  background: var(--wt-text);
}
.wt-social-post__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.wt-social-like {
  margin: 0;
}
.wt-social-like__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--wt-text-body-soft);
  font-family: var(--wt-font);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}
.wt-social-like__button i {
  font-size: 16px;
}
.wt-social-like__button.is-liked {
  color: var(--wt-primary);
}
.wt-social-like__button.is-reunion {
  color: var(--wt-secondary);
  font-weight: 700;
}
.wt-social-post__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--wt-text-body-soft);
}
/* Sort bar: Top / Newest pills, the count at the right (XAML:265-319) */
.wt-social-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wt-social-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-pill);
  background: var(--wt-card);
  color: var(--wt-text-body-soft);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}
.wt-social-pill.is-selected {
  border-color: var(--wt-primary);
  background: var(--wt-selection-bg);
  color: var(--wt-selection-text);
}
.wt-social-sort__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--wt-text-secondary);
}
.wt-social-empty {
  padding: 32px 16px;
  text-align: center;
}
.wt-social-comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Comment row: 36 px avatar, 13 px bold "Name · 2h", badges, 13 px body, the 12 px bold actions; replies indented 46 px (XAML:341-446) */
.wt-social-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 6px 4px;
  border-radius: 14px;
}
.wt-social-comment--reply {
  margin-left: 46px;
}
.wt-social-comment.is-target {
  background: var(--wt-selection-bg);
}
.wt-social-comment__avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.wt-social-comment__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.wt-social-comment__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.wt-social-comment__author {
  font-weight: 700;
  font-size: 13px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-social-comment__badge {
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--wt-soft-teal-bg);
  color: var(--wt-primary);
  font-weight: 700;
  font-size: 10px;
}
.wt-social-comment__pinned {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--wt-text-secondary);
}
.wt-social-comment__pinned i {
  font-size: 9px;
}
.wt-social-comment__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wt-social-comment__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.wt-social-comment__likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--wt-text-body-soft);
}
.wt-social-comment__likes.is-liked {
  color: var(--wt-primary);
}
.wt-social-comment__action {
  padding: 4px 2px;
  font-weight: 700;
  font-size: 12px;
  color: var(--wt-text-body-soft);
  text-decoration: none;
}
.wt-social-comment__action--replies {
  color: var(--wt-primary);
}
.wt-social-comment__action--delete {
  color: var(--wt-danger-accent);
}
.wt-social-more {
  width: auto;
  align-self: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
}
/* Composer: the reply strip with its X, the 28..120 px editor, the 48 px send disc (XAML:515-598) */
.wt-social-composer {
  position: sticky;
  bottom: calc(var(--wt-dock-height) + 8px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--wt-border);
  border-radius: 20px;
  background: var(--wt-card);
  box-shadow: var(--wt-shadow-card);
}
@media (min-width: 768px) {
  .wt-social-composer {
    bottom: 12px;
  }
}
.wt-social-composer__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--wt-text-secondary);
}
.wt-social-composer__cancel {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-body-soft);
  font-size: 14px;
  text-decoration: none;
}
.wt-social-composer__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.wt-social-composer__input {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  padding: 12px 14px;
  border: 0;
  border-radius: 24px;
  background: var(--wt-surface-muted);
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-size: 14px;
  line-height: 1.4;
  resize: none;
}
.wt-social-composer__input:focus {
  outline: 2px solid var(--wt-primary);
}
.wt-social-composer__send {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 24px;
  background: var(--wt-gradient-brand);
  font-size: 16px;
}
/* The gone / error cards (XAML:471-494) */
.wt-social-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
}
.wt-social-state__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--wt-text);
}
.wt-social-state__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--wt-text-secondary);
}
.wt-social-state__action {
  width: auto;
  margin-top: 6px;
  min-height: 48px;
  padding: 12px 24px;
}
