/* The occasion pages (site/components/ocazie.html) and their hub (/ocazii). Loaded only by those pages, after site.css,
   so it can use its tokens (--mist, --navy, --stack, ...) and its shared blocks (tag, h2, faq, cta). */

/* hero: the page's own picture, with the painted edge of its style, on the light blue card */
.oc-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 32px; background: var(--mist); }
.oc-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); }
.oc-hero__art { margin: 0; }
.oc-hero__art img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .oc-hero { grid-template-columns: 1fr; gap: 28px; } .oc-hero__art { order: -1; max-width: 520px; } }

/* the moment, and what the book does for it */
.oc-moment { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.oc-moment__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); }
.oc-helps { padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.oc-helps__title { margin: 0 0 20px; font-family: var(--display); font-size: 22px; line-height: 1.25; color: var(--navy); }
.oc-helps__list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.oc-help { display: flex; gap: 12px; }
.oc-help__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--navy); }
.oc-help__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 900px) { .oc-moment { grid-template-columns: 1fr; gap: 32px; } }

/* the sample story: each passage beside its picture, like an open book on the table */
.oc-book { display: flex; flex-direction: column; gap: 28px; }
.oc-spread { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(20px, 3vw, 44px); padding: clamp(16px, 2.4vw, 28px); border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(20, 30, 60, 0.08), inset 0 0 0 1px var(--border); }
.oc-spread:nth-child(even) { grid-template-columns: 0.85fr 1.15fr; }
.oc-spread:nth-child(even) .oc-spread__art { order: 2; }
.oc-spread__art { margin: 0; }
.oc-spread__art img { display: block; width: 100%; height: auto; }
.oc-spread__page { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px clamp(4px, 1.4vw, 16px); }
.oc-spread__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--display); font-size: 15px; font-weight: 600; }
.oc-spread__text { margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--navy); }
.oc-book__who { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) {
  .oc-spread, .oc-spread:nth-child(even) { grid-template-columns: 1fr; gap: 14px; }
  .oc-spread:nth-child(even) .oc-spread__art { order: 0; }
  .oc-spread__page { padding: 0 4px 6px; }
}

/* what can go into their story, and the monthly series */
.oc-ideas { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.oc-ideas__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); }
.oc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.oc-chips li { padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.35; }
.oc-ideas__langs { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.oc-series { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--navy); color: #fff; }
.oc-series__title { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.25; }
.oc-series__text { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.oc-series .more { color: #fff; }
@media (max-width: 900px) { .oc-ideas { grid-template-columns: 1fr; gap: 28px; } }

/* related moments, and the hub's cards */
.oc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.oc-related__all { margin-top: 32px; }
.oc-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 20px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--navy); text-decoration: none; transition: box-shadow 200ms ease, transform 200ms ease; }
.oc-card:hover { box-shadow: 0 18px 40px rgba(20, 30, 60, 0.12), inset 0 0 0 1px var(--border); transform: translateY(-2px); }
.oc-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; border-radius: 14px; }
.oc-card__title { padding: 0 8px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.oc-card__text { padding: 0 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 900px) { .oc-related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .oc-related { grid-template-columns: 1fr; } }

/* the hub (/ocazii) */
.oc-hub__group + .oc-hub__group { margin-top: clamp(56px, 7vw, 96px); }
.oc-hub__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .oc-hub__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .oc-hub__grid { grid-template-columns: 1fr; } }
