/* cloudrecipeslot.com blog: single post (notebook sheet) and /blog/ index (index cards).
   Loaded only by single.php and page-blog.php, after home.css. */

.tab-nav .tab[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Breadcrumbs ---------- */
.note-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.note-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.note-crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Single post: a ruled notebook sheet ---------- */
.note-post {
  padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 7vw, 72px);
}

.note-wrap {
  max-width: 940px;
}

.note-sheet {
  position: relative;
  margin-top: 30px;
  padding: clamp(40px, 6vw, 60px) clamp(18px, 6vw, 64px) clamp(32px, 5vw, 52px) clamp(28px, 9vw, 96px);
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 0 calc(clamp(14px, 5vw, 60px) - 1px), var(--margin) calc(clamp(14px, 5vw, 60px) - 1px) clamp(14px, 5vw, 60px), transparent clamp(14px, 5vw, 60px));
  border: 1px solid rgba(42, 30, 36, 0.1);
  border-top: 8px solid var(--green);
  border-radius: 4px 4px 8px 8px;
  box-shadow: var(--shadow);
}

.note-label {
  position: absolute;
  top: -38px;
  left: clamp(20px, 6vw, 64px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 40px);
  padding: 8px 16px 6px;
  background: var(--green);
  color: var(--card);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-label .ico {
  width: 1em;
  height: 1em;
}

.note-head h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.note-dek {
  margin: 0 0 18px;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 2px dashed var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.note-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.note-meta .ico {
  width: 1.05em;
  height: 1.05em;
  color: var(--cobalt);
}

.note-hero {
  margin: 28px 0 8px;
  padding: 10px 10px 34px;
  background: #fff;
  box-shadow: 0 14px 28px -18px rgba(42, 30, 36, 0.55);
  transform: rotate(-0.6deg);
}

.note-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article body on ruled lines */
.note-body {
  margin-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.note-body > *:last-child {
  margin-bottom: 0;
}

.note-body p {
  margin: 0 0 1.15em;
}

.note-body h2 {
  position: relative;
  margin: 1.8em 0 0.6em;
  padding-left: 16px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  border-left: 5px solid var(--cobalt);
}

.note-body h3 {
  margin: 1.4em 0 0.4em;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--plum);
}

.note-body ul,
.note-body ol {
  margin: 0 0 1.3em;
  padding: 14px 18px 14px 22px;
  background-color: var(--paper);
  border-left: 3px solid var(--green-soft);
  border-radius: var(--radius);
}

.note-body ul {
  list-style: none;
  padding-left: 18px;
}

.note-body ul li {
  position: relative;
  padding-left: 28px;
}

.note-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green);
  border-radius: 3px;
}

.note-body ol {
  padding-left: 46px;
}

.note-body ol li::marker {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cobalt);
}

.note-body li + li {
  margin-top: 2px;
}

.note-body strong {
  color: var(--ink);
}

.note-body a {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.note-body img {
  height: auto;
  border-radius: var(--radius);
}

/* Offer block (single and index) */
.note-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(36px, 5vw, 52px);
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper-deep);
  border: 2px dashed rgba(28, 92, 36, 0.4);
  border-radius: 10px;
}

.note-offer-ico {
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--green);
  color: var(--card);
  border-radius: 50%;
  stroke-width: 1.8;
}

.note-offer-copy h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin-bottom: 8px;
}

.note-offer-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.note-offer-act.closing-cta {
  margin-top: 0;
  max-width: 300px;
}

.note-offer-act .cta-note {
  font-size: 0.85rem;
}

/* More articles */
.note-more {
  padding-top: 0;
}

.note-all {
  margin: 28px 0 0;
  text-align: center;
}

.note-all .text-link {
  gap: 8px;
}

.note-all .ico {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Index cards (blog index + more articles) ---------- */
.bcard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 26px;
  margin: 0;
  padding-top: 30px;
}

.bcard {
  --tone: var(--green);
  position: relative;
  min-width: 0;
}

.bcard--cobalt { --tone: var(--cobalt); }
.bcard--green { --tone: var(--green); }
.bcard--plum { --tone: var(--plum); }
.bcard--ink { --tone: var(--ink); }

.bcard-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid rgba(42, 30, 36, 0.1);
  border-top: 6px solid var(--tone);
  border-radius: 0 6px 8px 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bcard-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(42, 30, 36, 0.06), 0 18px 32px -14px rgba(42, 30, 36, 0.38);
}

.bcard-tab {
  position: absolute;
  top: -30px;
  left: -1px;
  max-width: calc(100% - 24px);
  padding: 6px 14px 4px;
  background: var(--tone);
  color: var(--card);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcard-fig {
  display: block;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 4px;
}

.bcard-fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.bcard-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px 18px 18px;
}

.bcard-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.bcard-link:hover .bcard-title {
  text-decoration: underline;
  text-decoration-color: var(--tone);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bcard-ex {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.bcard-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tone);
}

.bcard-meta .ico {
  width: 1.05em;
  height: 1.05em;
}

/* ---------- Blog index ---------- */
main > .bi-top {
  padding-top: clamp(28px, 5vw, 56px);
}

.bi-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: center;
}

.bi-intro h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: 14px;
}

.bi-dek {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
}

.bi-card {
  display: grid;
  gap: 0;
  padding: 26px 26px 22px 56px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 0 37px, var(--margin) 37px 38px, transparent 38px),
    repeating-linear-gradient(180deg, transparent 0 43px, var(--rule) 43px 44px);
  background-position: 0 0, 0 22px;
  border-top: 8px solid var(--cobalt);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.bi-card-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink);
}

.bi-card-line .ico {
  color: var(--green);
}

.bi-card-line:nth-child(2) .ico { color: var(--cobalt); }
.bi-card-line:nth-child(3) .ico { color: var(--plum); }
.bi-card-line:nth-child(4) .ico { color: var(--ink-soft); }

/* Label chips styled as small index tabs */
.bi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.bi-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid rgba(42, 30, 36, 0.16);
  border-bottom: 3px solid var(--cobalt);
  border-radius: var(--radius) var(--radius) 2px 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.bi-chips a:hover {
  background: var(--cobalt-soft);
}

.bi-chips a[aria-current="page"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--card);
}

/* Pagination */
.bi-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.bi-pages .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid rgba(42, 30, 36, 0.16);
  border-radius: var(--radius);
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.bi-pages a.page-numbers:hover {
  background: var(--green-soft);
}

.bi-pages .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: var(--card);
}

.bi-pages .page-numbers.dots {
  background: none;
  border: 0;
}

.bi-empty {
  margin: 24px 0 0;
  padding: 22px;
  background: var(--card);
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
}

.bi-offer .note-offer {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcard-grid--three .bcard:nth-child(3) {
    display: none;
  }

  .note-offer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .note-offer-act.closing-cta {
    grid-column: 1 / -1;
    max-width: none;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .bi-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bi-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .bcard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .bcard-grid--three .bcard:nth-child(3) {
    display: block;
  }

  .note-sheet {
    margin-left: calc(-1 * var(--gutter) + 6px);
    margin-right: calc(-1 * var(--gutter) + 6px);
    padding: 40px 18px 28px 30px;
    background-image: linear-gradient(90deg, transparent 0 15px, var(--margin) 15px 16px, transparent 16px);
  }

  .note-label {
    left: 18px;
    max-width: calc(100% - 36px);
  }

  .note-hero {
    padding: 6px 6px 22px;
    transform: none;
  }

  .note-body ul,
  .note-body ol {
    padding-right: 12px;
  }

  .note-body ul {
    padding-left: 10px;
  }

  .note-body ol {
    padding-left: 36px;
  }

  .note-offer {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .note-offer-ico {
    width: 42px;
    height: 42px;
  }

  .note-offer-act .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcard-link {
    transition: none;
  }

  .bcard-link:hover {
    transform: none;
  }
}

/* Header fit with the Blog tab (same rules are inlined into the homepage and info pages) */
@media (min-width:721px) and (max-width:1140px){.tab-nav{gap:4px}.tab-nav .tab{padding-left:9px;padding-right:9px;font-size:0.88rem}.header-row .brand img{height:42px}}@media (min-width:721px) and (max-width:900px){.header-row{flex-wrap:wrap;row-gap:0;padding-bottom:12px}.header-row .brand{order:1}.header-row .hand-cta{order:2;margin-left:auto}.header-row .tab-nav{order:3;flex-basis:100%;justify-content:center;margin:0}.tab-nav .tab{padding-top:12px}.tab-nav .htab-green{padding-top:18px}.tab-nav .htab-ink{padding-top:15px}}
