/* =========================================================
   Homepage global blocks
   ========================================================= */
.home-block { padding: 70px 0; }
.home-block:nth-child(even) { background: var(--xr-bg-soft); }

/* =========================================================
   HOMEPAGE BLOCK 01
   Hero / Main positioning
   ========================================================= */
.home-hero { padding: 92px 0; background: linear-gradient(135deg, #fff 0%, #f7f7f5 100%); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 46px; align-items: center; }
.home-hero h1 { font-size: clamp(3rem, 7vw, 6.8rem); line-height: 0.92; letter-spacing: -0.075em; margin: 0; }
.home-hero__lead { color: var(--xr-muted); font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 700px; margin: 24px 0; }
.home-hero__panel { border-radius: 28px; background: var(--xr-dark); color: #fff; padding: 26px; display: grid; gap: 12px; box-shadow: var(--xr-shadow); }
.home-hero__panel span { border: 1px solid rgba(255,255,255,0.16); border-radius: 16px; padding: 16px; font-weight: 850; }
.home-hero__panel span:nth-child(2n) { color: #fff; }

/* =========================================================
   HOMEPAGE BLOCK 02
   Subscription CTA
   ========================================================= */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 920px;
    margin-inline: auto;
}
.subscription-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--xr-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--xr-shadow);
}
.subscription-card--featured {
    border-color: var(--xr-red);
}
.subscription-card__header {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--xr-border);
}
.subscription-card h3 {
    font-size: 2rem;
    letter-spacing: -0.05em;
    margin: 0 0 10px;
}
.subscription-card__price {
    margin: 0;
    color: var(--xr-muted);
    font-size: 1rem;
    font-weight: 850;
}
.subscription-card__price span {
    color: var(--xr-dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 950;
}
.subscription-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--xr-red);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 900;
    font-size: 0.78rem;
}
.subscription-card ul {
    color: var(--xr-muted);
    padding-left: 20px;
    margin: 0 0 24px;
}
.subscription-card li + li {
    margin-top: 7px;
}
.subscription-card__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.subscription-card__terms {
    color: var(--xr-muted);
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
}
.subscription-card__terms:hover {
    color: var(--xr-red);
}

/* =========================================================
   HOMEPAGE BLOCK 03
   Latest Magazine Articles
   ========================================================= */
.home-latest-articles { background: #fff; }

/* =========================================================
   HOMEPAGE BLOCK 04
   Featured / Latest Experiences
   ========================================================= */
.home-experiences { background: var(--xr-bg-soft); }

/* =========================================================
   HOMEPAGE BLOCK 05
   Database Entry Points
   ========================================================= */
.entrypoint-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.entrypoint-card { display: flex; min-height: 220px; flex-direction: column; justify-content: space-between; text-decoration: none; background: #fff; border: 1px solid var(--xr-border); border-radius: var(--xr-radius); padding: 20px; }
.entrypoint-card:hover { border-color: var(--xr-teal); transform: translateY(-2px); }
.entrypoint-card__count { color: var(--xr-red); font-size: 1.6rem; font-weight: 950; letter-spacing: -0.06em; }
.entrypoint-card h3 { margin: 18px 0 8px; letter-spacing: -0.04em; }
.entrypoint-card p { color: var(--xr-muted); margin: 0; font-size: 0.94rem; }

/* =========================================================
   HOMEPAGE BLOCK 06
   Events / Deadlines
   ========================================================= */
.home-events { background: var(--xr-bg-soft); }

.home-events__current {
    margin-top: 10px;
}
.home-events__current-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}
.home-events__upcoming {
    margin-top: 38px;
    background: #fff;
    border: 1px solid var(--xr-border);
    border-radius: var(--xr-radius);
    overflow: hidden;
}
.home-events__subtitle {
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid var(--xr-border);
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.home-events__current .home-events__subtitle {
    padding: 0;
    border-bottom: 0;
    font-size: 1.18rem;
}
.home-events-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 30%);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 18px 2px 18px;
    scrollbar-width: thin;
}
.home-events-carousel__item {
    scroll-snap-align: start;
}
.home-events-carousel .xr-event-cartouche {
    height: 100%;
}
.home-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-events-list__item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 22px;
    border-bottom: 1px solid var(--xr-border);
}
.home-events-list__item:last-child {
    border-bottom: 0;
}
.home-events-list__item time {
    color: var(--xr-muted);
    font-size: 0.86rem;
    font-weight: 800;
}
.home-events-list__item a {
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -0.02em;
}
.home-events-list__item a:hover {
    color: var(--xr-red);
}
.home-events-list__item span {
    color: var(--xr-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

/* =========================================================
   HOMEPAGE BLOCK 07
   Latest Database Updates / Database Log
   ========================================================= */
.home-database-log { background: #fff; }
.database-log-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--xr-border); }
.database-log-item { display: grid; grid-template-columns: 140px minmax(0, 1fr) 180px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--xr-border); }
.database-log-item__type { color: var(--xr-teal); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.database-log-item a { font-weight: 850; text-decoration: none; }
.database-log-item a:hover { color: var(--xr-red); }
.database-log-item time { color: var(--xr-muted); font-size: 0.92rem; text-align: right; }

/* =========================================================
   HOMEPAGE BLOCK 08
   Newsletter / Footer CTA
   ========================================================= */
.home-newsletter { background: var(--xr-dark) !important; color: #fff; }
.home-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-newsletter h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.06em; margin: 0; }
.home-newsletter p:not(.xr-kicker) { color: rgba(255,255,255,0.72); max-width: 640px; }

/* =========================================================
   HOMEPAGE BLOCK 06
   Submission Deadlines
   ========================================================= */
.home-events__deadlines {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--xr-border);
    border-radius: var(--xr-radius);
    overflow: hidden;
}
.home-deadlines-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-deadlines-list__item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 22px;
    border-bottom: 1px solid var(--xr-border);
}
.home-deadlines-list__item:last-child {
    border-bottom: 0;
}
.home-deadlines-list__item time {
    color: var(--xr-red);
    font-size: 0.86rem;
    font-weight: 900;
}
.home-deadlines-list__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.home-deadlines-list__main a {
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -0.02em;
}
.home-deadlines-list__main a:hover {
    color: var(--xr-red);
}
.home-deadlines-list__main span,
.home-deadlines-list__meta span {
    color: var(--xr-muted);
    font-size: 0.82rem;
    font-weight: 800;
}
.home-deadlines-list__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}
.home-deadlines-list__submit {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid var(--xr-border);
    border-radius: 999px;
    color: var(--xr-text);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}
.home-deadlines-list__submit:hover {
    border-color: var(--xr-red);
    color: var(--xr-red);
}

/* Homepage database panel links */
.home-hero__panel a {
    display: block;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 16px;
    font-weight: 850;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.home-hero__panel a:hover,
.home-hero__panel a:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-1px);
}

/* Homepage magazine search */
.xr-magazine-search--home {
    width: min(100%, 620px);
    margin: 0 0 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--xr-border);
    border-radius: 999px;
    box-shadow: var(--xr-shadow);
}
.xr-magazine-search--home input[type="search"] {
    width: 100%;
    border: 0;
    background: var(--xr-bg-soft);
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 800;
    outline: none;
}
.xr-magazine-search--home button {
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: var(--xr-red);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}
