/* Helfinch Global — About and international Journal layout (content release 2026-12-02).
 *
 * Editorial presentation (reading surface, headings, tables, callouts, buttons,
 * archive cards) belongs to the Helfinch Editorial Design System MU plugin
 * (helfinch-editorial.css), loaded on About/Journal/Article routes. This file
 * only (1) points the editorial tokens at Germany's existing graphite/gold
 * market palette, (2) lays out the portal page compositions, and (3) carries
 * the shared card grid onto home/catalogue/product pages, where the editorial
 * stylesheet is intentionally not loaded (its table wrapper would restyle the
 * catalogue comparison table). No new palette, no inline colour in content.
 */

/* Germany (country, not language): the same tokens as global-2027.css. */
:is(body.hf-market-de, body.hf-market-in.hf-global-portal) {
    --hf-ed-bg: #101216;
    --hf-ed-surface: #181b20;
    --hf-ed-surface-raised: #20242a;
    --hf-ed-text: #f2f3f5;
    --hf-ed-muted: #b5bbc3;
    --hf-ed-line: #30353d;
    --hf-ed-accent: #c7a46a;
    --hf-ed-accent-hover: #dcc08e;
}

/* ---------- Shared card grid (all journal placements) ---------- */

.hf-jr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf-jr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hf-jr-grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }

.hf-jr-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-top: 2px solid var(--hf-ed-line, var(--hf27-border));
    transition: border-color 160ms ease, transform 160ms ease;
}

.hf-jr-card:hover,
.hf-jr-card:focus-within {
    border-color: var(--hf-ed-accent, var(--hf27-accent));
    transform: translateY(-3px);
}

.hf-jr-card .hf-archive-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 7px;
    background: var(--hf-ed-surface, var(--hf27-surface));
}

.hf-jr-card .hf-archive-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Square product renders sit whole inside the 16:10 frame rather than being cropped. */
.hf-jr-card .hf-archive-card__image .hf-jr-img--product {
    object-fit: contain;
}

.hf-jr-card .hf-archive-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem 0 .25rem;
}

.hf-jr-card .hf-archive-card__cluster {
    margin: 0 0 .7rem;
    color: var(--hf-ed-accent, var(--hf27-accent));
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hf-jr-card .hf-jr-card__title {
    margin: 0 0 .7rem;
    color: var(--hf-ed-text, var(--hf27-text));
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
    hyphens: manual;
}

.hf-jr-card .hf-jr-card__title a {
    color: inherit;
    text-decoration: none;
}

.hf-jr-card .hf-jr-card__title a:is(:hover, :focus-visible) {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.hf-jr-card .hf-jr-card__title a:focus-visible {
    outline: 3px solid var(--hf-ed-accent, var(--hf27-accent));
    outline-offset: 4px;
}

.hf-jr-card .hf-archive-card__excerpt {
    margin: 0 0 1.2rem;
    color: var(--hf-ed-muted, var(--hf27-muted));
    line-height: 1.58;
}

.hf-jr-card .hf-archive-card__meta {
    margin: auto 0 0;
    color: var(--hf-ed-muted, var(--hf27-muted));
    font-size: .8rem;
    line-height: 1.4;
}

.hf-jr-badge {
    font-weight: 700;
}

/* Text-led historical posts (no featured image in the source). */
.hf-jr-card--text .hf-archive-card__body {
    padding-top: 1.4rem;
}

/* ---------- Homepage journal section ---------- */

.hf-jr-home {
    margin-block: var(--hf27-gap, 4rem);
}

.hf-jr-home .cs-featured-products__header {
    align-items: end;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.hf-jr-home__sub {
    max-width: 42rem;
    margin: .5rem 0 0;
    color: var(--hf27-muted);
}

.hf-jr-home .hf-jr-grid {
    margin-top: 1.5rem;
}

/* ---------- Related reading (article, About, catalogue) ---------- */

.hf-jr-wide {
    width: min(100%, 1200px);
    margin-inline: auto;
}

.hf-jr-related {
    margin-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hf-jr-related > h2 {
    margin: 0 0 .5rem;
    padding-top: 1rem;
    color: var(--hf-ed-text, var(--hf27-text));
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.hf-jr-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.75rem;
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--hf-ed-line, var(--hf27-border));
}

.hf-jr-related__links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

/* Product page: at most two guide links after the specification area. */
.hf-jr-guides {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hf27-border);
}

.hf-jr-guides h2 {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
}

.hf-jr-guides ul {
    margin: 0;
    padding-inline-start: 1.1rem;
}

.hf-jr-guides li + li {
    margin-top: .35rem;
}

/* ---------- Breadcrumbs (Home → Journal → Article, Home → About) ---------- */

.hf-jr-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-wrap: anywhere;
}

.hf-jr-crumbs li + li::before {
    content: "→";
    margin-inline-end: .5rem;
    color: var(--hf-ed-muted, var(--hf27-muted));
}

.hf-jr-article-crumbs,
.hf-jr-about__crumbs {
    width: min(100%, 1200px);
    margin: clamp(1rem, 3vw, 2rem) auto 0;
}

.hf-jr-article-crumbs a,
.hf-jr-about__crumbs a {
    color: var(--hf-ed-text, var(--hf27-text));
    text-underline-offset: .2em;
}

/* ---------- Archive tools ---------- */

.hf-jr-tools {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 1.25rem 2.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.hf-jr-search label {
    display: block;
    margin-bottom: .4rem;
    color: var(--hf-ed-text, var(--hf27-text));
    font-weight: 700;
}

.hf-jr-search__row {
    display: flex;
    gap: .5rem;
}

.hf-jr-search input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: .55rem .8rem;
    border: 1px solid var(--hf-ed-line, var(--hf27-border));
    border-radius: 5px;
    background: var(--hf-ed-surface, var(--hf27-surface));
    color: var(--hf-ed-text, var(--hf27-text));
}

.hf-jr-search .hf-button {
    cursor: pointer;
}

.hf-jr-topics ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf-jr-topics a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .45rem .9rem;
    border: 1px solid var(--hf-ed-line, var(--hf27-border));
    border-radius: 999px;
    color: var(--hf-ed-text, var(--hf27-text));
    font-size: .9rem;
    text-decoration: none;
}

.hf-jr-topics a:is(:hover, :focus-visible) {
    border-color: var(--hf-ed-accent, var(--hf27-accent));
}

.hf-jr-topics a[aria-current="true"] {
    border-color: var(--hf-ed-accent, var(--hf27-accent));
    background: var(--hf-ed-accent, var(--hf27-accent));
    color: var(--hf-ed-ink, #171717);
    font-weight: 700;
}

.hf-jr-topics a:focus-visible,
.hf-jr-search :is(input, button):focus-visible {
    outline: 3px solid var(--hf-ed-accent, var(--hf27-accent));
    outline-offset: 3px;
}

.hf-jr-count {
    margin: 0 0 1.5rem;
    color: var(--hf-ed-muted, var(--hf27-muted));
    font-size: .9rem;
}

.hf-archive-pagination .page-numbers {
    padding-inline: .8rem;
    text-decoration: none;
}

.hf-jr-empty p:last-child {
    margin-bottom: 0;
}

/* ---------- Article ---------- */

.hf-jr-article {
    margin-top: clamp(1rem, 3vw, 2rem);
}

.hf-jr-article__head {
    margin-bottom: 1.5rem;
}

.hf-jr-article__title {
    margin: 0 0 1rem;
    color: var(--hf-ed-text);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: manual;
}

.hf-jr-article__figure {
    margin: 0 0 2rem;
}

.hf-jr-article__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--hf-ed-radius, 10px);
    background: var(--hf-ed-surface);
}

.hf-jr-article__figure .hf-jr-img--product {
    max-width: 30rem;
    margin-inline: auto;
}

.hf-jr-toc {
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--hf-ed-line);
    border-radius: var(--hf-ed-radius, 10px);
}

.hf-jr-toc__title {
    margin: 0 0 .5rem !important;
    color: var(--hf-ed-muted) !important;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hf-jr-toc ol {
    margin: 0;
    font-size: .95rem;
}

.hf-jr-article__body img {
    max-width: 100%;
    height: auto;
}

.hf-jr-article__body :is(h2, h3) {
    scroll-margin-top: 6rem;
    overflow-wrap: anywhere;
}

.hf-jr-ext {
    color: var(--hf-ed-muted);
    font-size: .85em;
    font-weight: 400;
}

.hf-jr-cta {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--hf-ed-accent);
}

.hf-jr-cta__actions,
.hf-jr-about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.25rem 0 0;
}

.hf-jr-article-page .hf-jr-wide,
.hf-jr-about .hf-jr-wide {
    padding-inline: clamp(0rem, 1vw, .5rem);
}

/* ---------- About ---------- */

.hf-jr-about > section {
    width: min(100%, 1200px);
    margin: 0 auto clamp(3rem, 7vw, 5.5rem);
}

.hf-jr-about .helfinch-editorial {
    margin-block: 0;
    padding-bottom: 0;
}

.hf-jr-about__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    margin-top: clamp(1.5rem, 4vw, 3rem) !important;
}

.hf-jr-about__title {
    margin: 0 0 .75rem;
    color: var(--hf-ed-text);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hf-jr-about__micro p {
    margin: 0;
    color: var(--hf-ed-muted) !important;
}

.hf-jr-about__micro {
    margin: 0 0 1.25rem !important;
    color: var(--hf-ed-muted) !important;
    font-size: 1rem;
}

/* The hero's first H2 reads as the subheading: no divider, modest size. */
.hf-jr-about__intro h2 {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.hf-jr-about__visual {
    margin: 0;
}

.hf-jr-about__visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--hf-ed-radius, 10px);
    background: var(--hf-ed-surface);
}

.hf-jr-about .helfinch-editorial {
    padding-inline: 0;
}

.hf-jr-about__portfolio .helfinch-editorial,
.hf-jr-about__strengths > .helfinch-editorial,
.hf-jr-about__markets .helfinch-editorial,
.hf-jr-about__closing .helfinch-editorial {
    margin-inline: 0;
}

.hf-jr-about__group {
    margin: 2.5rem 0 1rem;
    color: var(--hf-ed-text);
    font-size: 1.05rem;
    letter-spacing: .02em;
}

.hf-jr-about__group--quiet {
    color: var(--hf-ed-muted);
    font-size: .95rem;
}

.hf-jr-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf-jr-tile a,
.hf-jr-home-row__fan {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: .75rem;
    padding: .9rem;
    border: 1px solid var(--hf-ed-line);
    border-radius: var(--hf-ed-radius, 10px);
    background: var(--hf-ed-surface);
    color: var(--hf-ed-text);
    text-decoration: none;
    transition: border-color 160ms ease;
}

.hf-jr-tile a:is(:hover, :focus-visible),
.hf-jr-home-row__fan:is(:hover, :focus-visible) {
    border-color: var(--hf-ed-accent);
}

.hf-jr-tile a:focus-visible,
.hf-jr-home-row a:focus-visible {
    outline: 3px solid var(--hf-ed-accent);
    outline-offset: 3px;
}

.hf-jr-tile__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: var(--hf-ed-bg, #1c1c1c);
}

.hf-jr-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf-jr-tile__label {
    font-weight: 750;
}

.hf-jr-home-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
}

.hf-jr-home-row__fan {
    flex-direction: row;
    align-items: center;
    max-width: 34rem;
    height: auto;
}

.hf-jr-home-row__fan img {
    width: min(14rem, 45%);
    height: auto;
    object-fit: contain;
}

.hf-jr-home-row__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.hf-jr-strengths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: 1.5rem 0 2rem;
}

.hf-jr-strength.helfinch-editorial {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--hf-ed-line);
    border-radius: var(--hf-ed-radius, 10px);
    background: var(--hf-ed-surface);
    font-size: 1rem;
}

.hf-jr-strength h3 {
    margin-top: 0 !important;
}

.hf-jr-strength p:last-child {
    margin-bottom: 0;
}

.hf-jr-about__mission {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

.hf-jr-about__visual--product img {
    max-width: 26rem;
    margin-inline: auto;
}

.hf-jr-about__notice {
    margin-top: 1.5rem !important;
    color: var(--hf-ed-muted) !important;
    font-size: .92rem;
}

/* ---------- Scripts: CJK and Devanagari keep the browser's system fallbacks; no Latin tracking or hyphenation ---------- */

.hf-global :lang(zh) {
    letter-spacing: normal;
    hyphens: manual;
    word-break: normal;
    line-break: strict;
}

.hf-global :lang(hi) {
    letter-spacing: normal;
    hyphens: manual;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hf-jr-grid,
    .hf-jr-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hf-jr-tools { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .hf-jr-grid,
    .hf-jr-grid--2,
    .hf-jr-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .hf-jr-about__hero,
    .hf-jr-about__mission { grid-template-columns: minmax(0, 1fr); }
    .hf-jr-tiles { grid-template-columns: minmax(0, 1fr); }
    .hf-jr-tile a { flex-direction: row; align-items: center; }
    .hf-jr-tile__media { width: 6.5rem; flex: none; }
    .hf-jr-home-row__fan { flex-direction: column; align-items: flex-start; }
    .hf-jr-home-row__fan img { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hf-jr-card,
    .hf-jr-tile a { transition: none; }
    .hf-jr-card:hover,
    .hf-jr-card:focus-within { transform: none; }
}
