/*
Theme Name: Small Joys Daily
Theme URI: https://smalljoysdaily.com
Author: Small Joys Daily
Description: Everyday-life journal for lifestyle, home, food, wellbeing, and travel.
Version: 1.1.10
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: small-joys-daily
Domain Path: /languages
*/

@import url("https://fonts.googleapis.com/css2?family=Besley:ital,wght@0,500;0,700;0,800;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --color-ivory: #F6F7EB;
  --color-terracotta: #E94F37;
  --color-terracotta-hover: #d4402a;
  --color-success: #1f8a4c;
  --color-gunmetal: #393E41;
  --color-white: #FFFFFF;
  --font-display: "Besley", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-xl: 4px;
  --max-width: 1480px;
  --header-height: 84px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: clip; }

::selection {
  background: #c9e7f5;
  color: var(--color-gunmetal);
}

body {
  background-color: var(--color-ivory);
  color: var(--color-gunmetal);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
button, input, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-gunmetal);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }
h4 { font-size: 1.15rem; line-height: 1.4; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--color-gunmetal);
  color: var(--color-ivory);
  padding: 8px 12px;
  z-index: 200;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4.5vw, 64px);
  padding-right: clamp(16px, 4.5vw, 64px);
}

.category-label,
.page-eyebrow {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-terracotta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.category-label.light { color: var(--color-terracotta); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background-color: var(--color-terracotta); color: var(--color-white); border-color: var(--color-terracotta); }
.btn-primary:hover { background-color: var(--color-terracotta-hover); border-color: var(--color-terracotta-hover); color: var(--color-white); }
.btn-outline { background-color: transparent; border-color: var(--color-gunmetal); color: var(--color-gunmetal); }
.btn-outline:hover { background-color: var(--color-gunmetal); color: var(--color-ivory); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-ivory);
  border-bottom: 2px solid rgba(57, 62, 65, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-3);
}
.header-panel {
  display: contents;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-gunmetal);
  border-radius: 2px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-gunmetal);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-logo span { color: var(--color-terracotta); }
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  overflow-x: auto;
  padding: var(--space-1) 0;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gunmetal);
  padding: var(--space-1) 0;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--color-terracotta); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-terracotta);
}

.lang-switcher { position: relative; flex: 0 0 auto; order: 3; }
.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gunmetal);
}
.lang-switcher__flag {
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(57, 62, 65, 0.18);
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  margin: 0;
  list-style: none;
  background: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.12);
  border-radius: 12px;
  padding: 8px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(57, 62, 65, 0.12);
}
.lang-switcher__menu li { margin: 0; }
.lang-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.lang-switcher__menu a:hover { background: rgba(57, 62, 65, 0.05); }
.lang-switcher__menu .nav-link.active { color: var(--color-terracotta); }
.lang-switcher__menu .nav-link.active::after { display: none; }
.site-logo { order: 1; }
.site-nav { order: 2; }
.header-search { order: 4; }
@media (min-width: 1101px) {
  .header-inner { position: relative; }
  .site-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0;
  }
  .lang-switcher { margin-left: auto; }
  .header-inner:not(:has(.lang-switcher)) .header-search { margin-left: auto; }
}

.header-search { position: relative; min-width: 200px; max-width: 260px; }
.header-search form { display: flex; align-items: center; position: relative; }
.header-search input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1px solid rgba(57, 62, 65, 0.25);
  border-radius: var(--radius);
  background-color: var(--color-white);
  color: var(--color-gunmetal);
  font-size: 0.85rem;
  outline: none;
}
.header-search input:focus { border-color: var(--color-terracotta); }
.header-search button {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gunmetal);
  display: flex;
  align-items: center;
  padding: 4px;
}
.header-search button:hover { color: var(--color-terracotta); }

.hero-section { padding: var(--space-8) 0; border-bottom: 1px solid rgba(57, 62, 65, 0.1); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { margin-bottom: var(--space-3); }
.hero-lead { font-size: 1.25rem; line-height: 1.55; color: rgba(57, 62, 65, 0.9); margin-bottom: var(--space-4); max-width: 580px; }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(57, 62, 65, 0.08);
  background-color: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.1);
}
.hero-image-wrapper img { width: 100%; height: 480px; object-fit: cover; border-radius: 0; }
.hero-caption {
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  border-top: 1px solid rgba(57, 62, 65, 0.08);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-gunmetal);
  padding-bottom: var(--space-2);
  gap: var(--space-2);
}
.section-head.light { border-bottom-color: rgba(246, 247, 235, 0.3); }
.section-head h2 a { color: inherit; }
.section-head h2 a:hover { color: var(--color-terracotta); }
.section-head.light h2,
.section-head.light h2 a { color: var(--color-ivory); }
.section-head.light h2 a:hover { color: var(--color-terracotta); }
.section-head__tools { display: flex; align-items: center; gap: 16px; }
.section-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-link:hover { text-decoration: underline; }

.home-section { padding: var(--space-8) 0; border-bottom: 1px solid rgba(57, 62, 65, 0.1); }
.section-editorial {
  background-color: var(--color-gunmetal);
  color: var(--color-ivory);
  padding: var(--space-10) 0;
  border-bottom: 0;
}

.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: stretch; }
.section-grid .card-media { height: 250px; }

.post-card, .archive-card, .bento-featured, .carousel-card {
  background-color: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.post-card:hover, .archive-card:hover, .bento-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(57, 62, 65, 0.08);
}
.post-card__image-wrap, .card-media { border-radius: 0; margin: 0; overflow: hidden; background-color: #eaebe0; }
.card-media img, .post-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.4s ease; }
.post-card:hover .card-media img, .archive-card:hover .card-media img { transform: scale(1.03); }
.post-card__body, .card-body { padding: var(--space-3); display: flex; flex-direction: column; flex-grow: 1; }
.card-title, .post-card__title { font-size: 1.35rem; margin-bottom: var(--space-2); line-height: 1.25; }
.card-title a, .post-card__title a { color: var(--color-gunmetal); }
.card-title a:hover, .post-card__title a:hover { color: var(--color-terracotta); }
.card-excerpt, .post-card__excerpt { font-size: 0.95rem; color: rgba(57, 62, 65, 0.85); line-height: 1.55; }

.bento-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: var(--space-4); }
.bento-featured .card-media { height: 360px; }
.bento-featured .card-body { padding: var(--space-4); }
.bento-featured .card-title { font-size: 1.65rem; }
.bento-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.bento-small {
  display: grid;
  grid-template-columns: 180px 1fr;
  background-color: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
}
.bento-small .card-media { position: relative; height: 100%; min-height: 140px; }
.bento-small .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bento-small .card-body { padding: var(--space-3); justify-content: center; }
.bento-small .card-title { font-size: 1.15rem; }

.carousel-controls { display: flex; gap: var(--space-1); }
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-gunmetal);
  background: transparent;
  color: var(--color-gunmetal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-btn { transition: background-color var(--transition), color var(--transition), opacity var(--transition); }
.carousel-btn:hover { background-color: var(--color-gunmetal); color: var(--color-ivory); }
.carousel-btn:disabled,
.carousel-btn:disabled:hover {
  opacity: 0.35;
  background: transparent;
  color: var(--color-gunmetal);
  cursor: default;
}
.carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; height: 0; }
.carousel-card {
  flex: 0 0 min(320px, 78vw);
  height: auto;
  align-self: stretch;
  scroll-snap-align: start;
}
.carousel-card .card-media { height: 220px; flex: 0 0 220px; }
.carousel-card .card-media a { display: block; height: 100%; }

.editorial-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.editorial-image-frame { border: 2px solid rgba(246, 247, 235, 0.15); border-radius: var(--radius); overflow: hidden; }
.editorial-image-frame img { width: 100%; height: 520px; object-fit: cover; border-radius: 0; }
.editorial-list { display: flex; flex-direction: column; gap: var(--space-4); }
.editorial-item { padding-bottom: var(--space-4); border-bottom: 1px solid rgba(246, 247, 235, 0.15); }
.editorial-item:last-child { border-bottom: none; padding-bottom: 0; }
.editorial-item h3 { font-size: 1.45rem; margin-bottom: var(--space-1); }
.editorial-item h3 a { color: var(--color-ivory); }
.editorial-item h3 a:hover { color: var(--color-terracotta); }
.editorial-item p { color: rgba(246, 247, 235, 0.8); font-size: 0.95rem; line-height: 1.55; }

.numbered-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.numbered-card {
  display: grid;
  grid-template-columns: 56px 110px 1fr;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.1);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.numbered-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(57, 62, 65, 0.06); }
.numbered-index { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--color-terracotta); text-align: center; line-height: 1; }
.numbered-media { width: 110px; height: 80px; overflow: hidden; border-radius: var(--radius-sm); }
.numbered-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.numbered-content h4 { font-size: 1.1rem; margin-bottom: 4px; }
.numbered-content h4 a { color: var(--color-gunmetal); }
.numbered-content h4 a:hover { color: var(--color-terracotta); }
.numbered-content p { font-size: 0.85rem; color: rgba(57, 62, 65, 0.8); line-height: 1.4; }

.newsletter-section {
  padding: var(--space-8) 0;
  background-color: var(--color-white);
  border-top: 1px solid rgba(57, 62, 65, 0.1);
  border-bottom: 1px solid rgba(57, 62, 65, 0.1);
}
.newsletter-box { max-width: 720px; margin: 0 auto; text-align: center; }
.newsletter-box h2 { margin-bottom: var(--space-2); }
.newsletter-box > p { font-size: 1.05rem; color: rgba(57, 62, 65, 0.85); margin-bottom: var(--space-4); }
.newsletter-form, .newsletter-box .wpcf7-form {
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-form, .newsletter-box .wpcf7-form > p {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
}
.newsletter-box .wpcf7-form br,
.sidebar-newsletter .wpcf7-form br,
.contact-form-card .wpcf7-form br,
.newsletter-box .wpcf7-form p:empty,
.sidebar-newsletter .wpcf7-form p:empty,
.contact-form-card .wpcf7-form p:empty,
.newsletter-box .hidden-fields-container,
.sidebar-newsletter .hidden-fields-container,
.contact-form-card .hidden-fields-container {
  display: none !important;
}
.newsletter-form input[type="email"],
.newsletter-box .wpcf7-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(57, 62, 65, 0.3);
  border-radius: var(--radius);
  background-color: var(--color-ivory);
  color: var(--color-gunmetal);
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
}
.newsletter-form input[type="email"]:focus,
.newsletter-box .wpcf7-form input[type="email"]:focus { border-color: var(--color-terracotta); background-color: var(--color-white); }
.newsletter-box .wpcf7-form label.screen-reader-text,
.sidebar-newsletter .wpcf7-form label.screen-reader-text {
  position: static !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: unset !important;
  clip-path: none !important;
  font-size: 0;
  line-height: normal;
  white-space: normal;
  border: 0;
}
.newsletter-box .wpcf7-form label.screen-reader-text { flex: 1 1 220px; width: auto !important; min-width: 0; line-height: 0 !important; }
.sidebar-newsletter .wpcf7-form label.screen-reader-text { display: block; width: 100% !important; line-height: 0 !important; }
.newsletter-box .wpcf7-form .wpcf7-submit { flex: 0 0 auto; }
.sidebar-newsletter .wpcf7-form > p { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; width: 100%; }
.newsletter-box .wpcf7-form-control-wrap,
.sidebar-newsletter .wpcf7-form-control-wrap { display: block; width: 100%; }
.form-success-note { margin-top: var(--space-2); font-size: 0.9rem; color: var(--color-success); font-weight: 600; }
.form-success-note[hidden], .contact-notice[hidden] { display: none; }
.newsletter-form .field-error,
.newsletter-box .wpcf7-not-valid-tip,
.sidebar-newsletter .field-error,
.sidebar-newsletter .wpcf7-not-valid-tip {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 4px;
}
.newsletter-box .field-error,
.newsletter-box .wpcf7-not-valid-tip { text-align: center; }

.site-footer { background-color: var(--color-gunmetal); color: var(--color-ivory); padding: var(--space-8) 0 var(--space-6); margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(246, 247, 235, 0.15);
}
.footer-brand .site-logo { color: var(--color-ivory); font-size: 1.75rem; display: inline-block; margin-bottom: var(--space-2); }
.footer-desc { font-size: 0.95rem; color: rgba(246, 247, 235, 0.8); max-width: 380px; line-height: 1.6; margin-bottom: var(--space-4); }
.trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(246, 247, 235, 0.1);
  border: 1.5px solid rgba(246, 247, 235, 0.25);
  border-radius: var(--radius);
  color: var(--color-ivory);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.trustpilot-badge:hover { background: rgba(246, 247, 235, 0.18); border-color: #00b67a; color: var(--color-white); transform: translateY(-1px); }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-3);
  font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(246, 247, 235, 0.8); font-size: 0.95rem; font-weight: 400; }
.footer-links a:hover { color: var(--color-terracotta); }
.footer-links .nav-link.active::after { display: none; }
.social-links { display: flex; gap: 14px; margin-top: 20px; }
.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246, 247, 235, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ivory);
}
.social-icon:hover { border-color: var(--color-terracotta); background-color: var(--color-terracotta); color: var(--color-white); }
.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: rgba(246, 247, 235, 0.6);
}

.archive-header { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid rgba(57, 62, 65, 0.12); margin-bottom: var(--space-8); }
.archive-meta { max-width: 760px; }
.archive-title { margin-bottom: var(--space-2); }
.archive-description, .cat-hero__desc { font-size: 1.2rem; color: rgba(57, 62, 65, 0.85); line-height: 1.5; }
.archive-description p { margin: 0; }
.archive-grid, .search-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.archive-grid:has(+ .archive-pagination) { margin-bottom: 0; }
.archive-card .card-media { height: 240px; }
.archive-card .card-title { font-size: 1.25rem; }
.search-grid .card-media { height: 230px; }
.search-grid .card-title { font-size: 1.2rem; }
.archive-empty { margin-bottom: var(--space-10); }
.archive-pagination { display: flex; justify-content: center; gap: var(--space-1); margin-top: var(--space-6); margin-bottom: var(--space-8); flex-wrap: wrap; }
.page-btn, .archive-pagination .page-btn {
  padding: 8px 16px;
  border: 1px solid rgba(57, 62, 65, 0.2);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--color-white);
  color: var(--color-gunmetal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover, .archive-pagination a.page-btn:hover { background: rgba(57, 62, 65, 0.08); border-color: var(--color-gunmetal); }
.page-btn.current, .archive-pagination .page-btn.current { background: var(--color-gunmetal); color: var(--color-ivory); border-color: var(--color-gunmetal); }

.search-hero { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid rgba(57, 62, 65, 0.15); margin-bottom: var(--space-8); }
.search-hero-inner { max-width: 760px; }
.search-hero-title { margin-bottom: var(--space-2); }
.page-search-bar { display: flex; gap: 12px; margin-top: var(--space-4); margin-bottom: var(--space-4); }
.page-search-input-wrap { position: relative; flex-grow: 1; }
.page-search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(57, 62, 65, 0.25);
  border-radius: var(--radius);
  background: var(--color-white);
  font-size: 1.05rem;
  color: var(--color-gunmetal);
  outline: none;
}
.page-search-input:focus { border-color: var(--color-terracotta); box-shadow: 0 0 0 3px rgba(233, 79, 55, 0.15); }
.page-search-submit { padding: 0 28px; background: var(--color-terracotta); color: var(--color-white); border: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; }
.page-search-submit:hover { background: #d03d27; }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.filter-btn { padding: 6px 14px; border: 1px solid rgba(57, 62, 65, 0.2); border-radius: var(--radius); background: var(--color-white); font-size: 0.85rem; font-weight: 600; color: var(--color-gunmetal); cursor: pointer; }
.filter-btn:hover { border-color: var(--color-terracotta); color: var(--color-terracotta); }
.filter-btn.active { background: var(--color-gunmetal); color: var(--color-ivory); border-color: var(--color-gunmetal); }
.results-count-bar { margin-bottom: var(--space-5); font-size: 1rem; color: rgba(57, 62, 65, 0.8); }
mark.search-highlight { background-color: #ffeaa7; color: inherit; padding: 0 2px; border-radius: 2px; }
.search-empty-box { background: var(--color-white); border: 1px solid rgba(57, 62, 65, 0.1); border-radius: var(--radius); padding: var(--space-8); text-align: center; max-width: 680px; margin: 0 auto var(--space-8); }
.search-empty-icon { font-size: 2.5rem; margin-bottom: var(--space-2); }
.search-empty-title { font-size: 1.5rem; margin-bottom: var(--space-2); }
.search-empty-text { font-size: 1rem; color: rgba(57, 62, 65, 0.8); margin-bottom: var(--space-4); }
.popular-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag-link { padding: 6px 12px; background: rgba(57, 62, 65, 0.06); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; }
.tag-link:hover { background: var(--color-terracotta); color: var(--color-white); }

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: clamp(340px, 85vw, 420px);
  background: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(57, 62, 65, 0.16);
  z-index: 1000;
  overflow: hidden;
}
.live-search-header, .live-search-empty { padding: 10px 14px; }
.live-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(57, 62, 65, 0.04);
  border-bottom: 1px solid rgba(57, 62, 65, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(57, 62, 65, 0.7);
}
.live-search-view-all { color: var(--color-terracotta); font-weight: 700; text-transform: none; font-size: 0.85rem; }
.live-search-list { max-height: 360px; overflow-y: auto; }
.live-search-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(57, 62, 65, 0.08); }
.live-search-item:hover { background: rgba(233, 79, 55, 0.06); }
.live-search-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.live-search-cat { font-size: 0.7rem; font-weight: 700; color: var(--color-terracotta); text-transform: uppercase; letter-spacing: 0.05em; }
.live-search-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; line-height: 1.25; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-search-excerpt { font-size: 0.8rem; color: rgba(57, 62, 65, 0.75); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-search-footer-btn { display: block; padding: 10px; text-align: center; background: var(--color-gunmetal); color: var(--color-ivory); font-weight: 700; font-size: 0.85rem; }
.live-search-footer-btn:hover { background: var(--color-terracotta); color: var(--color-white); }
.live-search-empty { padding: 24px 16px; text-align: center; }
.live-search-empty-msg { font-weight: 600; margin-bottom: 6px; }
.live-search-hint { font-size: 0.85rem; color: rgba(57, 62, 65, 0.7); }

.post-page-wrapper { padding: var(--space-8) 0; }
.post-breadcrumbs { font-size: 0.85rem; color: rgba(57, 62, 65, 0.7); margin-bottom: var(--space-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-breadcrumbs a:hover { color: var(--color-terracotta); }
.post-layout-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.post-header { margin-bottom: var(--space-6); max-width: 860px; }
.post-featured-media { margin-bottom: var(--space-6); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(57, 62, 65, 0.1); }
.post-featured-media img { width: 100%; height: 480px; object-fit: cover; border-radius: 0; }
.post-caption, .post-inline-image figcaption {
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-white);
  font-size: 0.88rem;
  color: rgba(57, 62, 65, 0.85);
  font-style: italic;
}
.post-content { font-size: 1.12rem; line-height: 1.75; color: rgba(57, 62, 65, 0.95); max-width: 860px; }
.post-content p { margin-bottom: var(--space-4); }
.post-content h2 { margin: var(--space-6) 0 var(--space-3); }
.post-content blockquote {
  border-left: 4px solid var(--color-terracotta);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-6) 0;
  background-color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}
.post-content blockquote p { margin: 0; }
.post-inline-image { margin: var(--space-6) 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(57, 62, 65, 0.1); background: var(--color-white); }
.post-inline-image img { width: 100%; height: 380px; object-fit: cover; border-radius: 0; }
.author-bio-box {
  margin-top: var(--space-8);
  padding: var(--space-4);
  background-color: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.12);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-3);
  align-items: center;
}
.author-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-terracotta); }
.author-info h4 { font-size: 1.15rem; margin-bottom: 4px; }
.author-info p { font-size: 0.95rem; color: rgba(57, 62, 65, 0.85); line-height: 1.5; }
.post-sidebar { display: flex; flex-direction: column; gap: var(--space-6); position: sticky; top: calc(var(--header-height) + 24px); align-self: start; height: fit-content; }
.sidebar-widget { background-color: var(--color-white); border: 1px solid rgba(57, 62, 65, 0.12); border-radius: var(--radius); padding: var(--space-4); }
.widget-title, .sidebar-widget-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-bottom: var(--space-3);
  border-bottom: 2px solid rgba(57, 62, 65, 0.08);
  padding-bottom: var(--space-1);
}
.sidebar-newsletter > p { font-size: 0.9rem; color: rgba(57, 62, 65, 0.85); margin-bottom: 12px; line-height: 1.5; }
.sidebar-newsletter .wpcf7,
.sidebar-newsletter form,
.sidebar-newsletter .wpcf7-form { display: flex; flex-direction: column; gap: 0; margin: 0; }
.sidebar-newsletter .wpcf7-form > p { margin: 0; padding: 0; }
.sidebar-newsletter input[type="email"], .sidebar-newsletter .wpcf7-form input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(57, 62, 65, 0.25);
  border-radius: var(--radius);
  background-color: var(--color-ivory);
  color: var(--color-gunmetal);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: var(--space-2);
  outline: none;
}
.sidebar-newsletter input[type="email"]:focus { border-color: var(--color-terracotta); background-color: var(--color-white); }
.sidebar-newsletter .btn, .sidebar-newsletter .wpcf7-submit { width: 100%; }
.recent-posts-list { display: flex; flex-direction: column; gap: var(--space-3); }
.recent-post-item { display: grid; grid-template-columns: 80px 1fr; gap: var(--space-2); align-items: center; }
.recent-post-thumb { width: 80px; height: 64px; overflow: hidden; border-radius: var(--radius); }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.recent-post-title { font-size: 0.9rem; line-height: 1.35; font-weight: 600; }
.recent-post-title a:hover { color: var(--color-terracotta); }

.about-wrapper, .contact-wrapper, .legal-wrapper { padding: var(--space-8) 0; }
.about-header { max-width: 820px; margin: 0 auto var(--space-8); text-align: center; }
.about-header h1 { margin-bottom: var(--space-3); font-size: clamp(2.2rem, 4vw, 3.25rem); }
.about-lead { font-size: 1.25rem; color: rgba(57, 62, 65, 0.9); line-height: 1.55; }
.about-body { max-width: 820px; margin: 0 auto; font-size: 1.12rem; line-height: 1.75; color: rgba(57, 62, 65, 0.95); }
.about-body p { margin-bottom: var(--space-4); }
.about-image-card { margin: var(--space-6) 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(57, 62, 65, 0.12); background-color: var(--color-white); }
.about-image-card img { width: 100%; height: 420px; object-fit: cover; border-radius: 0; }
.about-image-caption { padding: var(--space-2) var(--space-3); font-size: 0.88rem; color: rgba(57, 62, 65, 0.8); font-style: italic; }
.about-dual-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: var(--space-6) 0; }
.about-dual-images .about-image-card { margin: 0; }
.about-dual-images img { height: 280px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-intro-card, .contact-form-card { background-color: var(--color-white); border: 1px solid rgba(57, 62, 65, 0.12); border-radius: var(--radius); height: 100%; }
.contact-intro-card { overflow: hidden; display: flex; flex-direction: column; }
.contact-hero-image { height: 340px; overflow: hidden; }
.contact-hero-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.contact-intro-body { padding: var(--space-4); }
.contact-intro-body p { color: rgba(57, 62, 65, 0.85); line-height: 1.6; margin-bottom: var(--space-3); }
.contact-form-card { padding: var(--space-5); display: flex; flex-direction: column; }
.contact-form-card h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: var(--space-2); }
.contact-form-card .wpcf7,
.contact-form-card .wpcf7-form,
.contact-form-card form.js-iv-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.contact-form-card .form-group:has(textarea),
.contact-form-card .wpcf7-form p:has(textarea),
.contact-form-card .wpcf7-form .form-group:has(textarea) label,
.contact-form-card .wpcf7-form-control-wrap:has(textarea) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.contact-form-card .wpcf7-form > p:not(:has(textarea)) { margin: 0; }
.form-group { margin-bottom: var(--space-3); }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.form-input, .form-textarea, .contact-form-card input.wpcf7-form-control, .contact-form-card textarea.wpcf7-form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(57, 62, 65, 0.25);
  border-radius: var(--radius);
  background-color: var(--color-ivory);
  color: var(--color-gunmetal);
  font-size: 0.95rem;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .contact-form-card input:focus, .contact-form-card textarea:focus { border-color: var(--color-terracotta); background-color: var(--color-white); }
.form-textarea, .contact-form-card textarea { flex: 1 1 auto; min-height: 140px; height: auto; resize: none; }
.contact-notice {
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: rgba(31, 138, 76, 0.08);
  border: 1px solid var(--color-success);
  border-radius: var(--radius);
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.9rem;
}
.wpcf7-mail-sent-ok { color: var(--color-success); border-color: var(--color-success); }
.field-error { display: block; margin-top: 6px; color: var(--color-terracotta); font-size: 0.85rem; font-weight: 600; }
.is-invalid, .wpcf7-not-valid { border-color: var(--color-terracotta) !important; }
.wpcf7-response-output, .wpcf7-spinner { display: none !important; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--color-white);
  border: 1px solid rgba(57, 62, 65, 0.12);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
}
.legal-content h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-bottom: var(--space-4); }
.legal-content h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.legal-content p { margin-bottom: var(--space-3); font-size: 1.05rem; line-height: 1.7; color: rgba(57, 62, 65, 0.9); }
.legal-content ul { margin: var(--space-2) 0 var(--space-4) var(--space-4); font-size: 1.02rem; line-height: 1.65; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--color-terracotta); text-decoration: underline; }
.home-editor { padding: var(--space-6) 0; }

@media (max-width: 1280px) {
  .site-nav { gap: var(--space-3); }
  .header-search { min-width: 150px; max-width: 190px; }
}
@media (max-width: 1100px) {
  :root { --header-height: 72px; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-height); padding: 12px 0; }
  .site-logo { order: 1; }
  .lang-switcher { order: 2; margin-left: auto; }
  .lang-switcher__toggle .lang-switcher__flag { width: 22px; height: 15px; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: -8px; }
  .lang-switcher__toggle .lang-switcher__name { display: none; }
  .header-panel {
    display: none;
    order: 4;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: var(--space-2) 0 var(--space-2);
    border-top: 1px solid rgba(57, 62, 65, 0.12);
  }
  .header-panel.is-open { display: flex; }
  .site-nav {
    order: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    overflow: visible;
  }
  .site-nav .nav-link { display: block; width: 100%; padding: 10px 0; }
  .site-nav .nav-link.active::after { bottom: 6px; width: 28px; }
  .header-search { order: 0; width: 100%; max-width: none; min-width: 0; }
  .live-search-dropdown { left: 0; right: 0; width: auto; }
}
@media (max-width: 1024px) {
  .hero-grid, .bento-grid, .editorial-split, .contact-grid, .post-layout-grid { grid-template-columns: 1fr; }
  .hero-image-wrapper img { height: 380px; }
  .masonry-grid, .archive-grid, .search-grid { grid-template-columns: 1fr 1fr; }
  .editorial-image-frame img { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-sidebar { position: static; margin-top: var(--space-6); }
  .section-head { flex-wrap: wrap; align-items: flex-end; }
  .numbered-list-grid { grid-template-columns: 1fr; }
  .numbered-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
  }
  .numbered-index { text-align: left; }
  .numbered-media { width: 100%; height: 180px; }
  .numbered-content { width: 100%; }
  .numbered-content h4 { font-size: 1.25rem; margin: 4px 0; }
}
@media (max-width: 768px) {
  .masonry-grid, .archive-grid, .search-grid, .numbered-list-grid, .footer-grid, .about-dual-images { grid-template-columns: 1fr; }
  .bento-small { grid-template-columns: 1fr; }
  .bento-small .card-media { height: 180px; min-height: 180px; }
  .bento-small .card-media img { position: static; height: 180px; }
  .newsletter-box .wpcf7-form > p { flex-direction: column !important; align-items: stretch; }
  .newsletter-box .wpcf7-form label.screen-reader-text,
  .newsletter-box .wpcf7-form .wpcf7-submit { width: 100% !important; flex: 1 1 auto; }
  .contact-form-card textarea { flex: none; min-height: 160px; }
  .page-search-bar { flex-direction: column; }
  .author-bio-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .post-featured-media img, .hero-image-wrapper img { height: 280px; }
  .editorial-image-frame img, .about-image-card img, .about-dual-images img { height: 240px; }
  .contact-hero-image { height: 220px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__tools { width: 100%; justify-content: space-between; }
  .hero-actions .btn { width: 100%; }
  .numbered-media { height: 200px; }
}
@media (max-width: 480px) {
  .site-logo { font-size: 1.35rem; }
  .contact-form-card, .contact-intro-body { padding: var(--space-3); }
}
