/* Shared public UI — links, buttons, panels (homepage-aligned) */

.site-brand-app {
  --uoe-border: var(--ps-border);
  --uoe-neutral-bg: var(--ps-surface-soft);
  --radius-primary: 6px;
  --radius-secondary: 8px;
  --radius-panel: 12px;
  --shadow-panel: 0 4px 14px rgba(0, 33, 71, 0.06);
}

/* —— Links —— */

.link-inline {
  color: var(--ps-navy);
  text-decoration: none;
  font-weight: 600;
}

.link-inline:hover,
.link-inline:focus-visible {
  color: var(--ps-accent-dark);
  text-decoration: underline;
}

.link-secondary {
  color: var(--ps-accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.link-secondary:hover,
.link-secondary:focus-visible {
  color: var(--ps-accent);
  text-decoration: underline;
}

.link-back {
  color: var(--ps-navy);
  text-decoration: none;
  font-weight: 600;
}

.link-back:hover,
.link-back:focus-visible {
  color: var(--ps-accent-dark);
  text-decoration: underline;
}

/* —— Buttons —— */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  border: 1px solid var(--ps-navy);
  border-radius: var(--radius-primary);
  background: var(--ps-navy);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #00335f;
  border-color: #00335f;
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  min-height: 36px;
  border: 1px solid var(--uoe-border);
  border-radius: var(--radius-secondary);
  background: var(--ps-surface);
  color: var(--ps-navy);
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-secondary:hover:not(:disabled):not(.is-disabled),
.btn-secondary:focus-visible:not(:disabled):not(.is-disabled) {
  border-color: var(--ps-accent);
  color: var(--ps-accent-dark);
  background: var(--ps-accent-soft);
}

.btn-secondary.is-active,
.btn-secondary[aria-pressed="true"],
.btn-secondary[aria-selected="true"] {
  background: var(--ps-navy);
  border-color: var(--ps-navy);
  color: #ffffff;
}

.btn-secondary.is-active:hover,
.btn-secondary.is-active:focus-visible,
.btn-secondary[aria-pressed="true"]:hover,
.btn-secondary[aria-pressed="true"]:focus-visible,
.btn-secondary[aria-selected="true"]:hover,
.btn-secondary[aria-selected="true"]:focus-visible {
  background: var(--ps-accent-dark);
  border-color: var(--ps-accent-dark);
  color: #ffffff;
}

.btn-secondary.is-disabled,
.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* —— Panels —— */

.surface-panel {
  border: 1px solid var(--uoe-border);
  border-radius: var(--radius-panel);
  background: var(--ps-surface);
  box-sizing: border-box;
}

.surface-panel--accent {
  border-left: 3px solid var(--ps-accent);
}

.surface-panel--shadow {
  box-shadow: var(--shadow-panel);
}

.surface-panel__content {
  background: var(--uoe-neutral-bg);
}

/* —— Tags / pills —— */

.tag,
.pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--ps-accent-soft);
  color: var(--ps-accent-dark);
  border: 1px solid rgba(0, 79, 113, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.tag--featured,
.pill--featured {
  background: var(--ps-burgundy-soft);
  color: var(--ps-burgundy);
  border-color: rgba(197, 0, 62, 0.2);
}

/* —— Content-type cue icons (Lucide-style outlines) —— */

.poster-card--preview,
.collection-card-home,
.blog-card,
.abstract-card,
.presentation-card-home,
.collection-slide-deck-card {
  position: relative;
}

.content-type-icon {
  position: absolute;
  right: 12px;
  bottom: 11px;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  color: #355f86;
  pointer-events: none;
  line-height: 0;
}

.content-type-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* —— Focus (poster/public controls) —— */

.site-brand-app .link-inline:focus-visible,
.site-brand-app .link-secondary:focus-visible,
.site-brand-app .link-back:focus-visible,
.site-brand-app .btn-primary:focus-visible,
.site-brand-app .btn-secondary:focus-visible,
.site-brand-app .accordion-header:focus-visible,
.site-brand-app .audio-player__seek:focus-visible,
.site-brand-app .poster-sample__viewport:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 2px;
}
