/* ============================================================
   HomeBarPro — Site-Wide Stylesheet
   Generated by site-factory
   ============================================================ */

/* --- CSS Variables / Theme --- */
:root {
  --primary: #c53030;
  --primary-light: #fed7d7;
  --primary-dark: #522224;
  --accent: #2b6cb0;
  --bg: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-card: #ffffff;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 6px;
  --max-width: 1100px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
figure { margin: 1.5rem 0; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.2rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

/* --- Header / Nav --- */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav-brand:hover { color: var(--primary); }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem; }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
}

/* --- Main Content --- */
main { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem; min-height: 60vh; }

/* --- Hero Section (Homepage) --- */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; color: #fff; margin-bottom: 0.75rem; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 650px; margin: 0 auto 1.5rem; }

/* --- Hero Search --- */
.hero-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255,255,255,0.95);
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search input::placeholder { color: #6b7280; }
.hero-search input:focus {
  outline: none;
  border-color: var(--primary, #c53030);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197,48,48,0.15);
}
.hero-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}
.search-results {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.search-results a {
  color: var(--text, #1a1a2e);
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover,
.search-results a:focus {
  background: var(--bg-secondary, #f0f4f8);
}

/* --- Article Grid --- */
.section-title {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}
.article-card-body {
  padding: 1.25rem;
}
.article-card-body h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.article-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}
.article-card-body h3 a:hover { color: var(--primary); }
.article-card-body .meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.article-card-body .excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.tag-new { background: #ffebee; color: #c62828; }

/* --- Article Page --- */
article { max-width: 780px; margin: 0 auto; }
article h1 { font-size: 2rem; margin-bottom: 0.5rem; }
article .byline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- TLDR / Key Takeaways --- */
.key-takeaways {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.key-takeaways h3 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.key-takeaways ul { margin-bottom: 0; }

/* --- Product Card (for roundups) --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.product-card h3 { margin-top: 0; }
.product-card h3 a { color: var(--text); text-decoration: none; }
.product-card h3 a:hover { color: var(--primary); }

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
thead { background: var(--bg-secondary); }
th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 600; }

/* --- Author Bio --- */
.author-bio {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 0.25rem; }
.author-info p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* --- Related Articles --- */
.related-articles {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.related-articles h3 { margin-top: 0; }
.related-articles ul { margin: 0; }

/* --- Disclaimer --- */
.disclaimer {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
footer .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
footer h4 { margin-top: 0; font-size: 0.95rem; margin-bottom: 0.75rem; }
footer a { color: var(--text-secondary); text-decoration: none; display: block; margin-bottom: 0.3rem; }
footer a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
}

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 1rem 1.5rem;
  z-index: 10000;
  display: none;
  animation: slideUp 0.3s ease-out;
}
.cookie-consent.show { display: block; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cookie-consent-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}
.cookie-consent-text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: var(--primary-dark, var(--primary));
}
.cookie-btn-reject {
  background: var(--border);
  color: var(--text);
}
.cookie-btn-reject:hover {
  background: var(--text-muted, var(--text-secondary));
  color: #fff;
}
.cookie-btn-settings {
  background: transparent;
  color: var(--text-secondary);
  text-decoration: underline;
  font-weight: 400;
}
.cookie-btn-settings:hover {
  color: var(--text);
}

/* Cookie Settings Panel */
.cookie-settings {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-settings.show { display: flex; }
.cookie-settings-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
}
.cookie-settings-panel h3 {
  margin-bottom: 1.5rem;
  color: var(--text);
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cookie-option:last-child {
  border-bottom: none;
}
.cookie-option-label { flex: 1; }
.cookie-option-label strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.cookie-option-label span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 26px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle input:checked + .toggle-slider:before {
  transform: translateX(22px);
}
.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-buttons {
    justify-content: center;
  }
}

.btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }

/* --- Share Buttons --- */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .article-grid { grid-template-columns: 1fr; }
  footer .footer-content { grid-template-columns: 1fr 1fr; }
  .share-buttons { justify-content: center; }
}
@media (max-width: 480px) {
  footer .footer-content { grid-template-columns: 1fr; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }


/* ============================================================
   ARTICLE BODY LINKS — bold + italic (Aug 2026, fleet-wide)
   Internal article links (/pages/ incl. full-domain) and product
   links (/go/ redirects + amazon.co.uk) stand out in body text.
   Scoped to article bodies only — never nav, footer, homepage
   cards (.article-card), CTA buttons (.btn-affiliate/.affiliate-btn
   or pill links with inline background) or external citations.
   !important beats legacy inline font-weight:500/600 styles.
   Verified: 13 article formats hit, 5 card/nav/footer no-hit.
   ============================================================ */
article:not(.article-card) a:is([href*="/pages/"], [href^="/go/"], [href^="https://www.amazon.co.uk"], [href^="https://amazon.co.uk"]):not(.btn-affiliate):not(.affiliate-btn):not([style*="background:"]):not([style*="background:#"]),
main:has(> article:not(.article-card)) a:is([href*="/pages/"], [href^="/go/"], [href^="https://www.amazon.co.uk"], [href^="https://amazon.co.uk"]):not(.btn-affiliate):not(.affiliate-btn):not([style*="background:"]):not([style*="background:#"]),
main:has(.roundup-hero) a:is([href*="/pages/"], [href^="/go/"], [href^="https://www.amazon.co.uk"], [href^="https://amazon.co.uk"]):not(.btn-affiliate):not(.affiliate-btn):not([style*="background:"]):not([style*="background:#"]),
main:has(> h1):not(:has(.article-card)) a:is([href*="/pages/"], [href^="/go/"], [href^="https://www.amazon.co.uk"], [href^="https://amazon.co.uk"]):not(.btn-affiliate):not(.affiliate-btn):not([style*="background:"]):not([style*="background:#"]) {
  font-weight: 700 !important;
  font-style: italic;
}
/* Keep CTA buttons crisp: normal (not italic) on button-styled product links */
article:not(.article-card) a.btn-affiliate,
article:not(.article-card) a.affiliate-btn,
main:has(> article:not(.article-card)) a.btn-affiliate,
main:has(> article:not(.article-card)) a.affiliate-btn,
main:has(.roundup-hero) a.btn-affiliate,
main:has(.roundup-hero) a.affiliate-btn,
main:has(> h1):not(:has(.article-card)) a.btn-affiliate,
main:has(> h1):not(:has(.article-card)) a.affiliate-btn {
  font-style: normal;
}
