/* MRTINNED VISUAL SYSTEM V1 */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-alt: #fbfaf7;
  --text: #17212f;
  --muted: #5e6a78;
  --navy: #16304a;
  --border: #d9e0e7;
  --shadow: 0 10px 24px rgba(22, 48, 74, 0.08);
  --shadow-hover: 0 16px 30px rgba(22, 48, 74, 0.14);
  --radius: 18px;
  --page-width: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

main,
header,
section,
footer,
.page-container,
.page-shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem 0;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.4rem 0;
}

p,
li,
td,
th,
label,
input,
select {
  line-height: 1.5;
}

nav.hub-nav,
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  margin: 0;
  width: 100%;
  background: rgba(22, 48, 74, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

nav.hub-nav a,
body > nav a {
  color: #f8fafc;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}

nav.hub-nav a:hover,
body > nav a:hover {
  background: rgba(255,255,255,0.12);
}

section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hero-card,
.hero-section,
[data-home-hero] {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,250,247,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 2rem;
}

.section-header {
  margin-bottom: 1rem;
}

.card-grid,
[data-card-grid] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tin-card,
[data-tin-card] {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tin-card:hover,
[data-tin-card]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #c8d2dd;
}

.tin-card img,
[data-tin-card] img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #edf1f5;
}

.signal-badge,
[data-signal-badge] {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-badge.price-drop,
[data-signal-badge="PRICE DROP"] { background: #b42318; }
.signal-badge.best-price,
[data-signal-badge="BEST PRICE"] { background: #0f766e; }
.signal-badge.new-tin,
[data-signal-badge="NEW TIN"] { background: #1d4ed8; }
.signal-badge.restock,
[data-signal-badge="RESTOCK"] { background: #7c3aed; }

.tin-meta,
.tin-brand,
.tin-species,
.tin-retailer {
  color: var(--muted);
}

.tin-price {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy);
}

\n.muted-dot{opacity:.55;}\n

.search-box{
  margin: 0 0 1rem 0;
}
.search-box input{
  width: 100%;
  max-width: 32rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: inherit;
  border-radius: .75rem;
  font: inherit;
}


.decision-brand-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  align-items:flex-start;
}

.decision-brand-grid .tin-card{
  width:16rem;
  flex:0 0 16rem;
}
