:root {
  --phoenix-primary: #7b1414;
  --phoenix-primary-rgb: 123, 20, 20;
  --wsu-maroon: #7b1414;
  --wsu-maroon-dark: #3d0a0a;
  --wsu-maroon-mid: #6b1212;
  --wsu-gold: #ffd477;
  --wsu-gold-deep: #d4950a;
}

/* ---- Phoenix typography on AppYard blend ---- */
body.appyard-blend {
  font-family: var(--phoenix-body-font-family);
  font-size: var(--phoenix-body-font-size);
  font-weight: var(--phoenix-body-font-weight);
  line-height: var(--phoenix-body-line-height);
  letter-spacing: 0.01em;
}

body.appyard-blend h1,
body.appyard-blend h2,
body.appyard-blend h3,
body.appyard-blend h4,
body.appyard-blend h5,
body.appyard-blend h6,
body.appyard-blend .fw-bolder {
  font-family: var(--phoenix-font-sans-serif);
  letter-spacing: -0.02em;
}

body.appyard-blend .code {
  font-family: var(--phoenix-font-monospace);
}

body.appyard-blend .ay-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
}

.ay-nav .logo-text {
  color: #fff;
  font-weight: 700;
}

.ay-nav .logo-text .text-primary {
  color: var(--wsu-gold) !important;
}

.ay-nav .brand {
  flex-direction: row;
  align-items: center;
}

.brand-logo-wide {
  width: auto;
  max-width: min(280px, 42vw);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1000px) {
  .brand-logo-wide {
    max-width: min(220px, 55vw);
    height: 40px;
  }
}

.ay-nav .navlinks .nav-link {
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
}

.ay-nav .navlinks .nav-link:hover,
.ay-nav .navlinks .nav-link:focus {
  color: var(--wsu-gold);
}

.ay-nav .ay-btn-ghost {
  --phoenix-btn-color: #fff;
  --phoenix-btn-border-color: rgba(255, 255, 255, 0.35);
  --phoenix-btn-hover-color: var(--wsu-gold);
  --phoenix-btn-hover-border-color: var(--wsu-gold);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.ay-nav .ay-btn-ghost:hover {
  color: var(--wsu-gold);
  border-color: var(--wsu-gold);
}

.hero .eyebrow {
  color: var(--wsu-gold);
  letter-spacing: 0.08em;
}

.hero .catalog-search .form-control {
  background: transparent;
  min-width: 0;
}

.hero .catalog-search .form-control:focus {
  box-shadow: none;
}

.hero .try-chip {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 24, 43, 0.35);
}

.hero .try-chip:hover {
  color: var(--wsu-gold);
  border-color: var(--wsu-gold);
}

.hero .hstat .num {
  color: var(--wsu-gold);
  font-family: var(--phoenix-font-sans-serif);
}

.hero-float-panel .form-check-input {
  accent-color: var(--wsu-gold);
  margin-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-panel,
  .hero-float-ring,
  .hero-stat-slide.is-active,
  .hero-stat-grid span {
    animation: none !important;
  }
  .hero-float-panel::after {
    display: none;
  }
  .hero-stat-slide {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

.section-head .btn-link {
  color: var(--ledger);
  text-decoration: none;
}

.section-head .btn-link:hover {
  color: var(--wsu-maroon);
}

.catalog-row.head {
  font-family: var(--phoenix-font-sans-serif);
  letter-spacing: 0.04em;
}

.ptag {
  font-family: var(--phoenix-font-sans-serif);
  font-size: 0.64rem;
  font-weight: 700;
}

.btn-primary,
.bg-primary {
  --bs-primary: #7b1414;
  --bs-primary-rgb: 123, 20, 20;
}

.text-primary { color: #7b1414 !important; }

.yard-product-thumb {
  min-height: 160px;
  background: var(--phoenix-body-bg, #fff);
  overflow: hidden;
}

.yard-product-thumb .yard-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wsu-gold, #C89B3C);
  border: 1px solid rgba(200, 155, 60, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  box-shadow: none;
}

[data-bs-theme="dark"] .yard-product-thumb .yard-featured-badge {
  background: rgba(27, 36, 64, 0.88);
  color: #e8c878;
  border-color: rgba(200, 155, 60, 0.4);
}

.yard-product-thumb .product-verified-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.whooping-banner.wsu-appyard-banner {
  background: var(--wsu-green-banner, linear-gradient(135deg, #3C5C49 0%, #2d4a3a 100%));
  min-height: 180px;
  padding: 32px 40px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #EFF4EE;
}

.whooping-banner.wsu-appyard-banner .banner-text {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 8px 0;
}

.whooping-banner.wsu-appyard-banner .banner-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wsu-gold);
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.whooping-banner.wsu-appyard-banner .banner-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.whooping-banner.wsu-appyard-banner .banner-lede {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(239, 244, 238, 0.88);
  line-height: 1.55;
  max-width: 480px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.whooping-banner.wsu-appyard-banner .gradient-text {
  color: var(--wsu-gold);
  background: none;
  -webkit-text-fill-color: var(--wsu-gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.gradient-text {
  background: linear-gradient(90deg, #ffd477, #f0c060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yard-cat-icon.active .icon-container {
  border: none;
  color: var(--phoenix-primary);
}

.yard-cat-icon.active .nav-label {
  font-weight: 700;
  color: var(--phoenix-primary);
}

body.appyard-blend .yard-cat-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  min-width: 72px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

body.appyard-blend .yard-cat-icon .icon-container {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
  border: none;
}

body.appyard-blend .yard-cat-icon:hover .icon-container {
  background: var(--phoenix-primary);
  color: #fff;
}

body.appyard-blend .yard-cat-icon:hover .icon-container span {
  color: #fff !important;
}

body.appyard-blend .yard-cat-icon .nav-label {
  font-size: 0.8rem;
  margin: 0;
  color: var(--ink-text, #1b2440);
}

/* Phoenix icon boxes — catalog, detail, cards */
.yard-phoenix-icon {
  flex-shrink: 0;
  background: var(--phoenix-primary-bg-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yard-phoenix-icon-sm {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.yard-phoenix-icon-md {
  width: 58px;
  height: 58px;
}

.yard-phoenix-icon-lg {
  width: 120px;
  height: 120px;
}

.yard-phoenix-icon-img img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.catalog-row .yard-phoenix-icon-sm {
  margin: 0 auto;
}

.faculty-pill {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faculty-pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--phoenix-primary-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--phoenix-primary);
}

.faculty-pill:hover .faculty-pill-icon,
.faculty-pill.active .faculty-pill-icon {
  background: var(--phoenix-primary);
  color: #fff;
}

.catalog-search .catalog-search-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  opacity: 0.45;
  padding-left: 4px;
}

.hero .catalog-search .catalog-search-icon {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.yard-product-thumb .yard-phoenix-icon-lg {
  background: var(--phoenix-primary-bg-subtle);
}

#yard-results.yard-loading { opacity: 0.55; pointer-events: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card-phoenix {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.review-reply-phoenix {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-left: 3px solid #7b1414;
  background: var(--bs-body-highlight-bg);
}

.logo-text .text-primary,
.brand-accent { color: var(--wsu-gold) !important; }

body.appyard-blend .section-featured .product-card { height: 100%; }

body.appyard-blend .section-featured .product-name {
  font-family: var(--phoenix-font-sans-serif, "Nunito Sans", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

body.appyard-blend .swiper-theme-container { position: relative; }

body.appyard-blend .theme-control-toggle .theme-control-toggle-label {
  color: rgba(239, 233, 216, 0.85);
}

body.appyard-blend .theme-control-toggle .theme-control-toggle-label .icon {
  width: 18px;
  height: 18px;
}

[data-bs-theme="dark"] body.appyard-blend .yard-cat-icon .icon-container {
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .ay-cat-strip .yard-cat-icon .icon-container {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

[data-bs-theme="dark"] body.appyard-blend .yard-cat-icon .nav-label {
  color: var(--bs-body-color);
}
