/*
Theme Name: Saltscapes
Theme URI: https://saltscapes.com
Description: Custom theme for Saltscapes magazine, matching the Atlantic Canada lifestyle brand.
Version: 1.0.0
Author: Jeff Merrick
Text Domain: saltscapes
*/

/* ============================================================
   FONTS
   Adobe Fonts equivalents: EB Garamond → adobe-garamond-pro
                             Nunito Sans → proxima-nova
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito+Sans:wght@400;600;700;800&family=Lobster&display=swap');

:root {
  --color-red:       #a11b27;
  --color-red-hover: #b1414b;
  --color-teal:      #005979;
  --color-teal-mid:  #0a6488;
  --color-teal-lt:   #0091ca;
  --color-black:     #000;
  --color-text:      #333;
  --color-text-lt:   #777;
  --color-border:    #ddd;
  --color-bg:        #fff;
  --color-bg-lt:     #f5f5f5;

  --font-serif:  'EB Garamond', garamond, georgia, serif;
  --font-sans:   'Nunito Sans', sans-serif;
  --font-deco:   'Lobster', cursive;

  --nav-height:  75px;
  --toolbar-h:   40px;
  --max-width:   1200px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  overflow-x: hidden; /* prevent any element from causing horizontal scroll */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
  background: var(--color-bg);
}

a { color: var(--color-teal-mid); text-decoration: none; }
a:hover { color: var(--color-red); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1.25em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; color: var(--color-teal-mid); font-style: italic; }
h3 { font-size: 1.25rem; color: var(--color-teal); font-weight: 700; }
h4 { font-size: 1.1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 30px 0;
}

.site-content.full-width {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; }
}

/* ============================================================
   TOOLBAR (top utility bar — black)
   ============================================================ */
#tm-toolbar {
  background: var(--color-black);
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
}

#tm-toolbar .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#tm-toolbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}

#tm-toolbar nav ul li a {
  display: block;
  padding: 0 12px;
  height: var(--toolbar-h);
  line-height: var(--toolbar-h);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

#tm-toolbar nav ul li a:hover {
  background: #222;
  color: #fff;
  text-decoration: none;
}

#tm-toolbar .toolbar-right ul li a {
  color: #ccc;
}

#tm-toolbar .search-item {
  display: flex;
  align-items: center;
}

#tm-toolbar .search-toggle {
  padding: 0 10px;
  height: var(--toolbar-h);
}

/* ============================================================
   NAVBAR (main red navigation bar)
   ============================================================ */
#site-header {
  background: var(--color-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
}

/* Logo */
.site-branding {
  flex-shrink: 0;
  padding-right: 20px;
}

.site-branding a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
}

.site-branding img,
.site-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

.site-branding .site-title {
  font-family: var(--font-deco);
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
}

/* Primary nav menu */
#primary-navigation {
  flex: 1;
}

#primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#primary-navigation > ul > li > a {
  display: block;
  padding: 0 15px;
  height: var(--nav-height);
  line-height: var(--nav-height);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

#primary-navigation > ul > li > a:hover,
#primary-navigation > ul > li.current-menu-item > a,
#primary-navigation > ul > li.current-menu-ancestor > a {
  background: var(--color-red-hover);
  text-decoration: none;
  color: #fff;
}

/* Dropdown */
#primary-navigation ul ul {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  min-width: 200px;
  background: var(--color-red);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 200;
  flex-direction: column;
}

#primary-navigation ul li {
  position: relative;
}

#primary-navigation ul li:hover > ul {
  display: flex;
}

#primary-navigation ul ul li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  line-height: 1.4;
  height: auto;
  white-space: nowrap;
}

#primary-navigation ul ul li a:hover {
  background: var(--color-red-hover);
  text-decoration: none;
}

/* Search toggle button (lives in black toolbar) */
.search-toggle {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 0 0 0 10px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.search-toggle:hover {
  color: #fff;
}

/* Search bar dropdown (below toolbar) */
#header-search {
  background: #222;
  padding: 10px 0;
}

#header-search form {
  display: flex;
  align-items: center;
  gap: 0;
}

#header-search input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
}

#header-search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.6);
}

#header-search input[type="search"]:focus {
  background: rgba(255,255,255,0.22);
}

#header-search button[type="submit"] {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#header-search button[type="submit"]:hover {
  background: rgba(255,255,255,0.1);
}

/* Toolbar mobile toggle — hidden on desktop */
.toolbar-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ccc;
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.toolbar-mobile-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
  .toolbar-mobile-toggle { display: inline-flex; align-items: center; gap: 5px; }

  /* Let toolbar grow to fit the dropdown */
  #tm-toolbar {
    height: auto;
    min-height: var(--toolbar-h);
    align-items: flex-start;
    overflow: visible;
    position: relative;
    z-index: 200;
  }

  /* Toolbar container stacks vertically on mobile */
  #tm-toolbar .site-container {
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 16px;
    gap: 6px;
  }

  /* Toolbar left nav hidden by default; shown when toggle is active */
  #toolbar-left-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  #toolbar-left-nav.is-open { display: block; }
  /* Use display:block on ul to avoid inheriting flex layout from desktop rule */
  #toolbar-left-nav ul {
    display: block !important;
    padding: 4px 0 10px;
    margin: 0;
  }
  #toolbar-left-nav ul li { display: block; }
  /* !important overrides the higher-specificity desktop rule (#tm-toolbar nav ul li a) */
  #toolbar-left-nav ul li a {
    display: block !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    height: auto !important;
    line-height: 1.4 !important;
  }

  /* Right side: shrink on mobile */
  .toolbar-right { order: 2; }
  .toolbar-right ul { gap: 0; }
  .toolbar-right ul li a { padding: 0 8px; font-size: 0.78rem; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 15px;
  height: var(--nav-height);
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; align-items: center; }
  /* Navbar wraps so the open nav can occupy its own full-width row */
  .navbar-inner { flex-wrap: wrap; height: auto; min-height: var(--nav-height); }
  #primary-navigation { display: none; width: 100%; order: 3; }
  /* Give open nav a background so it doesn't blend into page content below */
  #primary-navigation.is-open { display: block; background: var(--color-red); padding-bottom: 8px; }
  #primary-navigation ul { flex-direction: column; }
  #primary-navigation > ul > li > a { height: auto; line-height: 1.4; padding: 12px 15px; }
  #primary-navigation ul ul { position: static; box-shadow: none; display: none; }
  #primary-navigation ul li.is-open > ul { display: flex; }
}

/* ============================================================
   HERO — brand hero (homepage)
   ============================================================ */
.site-hero-brand {
  background: url('images/home-header.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.site-hero-brand img {
  max-width: 480px;
  width: 60%;
  height: auto;
}

@media (max-width: 600px) {
  .site-hero-brand {
    min-height: 200px;
  }
  .site-hero-brand img {
    width: 80%;
  }
}

/* ============================================================
   HERO — category pages
   ============================================================ */
.category-hero {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}

.category-hero-overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  padding: 24px 32px 20px;
}

.category-hero-overlay h1 {
  color: #fff;
  font-size: 2.2rem;
  font-family: 'Georgia', serif;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
  .category-hero {
    min-height: 180px;
  }
  .category-hero-overlay h1 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   HERO (homepage featured story)
   ============================================================ */
.site-hero {
  position: relative;
  background: #111;
  overflow: hidden;
  max-height: 520px;
}

.site-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  opacity: 0.7;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.hero-caption .hero-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffcc00;
  margin-bottom: 8px;
}

.hero-caption h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  margin-bottom: 0;
}

.hero-caption h1 a {
  color: #fff;
  text-decoration: none;
}

.hero-caption h1 a:hover {
  text-decoration: underline;
  color: #fff;
}

/* ============================================================
   ARTICLE CARDS (grid/archive)
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-bg-lt);
  margin-bottom: 14px;
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.03);
}

.article-card .card-category {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-red);
  margin-bottom: 6px;
}

.article-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 8px;
}

.article-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card .card-title a:hover {
  color: var(--color-red);
}

.article-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-lt);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-meta {
  font-size: 0.75rem;
  color: var(--color-text-lt);
  margin-top: auto;
  padding-top: 8px;
}

/* ============================================================
   ARCHIVE FEATURED ARTICLE
   ============================================================ */

.archive-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.archive-featured-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.archive-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.archive-featured:hover .archive-featured-image img {
  transform: scale(1.03);
}

.archive-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px 32px;
  background: #fafafa;
}

.archive-featured-category {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.archive-featured-category a { color: var(--color-red); text-decoration: none; }

.archive-featured-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}
.archive-featured-title a { color: inherit; text-decoration: none; }
.archive-featured-title a:hover { color: var(--color-red); }

.archive-featured-byline {
  font-size: 0.78rem;
  color: var(--color-text-lt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-featured-excerpt {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--color-text-lt);
}

.btn-continue-reading {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 20px;
  text-decoration: none;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.btn-continue-reading:hover { opacity: 0.85; color: #fff; }

@media (max-width: 720px) {
  .archive-featured { grid-template-columns: 1fr; }
  .archive-featured-image { aspect-ratio: 16/9; }
  .archive-featured-body { padding: 24px 20px; }
  .archive-featured-title { font-size: 1.35rem; }
}

/* ============================================================
   SECTION HEADING (category section title bar)
   ============================================================ */
.section-heading {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--color-red);
  padding-bottom: 10px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-teal);
  font-style: normal;
  font-weight: 700;
  margin: 0;
}

.section-heading a {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-red);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-article {
  max-width: 800px;
}

.article-header {
  margin-bottom: 30px;
}

.article-header .article-category {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 12px;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-text);
  text-shadow: none;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 16px;
}

.article-header .article-meta {
  font-size: 0.8rem;
  color: var(--color-text-lt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.article-featured-image {
  margin-bottom: 30px;
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* The actual img is hidden — background-image does the visual work */
.article-featured-image .hero-img-hidden {
  visibility: hidden;
  width: 100%;
  height: 100%;
  display: block;
}

.recipe-bottom-image {
  margin: 28px 0 8px;
}

.recipe-bottom-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .article-featured-image { height: 220px; }
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.article-body p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #000;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  color: var(--color-teal-mid);
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 1.5em;
  color: var(--color-teal);
}

.article-body a {
  color: var(--color-teal-mid);
  text-decoration: underline;
}

.article-body blockquote {
  border-left: 4px solid var(--color-red);
  margin: 2em 0;
  padding: 0 0 0 20px;
  font-style: italic;
  color: var(--color-teal);
  font-size: 1.2rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  padding-top: 10px;
}

.sidebar .widget {
  margin-bottom: 36px;
}

.sidebar .widget-title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--color-teal);
  padding: 8px 12px;
  margin: 0;
}

/* Most Popular widget — full teal box */
.widget-most-popular {
  background: var(--color-teal);
  margin-bottom: 36px;
}

.widget-most-popular .widget-title {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.widget-most-popular-body {
  padding: 16px 14px;
}

.popular-item {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.popular-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-item-title {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.popular-item-title:hover { color: rgba(255,255,255,0.8); }

.popular-item-excerpt {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s;
}

.pagination .page-numbers:hover,
.pagination .current {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #111;
  color: #ccc;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.4fr;
  gap: 30px 24px;
  margin-bottom: 40px;
}

.footer-viewsletter {
  /* sits in the 4th column alongside the other widgets */
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: #888;
  font-size: 0.8rem;
  margin-top: 10px;
}

.footer-logo {
  max-height: 36px;
  width: auto;
  opacity: 0.85;
}

.footer-widget h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 14px;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 6px;
}

.footer-widget ul li a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-widget ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-canada {
  text-align: right;
  margin-bottom: 20px;
}

.footer-canada img {
  max-height: 40px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #666;
}

/* Social icons */
.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #666;
  border-radius: 50%;
  color: #ccc;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.footer-social-icons a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-social-icons svg {
  width: 16px;
  height: 16px;
}

/* Viewsletter form */
.viewsletter-desc {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-viewsletter input {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.footer-viewsletter input::placeholder {
  color: #777;
}

.footer-viewsletter button {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 9px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 4px;
}

.footer-viewsletter button:hover {
  background: #a93226;
}

.viewsletter-msg {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 8px;
  min-height: 1.2em;
}

/* Legacy footer-social list (unused, kept for safety) */
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social li {
  margin-bottom: 6px;
}

.footer-social a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-social a:hover {
  color: #fff;
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-header {
  margin-bottom: 32px;
}

.search-header .search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-header .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.search-header .search-submit {
  background: var(--color-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-header .search-submit:hover {
  background: var(--color-red-hover);
}

.search-summary {
  font-size: 0.9rem;
  color: #666;
}

.search-no-results p {
  color: #555;
  margin-bottom: 20px;
}

.search-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-category-links a {
  background: #f4f4f4;
  color: var(--color-teal);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.search-category-links a:hover {
  background: var(--color-teal);
  color: #fff;
}

/* ============================================================
   UTILITY
   ============================================================ */
.screen-reader-text {
  position: absolute;
  left: -9999em;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alignleft  { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--color-text-lt); text-align: center; margin-top: 4px; }

/* ============================================================
   RESOURCES PAGE — 6-card grid
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 0;
}

.resource-card {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}

.resource-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.resource-card-img {
  background-size: cover;
  background-position: center;
  height: 200px;
}

.resource-card-label {
  background: var(--color-red);
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 12px 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HOMEPAGE — intro tagline
   ============================================================ */
.home-intro {
  text-align: center;
  padding: 32px 20px 24px;
  font-style: italic;
  font-size: 1.15rem;
  color: #555;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   HOMEPAGE — promo tiles
   ============================================================ */
.home-promo-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.promo-tile {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.promo-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.promo-tile:hover img {
  transform: scale(1.04);
}

.promo-tile span {
  display: block;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 10px 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ============================================================
   HOMEPAGE — featured article
   ============================================================ */
.home-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  max-width: 1200px;
  margin: 0 auto 40px;
  background: #fff;
}

.featured-img-wrap {
  position: relative;
}

.featured-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.featured-title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.93);
  padding: 16px 24px 18px;
  text-align: center;
}

.feature-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #c0392b;
  margin-bottom: 6px;
  font-weight: normal;
}

.featured-title {
  font-family: 'Georgia', serif;
  font-size: 1.7rem;
  font-weight: normal;
  margin: 0;
  color: #222;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-meta {
  padding: 32px 32px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #c0392b;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.featured-byline {
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #333;
  margin: 0 0 4px;
}

.featured-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 16px 0 24px;
}

.btn-continue {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-continue:hover {
  background: #96281b;
}

/* ============================================================
   HOMEPAGE — recent articles strip
   ============================================================ */
.home-recent-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 48px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.strip-card {
  display: block;
  text-decoration: none;
  color: #222;
  border-right: 1px solid #e0e0e0;
}

.strip-card:last-child {
  border-right: none;
}

.strip-img {
  position: relative;
}

.strip-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.strip-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  line-height: 1;
}

.strip-card p {
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 8px 10px;
  margin: 0;
  font-style: italic;
}

.strip-card:hover p {
  color: #c0392b;
}

/* ============================================================
   HOMEPAGE — current issue
   ============================================================ */
.home-current-issue {
  background: #f5f5f5;
  padding: 40px 20px;
  margin-bottom: 0;
}

.current-issue-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.issue-cover {
  width: 180px;
  height: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.issue-info {
  text-align: center;
}

.issue-info h3 {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0 0 6px;
  color: #222;
}

.issue-date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #888;
  margin: 0 0 20px;
}

.btn-issue-login {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 9px 28px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-issue-login:hover {
  background: #96281b;
}

/* ============================================================
   HOMEPAGE — featured recipes
   ============================================================ */
.home-recipes {
  background: #1a5f6e;
  padding: 48px 20px;
}

.recipes-heading {
  text-align: center;
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: normal;
  color: #fff;
  margin: 0 0 36px;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.recipe-item {
  display: block;
  text-decoration: none;
  text-align: center;
  color: #fff;
}

.recipe-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.3);
}

.recipe-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.recipe-item:hover .recipe-circle img {
  transform: scale(1.08);
}

.recipe-item p {
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

/* ============================================================
   HOMEPAGE — responsive
   ============================================================ */
@media (max-width: 900px) {
  .home-promo-tiles { grid-template-columns: repeat(2, 1fr); }
  .home-featured { grid-template-columns: 1fr; }
  .featured-img-wrap img { height: 280px; }
  .featured-meta { padding: 24px; }
  .home-recent-strip { grid-template-columns: repeat(3, 1fr); }
  .home-recent-strip .strip-card:nth-child(3) { border-right: none; }
  .recipes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .home-promo-tiles { grid-template-columns: repeat(2, 1fr); }
  .home-recent-strip { grid-template-columns: repeat(2, 1fr); }
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .current-issue-inner { flex-direction: column; }
}

/* ============================================================
   ARTICLE — byline / photo credits
   ============================================================ */
.article-byline,
.article-photo-credit,
.article-header-credit,
.article-date {
  display: block;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #333;
  margin-bottom: 3px;
}

.article-photo-credit,
.article-header-credit {
  color: #666;
  font-weight: normal;
}

.article-date {
  color: #888;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-top: 6px;
}


/* ============================================================
   SECTION SUBNAV (Kitchen Party recipe nav bar)
   ============================================================ */
.section-subnav {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-teal);
  padding: 0 20px;
  margin-bottom: 24px;
}

.section-subnav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-right: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s;
}

.section-subnav a:hover {
  background: rgba(255,255,255,0.15);
}

.section-subnav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.section-subnav-search input[type="search"] {
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  width: 180px;
  border-radius: 2px 0 0 2px;
  outline: none;
}

.section-subnav-search input[type="search"]::placeholder { color: rgba(255,255,255,0.7); }

.section-subnav-search button {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  font-size: 0.85rem;
  line-height: 1;
}

.section-subnav-search button:hover { background: rgba(255,255,255,0.4); }

.section-subnav a.active {
  background: rgba(255,255,255,0.2);
  border-bottom: 3px solid #fff;
}

/* ============================================================
   RECIPE INDEX PAGE
   ============================================================ */

/* Hero banner */
.recipe-index-hero {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* A-Z navigation bar */
.recipe-az-bar {
  background: var(--color-primary, #b71c1c);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 4px;
}

.recipe-az-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.az-item {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 7px;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.az-item:hover,
.az-item.az-active {
  color: #fff;
  text-decoration: underline;
}

.recipe-az-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 3px;
  overflow: hidden;
}

.recipe-az-search input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
  width: 180px;
}

.recipe-az-search input::placeholder { color: rgba(255,255,255,0.65); }
.recipe-az-search:focus-within { background: rgba(255,255,255,0.25); }

.recipe-az-search button {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
}

.recipe-az-search button:hover { color: #fff; }

/* Two-column layout */
.recipe-index-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 30px 0;
  align-items: start;
}

/* Filter sidebar */
.recipe-filter-sidebar {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 20px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #333;
}

.filter-group select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 0.85rem;
  background: #fff;
  color: #333;
}

.filter-group--disabled select {
  background: #f0f0f0;
  color: #aaa;
  cursor: not-allowed;
}

.filter-search-btn {
  width: 100%;
  background: #e07020;
  color: #fff;
  border: none;
  padding: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 4px;
  transition: background 0.15s;
}

.filter-search-btn:hover { background: #c85e10; }

/* Main content area */
.recipe-index-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px;
  line-height: 1.2;
}

.recipe-index-intro {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444;
  margin-bottom: 4px;
}

.recipe-index-intro p { margin: 0 0 10px; }

.recipe-search-info {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
}

.recipe-index-divider {
  border: none;
  border-top: 1px solid #e0a060;
  margin: 16px 0 20px;
}

/* Recipe list items */
.recipe-index-list { }

.recipe-list-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 10px 0;
}

.recipe-list-thumb {
  flex-shrink: 0;
  display: block;
}

.recipe-list-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.recipe-list-thumb-placeholder {
  width: 120px;
  height: 80px;
  background: #eee;
}

.recipe-list-info { flex: 1; }

.recipe-list-info h3 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
}

.recipe-list-info h3 a {
  color: #222;
  text-decoration: none;
}

.recipe-list-info h3 a:hover { color: var(--color-primary, #b71c1c); }

.recipe-list-rating {
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.recipe-no-reviews {
  color: #e07020;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recipe-list-origin {
  font-size: 0.82rem;
  color: #333;
}

.recipe-list-origin strong {
  font-weight: 700;
  margin-right: 3px;
}

.recipe-list-origin span {
  color: #e07020;
}

.recipe-list-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 0;
}

@media (max-width: 900px) {
  .recipe-index-layout { grid-template-columns: 1fr; }
  .recipe-filter-sidebar { display: flex; flex-wrap: wrap; gap: 12px; }
  .filter-group { flex: 1 1 140px; margin-bottom: 0; }
  .filter-search-btn { align-self: flex-end; width: auto; padding: 9px 24px; }
  .recipe-az-bar { padding: 0 12px; }
  .az-item { padding: 8px 5px; }
}

@media (max-width: 600px) {
  .recipe-list-thumb img,
  .recipe-list-thumb-placeholder { width: 80px; height: 54px; }
}

/* ── Recipe metadata (centered subnav rows, matches live Joomla layout) ──── */

.recipe-article-meta {
  text-align: center;
  margin: 4px 0 16px;
  color: #444;
  font-size: 0.9rem;
}

/* Horizontal pipe-separated list — mirrors UIkit uk-subnav-line */
.recipe-subnav {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.recipe-subnav li {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
}

.recipe-subnav li + li {
  border-left: 1px solid #ddd;
}

.recipe-subnav li strong { display: inline; margin-right: 3px; }

/* CSS overlay star bar — same technique as the live site's .rating-container */
.recipe-star-bar {
  display: inline-block;
  position: relative;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  margin: 0 3px;
  /* 5 empty stars as background using CSS */
  color: #ddd;
}

.recipe-star-bar::before {
  content: '★★★★★';
  letter-spacing: 1px;
}

.recipe-star-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  color: #c0392b;
}

.recipe-star-fill::before {
  content: '★★★★★';
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ============================================================
   Contest Detail Pages
   ============================================================ */

.contest-detail-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.contest-detail-hero--gallery { min-height: 260px; }

.contest-detail-hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 100%);
  width: 100%;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contest-detail-hero-overlay h1 {
  color: #fff;
  font-size: 2.4rem;
  margin: 0;
  line-height: 1.15;
}
.contest-detail-hero-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0;
}

.contest-detail-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 0 64px;
}
.contest-detail-content h2 {
  font-size: 1.25rem;
  color: #222;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #eee;
}
.contest-detail-content p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
}
.contest-winner-callout {
  background: #f5f5f5;
  border-left: 4px solid var(--color-primary, #b71c1c);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contest-winner-callout p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.contest-categories-list,
.contest-steps-list {
  color: #444;
  line-height: 1.8;
  padding-left: 22px;
  margin-bottom: 20px;
}
.contest-categories-list li,
.contest-steps-list li { margin-bottom: 6px; }
.contest-steps-list li { margin-bottom: 14px; }

.contest-fine-print {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}
.contest-contact-line {
  margin-top: 40px;
  color: #666;
  font-size: 0.9rem;
}
.contest-contact-line a { color: var(--color-primary, #b71c1c); }

.contest-detail-actions {
  margin: 32px 0 8px;
}

.btn-contest-back {
  display: inline-block;
  color: var(--color-primary, #b71c1c);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.btn-contest-back:hover { text-decoration: underline; }

/* ============================================================
   Top Dog Entries Gallery
   ============================================================ */

.topdog-gallery-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  margin-bottom: 32px;
}
.topdog-gallery-count {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.topdog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 64px;
}

.topdog-entry {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.topdog-entry:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.topdog-entry-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}
.topdog-entry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.topdog-entry:hover .topdog-entry-img img { transform: scale(1.04); }

.topdog-entry-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.topdog-dog-name {
  font-size: 0.95rem;
  color: #222;
  font-weight: 700;
}
.topdog-owner {
  font-size: 0.82rem;
  color: #555;
}
.topdog-location {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.4;
}
.topdog-votes {
  font-size: 0.75rem;
  color: var(--color-primary, #b71c1c);
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .contest-detail-hero-overlay h1 { font-size: 1.7rem; }
  .contest-detail-body { padding: 28px 0 40px; }
  .topdog-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

.recipe-vote-count {
  font-size: 0.8rem;
  color: #888;
  margin-left: 3px;
}

/* Share icons */
.recipe-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #555;
  margin: 0 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  vertical-align: middle;
}

.recipe-share-icon:hover {
  background: var(--color-primary, #c0392b);
  color: #fff;
  border-color: var(--color-primary, #c0392b);
}

.recipe-print-link {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

.recipe-print-link:hover { text-decoration: underline; }

/* Description — plain paragraph, centered, matches live site */
.recipe-description {
  color: #555;
  margin: 12px auto 4px;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 680px;
}

.recipe-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 16px 0 24px;
}

/* ── Rate this Recipe box ───────────────────────────────────────────────── */

.recipe-rate-box {
  text-align: center;
  margin: 32px 0 24px;
  padding: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.recipe-rate-box h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  font-weight: 600;
}

.recipe-rate-stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 10px;
}

.rate-star {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #ddd;
  cursor: pointer;
  padding: 2px;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}

.rate-star:hover,
.rate-star.hovered { color: #c0392b; transform: scale(1.12); }
.rate-star:disabled { cursor: default; }
.rate-star:disabled:hover { transform: none; }

.recipe-rate-msg {
  font-size: 0.85rem;
  color: #666;
  margin: 6px 0 0;
  min-height: 1.4em;
}

@media (max-width: 600px) {
  .recipe-subnav li { padding: 4px 8px; font-size: 0.82rem; }
  .recipe-description { font-size: 0.9rem; }
}

/* ============================================================
   MEDIA KIT REQUEST FORM
   ============================================================ */
.mkr-form p,
.mkr-form fieldset { margin-bottom: 18px; }

.mkr-form input[type="text"],
.mkr-form input[type="email"],
.mkr-form input[type="tel"] {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.95rem;
  margin-top: 4px;
}

.mkr-form fieldset {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 12px 16px;
}

.mkr-form legend {
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 0 6px;
}

.mkr-pub-label {
  display: block;
  margin: 6px 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.mkr-pub-label input { margin-right: 8px; }

.mkr-req { color: #c0392b; }

.mkr-submit {
  background: #b71c1c;
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
}

.mkr-submit:hover { background: #8b0000; }

.mkr-error {
  color: #c0392b;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Honeypot — off-screen, not display:none (bots fill visible fields) */
.mkr-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mkr-math input[type="number"] { width: 80px; }

.mkr-success p {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  padding: 14px 18px;
  border-radius: 3px;
}

/* ============================================================
   CONTESTS PAGE
   ============================================================ */

.contests-page-hero {
  background: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.contests-page-hero h1 {
  font-size: 2.6rem;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contests-page-hero p {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
}

.contests-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 50px 0 20px;
}

.contest-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,0,0,0.12);
}

.contest-card-image {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.contest-card-body {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.contest-card-body h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.contest-card-body p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
  font-size: 0.97rem;
}

.contest-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
}
.contest-status-badge--open    { background: #2e7d32; color: #fff; }
.contest-status-badge--closed  { background: #555;    color: #ddd; }

.contest-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-contest-details,
.btn-contest-entries {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.15s;
}
.btn-contest-details {
  background: var(--color-primary, #b71c1c);
  color: #fff;
}
.btn-contest-entries {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-contest-details:hover,
.btn-contest-entries:hover { opacity: 0.85; }

.contests-contact {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  padding: 30px 0 50px;
}
.contests-contact a { color: var(--color-primary, #b71c1c); }

/* Contests — responsive */
@media (max-width: 700px) {
  .contest-card { grid-template-columns: 1fr; }
  .contest-card-image { min-height: 220px; }
  .contest-card-body { padding: 28px 22px; }
  .contests-page-hero h1 { font-size: 2rem; }
}
