@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;600&display=swap');

.r-input.error {
  border-color: rgb(239 68 68);
  border-width: 2px;
}

.profile-bubble {
  opacity: 0;
  transition: opacity 2s;
  -webkit-transition: opacity 2s; /* Safari */
  border-width: 3px;
}

.footer-bg {
  background-image: url('/common/images/pattern.png');
}

@media (min-width: 300px) {
  .h-body {
    min-height: calc(100vh - 120px);
  }
}

@media (min-width: 768px) {
  .h-with-left-column {
    height: calc(100vh - 60px);
  }

  .h-body {
    min-height: calc(100vh - 60px);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.fade-in {
  animation: fadeIn 0.1s ease-in-out 0s 1;
}
.fade-out {
  animation: fadeOut 0.1s ease-in-out 0s 1;
}

.blog-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post {
  background: rgb(var(--brand-soft));
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: rgb(30 27 24);
  padding: 3rem 1.25rem 4rem;
}

.blog-post-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.blog-post-title {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.blog-post-subtitle {
  font-family: Lora, Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  color: rgb(100 100 100);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgb(120 113 108);
}

.blog-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.blog-post-meta-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.blog-post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 2.5rem;
}

.blog-post-intro {
  margin-bottom: 3rem;
}

.blog-content p {
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

.blog-post-section {
  margin-bottom: 3.5rem;
}

.blog-post-section-title {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.blog-post-section-num {
  color: rgb(var(--brand-strong));
}

.blog-post-section .blog-content::after {
  content: '';
  display: table;
  clear: both;
}

.blog-post-figure {
  margin: 0 0 1.25rem;
}

.blog-post-figure img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
}

.blog-post-figure-caption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: rgb(120 113 108);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .blog-post-figure {
    width: 42%;
  }

  .blog-post-figure--image-right {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
  }

  .blog-post-figure--image-left {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
  }
}

.blog-tips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-tips li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.65;
  font-size: 1.0625rem;
}

.blog-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  background: rgb(var(--brand-strong));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.blog-post-footer {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .blog-post-footer {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

.blog-post-cta {
  background: rgb(var(--brand-mid) / 0.25);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.blog-post-cta-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.blog-post-cta-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  color: rgb(68 64 60);
}

.blog-post-cta-btn {
  display: inline-block;
  background: rgb(var(--brand-strong));
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.blog-post-cta-btn:hover {
  background: rgb(var(--brand-dark));
}

.blog-post-back {
  display: inline-block;
  color: rgb(var(--brand-strong));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.blog-post-back:hover {
  color: rgb(var(--brand-dark));
}

.blog-list-page {
  background: rgb(var(--brand-soft));
}

.blog-list-hero {
  position: relative;
  min-height: 22rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.blog-list-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.4) 45%, rgb(0 0 0 / 0.15) 100%);
}

.blog-list-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
}

.blog-list-label {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--brand-strong));
  margin: 0 0 0.75rem;
}

.blog-list-hero-title {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgb(30 27 24);
  margin: 0 0 0.75rem;
  max-width: 42rem;
}

.blog-list-hero-subtitle {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(100 100 100);
  margin: 0;
  max-width: 36rem;
}

.blog-list-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .blog-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
  display: flex;
  flex-direction: column;
}

.blog-card-image-link {
  display: block;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--brand-strong));
  margin: 0 0 0.5rem;
}

.blog-card-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.blog-card-title a {
  color: rgb(30 27 24);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: rgb(var(--brand-strong));
}

.blog-card-meta {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: rgb(120 113 108);
  margin: 0 0 0.75rem;
}

.blog-card-excerpt {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(68 64 60);
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--brand-strong));
  text-decoration: none;
  margin-top: auto;
}

.blog-card-link:hover {
  color: rgb(var(--brand-dark));
}

.blog-list-empty {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  text-align: center;
  color: rgb(100 100 100);
  padding: 3rem 0;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 3rem;
}

.blog-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid rgb(214 211 209);
  border-radius: 0.375rem;
  background: white;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(68 64 60);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.blog-pagination-btn:hover {
  border-color: rgb(var(--brand-mid));
  color: rgb(var(--brand-strong));
}

.blog-pagination-btn--active {
  background: rgb(var(--brand-strong));
  border-color: rgb(var(--brand-strong));
  color: white;
}

.blog-pagination-btn--arrow {
  font-size: 1.125rem;
  line-height: 1;
}

.blog-pagination-btn--disabled {
  opacity: 0.35;
  pointer-events: none;
}

.blog-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgb(120 113 108);
}
