/* Organise You | Public blog article styles | v1.0
   Intentionally scoped to body.oy-blog-article-page.
   Does not affect Recipes, admin pages, or the main app. */

.oy-blog-article-page {
  font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
  --blog-ink: #24342a;
  --blog-muted: #64736a;
  --blog-green: #276749;
  --blog-green-dark: #1d5037;
  --blog-tint: #f0f7f2;
  --blog-border: #dce9df;
}

.oy-blog-article-page .recipe-shell {
  width: min(1320px, calc(100% - 48px));
  margin: clamp(28px, 4vw, 56px) auto 88px;
}

.oy-blog-article-page .recipe-detail {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(25px, 4vw, 54px);
  background: #fff;
  border: 1px solid #e0e9e2;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(23, 67, 42, .055);
  color: var(--blog-ink);
}

.oy-blog-article-page .recipe-detail > p:first-child {
  margin: 0 0 28px;
  font-size: 14px;
}

.oy-blog-article-page .recipe-detail > p:first-child a {
  color: var(--blog-green);
  font-weight: 650;
  text-underline-offset: 3px;
}

.oy-blog-article-page .recipe-detail > h1 {
  margin: 0 0 18px;
  max-width: 1080px;
  color: #193b2a;
  font-size: clamp(31px, 4.1vw, 48px);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.oy-blog-article-page .recipe-detail > .hint {
  margin: 0 0 28px;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 1.5;
}

.oy-blog-article-page .recipe-detail > .hint a {
  color: var(--blog-green-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}

.oy-blog-article-page .recipe-detail > .lede {
  margin: 0 0 34px;
  padding: 18px 22px;
  color: #3b5945;
  background: #f4f9f5;
  border-left: 4px solid #4e9470;
  border-radius: 0 12px 12px 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}

/* Reset the shared recipe styling: articles use normal HTML whitespace. */
.oy-blog-article-page .recipe-prose {
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 17px;
  line-height: 1.78;
  color: #2b3930;
}

.oy-blog-article-page .recipe-prose > p {
  margin: 0 0 1.2em;
  max-width: 94ch;
}

.oy-blog-article-page .recipe-prose > h2 {
  margin: 57px 0 23px;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--blog-border);
  color: #1c593b;
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.oy-blog-article-page .recipe-prose > h2:first-child {
  margin-top: 20px;
}

/* Numbered tips get a consistent, restrained heading treatment. */
.oy-blog-article-page .recipe-prose > h3 {
  margin: 30px 0 12px;
  padding: 14px 17px;
  background: linear-gradient(90deg, #eef7f0, #fafcfb);
  border-left: 4px solid #438b60;
  border-radius: 0 10px 10px 0;
  color: #214c35;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 720;
  line-height: 1.42;
  letter-spacing: -.01em;
}

.oy-blog-article-page .recipe-prose > h4,
.oy-blog-article-page .recipe-prose > h5,
.oy-blog-article-page .recipe-prose > h6 {
  margin: 25px 0 10px;
  color: #23543a;
  line-height: 1.4;
}

.oy-blog-article-page .recipe-prose strong,
.oy-blog-article-page .recipe-prose b {
  color: #203b2b;
  font-weight: 720;
}

.oy-blog-article-page .recipe-prose a {
  color: #176b43;
  font-weight: 620;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.oy-blog-article-page .recipe-prose a:hover {
  color: #104b2e;
}

.oy-blog-article-page .recipe-prose a:focus-visible,
.oy-blog-article-page .recipe-detail a:focus-visible {
  outline: 3px solid #88b89c;
  outline-offset: 3px;
  border-radius: 3px;
}

.oy-blog-article-page .recipe-prose ul,
.oy-blog-article-page .recipe-prose ol {
  margin: 12px 0 24px;
  padding-left: 1.65em;
}

.oy-blog-article-page .recipe-prose li {
  margin: 0 0 10px;
  padding-left: 3px;
}

.oy-blog-article-page .recipe-prose li::marker {
  color: #367950;
  font-weight: 700;
}

.oy-blog-article-page .recipe-prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #4b966a;
  background: var(--blog-tint);
  border-radius: 0 12px 12px 0;
  color: #31533d;
  font-size: 1.03em;
  line-height: 1.7;
}

.oy-blog-article-page .recipe-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 14px;
  box-shadow: 0 6px 26px rgba(17, 53, 31, .07);
}

.oy-blog-article-page .recipe-prose figure {
  max-width: 100%;
  margin: 28px 0;
}

.oy-blog-article-page .recipe-prose figure img {
  margin: 0 auto;
}

.oy-blog-article-page .recipe-prose figcaption {
  padding: 9px 12px 0;
  color: var(--blog-muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.oy-blog-article-page .recipe-prose hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--blog-border);
}

/* The sanitiser permits safe table markup, without custom classes. */
.oy-blog-article-page .recipe-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0 32px;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--blog-border);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.oy-blog-article-page .recipe-prose th,
.oy-blog-article-page .recipe-prose td {
  padding: 12px 14px;
  border: 1px solid var(--blog-border);
  text-align: left;
  vertical-align: top;
  min-width: 90px;
}

.oy-blog-article-page .recipe-prose th {
  background: #eaf4ed;
  color: #234c35;
  font-weight: 700;
}

.oy-blog-article-page .recipe-prose tr:nth-child(even) td {
  background: #f8fbf9;
}

@media (max-width: 640px) {
  .oy-blog-article-page .recipe-shell {
    width: calc(100% - 20px);
    margin: 18px auto 48px;
  }

  .oy-blog-article-page .recipe-detail {
    padding: 24px 18px 34px;
    border-radius: 15px;
  }

  .oy-blog-article-page .recipe-detail > .lede {
    padding: 15px 16px;
  }

  .oy-blog-article-page .recipe-prose {
    font-size: 16px;
    line-height: 1.72;
  }

  .oy-blog-article-page .recipe-prose > h2 {
    margin-top: 42px;
  }

  .oy-blog-article-page .recipe-prose > h3 {
    margin-top: 24px;
    padding: 12px 13px;
  }
}

@media print {
  .oy-blog-article-page .recipe-detail {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .oy-blog-article-page .recipe-prose > h2,
  .oy-blog-article-page .recipe-prose > h3 {
    break-after: avoid;
  }
}

/* Featured images are shared between article pages and blog cards. */
.oy-blog-article-page .oy-blog-featured{margin:24px 0 34px;width:100%;}
.oy-blog-article-page .oy-blog-featured img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:15px;}
.oy-blog-card-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px 12px 0 0;}

/* OY BLOG INDEX POLISH 2026-10-30 */
.oy-blog-index-page .recipe-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 45px auto 90px;
}
.oy-blog-index-page .recipe-head { margin-bottom: 28px; }
.oy-blog-index-page .recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}
.oy-blog-index-page .recipe-card {
    display: flex;
    flex-direction: column;
    max-width: 410px;
    border: 1px solid #dde8df;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.oy-blog-index-page .recipe-card:hover {
    border-color: #8fbaa0;
    box-shadow: 0 12px 32px rgba(25, 70, 44, .09);
    transform: translateY(-2px);
}
.oy-blog-index-page .oy-blog-card-image,
.oy-blog-index-page .oy-blog-card-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    flex-shrink: 0;
}
.oy-blog-index-page .oy-blog-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9f4eb, #f8fbf8);
    color: #2f6c49;
    font-weight: 750;
    font-size: 23px;
    letter-spacing: -.03em;
}
.oy-blog-index-page .recipe-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.oy-blog-index-page .recipe-card-content h2 {
    margin: 0 0 12px;
    color: #193b2a;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.35;
    font-weight: 750;
}
.oy-blog-index-page .recipe-card-content p {
    margin: 0 0 14px;
    min-height: 0;
    font-size: 15px;
    line-height: 1.55;
}
.oy-blog-index-page .recipe-card-content p:empty { display: none; }
.oy-blog-index-page .recipe-card-content small {
    margin-top: auto;
    font-size: 13px;
}
@media (max-width: 640px) {
    .oy-blog-index-page .recipe-shell {
        width: calc(100% - 28px);
        margin: 28px auto 56px;
    }
    .oy-blog-index-page .recipe-grid { grid-template-columns: 1fr; gap: 18px; }
    .oy-blog-index-page .recipe-card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .oy-blog-index-page .recipe-card { transition: none; }
    .oy-blog-index-page .recipe-card:hover { transform: none; }
}
