/* Histoires.com — editorial hubs V1.11
   A separate filename deliberately prevents stale hub CSS after deployment. */

.hub-page-v2 {
    --hub-max: 1640px;
    background: #f7f4ee;
    overflow: clip;
}

.hub-page-v2 .hub-hero-v2 {
    display: grid;
    grid-template-columns: minmax(520px, .9fr) minmax(620px, 1.1fr);
    min-height: 720px;
    padding: 0;
    background: radial-gradient(circle at 18% 18%, #2e2921 0, #101112 47%, #070809 100%);
}

.hub-page-v2 .hub-hero-intro {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(5rem, 7vw, 8.5rem) clamp(3.2rem, 6vw, 7rem) clamp(4rem, 6vw, 7rem) max(42px, calc((100vw - var(--hub-max)) / 2));
}

.hub-page-v2 .hub-hero-intro h1 {
    max-width: 850px;
    margin: .7rem 0 1.4rem;
    font-size: clamp(4.2rem, 5.7vw, 7rem);
    line-height: .94;
    text-wrap: balance;
}

.hub-page-v2 .hub-hero-intro > p:last-of-type {
    max-width: 720px;
    margin: 0;
    color: #c9c2b8;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.72;
}

.hub-page-v2 .hub-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2.25rem;
    background: #4a443a;
    border: 1px solid #4a443a;
}

.hub-page-v2 .hub-proof span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .28rem;
    justify-content: center;
    padding: .9rem 1rem;
    background: #111213;
    color: #aaa39a;
    font-size: .65rem;
    line-height: 1.35;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.hub-page-v2 .hub-proof b {
    color: #d5ad69;
    font: 400 1.18rem/1.1 var(--serif);
    letter-spacing: 0;
    text-transform: none;
}

.hub-page-v2 .hub-feature-v2 {
    position: relative;
    display: block;
    min-height: 720px;
    overflow: hidden;
    background: #161616;
}

.hub-page-v2 .hub-feature-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .94) 0, rgba(0, 0, 0, .25) 52%, rgba(0, 0, 0, .05) 100%),
                linear-gradient(90deg, rgba(5, 6, 7, .32), transparent 35%);
    pointer-events: none;
}

.hub-page-v2 .hub-feature-v2 > img {
    width: 100%;
    height: 100%;
    min-height: 720px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 26%;
    filter: saturate(.82) contrast(1.02);
    transform: none;
}

.hub-page-v2 .hub-feature-v2 > div {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 980px;
    padding: clamp(2.2rem, 4vw, 4.8rem);
    color: #fff;
}

.hub-page-v2 .hub-feature-v2 h2 {
    max-width: 900px;
    margin: .55rem 0 .7rem;
    font-size: clamp(3rem, 4.1vw, 5rem);
    line-height: .96;
}

.hub-page-v2 .hub-feature-v2 p {
    max-width: 720px;
    padding: 0;
    color: #d6d0c7;
    font-size: .98rem;
    line-height: 1.65;
}

.hub-page-v2 .hub-method-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(var(--hub-max), calc(100% - 64px));
    margin: -1px auto 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(35, 27, 14, .055);
}

.hub-page-v2 .hub-method-strip > div {
    position: relative;
    display: block;
    min-width: 0;
    padding: 2rem clamp(1.6rem, 2.7vw, 3rem) 2rem clamp(2.8rem, 3.8vw, 4.25rem);
}

.hub-page-v2 .hub-method-strip > div::before {
    content: "";
    position: absolute;
    top: 2.4rem;
    left: 1.55rem;
    width: 12px;
    height: 12px;
    border: 1px solid #a77a38;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #fff;
    background: #a77a38;
}

.hub-page-v2 .hub-method-strip > div + div { border-left: 1px solid var(--line); }
.hub-page-v2 .hub-method-strip b { display: block; margin: 0 0 .45rem; font: 400 1.5rem/1.08 var(--serif); }
.hub-page-v2 .hub-method-strip p { max-width: 440px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.58; }

.hub-page-v2 .hub-spotlight {
    width: min(var(--hub-max), calc(100% - 64px));
    padding: clamp(5rem, 7vw, 8rem) 0 clamp(4rem, 6vw, 7rem);
}

.hub-page-v2 .hub-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
    margin-bottom: 2rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--line);
}

.hub-page-v2 .hub-section-heading h2 {
    margin: .35rem 0 0;
    font: 400 clamp(3.2rem, 4.5vw, 5.4rem)/.96 var(--serif);
}

.hub-page-v2 .hub-section-heading > p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.65; }

.hub-page-v2 .hub-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(14px, 1.5vw, 24px);
}

.hub-page-v2 .hub-story-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 13px 38px rgba(38, 28, 12, .045);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hub-page-v2 .hub-story-card > figure {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: #e8e1d6;
}

.hub-page-v2 .hub-story-card > figure::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    pointer-events: none;
}

.hub-page-v2 .hub-story-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(.88);
    transform: none;
    transition: filter .35s ease;
}

.hub-page-v2 .hub-story-card > div {
    display: flex;
    min-height: 285px;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.5rem, 2.2vw, 2.35rem);
}

.hub-page-v2 .hub-story-card span { color: #946a2f; font-size: .66rem; letter-spacing: .075em; text-transform: uppercase; }
.hub-page-v2 .hub-story-card h3 { margin: .62rem 0 .7rem; font: 400 clamp(2rem, 2.55vw, 3rem)/1 var(--serif); text-wrap: balance; }
.hub-page-v2 .hub-story-card p { margin: 0 0 1.4rem; color: var(--muted); font-size: .91rem; line-height: 1.62; }
.hub-page-v2 .hub-story-card b { margin-top: auto; font-size: .66rem; letter-spacing: .075em; text-transform: uppercase; }
.hub-page-v2 .hub-story-card:hover { transform: translateY(-5px); border-color: #c7ae87; box-shadow: 0 24px 60px rgba(37, 26, 9, .12); }
.hub-page-v2 .hub-story-card:hover img { filter: saturate(1); transform: none; }
.hub-page-v2 .hub-story-card:last-child { display: flex; grid-column: auto; }

.hub-page-v2 .hub-catalogue {
    width: min(var(--hub-max), calc(100% - 64px));
    padding: clamp(4.5rem, 7vw, 8rem) 0;
}

.hub-page-v2 .hub-catalogue-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
    padding-bottom: 1.55rem;
    border-bottom: 1px solid var(--line);
}

.hub-page-v2 .hub-catalogue-heading h2 { margin: .35rem 0 0; font: 400 clamp(3.2rem, 4.7vw, 5.5rem)/.95 var(--serif); text-wrap: balance; }
.hub-page-v2 .hub-catalogue-heading > p { display: flex; flex-direction: column; gap: .45rem; margin: 0; color: var(--muted); line-height: 1.55; }
.hub-page-v2 .hub-catalogue-heading > p b { color: #7f5a25; font-size: .68rem; letter-spacing: .075em; text-transform: uppercase; }
.hub-page-v2 .hub-catalogue-heading > p span { font-size: .88rem; }

.hub-page-v2 .hub-filter {
    display: grid;
    grid-template-columns: auto minmax(260px, 600px) auto;
    gap: 1rem;
    align-items: center;
    margin: 1.65rem 0 0;
    padding: 0 0 1.65rem;
    border-bottom: 1px solid var(--line);
}

.hub-page-v2 .hub-filter label { color: #6e6253; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hub-page-v2 .hub-filter input { width: 100%; min-width: 0; padding: .78rem 0; background: transparent; border: 0; border-bottom: 1px solid #948975; border-radius: 0; font: 400 1.25rem var(--serif); }
.hub-page-v2 .hub-filter input:focus { outline: 2px solid #b0823e; outline-offset: 4px; }
.hub-page-v2 .hub-filter [data-filter-count] { justify-self: end; color: var(--muted); font-size: .72rem; }

.hub-page-v2 .hub-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 20px);
    margin-top: 2rem;
}

.hub-page-v2 .hub-catalog-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 214px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 26px rgba(38, 28, 12, .035);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.hub-page-v2 .hub-catalog-card[hidden] { display: none; }

.hub-page-v2 .hub-catalog-card > figure {
    position: relative;
    display: grid;
    width: 190px;
    min-height: 214px;
    place-items: center;
    margin: 0;
    overflow: hidden;
    background: #e9e2d7;
    border-right: 1px solid var(--line);
}

.hub-page-v2 .hub-catalog-card > figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 245px;
    object-fit: contain;
    object-position: center;
    filter: saturate(.86);
    transform: none;
    transition: filter .3s ease;
}

.hub-page-v2 .hub-catalog-card > div { display: flex; min-width: 0; flex-direction: column; padding: 1.35rem 1.45rem; }
.hub-page-v2 .hub-catalog-card .item-type { margin: 0; color: #946a2f; font-size: .63rem; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.hub-page-v2 .hub-catalog-card h3 { margin: .4rem 0 .55rem; font: 400 clamp(1.55rem, 1.75vw, 2rem)/1.04 var(--serif); text-wrap: balance; }
.hub-page-v2 .hub-catalog-card > div > p:not(.item-type) { display: -webkit-box; margin: 0 0 .9rem; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.52; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.hub-page-v2 .hub-catalog-card .read-more { margin-top: auto; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hub-page-v2 .hub-catalog-card:hover { transform: translateY(-3px); border-color: #c5ad88; box-shadow: 0 17px 44px rgba(38, 27, 9, .095); }
.hub-page-v2 .hub-catalog-card:hover img { filter: saturate(1); transform: none; }

.hub-page-v2 .hub-discovery {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    width: min(var(--hub-max), calc(100% - 64px));
    margin: 0 auto;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.hub-page-v2 .hub-discovery > div,
.hub-page-v2 .hub-discovery > nav { padding: clamp(3rem, 5vw, 5.5rem); }
.hub-page-v2 .hub-discovery-story { background: radial-gradient(circle at 88% 5%, #41331f, #111 58%); }
.hub-page-v2 .hub-discovery h2 { max-width: 720px; margin: .5rem 0 1rem; font: 400 clamp(3rem, 4.2vw, 5rem)/.96 var(--serif); text-wrap: balance; }
.hub-page-v2 .hub-discovery p:not(.section-kicker) { max-width: 650px; color: #c6c0b7; line-height: 1.7; }
.hub-page-v2 .hub-discovery .button { display: inline-block; margin-top: 1rem; }
.hub-page-v2 .hub-discovery > nav { background: #eee7dc; color: var(--ink); }
.hub-page-v2 .hub-discovery > nav > div { margin-top: 1.5rem; border-top: 1px solid #c9bdab; }
.hub-page-v2 .hub-discovery > nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #c9bdab; font: 400 1.28rem var(--serif); }
.hub-page-v2 .hub-discovery > nav a b { color: #946a2f; }
.hub-page-v2 .hub-editorial-commitment { margin-top: 0; }

@media (max-width: 1200px) {
    .hub-page-v2 .hub-hero-v2 { grid-template-columns: minmax(430px, .92fr) minmax(0, 1.08fr); }
    .hub-page-v2 .hub-hero-intro { padding-right: 3rem; }
    .hub-page-v2 .hub-story-card > div { min-height: 310px; }
    .hub-page-v2 .hub-catalog-card { grid-template-columns: 150px minmax(0, 1fr); }
    .hub-page-v2 .hub-catalog-card > figure { width: 150px; }
}

@media (max-width: 980px) {
    .hub-page-v2 .hub-hero-v2 { grid-template-columns: 1fr; }
    .hub-page-v2 .hub-feature-v2 { min-height: min(82vw, 680px); order: -1; }
    .hub-page-v2 .hub-feature-v2 > img { min-height: min(82vw, 680px); }
    .hub-page-v2 .hub-hero-intro { padding: 4.5rem max(32px, calc((100vw - 820px) / 2)); }
    .hub-page-v2 .hub-method-strip { grid-template-columns: 1fr; width: min(820px, calc(100% - 40px)); }
    .hub-page-v2 .hub-method-strip > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .hub-page-v2 .hub-story-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
    .hub-page-v2 .hub-catalogue-heading { grid-template-columns: 1fr; gap: 1rem; }
    .hub-page-v2 .hub-catalog-grid { grid-template-columns: 1fr; }
    .hub-page-v2 .hub-catalog-card { grid-template-columns: 190px minmax(0, 1fr); }
    .hub-page-v2 .hub-catalog-card > figure { width: 190px; }
    .hub-page-v2 .hub-discovery { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .hub-page-v2 .hub-hero-v2 { min-height: 0; }
    .hub-page-v2 .hub-feature-v2,
    .hub-page-v2 .hub-feature-v2 > img { min-height: 118vw; }
    .hub-page-v2 .hub-feature-v2 h2 { font-size: clamp(2.7rem, 12vw, 4rem); }
    .hub-page-v2 .hub-feature-v2 p { display: none; }
    .hub-page-v2 .hub-hero-intro { padding: 3.5rem 1rem; }
    .hub-page-v2 .hub-hero-intro h1 { font-size: clamp(3.35rem, 15vw, 4.7rem); }
    .hub-page-v2 .hub-proof { grid-template-columns: 1fr; }
    .hub-page-v2 .hub-method-strip,
    .hub-page-v2 .hub-spotlight,
    .hub-page-v2 .hub-catalogue,
    .hub-page-v2 .hub-discovery { width: calc(100% - 24px); }
    .hub-page-v2 .hub-spotlight { padding: 4rem 0; }
    .hub-page-v2 .hub-section-heading { grid-template-columns: 1fr; gap: .7rem; }
    .hub-page-v2 .hub-section-heading h2,
    .hub-page-v2 .hub-catalogue-heading h2 { font-size: 3.15rem; }
    .hub-page-v2 .hub-story-grid { grid-template-columns: 1fr; }
    .hub-page-v2 .hub-story-card > div { min-height: 0; }
    .hub-page-v2 .hub-catalogue { padding: 4rem 0; }
    .hub-page-v2 .hub-filter { grid-template-columns: 1fr; gap: .65rem; }
    .hub-page-v2 .hub-filter label,
    .hub-page-v2 .hub-filter [data-filter-count] { display: block; }
    .hub-page-v2 .hub-filter [data-filter-count] { justify-self: start; }
    .hub-page-v2 .hub-catalog-card { grid-template-columns: 124px minmax(0, 1fr); min-height: 174px; }
    .hub-page-v2 .hub-catalog-card > figure { width: 124px; min-height: 174px; }
    .hub-page-v2 .hub-catalog-card > figure img { max-height: 190px; }
    .hub-page-v2 .hub-catalog-card > div { padding: 1rem; }
    .hub-page-v2 .hub-catalog-card h3 { font-size: 1.35rem; }
    .hub-page-v2 .hub-catalog-card > div > p:not(.item-type) { font-size: .76rem; -webkit-line-clamp: 2; }
    .hub-page-v2 .hub-discovery > div,
    .hub-page-v2 .hub-discovery > nav { padding: 2.5rem 1.4rem; }
    .hub-page-v2 .hub-discovery h2 { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hub-page-v2 .hub-story-card,
    .hub-page-v2 .hub-catalog-card { transition: none; }
}

/* V1.18 — no functional label below a comfortable reading threshold. */
.hub-page-v2 .hub-proof span,
.hub-page-v2 .hub-feature span,
.hub-page-v2 .hub-story-card span,
.hub-page-v2 .hub-story-card b,
.hub-page-v2 .hub-catalog-card .item-type,
.hub-page-v2 .hub-catalog-card .read-more,
.hub-page-v2 .hub-filter label,
.hub-page-v2 .hub-filter [data-filter-count]{font-size:.75rem;line-height:1.4}
.hub-page-v2 .hub-method-strip p,
.hub-page-v2 .hub-story-card p,
.hub-page-v2 .hub-catalog-card>div>p:not(.item-type){font-size:.88rem;line-height:1.58}
.hub-page-v2 .filter-tags button{font-size:.8rem;min-height:40px}
@media(max-width:700px){.hub-page-v2 .hub-catalog-card>div>p:not(.item-type){font-size:.8rem}}
