/* Shared category palettes match the homepage. */
:is(.st-category,.st-article-theme) {
    --st-surface: #fff;
    --st-heading: #142941;
    --st-copy: #172230;
    --st-muted: #53657b;
    --st-accent: #084bdc;
    --st-rule: #14294124;
}
/* Quiet opening, a dark AI feature, then alternating cool brand tints. */
.st-category:not([data-st-section]) { --st-surface: #f3f6fc; }
:is(.st-category,.st-article-theme)[data-st-section="ai"] {
    --st-surface: #142941;
    --st-heading: #fff;
    --st-copy: #f1f5ff;
    --st-muted: #bfcde0;
    --st-accent: #71d9e2;
    --st-rule: #ffffff30;
}
:is(.st-category,.st-article-theme)[data-st-section="bezpieczenstwo"] { --st-surface: #eaf7f8; --st-accent: #007b91; }
:is(.st-category,.st-article-theme)[data-st-section="fintech"] { --st-surface: #edf2ff; }
:is(.st-category,.st-article-theme)[data-st-section="technologieodnawialne"] { --st-accent: #007b91; }
:is(.st-category,.st-article-theme)[data-st-section="healthtech"] { --st-surface: #f3edfc; --st-accent: #850bd5; }
:is(.st-category,.st-article-theme)[data-st-section="mobilnosc"] { --st-surface: #eaf7f8; --st-accent: #007b91; }
:is(.st-category,.st-article-theme)[data-st-section="spacetech"] {
    --st-surface: #211636;
    --st-heading: #fff;
    --st-copy: #f5f0ff;
    --st-muted: #d0c4e1;
    --st-accent: #ceb5ff;
    --st-rule: #ffffff30;
}
:is(.st-category,.st-article-theme)[data-st-section="strategie"] { --st-surface: #f3f6fc; --st-accent: #850bd5; }


.st-category { background: var(--st-surface); color: var(--st-copy); padding-bottom: 64px; }
.tag-template .st-category #st-category-heading {
    color: var(--st-heading); background: transparent; font-family: var(--font-sans);
    font-size: 3.2rem; font-weight: 700; text-transform: none; letter-spacing: -.035em;
    box-shadow: inset 0 -1px var(--st-rule);
}
.tag-template .st-category #st-category-heading::before {
    content: ""; position: absolute; bottom: 0; left: 22px; width: 64px; height: 4px; background: var(--st-accent);
}
.st-category :is(.st-latest-title,.st-latest-list-item h3) { color: var(--st-heading); font-family: var(--font-sans); }
.st-category .st-latest-list-item h3 { font-weight: 600; }
.st-category .st-latest-hero .st-latest-title { font-size: 3.2rem; line-height: 1.18; letter-spacing: -.035em; }
.st-category :is(.st-latest-excerpt,.gh-card-footer,.st-category-description) { color: var(--st-muted); }
.st-category a { color: inherit; }
.st-category .st-latest-list-item + .st-latest-list-item { box-shadow: 0 -1px var(--st-rule); }
.st-category a:hover, .st-category .st-latest-card-link:hover .st-latest-title { color: var(--st-accent); opacity: 1; }
.st-category :is(a,button):focus-visible { outline: 3px solid var(--st-accent); outline-offset: 4px; }
.st-archive { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--st-accent); }
.st-archive h2 { color: var(--st-heading); font-family: var(--font-sans); font-size: 2.6rem; letter-spacing: -.03em; }
.st-archive-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 40px; padding: 0; margin: 24px 0 0; list-style: none; }
.st-archive-list li { margin: 0; border-bottom: 1px solid var(--st-rule); }
.st-archive-list a { display: block; padding: 15px 0; font: 600 1.7rem/1.5 var(--font-sans); overflow-wrap: anywhere; }
.st-archive-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-archive-status { color: var(--st-muted); font-size: 1.3rem; }
.st-archive-retry { background: transparent; color: var(--st-accent); border: 1px solid currentColor; padding: 10px 18px; cursor: pointer; font: inherit; }
.st-archive [hidden] { display: none; }
/* The article header carries its primary category palette; reading surface stays white. */
.st-article-theme .gh-article-header {
    background: var(--st-surface); color: var(--st-copy);
    box-shadow: 0 0 0 20px var(--st-surface);
}
.st-article-theme .gh-article-header :is(.gh-article-title,.gh-author-name) { color: var(--st-heading); }
.st-article-theme .gh-article-title { font-family: var(--font-sans); letter-spacing: -.035em; }
.st-article-theme .gh-article-header :is(.gh-article-excerpt,.gh-article-meta,figcaption) { color: var(--st-muted); }
.st-article-theme .gh-article-header :is(.gh-article-tag,.gh-button-share) { color: var(--st-accent); }
.st-article-theme .gh-article-header .gh-author-name a { color: inherit; }
.st-article-theme .gh-article-header a:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 4px; }
/* Larger centered masthead, with room for actions and the exact brand statement. */
.st-head-inner { min-height: 136px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.st-brand { margin-inline: auto; gap: 16px; }
.st-brand .st-brand-sphere { width: 58px; }
.st-brand .st-brand-wordmark { width: 310px; }
.st-brand-tagline { margin: 3px 0 12px; color: #142941; text-align: center; font: 500 13px/1.5 var(--font-sans); letter-spacing: .025em; }
.st-footer-tagline { margin: 12px 0 0; color: #c3c9d1; font: 500 13px/1.6 var(--font-sans); }
@media(min-width:768px) and (max-width:1100px) {
    .st-brand .st-brand-wordmark { width: 270px; }
    .st-brand .st-brand-sphere { width: 48px; }
    .st-head-actions { gap: 8px; }
    .st-head-actions .st-account-button { padding: 10px 12px; }
}
@media(max-width:767px) {
    .st-head-inner { min-height: 112px; padding: 12px 20px; }
    .st-brand { gap: 10px; }
    .st-brand .st-brand-wordmark { width: clamp(210px,65vw,310px); }
    .st-brand .st-brand-sphere { width: 42px; }
    .st-brand-tagline { font-size: 11px; margin: 4px 0 0; letter-spacing: 0; }
    .st-category { padding-bottom: 40px; }
    .tag-template .st-category #st-category-heading { font-size: 2.8rem; }
    .st-category .st-latest-hero .st-latest-title { font-size: 2.4rem; }
    .st-archive-list { grid-template-columns: minmax(0,1fr); }
    .st-archive { margin-top: 32px; padding-top: 24px; }
    .st-archive h2 { font-size: 2.2rem; }
}
