:root {
  --color-darkest: #8c3333;
  --color-dark:    #974747;
  --color-light:   #dcc1c1;
  --color-lightest:#f3eaea;
  --color-green: #557a46;

  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
             Roboto, "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

html, body { font-family: var(--font-ui); line-height: 1.6; letter-spacing: .1px; }

/* Headings a bit bolder for hierarchy */
h1, h2, h3 { font-weight: 800; letter-spacing: .2px; }

/* UI elements/buttons read well at 600–700 */
button, .btn, .share-btn { font-weight: 700; }

/* Optional: slightly crisper rendering */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }


/* ===== Header Styles ===== */
.site-header {
  background: linear-gradient(to bottom, var(--color-dark) 0%, var(--color-dark) 60%, var(--color-lightest) 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5em;
  margin-top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.site-title {
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-lightest);
  text-align: center;
  margin: 0 auto;
  padding: 0.5em 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Layout Wrapper ===== */
.layout-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
  gap: 1.5em;
  flex-wrap: nowrap;
}

.left-nav {
  flex: 0 0 220px;
  max-width: 220px;
  background-color: var(--color-dark);
  padding: 1em;
  border-radius: 10px;
  font-size: 0.95em;
  color: var(--color-lightest);
  line-height: 1.6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.left-nav h3.nav-title {
  color: var(--color-lightest);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5em;
  border-bottom: 1px solid var(--color-light);
  padding-bottom: 0.3em;
}


.right-nav {
  flex: 0 0 220px;
  max-width: 220px;
  background-color: var(--color-lightest);
  padding: 1em 1.5em;
  border-radius: 12px;
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--color-darkest);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.site-main {
  flex: 1 1 100%;
  min-width: 0;
  background-color: var(--color-lightest);
  color: var(--color-darkest);
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* === Main Article === */
.main-article {
  margin-bottom: 2em;
}

.entry-content {
  font-size: 1em;
  line-height: 1.7;
  color: var(--color-darkest);
}

.entry-content p {
  margin-bottom: 1em;
}

.entry-content a {
  color: var(--color-dark);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.entry-content a:hover {
  color: var(--color-green);
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-lightest);
  border-top: 1px solid var(--color-light);
  padding: 2em 1em;
  text-align: center;
  font-size: 0.9em;
}

.site-footer .footer-nav a {
  color: var(--color-lightest);
  text-decoration: none;
  margin: 0 0.5em;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: var(--color-green);
  text-decoration: underline;
}

.site-footer .footer-nav {
  line-height: 1.6;
  margin-bottom: 1em;
}

/* === Responsive Behavior === */
@media (max-width: 960px) {
  .layout-wrapper {
    flex-direction: column;
  }

  .left-nav,
  .site-main,
  .right-nav {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

    .left-nav a,
    .right-nav a {
      display: block;
      color: var(--color-darkest);
      background-color: var(--color-lightest);
      border-radius: 6px;
      padding: 0.4em 0.75em;
      margin-bottom: 0.4em;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.25s ease;
    }

    .left-nav a:hover,
    .right-nav a:hover {
      background-color: var(--color-green);
      color: var(--color-dark);
      padding-left: 1em;
    }

    .left-nav .nav-section,
    .right-nav .nav-section {
      margin-bottom: 1.5em;
    }

    .left-nav .nav-title,
    .right-nav .nav-title {
      font-size: 1.1em;
      font-weight: bold;
      color: var(--color-green);
      border-bottom: 1px solid var(--color-light);
      padding-bottom: 0.25em;
      margin-bottom: 0.5em;
    }
	
	
/* === Responsive Behavior === */

.page-title,
.section-title {
  text-align: center;
  color: var(--color-darkest);
  margin-bottom: 1em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5em;
  padding: 1em 0;
}

.category-box {
  background: var(--color-lightest);
  border-radius: 10px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.category-box:hover {
  transform: scale(1.05);
  background-color: var(--color-green);
  color: var(--color-darkest);
}

.category-box img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

.category-label {
  font-size: 0.95em;
  font-weight: 600;
  color: var(--color-dark);
}

/* === Image array === */
.image-grid-wrapper {
  padding: 1em;
  background-color: #f5fbf7;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  justify-items: center;
}
.image-grid .image-wrapper {
  background-color: var(--color-lightest);
  border: 2px solid var(--color-light);
  border-radius: 12px;
  padding: 1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 320px;
}
.image-grid .image-wrapper img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.5em;
}
.pagination {
  text-align: center;
  margin: 2em 0;
}
.pagination a {
  display: inline-block;
  margin: 0 0.3em;
  padding: 0.5em 0.9em;
  background-color: var(--color-light);
  color: var(--color-darkest);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.pagination a:hover {
  background-color: var(--color-green);
}
.pagination .active {
  background-color: var(--color-green);
  font-weight: bold;
  pointer-events: none;
}

.image-wrapper {
  background-color: var(--color-lightest);
  padding: 1em;
  border-radius: 12px;
  text-align: center;
  margin: 1.5em auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  max-width: 480px;
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

.image-wrapper h3 {
  font-size: 1.2em;
  color: var(--color-dark);
  margin-bottom: 0.5em;
}

.image-wrapper .share-link a {
  font-weight: bold;
  color: var(--color-green);
  text-decoration: none;
}

.image-wrapper .share-link a:hover {
  text-decoration: underline;
  color: var(--color-darkest);
}


.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5em;
  justify-items: center;
  align-items: start;
}

.category-box {
  background-color: var(--color-lightest);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  text-align: center;
  width: 100%;
  max-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.category-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.6em;
}

.category-label {
  font-weight: 600;
  font-size: 0.95em;
  color: var(--color-darkest);
}


/* === View Image === */
.image-view {
  max-width: 600px;
  margin: 2em auto;
  text-align: center;
  padding: 1em;
  background: var(--color-darkest);
  color: var(--color-lightest);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.image-view a {
  color: var(--color-light);
}


.image-view img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}
.download-btn {
  background-color: #6c757d;
}
.download-btn:hover {
  background-color: #5a6268;
}
.related-images {
  margin-top: 2em;
}
.related-images h3 {
  margin-bottom: 1em;
  color: var(--color-lightest);
}
.related-images .thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}
.related-images .thumb img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* === Search === */

.search-wrapper {
  padding: 2em;
  background-color: #e7f9f3;
}
.search-form {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1.5em;
}
.search-form input[type="text"] {
  flex: 1;
  padding: 0.7em;
  border-radius: 6px;
  border: 1px solid #9fdcc9;
}
.search-form button {
  padding: 0.7em 1.5em;
  background-color: #32a88d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.search-form button:hover {
  background-color: #289f82;
}
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5em;
}
.search-thumb {
  text-align: center;
  padding: 0.5em;
}
.search-thumb img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.search-thumb span {
  display: block;
  margin-top: 0.5em;
  color: #333;
  font-size: 0.9em;
}
.pagination {
  text-align: center;
  margin-top: 2em;
}
.pagination a {
  margin: 0 0.3em;
  padding: 0.5em 0.9em;
  background: var(--color-light);
  color: var(--color-green);
  text-decoration: none;
  border-radius: 5px;
}
.pagination a.active {
  background: var(--color-dark);
  color: white;
  font-weight: bold;
}
.thumb-caption {
  margin-top: 0.4em;
  font-size: 0.9em;
  color: var(--color-dark);
}

.footer-searchbox {
  margin-top: 2em;
  padding: 1em;
  background: #dff4ec;
  text-align: center;
  border-top: 2px solid #9fdcc9;
}
.footer-searchbox form {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #9fdcc9;
  border-radius: 6px;
  overflow: hidden;
}
.footer-searchbox input[type="text"] {
  padding: 0.6em;
  font-size: 1em;
  border: none;
  outline: none;
  width: 200px;
}
.footer-searchbox button {
  background: #32a88d;
  color: white;
  border: none;
  padding: 0 1em;
  cursor: pointer;
  font-size: 1.1em;
}
.footer-searchbox button:hover {
  background: #289f82;
}

.ch-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.intro p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.gallery {
  margin-top: 2rem;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.gallery .card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.gallery .card span {
  margin-top: 0.5rem;
  font-weight: 600;
  color: #333;
}

.gallery .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  font-weight: bold;
  text-decoration: none;
  color: #0066cc;
}

body {
  background: var(--color-lightest);
  color: var(--color-darkest);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

h2 {
  color: var(--color-darkest);
  border-bottom: 2px solid var(--color-light);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-green);
}

.ch-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.intro p {
  margin-bottom: 1rem;
}

.gallery {
  margin-top: 2rem;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-lightest);
  border-radius: 12px;
  padding: 1rem;
  border: 2px solid var(--color-light);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery .card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.gallery .card span {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--color-darkest);
}

.gallery .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-color: var(--color-green);
}

.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--color-green);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.more-link a:hover {
  background: var(--color-darkest);
}

.contact-card {
  background: var(--color-lightest);
  border: 2px solid var(--color-light);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-card h1 {
  color: var(--color-darkest);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.email-box {
  background: var(--color-light);
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.email-box a {
  color: var(--color-darkest);
  font-weight: bold;
  text-decoration: none;
}

.email-box a:hover {
  color: var(--color-green);
}

.note {
  font-size: 0.9rem;
  color: var(--color-dark);
}
.policy-card {
  background: var(--color-lightest);
  border: 2px solid var(--color-light);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.6;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.policy-card h1 {
  color: var(--color-darkest);
  margin-bottom: 1.5rem;
  text-align: center;
}

.policy-card p {
  margin-bottom: 1.2rem;
  color: var(--color-darkest);
}

.policy-card strong {
  color: var(--color-dark);
}

.policy-card a {
  color: var(--color-dark);
  font-weight: bold;
  text-decoration: none;
}

.policy-card a:hover {
  color: var(--color-green);
}

.policy-contact {
  text-align: right;
  font-size: 0.95rem;
  margin-top: 2rem;
}
.error-card {
  background: var(--color-lightest);
  border: 2px solid var(--color-light);
  border-radius: 12px;
  padding: 2rem;
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.error-card h1 {
  color: var(--color-darkest);
  margin-bottom: 1rem;
}

.error-card p {
  margin-bottom: 1rem;
  color: var(--color-darkest);
}

.error-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.error-links li {
  margin: 0.5rem 0;
}

.error-links a {
  color: var(--color-dark);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.error-links a:hover {
  color: var(--color-green);
}

.error-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-dark);
}
.seasonal-page h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-darkest);
}

.seasonal-page .intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--color-dark);
}

.link-section {
  margin: 2rem 0;
}

.link-section h2 {
  color: var(--color-green);
  margin-bottom: 1rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-grid li a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--color-lightest);
  border: 1px solid var(--color-light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-darkest);
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.link-grid li a:hover {
  background: var(--color-light);
  transform: translateY(-3px);
}
.image-view h1, h2 {
  text-align: center;
  color: var(--color-light);
  margin-bottom: 1.5rem;
}

.image-card {
  text-align: center;
  margin-bottom: 2rem;
}
.image-card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-nav {
  text-align: center;
  margin: 2rem 0;
}
.image-nav a {
  margin: 0 0.5rem;
  color: var(--color-lightest);
  font-weight: 600;
  text-decoration: none;
}
.image-nav a:hover {
  color: var(--color-green);
}
/* Share block: centered, tidy, and responsive */
.share-buttons{
  margin: 2rem auto;
  max-width: 560px;                 /* fits two equal columns nicely */
  display: grid;
  grid-template-columns: 1fr;       /* mobile: single column */
  gap: 1rem;                        /* all spacing handled by gap */
  justify-items: center;            /* center items in their cells */
  text-align: center;
}

.share-buttons h2{
  grid-column: 1 / -1;              /* heading spans full width */
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-lightest);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--color-light);
  display: inline-block;
  justify-self: center;
}

/* Buttons: equal size, no leftover floats/margins from elsewhere */
.share-buttons .share-btn{
  display: block;
  width: 100%;
  max-width: 260px;                 /* visual width of each button */
  box-sizing: border-box;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  margin: 0;                        /* kill any inherited margins */
  float: none;                      /* kill any inherited floats */
  box-shadow: 0 3px 6px rgba(0,0,0,.2);
  transition: transform .25s, box-shadow .25s, opacity .25s;
}
.share-buttons .share-btn:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 10px rgba(0,0,0,.25);
  opacity: .9;
}

/* Brand colors */
.share-btn.facebook  { background:#3b5998; }
.share-btn.twitter   { background:#1da1f2; }
.share-btn.tumblr    { background:#35465c; }
.share-btn.pinterest { background:#bd081c; }
.share-btn.email     { background:#7b3f3f; }

/* ≥600px: exactly two centered columns; last odd button centers on its row */
@media (min-width: 600px){
  .share-buttons{
    grid-template-columns: repeat(2, 1fr);
  }
  .share-buttons .share-btn:last-of-type{
    grid-column: 1 / -1;            /* center Email by spanning both cols */
    justify-self: center;
  }
}

/* ---------- Scoped styles just for bg page ---------- */
.bg-page {

  --text: #2b2b2b;
  --muted:#666;

  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 2vw, 2rem) 3rem;
}

.bg-head h1 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 0 0 .4rem 0;
  color: var(--text);
}

.bg-sub {
  color: var(--muted);
  margin: 0 0 1.25rem 0;
}

.bg-preview {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

/* Stylish rounded rectangular preview */
.preview-card {
  position: relative;
  width: min(820px, 100%);
  aspect-ratio: 16 / 10;          /* maintains a nice rectangle */
  border-radius: 20px;
  overflow: hidden;
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow:
    0 10px 18px rgba(0,0,0,.06),
    0 3px 6px rgba(0,0,0,.05);
  isolation: isolate;
}

.preview-tiles {
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-repeat: repeat;
  background-size: auto;          /* preserve original tiling */
  transform: translateZ(0);
}

/* Optional overlay “content card” to simulate real usage on top */
.mock-card {
  position: absolute;
  right: clamp(10px, 4vw, 26px);
  bottom: clamp(10px, 4vw, 26px);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  padding: .75rem 1rem;
  border-radius: 14px;
  max-width: min(60%, 360px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.mock-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: .25rem;
  color: #111;
}

.mock-text {
  font-size: .95rem;
  color: #333;
}

.btn-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .2rem;
}

.btn {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-dark);
  color: #fff;
  background: linear-gradient(180deg, var(--color-dark), var(--color-darkest));
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 6px 14px rgba(151,71,71,.25);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  border-color: var(--color-green);
  background: linear-gradient(180deg, var(--color-green), #3e5c34);
  box-shadow: 0 6px 14px rgba(62,92,52,.28);
}

.bg-links {
  margin-top: .6rem;
  font-size: .95rem;
  text-align: center;
}

.bg-links a {
  color: var(--color-darkest);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bg-links .sep {
  margin: 0 .5rem;
  color: #999;
}

/* Small screens: tighten the aspect so more of the pattern shows */
@media (max-width: 480px) {
  .preview-card { aspect-ratio: 4 / 3; }
  .mock-card    { max-width: 78%; }
}

/* Ensure bright/consistent text on the action buttons */
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active {
  color: #fff !important;              /* force light text */
  text-decoration: none;               /* no underline */
  text-shadow: 0 1px 0 rgba(0,0,0,.35);/* subtle lift for contrast */
  font-weight: 800;                    /* crisper on dark btns */
}

/* Keep the card still on hover (no “move”) */
.preview-card { 
  position: relative;             /* important for absolute children */
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow .2s ease;/* shadow only */
}
.preview-card:hover {
  transform: none;                /* ensure no movement */
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

/* Background tiling sits at the bottom of the stack */
.preview-tiles{
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-repeat: repeat;
  background-size: auto;
  z-index: 0;                     /* explicitly below the chip */
}

/* Chip overlay sits above */
.preview-chip{
  position: absolute;
  right: clamp(10px, 4vw, 24px);
  bottom: clamp(10px, 4vw, 24px);
  z-index: 2;                     /* make sure it's on top */
  pointer-events: none;           /* entire card remains clickable */
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: .6rem .85rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.preview-chip strong{ display:block; font-weight:800; line-height:1; margin-bottom:.15rem; color:#111; }
.preview-chip small{ display:block; color:#444; }
/* keep card edges crisp on HDPI + prevent text selection while dragging */
.preview-card { -webkit-font-smoothing: antialiased; user-select: none; }

/* make the chip a touch tighter on phones */
@media (max-width: 520px){
  .preview-chip{ padding:.5rem .7rem; border-radius:12px; }
  .preview-chip strong{ font-size:1rem; }
  .preview-chip small{ font-size:.85rem; }
}
/* Fancy, accessible tooltip for grid cards */
.bg-card[data-tip]{
  position: relative;
}
.bg-card[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translate(-50%, 8px);
  background: rgba(17,17,17,.9);
  color: #fff;
  font-size: .85rem;
  padding: .35rem .55rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.bg-card:hover::after,
.bg-card:focus-visible::after{
  opacity: 1;
  transform: translate(-50%, 0);
}
.crumbs{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--muted);
  margin: .25rem 0 1rem;
}
.crumbs a{
  color: var(--color-darkest);
  text-decoration: none;
  border-bottom: 1px dashed rgba(140,51,51,.35);
}
.crumbs a:hover{ border-bottom-color: rgba(140,51,51,.7); }
.crumbs .sep{ color: #999; }



