.hn-forum {
    box-sizing: border-box;
    max-width: 1120px;
    margin: 1rem auto;
    padding: 0 1rem;
    color: #251e46;
    text-align: left;
}
.hn-forum-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.1rem;
    padding: .9rem 1rem .9rem 1.2rem;
    border: 1px solid #dcd6f0;
    border-radius: 14px;
    background: #f7f5fc;
}
.hn-forum-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-height: 66px;
    border-radius: 9px;
    background: #302354;
    color: white;
    line-height: 1;
    white-space: nowrap;
}
.hn-forum .hn-forum-date strong { color: #fff; font-size: 1.8rem; font-weight: 700; }
.hn-forum-date span { margin-top: .3rem; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.hn-forum-copy h2 { margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 700; line-height: 1.2; color: #251e46; }
.hn-forum-copy p { margin: 0; font-size: .9rem; line-height: 1.45; }
.hn-forum-copy .hn-forum-details { margin-top: .15rem; color: #59536b; font-size: .8rem; }
.hn-forum-link, .hn-forum-close { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.hn-forum-link { gap: .35rem; color: #492d82; font-size: .9rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.hn-forum-link:hover { color: #281b49; }
.hn-forum-close { width: 44px; border: 0; border-radius: 50%; background: transparent; color: #59536b; font: 1.4rem/1 system-ui, sans-serif; }
.hn-forum-close:hover { background: #e9e3f4; }
.hn-forum :focus-visible { outline: 2px solid #492d82; outline-offset: 2px; }
.hn-forum[hidden], .hn-forum-close[hidden] { display: none; }

@media (max-width: 767px) {
    .hn-forum { padding: 0 .5rem; }
    .page-container .hn-forum { padding: 0; }
    .hn-forum-inner { position: relative; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .7rem; padding: .85rem; }
    .hn-forum-date { width: 49px; min-height: 48px; }
    .hn-forum .hn-forum-date strong { font-size: 1.4rem; }
    .hn-forum-date span { font-size: .59rem; }
    .hn-forum-copy { display: contents; }
    .hn-forum-copy h2 { margin: 0; padding-right: 1.7rem; }
    .hn-forum-copy p, .hn-forum-link { grid-column: 1 / -1; }
    .hn-forum-copy p { margin-top: .2rem; }
    .hn-forum-link { justify-self: start; }
    .hn-forum-close { position: absolute; top: .2rem; right: .2rem; }
}

/* The homepage navigation is fixed below its blue e-invoicing guide. The strip
   scrolls with the hero, leaving the navigation and its menus above it. */
.main-content:has(> .hn-forum-strip) { padding-top: calc(var(--efaktura-bar-height) + var(--fs-h) + 1px); }
.hn-forum-strip ~ #home.hero { margin-top: 0; padding-top: clamp(1.25rem, 3vw, 3rem) !important; }
.hn-forum-strip {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-bottom: 1px solid #ded9eb;
    background: #f5f3fa;
    color: #332f41;
    text-align: left;
}
.hn-strip-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 44px; padding: .2rem 3rem; font-size: .82rem; line-height: 1.4; }
.hn-strip-logo { display: block; flex: none; width: 84px; height: auto; }
.hn-strip-title { flex: none; margin: 0; font-size: inherit; color: #262237; }
.hn-strip-title span { margin-inline: .1rem; }
.hn-strip-body { display: flex; align-items: baseline; gap: .65rem; }
.hn-strip-body a { flex: none; color: #482b80; font-weight: 650; text-decoration: underline; text-underline-offset: .15em; white-space: nowrap; }
.hn-strip-close { position: absolute; inset-inline-end: .5rem; width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: transparent; color: #514c61; font: 1.3rem/1 system-ui, sans-serif; }
.hn-strip-close:hover { background: #e8e3ef; }
.hn-forum-strip :focus-visible { outline: 2px solid #482b80; outline-offset: 2px; }
.hn-forum-strip[hidden], .hn-strip-close[hidden] { display: none; }
@media (max-width: 991px) {
    .hn-strip-inner { flex-wrap: wrap; gap: .1rem .6rem; padding: .25rem .75rem .45rem; font-size: .78rem; }
    .hn-strip-logo { width: 76px; }
    .hn-strip-title { line-height: 32px; font-weight: 500; }
    .hn-strip-body { flex-basis: 100%; display: block; text-align: center; }
    .hn-strip-body a { display: inline-block; margin-left: .3rem; line-height: 1.55rem; }
    .hn-strip-close { top: .25rem; }
}
