/* ─────────────────────────────────────────────────────────────────────────
   align.css — Canada Beef design system alignment
   Source: designsystem.cdnbeef.ca / static/_design-reference/css/tokens.css
   Loaded last in style.html; wins by source order over style.css/custom.css.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  --cb-red:        #960B10;
  --cb-red-deep:   #6B0509;
  --cb-ink:        #111111;
  --cb-ink-2:      #333333;
  --cb-ink-3:      #666666;
  --cb-rule:       #1A1A1A;
  --cb-paper:      #FFFFFF;
  --cb-paper-warm: #FBF7F2;
  --cb-paper-2:    #F3EFE9;

  /* Tweakable knobs matching design system */
  --t-radius:      2px;   /* chips, inputs, buttons, label bars */
  --t-radius-card: 12px;  /* cards */
  --t-bw:          1.5px;
  --t-bw-card:     1.5px;
}

/* ── Font: unify all Adobe/Google font classes to Archivo ── */

body,
.font-oswald,
.font-gibson,
.font-eurostile,
.font-proxima-nova,
.font-helvetica {
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Heading scale — design system spec ── */

h1 {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
h4 {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
h5, h6 {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* Tailwind size utilities override element rules — re-apply correct treatment */
.text-3xl { font-family: "Archivo", sans-serif; font-weight: 700;  letter-spacing: -0.005em; line-height: 1.15; }
.text-4xl { font-family: "Archivo", sans-serif; font-weight: 800;  letter-spacing: -0.01em;  line-height: 1.05; }
.text-5xl { font-family: "Archivo", sans-serif; font-weight: 800;  letter-spacing: -0.015em; line-height: 1.02; }
.text-6xl,
.text-7xl,
.text-8xl,
.text-9xl { font-family: "Archivo", sans-serif; font-weight: 900;  letter-spacing: -0.02em;  line-height: 0.98; }

/* ────────────────────────────────────────────────────────────
   BUTTONS — design system: cb-btn-primary / cb-btn-secondary
   ──────────────────────────────────────────────────────────── */

/* Define the design system button classes */
.cb-btn-primary,
.cb-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 16px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
  text-decoration: none;
}
.cb-btn-primary {
  background: var(--cb-red);
  color: #fff;
  border: none;
}
.cb-btn-primary:hover  { background: var(--cb-red-deep); color: #fff; }
.cb-btn-secondary {
  background: #fff;
  color: var(--cb-ink);
  border: 1.5px solid var(--cb-ink);
}
.cb-btn-secondary:hover { background: var(--cb-ink); color: #fff; }

/* Existing Tailwind buttons: sharp corners + design system type treatment */
.rounded-full { border-radius: 2px !important; }
.rounded-xl   { border-radius: 12px !important; } /* card-level rounding */
.rounded-lg   { border-radius: 4px !important; }
.rounded-md   { border-radius: 2px !important; }
.rounded      { border-radius: 2px !important; }

[class*="primary-bg"][class*="uppercase"],
[class*="accent-bg"][class*="uppercase"],
button[class*="uppercase"],
a[class*="py-"][class*="px-"][class*="uppercase"] {
  font-family: "Archivo", ui-sans-serif, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ────────────────────────────────────────────────────────────
   CARDS — design system: cb-card-hover
   Border: 1.5px solid --cb-rule  |  Radius: 12px  |  White bg
   Hover: lift shadow
   ──────────────────────────────────────────────────────────── */

/* Define the design system card class */
.cb-card-hover {
  background: var(--cb-paper);
  border: var(--t-bw-card) solid var(--cb-rule);
  border-radius: var(--t-radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}
.cb-card-hover:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

/* Override aggressive pulse on nomination button */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); box-shadow: 4px 4px 0 #111111; }
  50%       { transform: scale(1.015); box-shadow: 5px 5px 0 #111111; }
}
#nomination-banner-button {
  animation: pulse-subtle 2.5s ease-in-out infinite !important;
  filter: none !important;
}

/* Nomination CTA button */
.nomination-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #960B10;
  color: #ffffff;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 2px solid #111111;
  border-radius: 0;
  box-shadow: 4px 4px 0 #111111;
  transition: box-shadow 100ms ease-out, transform 100ms ease-out;
  text-decoration: none;
  white-space: nowrap;
}
.nomination-cta-btn:hover {
  box-shadow: 6px 6px 0 #111111;
  transform: translate(-1px, -1px);
  color: #ffffff;
  text-decoration: none;
}

/* Article card */
.article-card {
  border: 2px solid #111111 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 5px 5px 0 #111111;
  transition: box-shadow 100ms ease-out, transform 100ms ease-out;
  background-image: none !important;
}
.article-card:hover {
  box-shadow: 7px 7px 0 #111111;
  transform: translate(-1px, -1px);
}
.article-card h3 {
  color: #111111 !important;
}
.card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dish / nomination / menu-item cards: clean white */
.grid.grid-cols-4 {
  background: var(--cb-paper);
  background-image: none !important;
}

/* Episode/show cards that use rounded-xl are already handled above (12px) */

/* Replace Tailwind soft shadows with design system card shadow */
.shadow-2xl { box-shadow: 0 8px 24px rgba(0,0,0,0.13) !important; }
.shadow-xl  { box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important; }
.shadow-lg  { box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important; }
.drop-shadow-lg { filter: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

/* ── Label badges inside cards ("RECIPE", "ARTICLE", "PRODUCT") ── */
/* Matches design system: red bg, white, 11px, weight 700, uppercase, 0.06em, 2px radius */
.label-bar,
[class*="primary-bg"][class*="text-white"][class*="uppercase"]:not(a):not(button) {
  background: var(--cb-red) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 2px;
  line-height: 1;
  display: inline-block;
}

/* News list item headings (Eurostile → Archivo) */
h2.font-eurostile {
  font-family: "Archivo", ui-sans-serif, sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.font-gibson.italic {
  font-family: "Archivo", ui-sans-serif, sans-serif !important;
  font-weight: 400;
}

/* ── Primary colour (inline <style> block comes after this file → !important) ── */
.primary-bg                 { background-color: #960B10 !important; }
.primary-text               { color: #960B10 !important; }
.primary-border             { border-color: #960B10 !important; }
.primary-hover:hover        { background-color: #6B0509 !important; }
.primary-border-hover:hover { border-color: #960B10 !important; }

/* Hardcoded legacy red in PDF card border */
.border-\[\#C30339\] { border-color: #960B10 !important; }
