/* ============ NEWS — /news index and /news/{slug} article ============
   The item component (.ik-news-item) lives in public.css because the home page
   uses it too. This file holds only what the two news pages add. */

/* ---------- breadcrumb (light surface variant of .ik-svc-breadcrumb) ---------- */
.ik-news-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ik-muted);
    margin-bottom: 18px;
}
.ik-news-crumbs a { color: var(--ik-green-deep); text-decoration: none; }
.ik-news-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ik-news-crumbs .ik-crumb-sep { color: var(--ik-gray); }

/* ---------- index ---------- */
.ik-news-hero {
    background: var(--ik-cream-2);
    padding: clamp(112px, 15vh, 150px) clamp(22px, 5vw, 56px) clamp(36px, 5vw, 56px);
}
.ik-news-h1 {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: var(--ik-fs-h1);
    line-height: var(--ik-lh-h1);
    letter-spacing: -.5px;
    color: var(--ik-ink);
    margin: 0 0 14px;
    text-wrap: balance;
}
.ik-news-lede {
    font-family: var(--ik-body);
    font-weight: 500;
    font-size: clamp(16px, 1.8vw, 18.5px);
    line-height: 1.6;
    color: var(--ik-muted);
    max-width: 58ch;
    margin: 0;
    text-wrap: pretty;
}
.ik-news-list { padding-top: clamp(36px, 5vw, 56px); }

/* The index lead always runs picture-beside-words: it has the full width. */
.ik-news-list .ik-news-item--lead { margin-bottom: 18px; }
.ik-news-list .ik-news-item--lead.is-landscape { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ik-news-list .ik-news-item--lead.is-landscape .ik-news-frame { aspect-ratio: 3 / 2; }
.ik-news-list .ik-news-item--lead.is-portrait { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }

.ik-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
    /* Cards keep their own height: a post without a picture is short, and stretching it
       to its neighbours left a block of empty white. */
    align-items: start;
}

.ik-news-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(28px, 4vw, 44px);
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ik-muted);
}
.ik-news-pager-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 2px solid var(--ik-border);
    background: #fff;
    color: var(--ik-ink);
    font-family: var(--ik-display);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s, transform .18s;
}
.ik-news-pager-btn:hover { border-color: var(--ik-green); transform: translateY(-1px); }

.ik-news-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
    background: #fff;
    border: 2px dashed var(--ik-border);
    border-radius: 20px;
    font-family: var(--ik-body);
    font-weight: 500;
    color: var(--ik-muted);
    line-height: 1.6;
}
.ik-news-empty-h {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: var(--ik-fs-h3);
    color: var(--ik-ink);
    margin: 0 0 8px;
}
.ik-news-empty p { margin: 0 0 20px; }

.ik-news-cta-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ik-news-cta-in .ik-section-sub { margin-bottom: 24px; }

@media (max-width: 760px) {
    .ik-news-list .ik-news-item--lead.is-landscape { display: flex; }
    .ik-news-list .ik-news-item--lead.is-landscape .ik-news-frame { aspect-ratio: 16 / 10; }
}

/* ---------- article ---------- */
.ik-article {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(112px, 15vh, 150px) clamp(22px, 5vw, 56px) clamp(56px, 8vw, 96px);
}
.ik-article-head { max-width: 780px; margin-bottom: clamp(24px, 4vw, 40px); }
.ik-article-h1 {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: var(--ik-fs-h1);
    line-height: var(--ik-lh-h1);
    letter-spacing: -.5px;
    color: var(--ik-ink);
    margin: 0 0 14px;
    text-wrap: balance;
}
.ik-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ik-muted);
    margin: 0;
}
.ik-article-meta a { color: var(--ik-green-deep); text-underline-offset: 3px; }

.ik-article-figure { margin: 0; }
.ik-article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: var(--ik-cream-2);
    box-shadow: 0 28px 60px -30px rgba(60, 40, 20, .45);
}

.ik-article-text {
    max-width: 68ch;
    font-family: var(--ik-body);
    font-weight: 500;
    font-size: clamp(16.5px, 1.6vw, 18px);
    line-height: 1.75;
    color: var(--ik-ink);
    text-wrap: pretty;
}
.ik-article-text p { margin: 0 0 1.1em; }
.ik-article-text p:last-child { margin-bottom: 0; }

/* Landscape: the picture spans, the words follow at reading width. */
.ik-article.is-landscape .ik-article-figure { margin-bottom: clamp(28px, 4vw, 44px); }
.ik-article.is-landscape .ik-article-figure img { max-height: 76vh; object-fit: contain; }

/* Portrait: words and picture side by side; the picture stays in view while you read. */
.ik-article.is-portrait .ik-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.ik-article.is-portrait .ik-article-figure { order: 2; position: sticky; top: 96px; }
.ik-article.is-portrait .ik-article-text { order: 1; }

@media (max-width: 820px) {
    .ik-article.is-portrait .ik-article-layout { display: block; }
    .ik-article.is-portrait .ik-article-figure { position: static; margin-bottom: 28px; }
    /* A tall picture on a phone is shown whole but never taller than most of the screen. */
    .ik-article.is-portrait .ik-article-figure img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; }
}

.ik-article-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: clamp(40px, 6vw, 64px);
    padding: clamp(22px, 3.5vw, 32px) clamp(22px, 3.5vw, 36px);
    background: var(--ik-mint-bg);
    border-radius: 20px;
}
.ik-article-cta > div { flex: 1 1 320px; min-width: 0; }
.ik-article-cta-h {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: clamp(21px, 2.3vw, 26px);
    line-height: 1.2;
    color: var(--ik-ink);
    margin: 0 0 6px;
    text-wrap: balance;
}
.ik-article-cta-p {
    font-family: var(--ik-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ik-ink);
    margin: 0;
}
.ik-article-cta-p a { color: var(--ik-green-deep); font-weight: 700; text-underline-offset: 3px; }
