:root {
    --sppe-orange: #f26722;
    --sppe-orange-deep: #d94d0b;
    --sppe-ink: #151718;
    --sppe-muted: #687078;
    --sppe-line: #e5e7e8;
    --sppe-soft: #f6f7f5;
    --sppe-cream: #fff8f2;
    --sppe-white: #ffffff;
    --sppe-radius-lg: 28px;
    --sppe-radius-md: 18px;
    --sppe-shadow: 0 18px 55px rgba(20, 24, 27, .08);
}

html { scroll-behavior: smooth; }
body.sppe-knowledge-site {
    margin: 0;
    background: var(--sppe-white);
    color: var(--sppe-ink);
    font-family: "Sukhumvit Set", "Thonburi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.sppe-knowledge-site *,
body.sppe-knowledge-site *::before,
body.sppe-knowledge-site *::after { box-sizing: border-box; }
body.sppe-knowledge-site img { max-width: 100%; height: auto; }
body.sppe-knowledge-site a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.sppe-main-content { min-height: 58vh; overflow: clip; }
.sppe-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sppe-skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 100000;
    padding: 12px 18px; background: #111; color: #fff; border-radius: 10px;
}
.sppe-skip-link:focus { top: 16px; }

.sppe-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 17px; color: var(--sppe-orange-deep);
    font-size: .79rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase;
}
.sppe-eyebrow span { width: 22px; height: 2px; background: currentColor; }
.sppe-eyebrow--light { color: #ffd6bd; }

.sppe-button {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 19px; border: 1px solid transparent; border-radius: 999px;
    font-size: .94rem; font-weight: 700; line-height: 1.2; text-decoration: none !important;
    cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.sppe-button:hover { transform: translateY(-1px); }
.sppe-button--dark { background: var(--sppe-ink); color: #fff; }
.sppe-button--dark:hover { background: #000; color: #fff; }
.sppe-button--outline { border-color: #cfd3d5; background: transparent; color: var(--sppe-ink); }
.sppe-button--outline:hover { border-color: var(--sppe-ink); color: var(--sppe-ink); }
.sppe-button--light { background: #fff; color: var(--sppe-ink); }
.sppe-button--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.sppe-button--block { width: 100%; }
.sppe-text-link { color: var(--sppe-ink); font-weight: 720; text-decoration: none !important; }
.sppe-text-link:hover { color: var(--sppe-orange-deep); }

.sppe-knowledge-hero {
    position: relative; isolation: isolate; padding: 92px 0 88px;
    background:
        radial-gradient(circle at 90% 15%, rgba(242,103,34,.13), transparent 27%),
        linear-gradient(135deg, #faf8f4 0%, #fff 54%, #fff8f2 100%);
    border-bottom: 1px solid #ede9e3;
}
.sppe-knowledge-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .23;
    background-image: linear-gradient(rgba(40,40,40,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(40,40,40,.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, transparent 5%, #000 72%, transparent);
}
.sppe-knowledge-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.sppe-knowledge-hero h1 {
    max-width: 760px; margin: 0; font-size: clamp(3.1rem, 6vw, 6.6rem);
    line-height: .92; letter-spacing: -.065em; font-weight: 760;
}
.sppe-knowledge-hero h1::first-line { color: var(--sppe-orange); }
.sppe-knowledge-hero__grid > div:first-child > p {
    max-width: 650px; margin: 28px 0 0; color: var(--sppe-muted); font-size: 1.08rem; line-height: 1.85;
}
.sppe-knowledge-hero__search {
    padding: 28px; background: rgba(255,255,255,.82); border: 1px solid rgba(20,23,24,.11);
    border-radius: var(--sppe-radius-lg); box-shadow: var(--sppe-shadow); backdrop-filter: blur(12px);
}
.sppe-knowledge-hero__search-label { margin: 0 0 13px; font-weight: 740; }
.sppe-search-form { display: flex; align-items: center; gap: 10px; }
.sppe-search-form__icon { margin-right: -42px; z-index: 1; color: #788087; font-size: 1.45rem; }
.sppe-search-form__field {
    width: 100%; min-width: 0; height: 50px; padding: 0 16px 0 42px;
    border: 1px solid #d9dddf; border-radius: 999px; background: #fff; color: var(--sppe-ink);
    font: inherit; outline: none;
}
.sppe-search-form__field:focus { border-color: var(--sppe-orange); box-shadow: 0 0 0 4px rgba(242,103,34,.12); }
.sppe-knowledge-hero__quicklinks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.sppe-knowledge-hero__quicklinks a { color: #4f575d; font-size: .88rem; font-weight: 650; text-decoration: none; }
.sppe-knowledge-hero__quicklinks a:hover { color: var(--sppe-orange-deep); }

.sppe-category-strip { border-bottom: 1px solid var(--sppe-line); background: #fff; }
.sppe-category-strip__inner { display: flex; gap: 24px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.sppe-category-strip__label { flex: 0 0 auto; color: #777f84; font-size: .82rem; font-weight: 720; text-transform: uppercase; letter-spacing: .08em; }
.sppe-category-strip__items { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.sppe-category-strip__items a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 13px; border: 1px solid var(--sppe-line); border-radius: 999px;
    color: #343a3e; font-size: .88rem; font-weight: 650; text-decoration: none;
}
.sppe-category-strip__items a:hover { border-color: var(--sppe-orange); color: var(--sppe-orange-deep); }
.sppe-category-strip__items span { color: #92989c; font-size: .75rem; }

.sppe-section { padding: 90px 0; }
.sppe-section--soft { background: var(--sppe-soft); border-top: 1px solid #e7e9e8; }
.sppe-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 38px; }
.sppe-section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.08; letter-spacing: -.045em; }
.sppe-section-heading p { margin: 13px 0 0; color: var(--sppe-muted); line-height: 1.75; }

.sppe-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sppe-post-card {
    display: flex; min-width: 0; flex-direction: column; overflow: hidden;
    border: 1px solid var(--sppe-line); border-radius: var(--sppe-radius-md); background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sppe-post-card:hover { transform: translateY(-4px); border-color: #d4d8d9; box-shadow: var(--sppe-shadow); }
.sppe-post-card__media { display: block; aspect-ratio: 1.66 / 1; overflow: hidden; background: #f1f2ef; }
.sppe-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sppe-post-card:hover .sppe-post-card__media img { transform: scale(1.025); }
.sppe-post-card__placeholder {
    display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: flex-end;
    padding: 25px; background: radial-gradient(circle at 80% 20%, rgba(242,103,34,.28), transparent 30%), linear-gradient(145deg, #eeeae3, #faf8f4);
    color: #8c8e89; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
}
.sppe-post-card__placeholder strong { color: var(--sppe-ink); font-size: 1.7rem; letter-spacing: -.04em; text-transform: none; }
.sppe-post-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.sppe-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #878e93; font-size: .76rem; }
.sppe-chip {
    display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--sppe-cream);
    color: var(--sppe-orange-deep); font-size: .75rem; font-weight: 730; text-decoration: none !important;
}
.sppe-post-card__title { margin: 18px 0 12px; font-size: 1.28rem; line-height: 1.45; letter-spacing: -.02em; }
.sppe-post-card__title a { color: var(--sppe-ink); text-decoration: none; }
.sppe-post-card__excerpt { margin-bottom: 22px; color: var(--sppe-muted); font-size: .93rem; line-height: 1.75; }
.sppe-post-card__excerpt p { margin: 0; }
.sppe-post-card .sppe-text-link { margin-top: auto; }

.sppe-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 50px; }
.sppe-pagination .page-numbers {
    display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
    padding: 0 12px; border: 1px solid var(--sppe-line); border-radius: 999px; color: var(--sppe-ink); text-decoration: none;
}
.sppe-pagination .current, .sppe-pagination a:hover { border-color: var(--sppe-ink); background: var(--sppe-ink); color: #fff; }

.sppe-cta-band { padding: 75px 0; background: var(--sppe-ink); color: #fff; }
.sppe-cta-band__inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.sppe-cta-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.045em; }
.sppe-cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.sppe-archive-hero, .sppe-page-header {
    padding: 68px 0 64px; background: linear-gradient(135deg, #faf8f4, #fff8f2); border-bottom: 1px solid #ede9e3;
}
.sppe-archive-hero h1, .sppe-page-header h1 { max-width: 900px; margin: 0; font-size: clamp(2.5rem, 5vw, 5.25rem); line-height: 1.03; letter-spacing: -.055em; }
.sppe-archive-hero > .sppe-container > p { max-width: 720px; margin: 20px 0 0; color: var(--sppe-muted); font-size: 1.03rem; line-height: 1.8; }
.sppe-archive-hero__search { max-width: 660px; margin-top: 28px; }
.sppe-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: #7c8387; font-size: .83rem; }
.sppe-breadcrumb a { color: inherit; text-decoration: none; }
.sppe-breadcrumb a:hover { color: var(--sppe-orange-deep); }

.sppe-article-header { padding: 68px 0 52px; background: linear-gradient(135deg, #faf8f4, #fff); border-bottom: 1px solid #ede9e3; }
.sppe-article-header__inner { max-width: none; }
.sppe-article-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; color: #7a8186; font-size: .84rem; }
.sppe-article-header h1 { margin: 24px 0 0; font-size: clamp(2.35rem, 5.2vw, 5.15rem); line-height: 1.08; letter-spacing: -.055em; }
.sppe-article-header__lead { max-width: 820px; margin: 24px 0 0; color: var(--sppe-muted); font-size: 1.12rem; line-height: 1.85; }
.sppe-article-featured { max-width: 1180px; margin-top: 42px; }
.sppe-article-featured img { display: block; width: 100%; max-height: 660px; object-fit: cover; border-radius: var(--sppe-radius-lg); }
.sppe-article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 70px; align-items: start; padding-top: 60px; padding-bottom: 90px; }
.sppe-article-content, .sppe-page-content { color: #30363a; font-size: 1.03rem; line-height: 1.95; }
.sppe-article-content > *:first-child, .sppe-page-content > *:first-child { margin-top: 0; }
.sppe-article-content h2, .sppe-page-content h2 { margin: 2.15em 0 .75em; color: var(--sppe-ink); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.25; letter-spacing: -.035em; }
.sppe-article-content h3, .sppe-page-content h3 { margin: 1.9em 0 .65em; color: var(--sppe-ink); font-size: 1.45rem; line-height: 1.35; }
.sppe-article-content a, .sppe-page-content a { color: var(--sppe-orange-deep); }
.sppe-article-content blockquote, .sppe-page-content blockquote { margin: 2em 0; padding: 20px 24px; border-left: 4px solid var(--sppe-orange); background: var(--sppe-cream); border-radius: 0 14px 14px 0; }
.sppe-article-content table, .sppe-page-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sppe-article-content th, .sppe-article-content td, .sppe-page-content th, .sppe-page-content td { padding: 12px 14px; border: 1px solid var(--sppe-line); text-align: left; }
.sppe-article-content img, .sppe-page-content img { border-radius: 14px; }
.sppe-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--sppe-line); }
.sppe-article-tags strong { margin-right: 7px; }
.sppe-article-tags a { padding: 6px 10px; border-radius: 999px; background: var(--sppe-soft); color: #596166; font-size: .84rem; text-decoration: none; }
.sppe-article-aside { position: sticky; top: 110px; }
.sppe-aside-card { padding: 27px; border: 1px solid var(--sppe-line); border-radius: var(--sppe-radius-md); background: #fff; box-shadow: 0 14px 40px rgba(24,28,30,.06); }
.sppe-aside-card__label { color: var(--sppe-orange-deep); font-size: .77rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.sppe-aside-card h2 { margin: 12px 0 10px; font-size: 1.45rem; line-height: 1.35; }
.sppe-aside-card p { margin: 0 0 20px; color: var(--sppe-muted); font-size: .91rem; line-height: 1.7; }
.sppe-aside-card .sppe-text-link { display: inline-block; margin-top: 17px; font-size: .88rem; }
.sppe-page-header__inner { max-width: 960px; }
.sppe-page-content { max-width: 850px; padding-top: 60px; padding-bottom: 90px; }

.sppe-empty-state { padding: 70px 24px; border: 1px dashed #ccd1d3; border-radius: var(--sppe-radius-lg); text-align: center; background: var(--sppe-soft); }
.sppe-empty-state__icon { display: block; color: var(--sppe-orange); font-size: 3rem; }
.sppe-empty-state h2 { margin: 10px 0 8px; font-size: 2rem; }
.sppe-empty-state p { margin: 0 0 23px; color: var(--sppe-muted); }
.sppe-not-found { padding: 100px 0; background: linear-gradient(135deg, #faf8f4, #fff); }
.sppe-not-found__inner { max-width: 900px; text-align: center; }
.sppe-not-found__code { display: block; color: rgba(242,103,34,.16); font-size: clamp(7rem, 20vw, 16rem); font-weight: 800; line-height: .7; letter-spacing: -.08em; }
.sppe-not-found h1 { margin: 26px 0 18px; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1.1; letter-spacing: -.05em; }
.sppe-not-found p { color: var(--sppe-muted); font-size: 1.05rem; }
.sppe-not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* Built-in shell used only when the main Laravel shell cannot be fetched. */
.sppe-fallback-header { position: relative; z-index: 1000; border-bottom: 1px solid var(--sppe-line); background: rgba(255,255,255,.96); }
.sppe-fallback-header__inner { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.sppe-fallback-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--sppe-ink); text-decoration: none; }
.sppe-fallback-brand__mark { display: inline-flex; width: 39px; height: 39px; align-items: center; justify-content: center; border-radius: 12px; background: var(--sppe-orange); color: #fff; font-weight: 800; }
.sppe-fallback-brand strong, .sppe-fallback-brand small { display: block; }
.sppe-fallback-brand strong { font-size: 1rem; }
.sppe-fallback-brand small { color: #747b80; font-size: .68rem; }
.sppe-fallback-nav { display: flex; align-items: center; gap: 20px; }
.sppe-fallback-nav a { color: #3c4246; font-size: .88rem; font-weight: 650; text-decoration: none; }
.sppe-fallback-nav a:hover, .sppe-fallback-nav .is-current { color: var(--sppe-orange-deep); }
.sppe-fallback-nav__cta { padding: 10px 16px; border-radius: 999px; background: var(--sppe-ink); color: #fff !important; }
.sppe-fallback-menu-button { display: none; border: 1px solid var(--sppe-line); border-radius: 999px; background: #fff; padding: 8px 14px; font: inherit; }
.sppe-fallback-footer { padding: 65px 0 0; background: #101213; color: #fff; }
.sppe-fallback-footer__grid { width: min(1180px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; }
.sppe-fallback-brand--footer { color: #fff; }
.sppe-fallback-footer p { max-width: 430px; color: #9da4a8; line-height: 1.75; }
.sppe-fallback-footer h2 { margin: 0 0 17px; font-size: .95rem; }
.sppe-fallback-footer__grid > div > a:not(.sppe-fallback-brand) { display: block; margin: 9px 0; color: #b8bec1; font-size: .88rem; text-decoration: none; }
.sppe-fallback-footer__bottom { width: min(1180px, calc(100% - 40px)); margin: 50px auto 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); color: #858d91; font-size: .82rem; }

/* Hide legacy accessibility/shop UI that belonged to the previous theme. */
#pojo-a11y-toolbar,
.pojo-a11y-toolbar-toggle,
.pojo-a11y-toolbar-overlay,
.edd-cart-added-alert,
.edd_purchase_submit_wrapper,
.edd_download_purchase_form { display: none !important; }

@media (max-width: 980px) {
    .sppe-knowledge-hero { padding: 72px 0; }
    .sppe-knowledge-hero__grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
    .sppe-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sppe-article-layout { grid-template-columns: 1fr; gap: 40px; }
    .sppe-article-aside { position: static; }
    .sppe-cta-band__inner { display: block; }
    .sppe-cta-band__actions { justify-content: flex-start; margin-top: 28px; }
    .sppe-fallback-menu-button { display: inline-flex; }
    .sppe-fallback-nav { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 18px; border: 1px solid var(--sppe-line); border-radius: 18px; background: #fff; box-shadow: var(--sppe-shadow); flex-direction: column; align-items: stretch; }
    .sppe-fallback-nav.is-open { display: flex; }
    .sppe-fallback-footer__grid { grid-template-columns: 1fr 1fr; }
    .sppe-fallback-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .sppe-container { width: min(100% - 28px, 1180px); }
    .sppe-knowledge-hero { padding: 56px 0 52px; }
    .sppe-knowledge-hero h1 { font-size: clamp(2.75rem, 16vw, 4.5rem); }
    .sppe-knowledge-hero__search { padding: 19px; border-radius: 20px; }
    .sppe-search-form { flex-wrap: wrap; }
    .sppe-search-form__field { flex: 1 1 calc(100% - 1px); }
    .sppe-search-form .sppe-button { width: 100%; }
    .sppe-category-strip__inner { display: block; }
    .sppe-category-strip__label { display: block; margin-bottom: 12px; }
    .sppe-section { padding: 64px 0; }
    .sppe-section-heading { display: block; }
    .sppe-section-heading .sppe-button { margin-top: 20px; }
    .sppe-post-grid { grid-template-columns: 1fr; gap: 20px; }
    .sppe-archive-hero, .sppe-page-header, .sppe-article-header { padding: 48px 0 42px; }
    .sppe-article-header h1 { font-size: 2.45rem; }
    .sppe-article-layout { padding-top: 42px; padding-bottom: 65px; }
    .sppe-article-content, .sppe-page-content { font-size: 1rem; }
    .sppe-cta-band { padding: 58px 0; }
    .sppe-cta-band h2 br { display: none; }
    .sppe-fallback-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .sppe-fallback-footer__grid > div:first-child { grid-column: auto; }
}


/* --------------------------------------------------------------------------
   Front page v1.1 — mirrors the visual rhythm of the Laravel home page
   -------------------------------------------------------------------------- */
body.sppe-front-page {
    background: #fff;
}

.sppe-front-page .sppe-main-content {
    overflow: clip;
}

.sppe-home-hero {
    position: relative;
    padding: 46px 0 112px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 8%, rgba(242, 103, 34, .09), transparent 24%),
        #f5f2ec;
    border-bottom: 1px solid #e8e3dc;
}

.sppe-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .3;
    background-image:
        linear-gradient(rgba(20, 23, 24, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 23, 24, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 92%);
}

.sppe-home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
    min-height: 600px;
}

.sppe-home-hero__content {
    padding: 38px 0 54px;
}

.sppe-home-kicker,
.sppe-home-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sppe-orange-deep);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .115em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sppe-home-kicker::before,
.sppe-home-section-label::before {
    content: "";
    width: 24px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
}

.sppe-home-hero h1 {
    margin: 23px 0 27px;
    color: #111415;
    font-size: clamp(4.15rem, 7.55vw, 7.75rem);
    font-weight: 780;
    line-height: .87;
    letter-spacing: -.075em;
}

.sppe-home-hero h1 span {
    color: var(--sppe-orange);
}

.sppe-home-hero__content > p {
    max-width: 620px;
    margin: 0;
    color: #5f676c;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.88;
}

.sppe-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
}

.sppe-home-hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 565px;
}

.sppe-home-hero__image-wrap {
    position: absolute;
    inset: 0 0 42px 0;
    overflow: hidden;
    border-radius: 34px;
    background: #25292c;
    box-shadow: 0 28px 75px rgba(16, 20, 22, .17);
}

.sppe-home-hero__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .04), transparent 42%),
        linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 36%);
}

.sppe-home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sppe-home-hero__image-index {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 26px;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 50%;
    background: rgba(12, 15, 17, .22);
    color: #fff;
    font-size: .78rem;
    font-weight: 760;
    backdrop-filter: blur(8px);
}

.sppe-home-featured-note {
    position: absolute;
    z-index: 3;
    right: 25px;
    bottom: 0;
    left: 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 20px;
    min-height: 118px;
    padding: 22px 24px;
    border: 1px solid rgba(20, 23, 24, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    color: var(--sppe-ink);
    text-decoration: none !important;
    box-shadow: 0 18px 45px rgba(14, 18, 20, .13);
    backdrop-filter: blur(14px);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sppe-home-featured-note:hover {
    color: var(--sppe-ink);
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(14, 18, 20, .17);
}

.sppe-home-featured-note__label {
    grid-column: 1;
    color: var(--sppe-orange-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sppe-home-featured-note strong {
    grid-column: 1;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 730;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sppe-home-featured-note__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--sppe-orange);
    font-size: 1.65rem;
}

.sppe-home-search-band {
    position: relative;
    z-index: 4;
    margin-top: -66px;
}

.sppe-home-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
    gap: 48px;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid #dfe1df;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(25, 29, 31, .09);
}

.sppe-home-search-card h2 {
    margin: 10px 0 21px;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.sppe-home-search-card .sppe-search-form {
    max-width: 720px;
}

.sppe-home-search-card .sppe-search-form__field {
    height: 55px;
    border-color: #d7dadd;
    background: #fafafa;
}

.sppe-home-search-card .sppe-button {
    min-height: 55px;
    padding-inline: 25px;
}

.sppe-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--sppe-line);
}

.sppe-home-stat {
    min-width: 0;
    padding: 11px 20px;
    text-align: center;
}

.sppe-home-stat + .sppe-home-stat {
    border-left: 1px solid var(--sppe-line);
}

.sppe-home-stat strong,
.sppe-home-stat span {
    display: block;
}

.sppe-home-stat strong {
    color: var(--sppe-ink);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.055em;
}

.sppe-home-stat span {
    margin-top: 9px;
    color: #7a8287;
    font-size: .78rem;
    line-height: 1.45;
}

.sppe-home-section {
    padding: 100px 0;
}

.sppe-home-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 34px;
    margin-bottom: 40px;
}

.sppe-home-heading h2 {
    margin: 13px 0 0;
    color: var(--sppe-ink);
    font-size: clamp(2.15rem, 4.2vw, 4rem);
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -.055em;
}

.sppe-home-heading p {
    max-width: 720px;
    margin: 15px 0 0;
    color: var(--sppe-muted);
    line-height: 1.8;
}

.sppe-home-heading__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    padding-bottom: 5px;
    border-bottom: 1px solid #9ea4a8;
    color: var(--sppe-ink);
    font-size: .9rem;
    font-weight: 720;
    text-decoration: none !important;
}

.sppe-home-heading__link:hover {
    border-color: var(--sppe-orange);
    color: var(--sppe-orange-deep);
}

.sppe-home-categories {
    padding-top: 108px;
    background: #fff;
}

.sppe-home-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--sppe-line);
}

.sppe-home-category-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    min-height: 106px;
    padding: 22px 24px 22px 10px;
    border-bottom: 1px solid var(--sppe-line);
    color: var(--sppe-ink);
    text-decoration: none !important;
    transition: background .18s ease, padding .18s ease;
}

.sppe-home-category-card:nth-child(odd) {
    padding-right: 38px;
    border-right: 1px solid var(--sppe-line);
}

.sppe-home-category-card:nth-child(even) {
    padding-left: 38px;
}

.sppe-home-category-card:hover {
    background: #faf8f4;
}

.sppe-home-category-card__number {
    color: #a4a9ac;
    font-size: .75rem;
    font-weight: 760;
}

.sppe-home-category-card__body {
    min-width: 0;
}

.sppe-home-category-card__body strong,
.sppe-home-category-card__body small {
    display: block;
}

.sppe-home-category-card__body strong {
    overflow: hidden;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 690;
    line-height: 1.48;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sppe-home-category-card__body small {
    margin-top: 5px;
    color: #8a9195;
    font-size: .78rem;
}

.sppe-home-category-card__arrow {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dadd;
    border-radius: 50%;
    color: #5c6469;
    font-size: 1rem;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.sppe-home-category-card:hover .sppe-home-category-card__arrow {
    border-color: var(--sppe-orange);
    background: var(--sppe-orange);
    color: #fff;
}

.sppe-home-editorial {
    background: #111415;
    color: #fff;
}

.sppe-home-heading--light h2 {
    color: #fff;
}

.sppe-home-heading--light p {
    color: #aab0b3;
}

.sppe-home-editorial .sppe-home-section-label,
.sppe-home-cta .sppe-home-section-label {
    color: #ffb184;
}

.sppe-home-editorial__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sppe-home-story-panel {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background: #181c1e;
}

.sppe-home-story-panel__header {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 62px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.sppe-home-story-panel__index {
    color: var(--sppe-orange);
    font-size: 1.8rem;
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.04em;
}

.sppe-home-story-panel__header strong,
.sppe-home-story-panel__header small {
    display: block;
}

.sppe-home-story-panel__header strong {
    color: #fff;
    font-size: 1rem;
}

.sppe-home-story-panel__header small {
    margin-top: 3px;
    color: #8f989d;
    font-size: .76rem;
}

.sppe-home-story-list {
    display: grid;
}

.sppe-home-story-item {
    position: relative;
    min-width: 0;
    padding: 24px 52px 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sppe-home-story-item:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.sppe-home-story-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: #858f94;
    font-size: .72rem;
}

.sppe-home-story-item__meta span + span::before {
    content: "•";
    margin-right: 14px;
    color: #545d62;
}

.sppe-home-story-item h3 {
    margin: 10px 0 0;
    font-size: clamp(.98rem, 1.45vw, 1.14rem);
    font-weight: 650;
    line-height: 1.58;
}

.sppe-home-story-item h3 a {
    color: #f5f6f6;
    text-decoration: none;
}

.sppe-home-story-item h3 a:hover {
    color: #ffb184;
}

.sppe-home-story-item__arrow {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    text-decoration: none !important;
    transform: translateY(-50%);
}

.sppe-home-story-item__arrow:hover {
    border-color: var(--sppe-orange);
    background: var(--sppe-orange);
    color: #fff;
}

.sppe-home-story-list__empty {
    color: #92999d;
}

.sppe-home-latest {
    background: #f7f7f5;
}

.sppe-home-latest .sppe-post-card {
    background: #fff;
}

.sppe-home-cta {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: var(--sppe-orange);
    color: #fff;
}

.sppe-home-cta::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -80px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    box-shadow:
        0 0 0 58px rgba(255, 255, 255, .045),
        0 0 0 116px rgba(255, 255, 255, .035);
}

.sppe-home-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.sppe-home-cta h2 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(2.15rem, 4.3vw, 4.1rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.055em;
}

.sppe-home-cta p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .84);
    line-height: 1.75;
}

.sppe-home-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.sppe-home-cta .sppe-button--light {
    color: var(--sppe-ink);
}

.sppe-home-cta .sppe-button--ghost-light:hover {
    border-color: #fff;
    color: #fff;
}

/* Keep the copied Laravel navigation visually aware of the WordPress section. */
header a.sppe-current-nav,
header a[aria-current="page"] {
    color: var(--sppe-orange-deep) !important;
}

@media (max-width: 1080px) {
    .sppe-home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
        gap: 44px;
    }

    .sppe-home-hero h1 {
        font-size: clamp(3.8rem, 8vw, 6.1rem);
    }

    .sppe-home-search-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sppe-home-stats {
        padding-top: 28px;
        border-top: 1px solid var(--sppe-line);
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .sppe-home-hero {
        padding-top: 24px;
        padding-bottom: 104px;
    }

    .sppe-home-hero__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .sppe-home-hero__content {
        padding-bottom: 0;
    }

    .sppe-home-hero__visual {
        min-height: 520px;
    }

    .sppe-home-category-grid,
    .sppe-home-editorial__grid {
        grid-template-columns: 1fr;
    }

    .sppe-home-category-card:nth-child(odd),
    .sppe-home-category-card:nth-child(even) {
        padding-right: 16px;
        padding-left: 10px;
        border-right: 0;
    }

    .sppe-home-cta__inner {
        display: block;
    }

    .sppe-home-cta__actions {
        justify-content: flex-start;
        margin-top: 30px;
    }
}

@media (max-width: 680px) {
    .sppe-home-hero {
        padding-bottom: 82px;
    }

    .sppe-home-hero h1 {
        margin-top: 18px;
        font-size: clamp(3.2rem, 17vw, 4.8rem);
        line-height: .91;
    }

    .sppe-home-hero__content > p {
        font-size: .98rem;
    }

    .sppe-home-hero__actions {
        align-items: stretch;
    }

    .sppe-home-hero__actions .sppe-button {
        flex: 1 1 100%;
    }

    .sppe-home-hero__visual {
        min-height: 420px;
    }

    .sppe-home-hero__image-wrap {
        inset: 0 0 56px 0;
        border-radius: 24px;
    }

    .sppe-home-featured-note {
        right: 12px;
        left: 12px;
        min-height: 112px;
        padding: 18px;
        border-radius: 18px;
    }

    .sppe-home-search-band {
        margin-top: -42px;
    }

    .sppe-home-search-card {
        padding: 22px;
        border-radius: 22px;
    }

    .sppe-home-search-card .sppe-search-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sppe-home-search-card .sppe-search-form__icon {
        position: absolute;
        margin: 14px 0 0 14px;
    }

    .sppe-home-search-card .sppe-button {
        width: 100%;
    }

    .sppe-home-stats {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 12px;
    }

    .sppe-home-stat {
        display: grid;
        grid-template-columns: 90px 1fr;
        align-items: center;
        padding: 14px 4px;
        text-align: left;
    }

    .sppe-home-stat + .sppe-home-stat {
        border-top: 1px solid var(--sppe-line);
        border-left: 0;
    }

    .sppe-home-stat span {
        margin-top: 0;
    }

    .sppe-home-section {
        padding: 70px 0;
    }

    .sppe-home-heading {
        display: block;
        margin-bottom: 28px;
    }

    .sppe-home-heading h2,
    .sppe-home-cta h2 {
        font-size: 2.35rem;
    }

    .sppe-home-heading__link {
        margin-top: 22px;
    }

    .sppe-home-category-card {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 10px;
        min-height: 92px;
    }

    .sppe-home-category-card__body strong {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .sppe-home-category-card__arrow {
        width: 32px;
        height: 32px;
    }

    .sppe-home-story-panel {
        padding: 21px;
        border-radius: 20px;
    }

    .sppe-home-story-item {
        padding-right: 40px;
    }

    .sppe-home-cta {
        padding: 66px 0;
    }

    .sppe-home-cta h2 br {
        display: none;
    }

    .sppe-home-cta__actions .sppe-button {
        flex: 1 1 100%;
    }
}

/* --------------------------------------------------------------------------
   Single article v1.2.2 — full-width title and agreed Apple-style typography
   -------------------------------------------------------------------------- */
body.single-post.sppe-knowledge-site,
body.single-post.sppe-knowledge-site button,
body.single-post.sppe-knowledge-site input,
body.single-post.sppe-knowledge-site select,
body.single-post.sppe-knowledge-site textarea,
body.single-post.sppe-knowledge-site .sppe-single-article,
body.single-post.sppe-knowledge-site .sppe-section--soft {
    font-family:
        "Sukhumvit Set",
        "Thonburi",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Roboto",
        sans-serif !important;
}

body.single-post.sppe-knowledge-site .sppe-single-article :where(
    h1, h2, h3, h4, h5, h6,
    p, li, a, span, strong, em,
    blockquote, figcaption, label,
    table, thead, tbody, tfoot, tr, th, td
),
body.single-post.sppe-knowledge-site .sppe-section--soft :where(
    h1, h2, h3, h4, h5, h6,
    p, li, a, span, strong, em
) {
    font-family: inherit !important;
}

/* The title, featured image, and article layout now share the same 1180px frame. */
body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-header__inner {
    width: min(1180px, calc(100% - 40px));
    max-width: none !important;
    margin-inline: auto;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-title {
    width: 100%;
    max-width: none !important;
    margin: 24px 0 0;
    color: #1d1d1f;
    font-family: inherit !important;
    font-size: clamp(2.75rem, 5.35vw, 5.55rem);
    font-weight: 700;
    line-height: 1.09;
    letter-spacing: -.038em;
    overflow-wrap: break-word;
    word-break: normal;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-breadcrumb,
body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-header__meta {
    color: #86868b;
    font-weight: 500;
    letter-spacing: 0;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-header__lead {
    max-width: 920px;
    color: #6e6e73;
    font-size: clamp(1.05rem, .45vw + .95rem, 1.22rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content {
    color: #333336;
    font-size: clamp(1.05rem, .28vw + 1rem, 1.16rem);
    font-weight: 400;
    line-height: 1.92;
    letter-spacing: 0;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content :where(p, ul, ol, blockquote, table, figure) {
    margin-top: 0;
    margin-bottom: 1.45em;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content :where(h2, h3, h4, h5, h6),
body.single-post.sppe-knowledge-site .sppe-single-article .sppe-aside-card h2,
body.single-post.sppe-knowledge-site .sppe-section--soft .sppe-section-heading h2,
body.single-post.sppe-knowledge-site .sppe-section--soft .sppe-post-card__title {
    color: #1d1d1f;
    font-weight: 700;
    letter-spacing: -.025em;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content h2 {
    line-height: 1.3;
}

body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content :where(h3, h4) {
    line-height: 1.4;
}

/* Preserve readable monospace formatting for technical snippets. */
body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content :where(code, kbd, samp, pre),
body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-content pre * {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}

@media (max-width: 680px) {
    body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-header__inner {
        width: min(100% - 28px, 1180px);
    }

    body.single-post.sppe-knowledge-site .sppe-single-article .sppe-article-title {
        font-size: clamp(2.15rem, 10.5vw, 3.35rem);
        line-height: 1.13;
        letter-spacing: -.025em;
    }
}

/* SAFETYPPE BLOG BRIDGE 1.2.3 START */
/*
 * Laravel's unlayered button color rule outranks Tailwind's layered
 * text-white utility. This explicit unlayered rule keeps "ค้นหา" visible.
 */
body.sppe-knowledge-site .sppe-blog-search button[type="submit"] {
    display: inline-flex !important;
    min-width: 88px;
    align-items: center !important;
    justify-content: center !important;
    isolation: isolate;
    z-index: 3 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: "Sukhumvit Set", "Thonburi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.25rem !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sppe-bridge-auth-hidden {
    display: none !important;
}

.sppe-bridge-session-item.nav-logout {
    margin: 0;
}

.sppe-fallback-nav .sppe-bridge-session-item.nav-logout button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    color: #4f575d;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sppe-fallback-nav .sppe-bridge-session-item.nav-logout button:hover,
.sppe-fallback-nav .sppe-bridge-session-item.nav-logout button:focus-visible {
    color: #111315;
    background: #f5f5f7;
}

@media (max-width: 480px) {
    body.sppe-knowledge-site .sppe-blog-search button[type="submit"] {
        min-width: 82px;
        padding-inline: 1rem !important;
    }
}
/* SAFETYPPE BLOG BRIDGE 1.2.3 END */
