/* Codeer-inspired sticky cards, adapted to Bounty's palette, Persian copy and native blocks. */
.bounty-home-usage-occasions {
  --usage-sticky-top: 100px;
  --usage-card-height: 520px;
  direction: rtl;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  background: #faf6ef;
  border-block: 1px solid #e9dfd1;
  color: var(--bounty-ink, #302119);
}
.bounty-home-usage-occasions,
.bounty-home-usage-occasions * { box-sizing: border-box; }
.bounty-home-usage-occasions .bounty-usage__inner {
  width: 100%;
  max-width: 1672px;
  margin: 0 auto;
  padding: 96px clamp(24px, 5.38vw, 90px) 64px;
}
.bounty-home-usage-occasions .bounty-usage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(min-content, 1fr));
  align-items: start;
  gap: 0 8px;
  margin: 0;
  overflow: visible;
}
.bounty-home-usage-occasions .bounty-usage__card {
  --usage-surface: #f0e5d5;
  --usage-ink: #3e2a1e;
  --usage-muted: #705543;
  --usage-watermark: rgb(78 48 27 / 6%);
  position: sticky;
  top: var(--usage-sticky-top);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 58px;
  width: 100%;
  min-width: 0;
  min-height: var(--usage-card-height);
  margin: 0;
  padding: 30px 26px 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: clip;
  background: var(--usage-surface);
  color: var(--usage-ink);
  text-align: start;
}
.bounty-home-usage-occasions .bounty-usage__card--everyday { grid-area: 1 / 1; }
.bounty-home-usage-occasions .bounty-usage__card--gifts {
  --usage-surface: #e1c29d;
  --usage-muted: #65462f;
  grid-area: 2 / 2;
}
.bounty-home-usage-occasions .bounty-usage__card--parties-gatherings {
  --usage-surface: #965936;
  --usage-ink: #fff8ef;
  --usage-muted: #fae6d3;
  --usage-watermark: rgb(255 248 239 / 10%);
  grid-area: 3 / 3;
}
.bounty-home-usage-occasions .bounty-usage__card--special-occasions {
  --usage-surface: #3e291f;
  --usage-ink: #fff8ef;
  --usage-muted: #e8d3bd;
  --usage-watermark: rgb(255 248 239 / 10%);
  grid-area: 4 / 4;
}
.bounty-home-usage-occasions .bounty-usage__card:focus-within { z-index: 2; }
/* The pointer-only overlay shares the native CTA destination; keyboard users get one tab stop. */
.bounty-home-usage-occasions .bounty-usage__card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.bounty-home-usage-occasions .bounty-usage__card-top,
.bounty-home-usage-occasions .bounty-usage__card-bottom { pointer-events: none; }
.bounty-home-usage-occasions .bounty-usage__actions a { pointer-events: auto; }
.editor-styles-wrapper .bounty-home-usage-occasions .bounty-usage__card-link { display: none; }
.editor-styles-wrapper .bounty-home-usage-occasions .bounty-usage__card-top,
.editor-styles-wrapper .bounty-home-usage-occasions .bounty-usage__card-bottom { pointer-events: auto; }

.bounty-home-usage-occasions .bounty-usage__watermark {
  position: absolute;
  inset-block-start: -39px;
  inset-inline-end: -14px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: var(--usage-watermark);
  font-size: clamp(150px, 14.35vw, 240px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.08em;
}
.bounty-home-usage-occasions .bounty-usage__card-top,
.bounty-home-usage-occasions .bounty-usage__card-bottom { position: relative; z-index: 1; margin: 0; }
.bounty-home-usage-occasions .bounty-usage__index {
  margin: 0 0 20px;
  color: var(--usage-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
}
.bounty-home-usage-occasions .bounty-usage__card-title {
  margin: 0;
  color: var(--usage-ink);
  font-size: clamp(22px, 1.85vw, 30px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.bounty-home-usage-occasions .bounty-usage__description {
  margin: 0 0 28px;
  color: var(--usage-ink);
  font-size: 14px;
  line-height: 2.15;
}
.bounty-home-usage-occasions .bounty-usage__suggestion-label {
  margin: 0 0 6px;
  color: var(--usage-muted);
  font-size: 10px;
  line-height: 1.8;
}
.bounty-home-usage-occasions .bounty-usage__suggestions {
  margin: 0;
  padding-block-end: 20px;
  border-block-end: 1px solid currentColor;
  color: var(--usage-muted);
  font-size: 12px;
  line-height: 1.9;
}
.bounty-home-usage-occasions .bounty-usage__actions { margin: 24px 0 0; }
.bounty-home-usage-occasions .bounty-usage__actions .wp-block-button { width: 100%; margin: 0; }
.bounty-home-usage-occasions .bounty-usage__actions .wp-block-button__link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 30px;
  background: #fffaf2;
  color: #4b301f;
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
}
.bounty-home-usage-occasions .bounty-usage__actions .wp-block-button__link::after {
  content: '←';
  margin-inline-start: 12px;
  font-size: 22px;
  line-height: 1;
}
.home .entry-content .bounty-home .bounty-home-usage-occasions .bounty-motion-button {
  --bounty-button-surface: #fffaf2;
  --bounty-button-ink: #4b301f;
  --bounty-button-hover: #fff;
}
.bounty-home-usage-occasions .bounty-usage__actions a:focus-visible { outline: 3px solid var(--usage-ink); outline-offset: 6px; }
body.admin-bar .bounty-home-usage-occasions { --usage-sticky-top: 132px; }
/* Use explicit placement instead of decorative filler blocks; DOM reading order stays 1–4. */
@media (max-width: 1199.98px) {
  .bounty-home-usage-occasions { --usage-card-height: 440px; }
  .bounty-home-usage-occasions .bounty-usage__inner { padding-block: 72px 48px; }
  .bounty-home-usage-occasions .bounty-usage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bounty-home-usage-occasions .bounty-usage__card--parties-gatherings { grid-column: 1; }
  .bounty-home-usage-occasions .bounty-usage__card--special-occasions { grid-column: 2; }
  .bounty-home-usage-occasions .bounty-usage__card { padding: 30px; }
  .bounty-home-usage-occasions .bounty-usage__watermark { font-size: 220px; }
  .bounty-home-usage-occasions .bounty-usage__card-title { font-size: 28px; }
  .bounty-home-usage-occasions .bounty-usage__description { font-size: 16px; }
}
@media (max-width: 809.98px) {
  .bounty-home-usage-occasions .bounty-usage__grid { grid-template-columns: minmax(0, 1fr); }
  .bounty-home-usage-occasions .bounty-usage__card { grid-column: 1; }
}
/* Ordinary flow on phones and short viewports keeps every description and link reachable. */
@media (max-width: 600px), (max-height: 680px) {
  .bounty-home-usage-occasions { --usage-card-height: 400px; }
  .bounty-home-usage-occasions .bounty-usage__inner { padding: 48px 24px 36px; }
  .bounty-home-usage-occasions .bounty-usage__grid { grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  .bounty-home-usage-occasions .bounty-usage__card { position: relative; top: auto; grid-area: auto; gap: 48px; }
  .bounty-home-usage-occasions .bounty-usage__card-title { font-size: 25px; }
  .bounty-home-usage-occasions .bounty-usage__watermark { font-size: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .bounty-home-usage-occasions .bounty-usage__grid { grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  .bounty-home-usage-occasions .bounty-usage__card { position: relative; top: auto; grid-area: auto; }
}
/* Show an editable overview in Gutenberg instead of a long pinned scroll sequence. */
.editor-styles-wrapper .bounty-home-usage-occasions .bounty-usage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
.editor-styles-wrapper .bounty-home-usage-occasions .bounty-usage__card { position: relative; top: auto; grid-area: auto; min-height: 440px; }
