:root {
    --sf-plum: #6e187d;
    --sf-plum-dark: #451054;
    --sf-magenta: #9f1099;
    --sf-yellow: #ffc400;
    --sf-ink: #231b26;
    --sf-muted: #6c6370;
    --sf-line: #e8e2ea;
    --sf-soft: #faf7fb;
    --sf-lilac: #f4ecf8;
}

.sf-blog,
.sf-blog * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.sf-blog {
    color: var(--sf-ink);
    padding: 0 0 48px;
}

.sf-blog .container-fluid,
.sf-blog-breadcrumbs .container-fluid {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding-right: 28px;
    padding-left: 28px;
}

.sf-blog-breadcrumbs {
    margin-bottom: 14px;
}

.sf-blog a {
    color: inherit;
    text-decoration: none;
}

.sf-blog img {
    display: block;
    max-width: 100%;
}

.sf-blog button,
.sf-blog input,
.sf-blog select {
    font: inherit;
}

.sf-blog h1,
.sf-blog h2,
.sf-blog h3,
.sf-blog p {
    margin-top: 0;
}

.sf-blog h2 {
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--sf-lilac);
    color: var(--sf-plum);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.sf-eyebrow--light {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.sf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.sf-button:hover {
    transform: translateY(-1px);
}

.sf-button--yellow {
    background: var(--sf-yellow);
    color: #2b2200 !important;
}

.sf-button--light {
    background: #fff;
    color: #2f2332 !important;
}

.sf-button--outline-light {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
}

.sf-button--brand {
    border: 0;
    background: var(--sf-plum);
    color: #fff !important;
}

.sf-inline-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.sf-icon-box {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--sf-lilac);
    color: var(--sf-plum);
}

.sf-icon-box svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.sf-home-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 8px;
    background: #493229;
}

.sf-home-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sf-home-hero__content {
    position: relative;
    z-index: 1;
    width: min(560px, 48%);
    padding: 58px 54px;
    color: #fff;
}

.sf-home-hero h1 {
    max-width: 510px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 750;
}

.sf-home-hero p {
    max-width: 490px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    line-height: 1.55;
}

.sf-quick-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sf-quick-tool {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

.sf-quick-tool:hover {
    border-color: #caa3d4;
    transform: translateY(-2px);
}

.sf-quick-tool > span:last-child {
    min-width: 0;
}

.sf-quick-tool strong,
.sf-quick-tool small {
    display: block;
}

.sf-quick-tool strong {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.25;
}

.sf-quick-tool small {
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.35;
}

.sf-section {
    margin-top: 34px;
}

.sf-section--compact {
    margin-top: 28px;
}

.sf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sf-section-head h2 {
    margin-bottom: 0;
}

.sf-section-head > a,
.sf-text-link {
    color: var(--sf-plum) !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sf-article-grid {
    display: grid;
    gap: 14px;
}

.sf-article-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sf-article-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sf-article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

.sf-article-card:hover {
    border-color: #cba8d4;
    transform: translateY(-2px);
}

.sf-article-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sf-soft);
}

.sf-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.sf-article-card:hover .sf-article-card__image img {
    transform: scale(1.025);
}

.sf-article-card__body {
    padding: 14px 14px 15px;
}

.sf-article-card h2,
.sf-article-card h3 {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.sf-article-card p {
    margin-bottom: 12px;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.45;
}

.sf-article-card time {
    color: #918896;
    font-size: 11px;
}

.sf-article-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: var(--sf-lilac);
    color: var(--sf-plum);
    font-size: 42px;
    font-weight: 700;
}

.sf-lab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.sf-calculator,
.sf-glossary-teaser {
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
}

.sf-calculator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 12px 22px;
    padding: 26px;
    background: #fcfafc;
}

.sf-lab__heading {
    grid-column: 1 / -1;
}

.sf-lab__heading h2,
.sf-glossary-teaser h2 {
    margin-bottom: 8px;
}

.sf-lab__heading p,
.sf-glossary-teaser p {
    margin-bottom: 0;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.45;
}

.sf-calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sf-calc-form label {
    display: block;
    color: #4d4350;
    font-size: 12px;
    font-weight: 600;
}

.sf-calc-form input,
.sf-calc-form select {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    padding: 0 11px;
    border: 1px solid #ded5e1;
    border-radius: 5px;
    background: #fff;
    color: var(--sf-ink);
}

.sf-calc-form .sf-button {
    align-self: end;
}

.sf-calc-result {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 7px;
    background: var(--sf-lilac);
    text-align: center;
}

.sf-calc-result span,
.sf-calc-result small {
    color: var(--sf-muted);
    font-size: 11px;
    line-height: 1.35;
}

.sf-calc-result strong {
    display: block;
    margin: 6px 0 8px;
    color: var(--sf-plum-dark);
    font-size: 34px;
    line-height: 1;
}

.sf-glossary-teaser {
    position: relative;
    background: #eee7f4;
}

.sf-glossary-teaser > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-glossary-teaser__content {
    position: relative;
    z-index: 1;
    width: 56%;
    padding: 28px;
}

.sf-glossary-jump {
    display: flex;
    margin: 20px 0 14px;
}

.sf-glossary-jump input {
    width: calc(100% - 48px);
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d9cde0;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: rgba(255, 255, 255, .94);
}

.sf-glossary-jump button,
.sf-glossary__search button {
    display: inline-flex;
    width: 48px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: var(--sf-plum);
    color: #fff;
    cursor: pointer;
}

.sf-glossary-jump button svg,
.sf-glossary__search button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.sf-term-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.sf-term-chips a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #d7c1df;
    border-radius: 14px;
    background: rgba(255, 255, 255, .6);
    color: var(--sf-plum) !important;
    font-size: 11px;
    font-weight: 600;
}

.sf-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sf-inspiration-card {
    position: relative;
    height: 176px;
    overflow: hidden;
    border-radius: 8px;
    background: #e7e1e8;
}

.sf-inspiration-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: rgba(27, 18, 30, .58);
}

.sf-inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.sf-inspiration-card:hover img {
    transform: scale(1.03);
}

.sf-inspiration-card span {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 14px;
    left: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.sf-newsletter {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.25fr);
    align-items: center;
    gap: 28px;
    margin-top: 34px;
    padding: 22px 28px;
    border-radius: 8px;
    background: var(--sf-plum-dark);
    color: #fff;
}

.sf-newsletter__intro {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sf-newsletter__icon {
    display: inline-flex;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
}

.sf-newsletter__icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.sf-newsletter h2 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 20px;
}

.sf-newsletter p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.sf-newsletter__row {
    display: flex;
}

.sf-newsletter__row input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px 0 0 5px;
    background: #fff;
    color: var(--sf-ink);
}

.sf-newsletter__row button {
    flex: 0 0 150px;
    height: 44px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: var(--sf-yellow);
    color: #332800;
    font-weight: 700;
    cursor: pointer;
}

.sf-newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    line-height: 1.35;
}

.sf-newsletter__consent input {
    margin: 1px 0 0;
}

.sf-newsletter__consent a {
    color: #fff !important;
    text-decoration: underline;
}

.sf-newsletter__status {
    min-height: 15px;
    margin-top: 5px;
    font-size: 11px;
}

.sf-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.sf-trust > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sf-trust strong,
.sf-trust small {
    display: block;
}

.sf-trust strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.sf-trust small {
    color: var(--sf-muted);
    font-size: 10px;
}

/* Hub */
.sf-hub-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sf-hub-nav {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-right: 1px solid var(--sf-line);
    padding-right: 16px;
}

.sf-hub-nav__mobile-title {
    display: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.sf-hub-nav__group {
    border-bottom: 1px solid var(--sf-line);
}

.sf-hub-nav__group summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    color: #493c4c;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.sf-hub-nav__group summary:focus-visible {
    outline: 2px solid var(--sf-magenta);
    outline-offset: -2px;
    border-radius: 4px;
}

.sf-hub-nav__group summary::-webkit-details-marker {
    display: none;
}

.sf-hub-nav__section-link {
    min-width: 0;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    text-decoration: none;
}

.sf-hub-nav__group-name {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.sf-hub-nav__group-name small {
    display: inline-flex;
    min-width: 22px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sf-lilac);
    color: var(--sf-plum);
    font-size: 10px;
    font-weight: 700;
}

.sf-hub-nav__section-link:hover,
.sf-hub-nav__section-link.is-active {
    color: var(--sf-plum);
}

.sf-hub-nav__section-link:focus-visible {
    outline: 2px solid var(--sf-magenta);
    outline-offset: 3px;
    border-radius: 2px;
}

.sf-hub-nav__dot {
    display: inline-flex;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sf-magenta);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.sf-hub-nav__chevron {
    margin-left: auto;
    color: var(--sf-plum);
    transition: transform .18s ease;
}

.sf-hub-nav__group:not([open]) .sf-hub-nav__chevron {
    transform: rotate(180deg);
}

.sf-hub-nav__links {
    display: grid;
    gap: 2px;
    padding: 0 0 12px 27px;
}

.sf-hub-nav__links a {
    min-height: 30px;
    padding: 6px 0;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.25;
}

.sf-hub-nav__links .sf-hub-nav__section-link {
    color: #493c4c;
    font-weight: 700;
}

.sf-hub-nav__links .sf-hub-nav__all {
    margin-top: 3px;
    color: var(--sf-plum);
    font-weight: 700;
}

.sf-hub-nav__group.is-current > summary {
    color: var(--sf-plum);
}

.sf-hub-nav__current {
    display: grid;
    gap: 2px;
    margin: 2px 0 4px;
    padding: 8px 10px;
    border-left: 3px solid var(--sf-magenta);
    border-radius: 4px;
    background: var(--sf-soft);
    color: var(--sf-plum-dark);
}

.sf-hub-nav__current small {
    color: var(--sf-muted);
    font-size: 10px;
    line-height: 1.2;
}

.sf-hub-nav__current strong {
    font-size: 12px;
    line-height: 1.3;
}

.sf-hub-nav--article .sf-hub-nav__directory {
    display: flex;
    align-items: center;
}

.sf-hub-nav__links a:hover,
.sf-hub-nav__links a.is-active {
    color: var(--sf-plum);
}

.sf-hub-nav__glossary {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 12px 8px;
    border: 1px solid #dfcde4;
    border-radius: 7px;
    background: var(--sf-soft);
}

.sf-hub-nav__glossary .sf-icon-box {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.sf-hub-nav__glossary .sf-icon-box svg {
    width: 19px;
    height: 19px;
}

.sf-hub-nav__glossary strong,
.sf-hub-nav__glossary small {
    display: block;
}

.sf-hub-nav__glossary strong {
    color: var(--sf-plum-dark);
    font-size: 12px;
    line-height: 1.25;
}

.sf-hub-nav__glossary small {
    margin-top: 3px;
    color: var(--sf-muted);
    font-size: 10px;
    line-height: 1.3;
}

.sf-hub-nav__glossary b {
    color: var(--sf-magenta);
}

.sf-hub-content {
    min-width: 0;
}

.sf-hub-hero {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--sf-plum-dark);
}

.sf-hub-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-hub-hero__content {
    position: relative;
    z-index: 1;
    width: 51%;
    padding: 42px 38px;
    color: #fff;
}

.sf-hub-hero h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 42px;
    line-height: 1.1;
}

.sf-hub-hero p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.55;
}

.sf-direction-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.sf-direction-card {
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

.sf-direction-card:hover {
    border-color: #caa2d3;
    transform: translateY(-2px);
}

.sf-direction-card > img {
    width: 100%;
    aspect-ratio: 1.52 / 1;
    object-fit: cover;
}

.sf-direction-card__body {
    position: relative;
    display: block;
    min-height: 128px;
    padding: 14px 12px 28px;
}

.sf-direction-card strong,
.sf-direction-card small {
    display: block;
}

.sf-direction-card strong {
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.3;
}

.sf-direction-card small {
    color: var(--sf-muted);
    font-size: 10px;
    line-height: 1.42;
}

.sf-direction-card b {
    position: absolute;
    right: 12px;
    bottom: 9px;
    color: var(--sf-magenta);
}

.sf-hub-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sf-hub-tools > a {
    position: relative;
    display: flex;
    min-height: 96px;
    align-items: center;
    gap: 12px;
    padding: 14px 28px 14px 14px;
    border: 1px solid #eadfec;
    border-radius: 8px;
    background: var(--sf-soft);
}

.sf-hub-tools strong,
.sf-hub-tools small {
    display: block;
}

.sf-hub-tools strong {
    margin-bottom: 5px;
    color: var(--sf-plum);
    font-size: 13px;
    line-height: 1.25;
}

.sf-hub-tools small {
    color: var(--sf-muted);
    font-size: 10px;
    line-height: 1.35;
}

.sf-hub-tools b {
    position: absolute;
    right: 11px;
    bottom: 10px;
    color: var(--sf-magenta);
}

.sf-article-grid--six .sf-article-card__body {
    padding: 11px 11px 13px;
}

.sf-article-grid--six .sf-article-card h3 {
    font-size: 12px;
}

.sf-term-chips--wide {
    margin-bottom: 0;
}

.sf-term-chips--wide a {
    background: #fff;
}

.sf-hub-about {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid #e8dceb;
    border-radius: 8px;
    background: var(--sf-soft);
}

.sf-hub-about__mark {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--sf-plum);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

.sf-hub-about h2 {
    margin-bottom: 6px;
    font-size: 18px;
}

.sf-hub-about p {
    margin-bottom: 0;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sf-newsletter--hub {
    margin-top: 16px;
}

/* Dictionary */
.sf-glossary-hero {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--sf-plum-dark);
}

.sf-glossary-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(55, 13, 66, .66);
}

.sf-glossary-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sf-glossary-hero__content {
    position: relative;
    z-index: 1;
    width: min(590px, 60%);
    padding: 40px 38px;
    color: #fff;
}

.sf-glossary-hero h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 40px;
    line-height: 1.12;
}

.sf-glossary-hero p {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.55;
}

.sf-glossary {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--sf-line);
}

.sf-blog--glossary-page .sf-glossary {
    margin-top: 26px;
    padding-top: 0;
    border-top: 0;
}

.sf-blog--glossary-page .sf-hub-layout,
.sf-blog--glossary-page .sf-hub-content,
.sf-blog--glossary-page .sf-glossary {
    overflow-anchor: none;
}

.sf-glossary__lead {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.5;
}

.sf-glossary__count {
    color: var(--sf-muted);
    font-size: 12px;
}

.sf-glossary__count b {
    color: var(--sf-plum);
    font-size: 18px;
}

.sf-glossary__controls {
    position: sticky;
    z-index: 3;
    top: 0;
    padding: 12px 0;
    background: rgba(255, 255, 255, .96);
    overflow-anchor: none;
}

.sf-glossary__search {
    display: flex;
    max-width: 660px;
    margin-bottom: 12px;
}

.sf-glossary__search input {
    width: calc(100% - 48px);
    height: 44px;
    padding: 0 13px;
    border: 1px solid #dacfe0;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #fff;
}

.sf-glossary__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.sf-glossary__topics button {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #dacfe0;
    border-radius: 5px;
    background: #fff;
    color: #514555;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
}

.sf-glossary__topics button:hover,
.sf-glossary__topics button.is-active {
    border-color: var(--sf-magenta);
    background: #f7edf9;
    color: var(--sf-plum);
}

.sf-glossary__alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sf-glossary__alphabet button {
    min-width: 34px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #dacfe0;
    border-radius: 5px;
    background: #fff;
    color: #514555;
    cursor: pointer;
}

.sf-glossary__alphabet button:hover,
.sf-glossary__alphabet button.is-active {
    border-color: var(--sf-plum);
    background: var(--sf-plum);
    color: #fff;
}

.sf-glossary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 1px;
    overflow-anchor: none;
}

.sf-glossary-item {
    padding: 16px;
    border-left: 3px solid #d8b9df;
    background: var(--sf-soft);
}

.sf-glossary-item[hidden] {
    display: none;
}

.sf-glossary-item h3 {
    margin-bottom: 7px;
    color: var(--sf-plum-dark);
    font-size: 16px;
    line-height: 1.25;
}

.sf-glossary-item p {
    margin-bottom: 0;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sf-glossary-item p + p {
    margin-top: 8px;
}

.sf-glossary-item p strong {
    color: var(--sf-plum-dark);
}

.sf-glossary-item__links {
    display: grid;
    gap: 5px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #e5d9e8;
}

.sf-glossary-item__links span {
    color: #7a6c7e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sf-glossary-item__links a {
    color: var(--sf-plum);
    font-size: 11px;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: #d4b3dc;
    text-underline-offset: 2px;
}

.sf-glossary-item__links a:hover {
    color: var(--sf-magenta);
}

.sf-glossary__empty {
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 6px;
    background: var(--sf-soft);
    color: var(--sf-muted);
    text-align: center;
}

/* ГОСТ and technical specifications catalog */
.sf-gost-hero {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 8px;
    background: #2b202d;
}

.sf-gost-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(38, 22, 42, .62);
}

.sf-gost-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sf-gost-hero__content {
    position: relative;
    z-index: 1;
    width: min(640px, 61%);
    padding: 42px 40px;
    color: #fff;
}

.sf-gost-hero h1 {
    max-width: 600px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 40px;
    line-height: 1.12;
}

.sf-gost-hero p {
    max-width: 580px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.55;
}

.sf-gost-catalog {
    margin-top: 26px;
    overflow-anchor: none;
}

.sf-blog--gost-page .sf-hub-layout,
.sf-blog--gost-page .sf-hub-content,
.sf-blog--gost-page .sf-gost-catalog {
    overflow-anchor: none;
}

.sf-gost-catalog__heading {
    align-items: end;
}

.sf-gost-catalog__lead {
    max-width: 840px;
    margin: 0 0 18px;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.58;
}

.sf-gost-catalog__count {
    color: var(--sf-muted);
    font-size: 12px;
    white-space: nowrap;
}

.sf-gost-catalog__count b {
    color: var(--sf-plum);
    font-size: 18px;
}

.sf-gost-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 16px;
    border-top: 1px solid var(--sf-line);
    border-bottom: 1px solid var(--sf-line);
}

.sf-gost-summary span {
    min-width: 0;
    padding: 13px 16px;
    color: var(--sf-muted);
    font-size: 12px;
}

.sf-gost-summary span + span {
    border-left: 1px solid var(--sf-line);
}

.sf-gost-summary b {
    margin-right: 5px;
    color: var(--sf-plum-dark);
    font-size: 16px;
}

.sf-gost-warning {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 3px solid #d69b24;
    background: #fff9eb;
    color: #5c4d2d;
    font-size: 12px;
    line-height: 1.55;
}

.sf-gost-warning strong {
    color: #3f321c;
}

.sf-gost-controls {
    position: sticky;
    z-index: 3;
    top: 0;
    padding: 12px 0;
    background: rgba(255, 255, 255, .97);
    overflow-anchor: none;
}

.sf-gost-search {
    display: flex;
    max-width: 680px;
    margin-bottom: 12px;
}

.sf-gost-search input {
    width: calc(100% - 48px);
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d8cdda;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #fff;
    color: var(--sf-plum-dark);
}

.sf-gost-search button {
    display: inline-flex;
    width: 48px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sf-plum);
    border-radius: 0 5px 5px 0;
    background: var(--sf-plum);
    color: #fff;
    cursor: pointer;
}

.sf-gost-search button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.sf-gost-topics,
.sf-gost-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sf-gost-topics {
    margin-bottom: 8px;
}

.sf-gost-topics button,
.sf-gost-statuses button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #dacfe0;
    border-radius: 5px;
    background: #fff;
    color: #514555;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
}

.sf-gost-topics button:hover,
.sf-gost-topics button.is-active,
.sf-gost-statuses button:hover,
.sf-gost-statuses button.is-active {
    border-color: var(--sf-magenta);
    background: #f7edf9;
    color: var(--sf-plum);
}

.sf-gost-empty {
    margin: 4px 0 14px;
    padding: 18px;
    border-radius: 6px;
    background: var(--sf-soft);
    color: var(--sf-muted);
    text-align: center;
}

.sf-gost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 1px;
    overflow-anchor: none;
}

.sf-gost-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 17px;
    border: 1px solid #e2dce4;
    border-radius: 7px;
    background: #fff;
}

.sf-gost-item[hidden] {
    display: none;
}

.sf-gost-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.sf-gost-item__number {
    color: var(--sf-plum);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.sf-gost-status {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
}

.sf-gost-status.is-active {
    background: #e9f5ee;
    color: #237548;
}

.sf-gost-status.is-replaced {
    background: #f9e8e5;
    color: #9a3d34;
}

.sf-gost-item h3 {
    margin: 0 0 8px;
    color: var(--sf-plum-dark);
    font-size: 16px;
    line-height: 1.3;
}

.sf-gost-item p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.58;
}

.sf-gost-item__replacement {
    margin-top: 10px !important;
    padding: 8px 10px;
    background: #fff5f3;
}

.sf-gost-item__replacement strong {
    color: #713b37;
}

.sf-gost-item__source {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin-top: auto;
    padding-top: 13px;
    color: var(--sf-plum);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #d4b3dc;
    text-underline-offset: 3px;
}

.sf-gost-item__source:hover {
    color: var(--sf-magenta);
}

.sf-tu-guide {
    margin-top: 34px;
    padding: 28px;
    border-top: 1px solid var(--sf-line);
    border-bottom: 1px solid var(--sf-line);
    background: #faf8fb;
}

.sf-tu-guide__intro {
    max-width: 820px;
}

.sf-tu-guide__intro h2 {
    margin: 5px 0 9px;
}

.sf-tu-guide__intro p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.58;
}

.sf-tu-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.sf-tu-guide__grid article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 10px;
    padding: 15px;
    border: 1px solid #e3dbe6;
    border-radius: 7px;
    background: #fff;
}

.sf-tu-guide__grid article > span {
    grid-row: 1 / 3;
    color: #b073bb;
    font-size: 12px;
    font-weight: 800;
}

.sf-tu-guide__grid h3 {
    margin: 0 0 5px;
    color: var(--sf-plum-dark);
    font-size: 14px;
}

.sf-tu-guide__grid p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sf-tu-guide__note {
    margin-top: 15px;
    padding: 13px 15px;
    border-left: 3px solid var(--sf-magenta);
    background: #f6edf8;
    color: #59465d;
    font-size: 12px;
    line-height: 1.55;
}

.sf-gost-sources {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--sf-line);
}

.sf-gost-sources h2 {
    margin-bottom: 8px;
}

.sf-gost-sources p {
    max-width: 820px;
    margin: 0 0 13px;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.55;
}

.sf-gost-sources > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.sf-gost-sources a {
    color: var(--sf-plum);
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: #d4b3dc;
    text-underline-offset: 3px;
}

.sf-hub-nav__glossary + .sf-hub-nav__glossary {
    margin-top: 8px;
}

/* Generic category */
.sf-category-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.sf-category-nav {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: hidden auto;
    padding: 16px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
}

.sf-category-nav__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.sf-category-nav__title span {
    display: none;
}

.sf-category-nav details {
    border-top: 1px solid var(--sf-line);
}

.sf-category-nav summary {
    padding: 11px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sf-category-nav details div {
    display: grid;
    gap: 3px;
    padding: 0 0 10px 10px;
}

.sf-category-nav a {
    padding: 3px 0;
    color: var(--sf-muted);
    font-size: 12px;
}

.sf-category-nav a.is-active {
    color: var(--sf-plum);
    font-weight: 700;
}

.sf-category-content.is-full {
    grid-column: 1 / -1;
}

.sf-category-content {
    min-width: 0;
}

.sf-category-header {
    margin-bottom: 22px;
}

.sf-category-header h1 {
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 1.15;
}

.sf-category-header > div {
    max-width: 900px;
    color: var(--sf-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sf-article-grid--category {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Unified category hubs */
.sf-category-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--sf-plum-dark);
    isolation: isolate;
}

.sf-category-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(41, 18, 39, .58);
}

.sf-category-hero > img {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sf-category-hero__content {
    position: relative;
    z-index: 2;
    width: min(650px, 68%);
    padding: 42px 38px;
    color: #fff;
}

.sf-category-hero h1 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: 42px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.sf-category-hero p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    line-height: 1.55;
}

.sf-category-direction-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sf-category-direction-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

.sf-category-direction-card:hover {
    border-color: #caa2d3;
    transform: translateY(-2px);
}

.sf-category-direction-card > img {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    object-fit: cover;
}

.sf-category-direction-card__body {
    position: relative;
    display: flex;
    min-height: 96px;
    flex-direction: column;
    gap: 6px;
    padding: 14px 34px 14px 14px;
}

.sf-category-direction-card__body strong {
    color: var(--sf-text);
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.sf-category-direction-card__body small {
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sf-category-direction-card__body b {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: var(--sf-magenta);
    font-size: 18px;
}

/* Full, server-rendered fabric directory on the dedicated category page. */
.sf-fabric-directory {
    scroll-margin-top: 20px;
}

.sf-fabric-directory__count {
    flex: 0 0 auto;
    color: var(--sf-muted);
    font-size: 13px;
}

.sf-fabric-directory__count b {
    color: var(--sf-plum);
    font-size: 18px;
}

.sf-fabric-directory__controls {
    display: none;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: var(--sf-soft);
}

.sf-fabric-directory.is-ready .sf-fabric-directory__controls {
    display: grid;
}

.sf-fabric-directory__search label {
    display: block;
    margin-bottom: 7px;
    color: #493c4c;
    font-size: 12px;
    font-weight: 700;
}

.sf-fabric-directory__search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.sf-fabric-directory__search input,
.sf-fabric-directory__search button,
.sf-fabric-directory__alphabet button {
    min-height: 42px;
    border: 1px solid #d8ccd9;
    background: #fff;
    color: var(--sf-ink);
    font: inherit;
}

.sf-fabric-directory__search input {
    min-width: 0;
    padding: 0 13px;
    border-radius: 6px 0 0 6px;
}

.sf-fabric-directory__search button {
    padding: 0 18px;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: var(--sf-plum);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.sf-fabric-directory__alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sf-fabric-directory__alphabet button {
    min-width: 38px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sf-fabric-directory__alphabet button:hover,
.sf-fabric-directory__alphabet button.is-active {
    border-color: var(--sf-plum);
    background: var(--sf-plum);
    color: #fff;
}

.sf-fabric-directory__alphabet button:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.sf-fabric-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sf-fabric-directory__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 92px;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    padding: 15px 38px 15px 16px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease;
}

.sf-fabric-directory__item:hover {
    border-color: #caa2d3;
    transform: translateY(-2px);
}

.sf-fabric-directory__item[hidden] {
    display: none;
}

.sf-fabric-directory__item strong {
    color: var(--sf-plum-dark);
    font-size: 15px;
    line-height: 1.3;
}

.sf-fabric-directory__item small {
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sf-fabric-directory__item > span {
    position: absolute;
    right: 15px;
    color: var(--sf-magenta);
    font-size: 18px;
}

.sf-fabric-directory__empty {
    margin: 16px 0 0;
    padding: 20px;
    border-radius: 8px;
    background: var(--sf-soft);
    color: var(--sf-muted);
    text-align: center;
}

.sf-category-articles {
    scroll-margin-top: 20px;
}

.sf-category-empty {
    padding: 28px;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    background: var(--sf-soft);
    text-align: center;
}

.sf-category-empty p {
    margin: 0 0 16px;
    color: var(--sf-muted);
}

@media (max-width: 1320px) {
    .sf-category-direction-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sf-fabric-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-direction-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sf-direction-card {
        display: grid;
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .sf-direction-card > img {
        height: 100%;
        aspect-ratio: auto;
    }

    .sf-direction-card__body {
        min-height: 112px;
    }

    .sf-article-grid--six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .sf-blog .container-fluid,
    .sf-blog-breadcrumbs .container-fluid {
        padding-right: 20px;
        padding-left: 20px;
    }

    .sf-home-hero__content {
        width: 55%;
        padding: 46px 40px;
    }

    .sf-article-grid--five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sf-lab {
        grid-template-columns: 1fr;
    }

    .sf-hub-layout {
        display: block;
    }

    .sf-hub-nav {
        position: static;
        max-height: none;
        margin-bottom: 16px;
        padding: 0;
        overflow: visible;
        border: 1px solid var(--sf-line);
        border-radius: 8px;
    }

    .sf-hub-nav.is-enhanced .sf-hub-nav__mobile-title {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .sf-hub-nav__mobile-title:focus-visible {
        outline: 2px solid var(--sf-magenta);
        outline-offset: -3px;
    }

    .sf-hub-nav__inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 18px;
        padding: 0 16px 14px;
    }

    .sf-hub-nav.is-enhanced .sf-hub-nav__inner {
        display: none;
    }

    .sf-hub-nav.is-enhanced.is-open .sf-hub-nav__inner {
        display: grid;
    }

    .sf-hub-nav__group summary {
        min-height: 42px;
    }

    .publishes__wrapper > .publishes__wrapper-side--blog-nav {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        margin: 0 0 16px;
    }

    .publishes__wrapper-side--blog-nav .sf-hub-nav {
        margin-bottom: 0;
    }

    .publishes__wrapper-side--blog-nav .sf-hub-nav__links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .sf-hub-nav__glossary {
        margin-top: 0;
    }

    .sf-hub-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .sf-category-hero__content {
        width: 78%;
    }

    .sf-category-direction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-home-hero {
        min-height: 430px;
    }

    .sf-home-hero::after,
    .sf-hub-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(41, 18, 39, .48);
    }

    .sf-home-hero > img {
        object-position: 67% center;
    }

    .sf-home-hero__content {
        z-index: 2;
        width: 75%;
    }

    .sf-quick-tools,
    .sf-inspiration-grid,
    .sf-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-newsletter {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sf-hub-hero__content {
        z-index: 2;
        width: 70%;
    }

    .sf-glossary-hero__content {
        width: 76%;
    }

    .sf-gost-hero__content {
        width: 76%;
    }

    .sf-hub-about {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .sf-hub-about .sf-button {
        grid-column: 2;
        justify-self: start;
    }

    .sf-glossary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-gost-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-category-layout {
        grid-template-columns: 1fr;
    }

    .sf-category-nav {
        position: static;
        max-height: none;
    }

    .sf-category-nav__title {
        min-height: 30px;
        margin-bottom: 0;
        cursor: pointer;
    }

    .sf-category-nav__title span {
        display: inline;
        color: var(--sf-plum);
    }

    .sf-category-nav__inner {
        display: none;
        padding-top: 10px;
    }

    .sf-category-nav.is-open .sf-category-nav__inner {
        display: block;
    }

    .sf-article-grid--category {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sf-blog {
        padding-bottom: 30px;
    }

    .sf-blog .container-fluid,
    .sf-blog-breadcrumbs .container-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .sf-blog-breadcrumbs {
        margin-bottom: 8px;
    }

    .sf-blog h2 {
        font-size: 20px;
    }

    .sf-home-hero {
        min-height: 500px;
    }

    .sf-home-hero > img {
        object-position: 70% center;
    }

    .sf-home-hero__content {
        width: 100%;
        padding: 34px 24px;
    }

    .sf-home-hero h1 {
        font-size: 38px;
    }

    .sf-home-hero p {
        font-size: 15px;
    }

    .sf-actions .sf-button {
        width: 100%;
    }

    .sf-quick-tools {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sf-quick-tool {
        min-height: 74px;
        padding: 12px;
    }

    .sf-section {
        margin-top: 28px;
    }

    .sf-section-head {
        align-items: flex-start;
    }

    .sf-section-head > a {
        white-space: normal;
        text-align: right;
    }

    .sf-article-grid--five,
    .sf-article-grid--six,
    .sf-article-grid--category {
        grid-template-columns: 1fr;
    }

    .sf-article-card {
        display: grid;
        grid-template-columns: 126px minmax(0, 1fr);
    }

    .sf-article-card__image {
        height: 100%;
        min-height: 126px;
        aspect-ratio: auto;
    }

    .sf-article-card__body {
        display: flex;
        min-height: 126px;
        flex-direction: column;
        justify-content: center;
    }

    .sf-article-card h2,
    .sf-article-card h3,
    .sf-article-grid--six .sf-article-card h3 {
        font-size: 14px;
    }

    .sf-article-card p {
        display: none;
    }

    .sf-calculator {
        display: block;
        padding: 20px;
    }

    .sf-calc-form {
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .sf-calc-result {
        margin-top: 16px;
    }

    .sf-glossary-teaser {
        min-height: 470px;
    }

    .sf-glossary-teaser > img {
        object-position: 68% center;
        opacity: .32;
    }

    .sf-glossary-teaser__content {
        width: 100%;
        padding: 24px 20px;
    }

    .sf-inspiration-grid,
    .sf-trust {
        grid-template-columns: 1fr;
    }

    .sf-inspiration-card {
        height: 190px;
    }

    .sf-newsletter {
        padding: 20px;
    }

    .sf-newsletter__row {
        display: grid;
        gap: 8px;
    }

    .sf-newsletter__row input,
    .sf-newsletter__row button {
        width: 100%;
        border-radius: 5px;
    }

    .sf-newsletter__row button {
        min-height: 44px;
    }

    .sf-hub-nav__inner,
    .sf-hub-nav.is-open .sf-hub-nav__inner {
        grid-template-columns: 1fr;
    }

    .sf-hub-hero {
        min-height: 460px;
    }

    .sf-hub-hero > img {
        object-position: 68% center;
    }

    .sf-hub-hero__content {
        width: 100%;
        padding: 32px 22px;
    }

    .sf-hub-hero h1 {
        font-size: 36px;
    }

    .sf-category-hero {
        min-height: 440px;
    }

    .sf-category-hero::after {
        background: rgba(41, 18, 39, .68);
    }

    .sf-category-hero__content {
        width: 100%;
        padding: 30px 22px;
    }

    .sf-category-hero h1 {
        font-size: 34px;
    }

    .sf-category-hero p {
        font-size: 14px;
    }

    .sf-category-direction-grid {
        grid-template-columns: 1fr;
    }

    .sf-fabric-directory__grid {
        grid-template-columns: 1fr;
    }

    .sf-fabric-directory__search > div {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .sf-fabric-directory__search input,
    .sf-fabric-directory__search button {
        border: 1px solid #d8ccd9;
        border-radius: 6px;
    }

    .sf-category-direction-card {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .sf-category-direction-card > img {
        height: 100%;
        min-height: 118px;
        aspect-ratio: auto;
    }

    .sf-category-direction-card__body {
        min-height: 118px;
    }

    .sf-glossary-hero {
        min-height: 410px;
    }

    .sf-glossary-hero::after {
        background: rgba(47, 13, 54, .68);
    }

    .sf-glossary-hero > img {
        object-position: 62% center;
    }

    .sf-glossary-hero__content {
        width: 100%;
        padding: 30px 22px;
    }

    .sf-glossary-hero h1 {
        font-size: 34px;
    }

    .sf-gost-hero {
        min-height: 440px;
    }

    .sf-gost-hero::after {
        background: rgba(38, 22, 42, .69);
    }

    .sf-gost-hero > img {
        object-position: 63% center;
    }

    .sf-gost-hero__content {
        width: 100%;
        padding: 30px 22px;
    }

    .sf-gost-hero h1 {
        font-size: 34px;
    }

    .sf-direction-grid,
    .sf-hub-tools {
        grid-template-columns: 1fr;
    }

    .sf-direction-card {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .sf-hub-about {
        display: block;
        padding: 20px;
    }

    .sf-hub-about__mark {
        margin-bottom: 14px;
    }

    .sf-hub-about .sf-button {
        margin-top: 14px;
    }

    .sf-glossary__controls {
        position: static;
    }

    .sf-glossary__alphabet {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .sf-glossary__topics {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .sf-glossary__topics::-webkit-scrollbar,
    .sf-glossary__alphabet::-webkit-scrollbar {
        display: none;
    }

    .sf-glossary__topics button {
        flex: 0 0 auto;
    }

    .sf-glossary__alphabet button {
        flex: 0 0 auto;
    }

    .sf-glossary__grid {
        grid-template-columns: 1fr;
    }

    .sf-gost-controls {
        position: static;
    }

    .sf-gost-topics,
    .sf-gost-statuses {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .sf-gost-topics::-webkit-scrollbar,
    .sf-gost-statuses::-webkit-scrollbar {
        display: none;
    }

    .sf-gost-topics button,
    .sf-gost-statuses button {
        flex: 0 0 auto;
    }

    .sf-gost-summary {
        grid-template-columns: 1fr;
    }

    .sf-gost-summary span + span {
        border-top: 1px solid var(--sf-line);
        border-left: 0;
    }

    .sf-gost-grid,
    .sf-tu-guide__grid {
        grid-template-columns: 1fr;
    }

    .sf-tu-guide {
        padding: 22px 16px;
    }

    .sf-category-header h1 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-blog *,
    .sf-blog *::before,
    .sf-blog *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Blog pagination: brand-aligned controls matching the product catalog. */
.sf-blog .sf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 28px 0 8px;
}

.sf-blog .sf-pagination__button,
.sf-blog .sf-pagination__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.sf-blog .sf-pagination__button {
    gap: 10px;
    min-width: 118px;
    padding: 0 20px;
    color: #5a176e;
    background: #fff;
    border: 1px solid #dcc8e8;
    box-shadow: 0 5px 16px rgba(78, 22, 96, .08);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sf-blog a.sf-pagination__button:hover,
.sf-blog a.sf-pagination__button:focus-visible {
    color: #fff;
    background: #8322ba;
    border-color: #8322ba;
    box-shadow: 0 9px 22px rgba(131, 34, 186, .22);
    transform: translateY(-1px);
    outline: none;
}

.sf-blog a.sf-pagination__button:active {
    transform: translateY(0);
}

.sf-blog .sf-pagination__button svg {
    flex: 0 0 auto;
}

.sf-blog .sf-pagination__button.is-disabled {
    color: #a89eac;
    background: #f7f4f8;
    border-color: #ebe4ee;
    box-shadow: none;
    cursor: default;
}

.sf-blog .sf-pagination__status {
    min-width: 82px;
    padding: 0 16px;
    gap: 6px;
    color: #fff;
    background: #8322ba;
    box-shadow: 0 7px 18px rgba(131, 34, 186, .2);
}

.sf-blog .sf-pagination__status strong {
    font: inherit;
}

.sf-blog .sf-pagination__status span {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 480px) {
    .sf-blog .sf-pagination {
        gap: 7px;
        margin-top: 22px;
    }

    .sf-blog .sf-pagination__button,
    .sf-blog .sf-pagination__status {
        min-height: 44px;
        font-size: 13px;
    }

    .sf-blog .sf-pagination__button {
        min-width: 94px;
        padding: 0 13px;
        gap: 8px;
    }

    .sf-blog .sf-pagination__status {
        min-width: 68px;
        padding: 0 11px;
        gap: 4px;
    }
}

/* Article readership metrics */
.sf-article-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
}

.sf-article-metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    color: #716776;
    font: inherit;
    line-height: 1.25;
    white-space: nowrap;
}

.sf-article-metric b {
    color: #342b37;
    font: inherit;
    font-weight: 700;
}

.sf-article-metrics--card {
    gap: 12px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #eee8f0;
    color: #827787;
    font-size: 12px;
}

.sf-article-metrics--card .sf-article-metric {
    gap: 4px;
    color: inherit;
}

.sf-article-metrics--card .sf-article-metric > span[aria-hidden="true"] {
    filter: grayscale(.25);
    font-size: 13px;
}

.sf-article-engagement {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    gap: 18px 28px;
    align-items: center;
    margin: 36px 0 8px;
    padding: 24px;
    border: 1px solid #e7d9eb;
    border-radius: 10px;
    background: #fbf8fc;
}

.sf-article-engagement__copy h2 {
    margin: 0 0 5px;
    color: #29222b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.sf-article-engagement__copy p {
    margin: 0;
    color: #746a78;
    font-size: 14px;
    line-height: 1.45;
}

.sf-article-metrics--detail {
    gap: 8px;
}

.sf-article-metrics--detail .sf-article-metric {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #dfd3e3;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

@media (max-width: 760px) {
    .sf-article-engagement {
        grid-template-columns: 1fr;
        margin-top: 28px;
        padding: 20px;
    }

    .sf-article-metrics--detail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 430px) {
    .sf-article-engagement {
        padding: 16px;
    }

    .sf-article-metrics--detail {
        grid-template-columns: 1fr;
    }

    .sf-article-metrics--detail .sf-article-metric--views {
        grid-column: auto;
    }

    .sf-article-metrics--detail .sf-article-metric {
        justify-content: flex-start;
    }

    .sf-article-metrics--card {
        gap: 9px;
    }
}

/* BEGIN sf-sewing-guide/v1 */
.sf-sewing-guide {
    --sf-guide-accent: var(--sf-plum, #6e187d);
    --sf-guide-accent-dark: var(--sf-plum-dark, #451054);
    --sf-guide-ink: var(--sf-ink, #231b26);
    --sf-guide-muted: var(--sf-muted, #6c6370);
    --sf-guide-line: var(--sf-line, #e8e2ea);
    --sf-guide-soft: var(--sf-soft, #faf7fb);
    --sf-guide-lilac: var(--sf-lilac, #f4ecf8);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--sf-guide-ink);
    font-size: 16px;
    line-height: 1.68;
}

.sf-sewing-guide,
.sf-sewing-guide * {
    box-sizing: border-box;
}

.sf-sewing-guide > section {
    margin-top: 52px;
    scroll-margin-top: 96px;
}

.sf-sewing-guide > section:first-child {
    margin-top: 0;
}

.sf-sewing-guide h2 {
    margin: 0 0 20px;
    color: var(--sf-guide-ink);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.sf-sewing-guide h3 {
    margin: 0 0 10px;
    color: var(--sf-guide-ink);
    font-size: 19px;
    line-height: 1.35;
}

.sf-sewing-guide p,
.sf-sewing-guide ul,
.sf-sewing-guide ol {
    margin-top: 0;
}

.sf-sewing-guide li + li {
    margin-top: 8px;
}

.sf-sewing-guide section a:not(.theme-btn) {
    color: var(--sf-guide-accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.sf-sewing-guide section a:not(.theme-btn):hover {
    color: var(--sf-guide-accent);
}

.sf-sewing-guide section a:focus-visible,
.sf-sewing-guide summary:focus-visible {
    outline: 3px solid rgba(110, 24, 125, .24);
    outline-offset: 3px;
}

.sf-sewing-guide__hero {
    overflow: hidden;
    padding: clamp(22px, 4vw, 46px);
    border: 1px solid var(--sf-guide-line);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, var(--sf-guide-lilac) 100%);
}

.sf-sewing-guide__eyebrow {
    margin-bottom: 14px;
    color: var(--sf-guide-accent);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sf-sewing-guide__lead {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.5;
}

.sf-sewing-guide__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 24px 0 0;
}

.sf-sewing-guide .theme-btn,
.sf-sewing-guide__toc-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 7px;
    font-weight: 700;
    line-height: 1.2;
}

.sf-sewing-guide .theme-btn {
    border: 1px solid var(--sf-guide-accent);
    background: var(--sf-guide-accent);
    color: #fff !important;
    text-decoration: none;
}

.sf-sewing-guide__toc-link {
    border: 1px solid var(--sf-guide-line);
    background: #fff;
    text-decoration: none !important;
}

.sf-sewing-guide #soderzhanie {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--sf-guide-line);
    border-radius: 12px;
    background: var(--sf-guide-soft);
}

.sf-sewing-guide #soderzhanie ol {
    columns: 2 300px;
    column-gap: 48px;
    margin-bottom: 0;
    padding-left: 22px;
}

.sf-sewing-guide #soderzhanie li {
    break-inside: avoid;
}

.sf-sewing-guide__figure {
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid var(--sf-guide-line);
    border-radius: 12px;
    background: #fff;
}

.sf-sewing-guide__figure picture,
.sf-sewing-guide__figure img {
    display: block;
    width: 100%;
}

.sf-sewing-guide__figure img {
    height: auto;
}

.sf-sewing-guide__figure--hero {
    margin-top: 26px;
}

.sf-sewing-guide__figure figcaption {
    padding: 12px 16px 14px;
    color: var(--sf-guide-muted);
    font-size: 13px;
    line-height: 1.5;
}

.sf-sewing-guide__project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 16px;
}

.sf-sewing-guide__project {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--sf-guide-line);
    border-radius: 10px;
    background: #fff;
}

.sf-sewing-guide__project p:last-child {
    margin-bottom: 0;
}

.sf-sewing-guide__media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
    margin-top: 28px;
}

.sf-sewing-guide__media-grid .sf-sewing-guide__figure {
    min-width: 0;
    margin-top: 0;
}

.sf-sewing-guide .table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 22px 0;
    border: 1px solid var(--sf-guide-line);
    border-radius: 10px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.sf-sewing-guide .table-scroll table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.sf-sewing-guide .table-scroll caption {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sf-guide-line);
    color: var(--sf-guide-ink);
    font-weight: 700;
    text-align: left;
}

.sf-sewing-guide .table-scroll th,
.sf-sewing-guide .table-scroll td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--sf-guide-line);
    vertical-align: top;
    text-align: left;
}

.sf-sewing-guide .table-scroll thead th,
.sf-sewing-guide .table-scroll tbody th {
    background: var(--sf-guide-soft);
    font-weight: 700;
}

.sf-sewing-guide .table-scroll tr:last-child > * {
    border-bottom: 0;
}

.sf-sewing-guide__notice {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--sf-guide-accent);
    border-radius: 0 9px 9px 0;
    background: var(--sf-guide-lilac);
}

.sf-sewing-guide__notice > :last-child {
    margin-bottom: 0;
}

.sf-sewing-guide__faq {
    display: grid;
    gap: 10px;
}

.sf-sewing-guide__faq details {
    border: 1px solid var(--sf-guide-line);
    border-radius: 9px;
    background: #fff;
}

.sf-sewing-guide__faq summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.sf-sewing-guide__faq summary::-webkit-details-marker {
    display: none;
}

.sf-sewing-guide__faq summary::after {
    position: absolute;
    top: 50%;
    right: 18px;
    content: "+";
    color: var(--sf-guide-accent);
    font-size: 24px;
    line-height: 1;
    transform: translateY(-50%);
}

.sf-sewing-guide__faq details[open] summary::after {
    content: "−";
}

.sf-sewing-guide__faq details[open] summary {
    border-bottom: 1px solid var(--sf-guide-line);
}

.sf-sewing-guide__faq details p {
    margin: 0;
    padding: 16px 18px 18px;
}

.sf-sewing-guide__final-cta {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sf-guide-accent-dark), var(--sf-guide-accent));
    color: #fff;
}

.sf-sewing-guide__final-cta h2,
.sf-sewing-guide__final-cta p {
    color: inherit;
}

.sf-sewing-guide__final-cta p:last-child {
    margin-bottom: 0;
}

.sf-sewing-guide__final-cta .theme-btn {
    border-color: #fff;
    background: #fff;
    color: var(--sf-guide-accent-dark) !important;
}

@media (max-width: 760px) {
    .sf-sewing-guide {
        font-size: 15px;
        line-height: 1.62;
    }

    .sf-sewing-guide > section {
        margin-top: 40px;
        scroll-margin-top: 72px;
    }

    .sf-sewing-guide__hero {
        padding: 20px;
        border-radius: 12px;
    }

    .sf-sewing-guide__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sf-sewing-guide .theme-btn,
    .sf-sewing-guide__toc-link {
        width: 100%;
    }

    .sf-sewing-guide #soderzhanie ol {
        columns: 1;
    }

    .sf-sewing-guide__project-grid,
    .sf-sewing-guide__media-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-sewing-guide .table-scroll table {
        min-width: 640px;
    }

    .sf-sewing-guide__figure figcaption {
        padding: 10px 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-sewing-guide *,
    .sf-sewing-guide *::before,
    .sf-sewing-guide *::after {
        scroll-behavior: auto !important;
    }
}
/* END sf-sewing-guide/v1 */

/* BEGIN sf-sewing-guide-project-action/v1 */
.sf-sewing-guide__project {
    display: flex;
    flex-direction: column;
}

.sf-sewing-guide__project > .sf-sewing-guide__figure {
    flex: none;
}

.sf-sewing-guide__project-action {
    display: grid;
    gap: 7px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
}

.sf-sewing-guide__project-action .theme-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
}

.sf-sewing-guide__project-action small {
    color: var(--sf-guide-muted);
    font-size: 12px;
    line-height: 1.45;
}
/* END sf-sewing-guide-project-action/v1 */

/* BEGIN sf-sewing-guide-lightbox/v1 */
.sf-sewing-guide img[data-sf-guide-lightbox-ready="true"] {
    cursor: zoom-in;
}

.sf-sewing-guide img[data-sf-guide-lightbox-ready="true"]:focus-visible {
    outline: 3px solid rgba(110, 24, 125, .48);
    outline-offset: 4px;
}

html.sf-guide-lightbox-open,
body.sf-guide-lightbox-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.sf-guide-lightbox[hidden] {
    display: none !important;
}

.sf-guide-lightbox {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(12px, 3vw, 32px);
    background: rgba(24, 18, 27, .92);
}

.sf-guide-lightbox,
.sf-guide-lightbox * {
    box-sizing: border-box;
}

.sf-guide-lightbox__surface {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(1500px, 100%);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: #19151b;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.sf-guide-lightbox__stage {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 58px 18px 18px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
}

.sf-guide-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    object-fit: contain;
}

.sf-guide-lightbox__caption {
    max-height: 22vh;
    margin: 0;
    overflow: auto;
    padding: 13px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.sf-guide-lightbox__close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #231b26;
    font: 400 32px/1 Arial, sans-serif;
    cursor: pointer;
}

.sf-guide-lightbox__close:hover {
    background: #fff;
}

.sf-guide-lightbox__close:focus-visible {
    outline: 3px solid #d9a6e3;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .sf-guide-lightbox {
        padding: 8px;
    }

    .sf-guide-lightbox__surface {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 10px;
    }

    .sf-guide-lightbox__stage {
        padding: 56px 8px 10px;
    }

    .sf-guide-lightbox__image {
        max-height: calc(100vh - 138px);
        max-height: calc(100dvh - 138px);
    }

    .sf-guide-lightbox__caption {
        max-height: 28vh;
        padding: 10px 12px 12px;
        font-size: 13px;
    }
}
/* END sf-sewing-guide-lightbox/v1 */

/* START sf-glossary-tooltip/v1 */
.sf-glossary-tooltip {
    position: fixed;
    z-index: 1200;
    box-sizing: border-box;
    width: calc(100vw - 24px);
    max-width: 340px;
    padding: 12px 14px 13px;
    border: 1px solid rgba(110, 24, 125, .28);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(69, 16, 84, .16);
    color: var(--sf-ink, #231b26);
    font: inherit;
    line-height: 1.45;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.sf-glossary-tooltip[hidden] {
    display: none !important;
}

.sf-glossary-tooltip__term,
.sf-glossary-tooltip__definition {
    display: block;
}

.sf-glossary-tooltip__term {
    margin: 0 0 4px;
    color: var(--sf-plum, #6e187d);
    font-size: 14px;
    font-weight: 700;
}

.sf-glossary-tooltip__definition {
    color: var(--sf-ink, #231b26);
    font-size: 13px;
}
/* END sf-glossary-tooltip/v1 */
/* Article product cards must grow with their controls before related posts. */
.publishes-linked-products--catalog .products__item {
    height: auto;
}
