:root {
  --ink: #2b2b2b;
  --sea: #7a2020;
  --sea-dark: #5a1717;
  --sand: #e4e4e4;
  --coral: #b5432f;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background-color: var(--sand);
}
header {
  background: var(--sea);
  color: #fff;
  padding: 38px 20px;
  text-align: center;
  position: relative;
}
header h1 { margin: 0; font-size: 2.2rem; color: #d8d8d8; }
header p { margin: 8px 0 0; font-size: 1.05rem; opacity: 0.95; }

.header-logo {
  position: absolute;
  left: 18%;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  line-height: 0;
}
.header-logo img {
  height: 120px;
  width: auto;
  display: block;
  transition: transform 0.15s ease;
}
.header-logo:hover img { transform: scale(1.04); }

/* On narrow screens, stop absolute-positioning so it doesn't overlap the title */
@media (max-width: 760px) {
  .header-logo {
    position: static;
    transform: none;
    margin-bottom: 14px;
  }
  .header-logo img { height: 96px; margin: 0 auto; }
}

nav {
  background: var(--sea-dark);
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 12px;
  flex-wrap: wrap;
}
nav a { color: #fff; text-decoration: none; font-size: 0.92rem; opacity: 0.9; }
nav a:hover { opacity: 1; text-decoration: underline; }
nav a.current { opacity: 1; font-weight: 600; text-decoration: underline; }
.nav-get-listed-btn {
  background: var(--coral) !important;
  color: #fff !important;
  padding: 5px 14px !important;
  border-radius: 4px !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.nav-get-listed-btn:hover {
  background: #943527 !important;
  text-decoration: none !important;
}
.get-listed-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--coral);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.get-listed-btn:hover { background: #943527; }

.breadcrumb {
  max-width: var(--content-width, 1100px);
  margin: 14px auto 0;
  padding: 0 16px;
  font-size: 0.85rem;
  color: #5c5c5c;
}
.breadcrumb a { color: var(--sea-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

main {
  max-width: var(--content-width, 1100px);
  margin: 0 auto;
  padding: 20px 16px 40px;
}
section {
  margin-bottom: 28px;
  background: #f6f6f6;
  padding: 22px 20px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}
h2 { font-size: 1.4rem; margin: 0 0 10px; color: var(--sea-dark); }
h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--sea-dark); }
p { margin: 6px 0 10px; line-height: 1.6; }

/* ---- Form fields — global polished styles ---- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sea-dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d4d4d4;
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.field input[type="text"]:hover,
.field input[type="tel"]:hover,
.field input[type="url"]:hover,
.field input[type="date"]:hover,
.field input[type="email"]:hover,
.field input[type="password"]:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b0b0b0;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a1717' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(122, 32, 32, 0.10);
  background: #fdfcfc;
}
.field input::placeholder,
.field textarea::placeholder { color: #b8b8b8; font-style: italic; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input[type="file"] {
  padding: 8px 12px;
  background: #f8f8f8;
  border: 1.5px dashed #c8c8c8;
  border-radius: 8px;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  color: #5c5c5c;
}
.field input[type="file"]:hover { border-color: var(--sea); background: #f5f0f0; }
.field small { display: block; margin-top: 5px; font-size: 0.8rem; color: #6c6c6c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
.field-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

/* Checkbox grid — pill-style category selector */
.category-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.category-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.category-grid label:hover { border-color: var(--sea); background: #fdf5f5; }
.category-grid input[type="checkbox"] { accent-color: var(--sea); width: 14px; height: 14px; }
.category-grid label:has(input:checked) {
  border-color: var(--sea);
  background: #f5e0da;
  color: var(--sea-dark);
  font-weight: 600;
}

/* Filter row on listings browse page */
.filter-row select {
  padding: 9px 32px 9px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  font-size: 0.92rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a1717' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.filter-row select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(122,32,32,0.12); }

/* Admin field overrides — slightly tighter for dense admin forms */
.admin-wrap .field input[type="text"],
.admin-wrap .field input[type="url"],
.admin-wrap .field input[type="tel"],
.admin-wrap .field input[type="date"],
.admin-wrap .field select,
.admin-wrap .field textarea { font-size: 0.91rem; padding: 8px 11px; }

/* Search box (homepage) */
.search-box { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search-box input[type="text"] {
  flex: 1 1 220px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}
.search-box button {
  padding: 10px 16px;
  border-radius: 4px;
  border: none;
  background: var(--sea);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}
.search-box button:hover { background: var(--sea-dark); }

/* Cards (county / category / value grids) */
.county-grid,
.category-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.card {
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fafafa;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--sea-dark); }
.card p { font-size: 0.92rem; margin: 0; color: #5c5c5c; }
.card .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--coral);
  font-weight: 600;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Pill list (category tags on homepage) */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}
.category-list li {
  background: var(--sand);
  border: 1px solid #cfcfcf;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--sea-dark);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.category-list li:hover {
  background: #d9d9d9;
  border-color: #b0b0b0;
}
.category-list li a {
  color: var(--sea-dark);
  text-decoration: none;
  display: block;
}
.category-list li a:hover { text-decoration: none; }

a.county-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.county-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
a.county-card h3 { color: var(--sea-dark); }

/* About page columns */
.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.about-columns h3 { font-size: 1rem; margin: 0 0 6px; color: var(--sea-dark); }
.about-columns p { font-size: 0.92rem; margin: 0; }

/* About page timeline */
.timeline { margin-top: 14px; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  padding: 4px 0 14px 22px;
  border-left: 2px solid #dfe6ea;
  margin-left: 6px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}
.timeline li:last-child { border-left: 2px solid transparent; }
.timeline strong { color: var(--sea-dark); }

/* About page CTA banner */
.cta-box { background: var(--sea); color: #fff; text-align: center; padding: 26px 20px; }
.cta-box h2 { color: #fff; }
.cta-box a.button {
  display: inline-block;
  margin-top: 10px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.cta-box a.button:hover { background: #943527; }

/* Blog post meta + badge */
ul.post-list-meta { list-style: none; padding: 0; margin: 0 0 32px; font-size: 0.85rem; color: #5c5c5c; }
ul.post-list-meta li { padding-top: 10px; }
.post-title-link { color: var(--sea-dark); text-decoration: none; }
.post-title-link:hover { text-decoration: underline; }
ol, ul.article-list { line-height: 1.65; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--coral);
  background: #f5e0da;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Helpful local resources list (homepage) */
.resource-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resource-list a {
  color: var(--sea-dark);
  font-weight: 600;
  text-decoration: none;
}
.resource-list a:hover { text-decoration: underline; }

/* Hero photo (About page) */
.hero-photo {
  margin: 0 0 56px;
  padding: 0;
}
.hero-photo picture {
  display: block;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center 62%;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.hero-photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #5c5c5c;
  text-align: center;
}

/* County quick-links on listings page */
.county-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}
.county-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sea-dark);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--sea-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
.county-pill:hover {
  background: #fff;
  color: var(--sea-dark);
  text-decoration: none;
}
.county-pill.active {
  background: #fff;
  color: var(--sea-dark);
  border-color: var(--sea-dark);
}
.county-pill-clear {
  background: transparent;
  color: #888;
  border-color: #ccc;
  font-weight: 400;
}
.county-pill-clear:hover {
  background: #f5f5f5;
  color: #555;
  border-color: #aaa;
}

/* Listings browse page */
.listings-filter-form { margin: 16px 0 20px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row select { padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.92rem; background: #fff; }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.listing-card {
  display: block;
  background: #fafafa;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: box-shadow 0.15s ease;
}
.listing-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.listing-card h3 { font-size: 1rem; margin: 0 0 4px; color: var(--sea-dark); }
.listing-meta { font-size: 0.82rem; color: #5c5c5c; margin: 0 0 6px; }
.listing-cats { font-size: 0.8rem; color: var(--coral); margin: 0 0 8px; }
.listing-desc { font-size: 0.88rem; margin: 0; color: #3a3a3a; }
.listing-premium-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Individual listing detail page */
.listing-detail h2 { margin-bottom: 8px; }
.listing-detail-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.listing-cat-tag {
  background: #f5e0da;
  color: var(--sea-dark);
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.listing-cat-tag:hover { background: var(--coral); color: #fff; }
.listing-detail-meta {
  background: #f6f6f6;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.listing-detail-address { color: #3a3a3a; line-height: 1.5; }
.listing-detail-description { margin-top: 24px; }
.listing-detail-description h3 { font-size: 1rem; margin: 0 0 8px; color: var(--sea-dark); }

/* Hours picker */
.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.hours-row:last-child { border-bottom: none; }
.hours-day-label {
  width: 84px;
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
  color: var(--sea-dark);
}
.hours-closed-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  flex-shrink: 0;
  cursor: pointer;
  min-width: 72px;
}
.hours-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hours-to {
  font-size: 0.85rem;
  color: #5c5c5c;
}
.btn-ampm {
  padding: 6px 10px;
  background: var(--sea-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 44px;
  transition: background 0.15s ease;
}
.btn-ampm:hover:not(:disabled) { background: var(--sea); }
.btn-ampm:disabled { background: #bbb; cursor: not-allowed; }

/* Hours display on listing page */
.listing-hours { margin-top: 12px; }
.listing-hours h4 { font-size: 0.9rem; color: var(--sea-dark); margin: 0 0 6px; }
.listing-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: #3a3a3a;
  line-height: 1.8;
}

/* Search results page */
.search-header-section { margin-bottom: 6px; }
.search-results-label { margin: 12px 0 0; font-size: 0.95rem; color: #5c5c5c; }
.search-no-listings {
  font-size: 0.9rem;
  color: #5c5c5c;
  margin: 0 0 4px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-radius: 6px;
}
.search-articles-section { margin-top: 8px; }
.search-fuzzy-note { font-size: 0.88rem; color: #5c5c5c; font-style: italic; margin: 0 0 14px; }
.search-article-list { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.search-article-card {
  display: flex;
  gap: 16px;
  background: #fafafa;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
}
.search-article-img { flex: 0 0 160px; }
.search-article-img picture,
.search-article-img img {
  display: block;
  width: 160px;
  height: 120px;
  object-fit: cover;
}
.search-article-body { padding: 14px 16px; flex: 1; }
.search-article-body h3 { font-size: 1rem; margin: 4px 0 4px; color: var(--sea-dark); }
.search-article-body h3 a { color: inherit; text-decoration: none; }
.search-article-body h3 a:hover { text-decoration: underline; }
.search-article-body p { font-size: 0.88rem; margin: 0 0 10px; color: #3a3a3a; }
@media (max-width: 560px) {
  .search-article-card { flex-direction: column; }
  .search-article-img { flex: none; }
  .search-article-img picture,
  .search-article-img img { width: 100%; height: 160px; }
}

/* Recent articles grid (homepage) */
.recent-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 700px) {
  .recent-articles-grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .recent-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
.article-card {
  background: #fafafa;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card-img-link { display: block; }
.article-card-img-link picture,
.article-card-img-link img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.article-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-body h3 {
  font-size: 0.97rem;
  margin: 6px 0 4px;
  color: var(--sea-dark);
}
.article-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.article-card-body h3 a:hover { text-decoration: underline; }
.article-card-date { font-size: 0.8rem; color: #5c5c5c; margin: 0 0 8px; }
.article-card-body p { font-size: 0.88rem; margin: 0 0 12px; color: #3a3a3a; }
.article-read-more { font-size: 0.85rem; color: var(--coral); text-decoration: none; margin-top: auto; }
.article-read-more:hover { text-decoration: underline; }

.char-counter { display: block; margin-top: 4px; font-size: 0.8rem; color: #5c5c5c; }

.back-to-blog { margin-top: 48px; }

/* Featured image on individual blog post pages */
.post-featured-image {
  margin-bottom: 56px;
}
.post-featured-image picture,
.post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Hours picker */
.hours-picker-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-bottom: 1px solid #efefef;
}
.hours-row:last-child { border-bottom: none; }
.hours-day-label { width: 80px; font-weight: 600; font-size: 0.88rem; flex-shrink: 0; color: var(--sea-dark); }
.hours-closed-label { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; flex-shrink: 0; cursor: pointer; }
.hours-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; transition: opacity 0.15s; }
.hours-controls select {
  padding: 6px 8px;
  border: 1.5px solid #d4d4d4;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
  width: auto !important;
  min-width: 0 !important;
}
.hours-controls select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(122,32,32,0.10); }
.ampm-toggle {
  padding: 6px 10px;
  border: 1.5px solid #d4d4d4;
  border-radius: 6px;
  background: #f6f6f6;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--sea-dark);
  transition: background 0.12s, border-color 0.12s;
  min-width: 44px;
}
.ampm-toggle:hover { background: #f0dcd6; border-color: var(--coral); }
.ampm-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
.hours-to { font-size: 0.85rem; color: #5c5c5c; }

/* Listing detail hours display */
.listing-hours { margin-top: 12px; }
.listing-hours h4 { font-size: 0.9rem; color: var(--sea-dark); margin: 0 0 6px; }
.listing-hours ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: #3a3a3a; }
.listing-hours ul li { padding: 2px 0; }

/* Social media links on premium listing pages */
.listing-social-links { margin-top: 20px; }
.listing-social-links h4 { font-size: 0.9rem; color: var(--sea-dark); margin: 0 0 10px; }

/* Pricing tier cards on submit.php */
.listing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}
@media (max-width: 640px) {
  .listing-tiers { grid-template-columns: 1fr; }
}
.tier-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px;
  background: #fff;
}
.tier-premium {
  border-color: var(--sea-dark);
  position: relative;
}
.tier-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #888;
  margin: 0 0 10px;
}
.tier-premium .tier-label {
  color: var(--sea-dark);
}
.tier-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sea-dark);
  margin: 0 0 4px;
}
.tier-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #888;
}
.tier-founding {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin: 0 0 16px;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}
.tier-features li {
  font-size: 0.88rem;
  color: #3a3a3a;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}
.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}
.tier-free .tier-price {
  font-size: 1.4rem;
  color: #5c5c5c;
}
.tier-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--sea-dark);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.tier-cta:hover {
  background: var(--sea);
  color: #fff;
  text-decoration: none;
}

/* Listing detail image (premium) */
.listing-detail-image {
  float: right;
  margin: 0 0 16px 20px;
  max-width: 280px;
}
.listing-detail-image picture,
.listing-detail-image img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: block;
}
@media (max-width: 600px) {
  .listing-detail-image {
    float: none;
    margin: 0 0 16px 0;
    max-width: 100%;
  }
}

/* Extra links on premium listing pages */
.listing-extra-links { margin-top: 20px; }
.listing-extra-links h4 { font-size: 0.9rem; color: var(--sea-dark); margin: 0 0 10px; }
.extra-link-btn {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 16px;
  background: #f0dcd6;
  color: var(--sea-dark);
  border-radius: 6px;
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.extra-link-btn:hover { background: var(--coral); color: #fff; text-decoration: none; }

/* Badge embed section on listing pages */
.listing-badge-embed {
  margin-top: 32px;
  padding: 20px;
  background: #f6f6f6;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.listing-badge-embed h4 { font-size: 0.95rem; color: var(--sea-dark); margin: 0 0 6px; }
.listing-badge-embed p { font-size: 0.85rem; color: #5c5c5c; margin: 0 0 12px; }
.badge-preview { margin-bottom: 12px; }
.badge-code-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-code-wrap code {
  flex: 1;
  display: block;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #333;
  word-break: break-all;
  min-width: 0;
}
.btn-copy-badge {
  padding: 8px 14px;
  background: var(--sea-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-copy-badge:hover { background: var(--sea); }
.badge-download-links { margin-top: 10px; font-size: 0.82rem; }
.badge-download-links a { color: var(--sea-dark); }
.listing-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.listing-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0dcd6;
  color: var(--sea-dark);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.listing-social-icons a:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-2px);
}

/* Markdown-produced elements within post content */
blockquote {
  margin: 16px 0;
  padding: 4px 16px;
  border-left: 3px solid var(--coral);
  color: #5c5c5c;
  font-style: italic;
}
blockquote p { margin: 6px 0; }
hr {
  border: none;
  border-top: 1px solid #d9d0d0;
  margin: 24px 0;
}
code {
  background: #eee;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.88em;
}

/* Legal pages */
.updated { font-size: 0.85rem; color: #5c5c5c; margin: 0 0 18px; }

/* Notice / callout box (used on homepage + legal pages) */
.notice {
  background: #f5e0da;
  border: 1px solid #dcb8ab;
  color: #6b2e1f;
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 6px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #5c5c5c;
}
footer a { color: var(--sea-dark); text-decoration: none; margin: 0 6px; }
footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 10px; }

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0dcd6;
  color: var(--sea-dark);
  margin: 0;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-icons a svg { display: block; color: inherit; }
.social-icons a:hover {
  background: var(--coral);
  color: #ffffff;
  transform: translateY(-3px);
  text-decoration: none;
}
