/* Scoped to the four SaveWise hubs; no global element resets. */
#tm-main .sw-hub-section{--hub-bg:#0b1510;--hub-panel:#142d20;--hub-text:#edf3eb;--hub-link:#a2edbc;color:var(--hub-text);font-family:Arial,Helvetica,sans-serif;background:var(--hub-bg);padding-block:clamp(24px,3vw,44px)}
#tm-main .sw-hub-section>.uk-container{max-width:1200px!important;margin-inline:auto;padding:0!important}
#tm-main .sw-hub-section .sw-hub-copy{color:var(--hub-text);font-size:1rem;line-height:1.75;max-width:78ch}
#tm-main .sw-hub-section .sw-hub-copy p{margin-block:0 1em;color:var(--hub-text)}
#tm-main .sw-hub-section .sw-hub-heading{color:var(--hub-text);font-weight:650;line-height:1.25;margin-block:0 24px}
#tm-main .sw-hub-section h1.sw-hub-heading{max-width:26ch;margin-inline:auto;font-size:clamp(2rem,3.2vw,3rem);text-align:center}
#tm-main .sw-hub-section h2.sw-hub-heading{font-size:clamp(1.5rem,2.2vw,2rem)}
#tm-main .sw-hub-section div.sw-hub-heading{font-size:1.3rem}
#tm-main .sw-hub-section .sw-hub-panel{box-sizing:border-box;background:var(--hub-panel);border-top:1px solid #74967c;padding-top:24px;padding-bottom:24px}
#tm-main .sw-hub-section a:not(.uk-button){color:var(--hub-link);text-decoration:underline;text-underline-offset:.2em}
#tm-main .sw-hub-section a:not(.uk-button):hover{color:#ffffff}
#tm-main .sw-hub-section .sw-hub-links{color:var(--hub-text);padding-left:1.2em;line-height:1.6}
#tm-main .sw-hub-section .sw-hub-links>li{margin-block:10px}
#tm-main .sw-hub-section .sw-hub-actions{margin-block:24px}
#tm-main .sw-hub-section .sw-hub-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#062516!important;background:#2bf080!important;border:1px solid #2bf080;border-radius:10px;font-family:Arial,Helvetica,sans-serif;font-weight:700;line-height:1.4;text-decoration:none;padding:10px 20px}
#tm-main .sw-hub-section .sw-hub-actions a:hover{color:#062516!important;background:#b6ffd1!important;border-color:#b6ffd1}
#tm-main .sw-hub-section a:focus-visible{outline:3px solid #ffdc6b;outline-offset:4px}
#tm-main .sw-hub-section .sw-hub-photo{margin-block:28px 0}
#tm-main .sw-hub-section .sw-hub-photo img,#tm-main .sw-hub-section img.sw-hub-photo{display:block;width:100%;height:clamp(180px,22vw,300px);object-fit:cover;border-radius:16px}
#tm-main .sw-hub-section .sw-hub-faq{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;padding:0;list-style:none}
@media(max-width:767px){#tm-main .sw-hub-section .sw-hub-faq{grid-template-columns:minmax(0,1fr)}#tm-main .sw-hub-section{padding-block:24px}}
/* Scoped correction for the existing shared editorial wrapper reset. */
#tm-main .ccm-article-main>.sw-section.sw-dark.sw-hub-section{padding:clamp(24px,3vw,44px) 0!important;background:#0b1510!important}
#tm-main .sw-hub-section .sw-hub-copy p{margin:0 0 1em!important}
@media(max-width:767px){#tm-main .ccm-article-main>.sw-section.sw-dark.sw-hub-section{padding:24px 0!important}}

/* SaveWise topic templates: use the actual #tm-main ID. Scope does not include hubs, articles or home. */
#tm-main .sw-topic-hero,
#tm-main .sw-topic-results,
#tm-main .sw-topic-footer{background:#0b100e!important;color:#e4ece6!important}
#tm-main .sw-topic-hero{padding-block:32px 20px!important}
#tm-main .sw-topic-results{padding-block:8px 32px!important}
#tm-main .sw-topic-footer{padding-block:24px 32px!important;border-top:1px solid #668875}
#tm-main .sw-topic-hero h1,
#tm-main .sw-topic-results h2,
#tm-main .sw-topic-footer h2{color:#f7f5ee!important;line-height:1.25}
#tm-main .sw-topic-hero h1{font-size:clamp(2rem,3.2vw,2.75rem);max-width:30ch;margin-inline:auto}
#tm-main .sw-topic-hero .sw-catalog-intro,
#tm-main .sw-topic-hero .sw-catalog-intro p{color:#c5d5cb!important;line-height:1.75;max-width:70ch;margin-inline:auto}
#tm-main .sw-topic-directory-grid .el-item,
#tm-main .sw-topic-article-grid .el-item{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;min-height:0!important;background:#14281e!important;color:#e4ece6!important;border:1px solid #668875;border-radius:14px;padding:24px!important}
#tm-main .sw-topic-directory-grid .el-title,
#tm-main .sw-topic-article-grid .el-title{font-size:1.15rem;line-height:1.4;font-weight:700;margin-block:0 12px!important;color:#f7f5ee!important}
#tm-main .sw-topic-directory-grid .el-title a,
#tm-main .sw-topic-article-grid .el-title a{color:#f7f5ee!important;text-decoration:none}
#tm-main .sw-topic-directory-grid .el-title a:hover,
#tm-main .sw-topic-article-grid .el-title a:hover{color:#b9f3ce!important;text-decoration:underline;text-underline-offset:.2em}
#tm-main .sw-topic-directory-grid .el-content,
#tm-main .sw-topic-article-grid .el-content{color:#c5d5cb!important;line-height:1.7;margin-top:0!important}
#tm-main .sw-topic-directory-grid .el-item>div:last-child,
#tm-main .sw-topic-article-grid .el-item>div:last-child{margin-top:auto!important;padding-top:20px}
#tm-main .sw-topic-directory-grid .el-link,
#tm-main .sw-topic-article-grid .el-link,
#tm-main .sw-topic-next .uk-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px!important;border:1px solid #b9f3ce!important;border-radius:9px;background:#b9f3ce!important;color:#102319!important;font:inherit;font-weight:700;line-height:1.4;letter-spacing:normal;text-decoration:none!important;text-transform:none;white-space:normal;text-align:center;max-width:100%;transition:none!important}
#tm-main .sw-topic-directory-grid .el-link:hover,
#tm-main .sw-topic-article-grid .el-link:hover,
#tm-main .sw-topic-next .uk-button:hover{background:#e1fce9!important;border-color:#e1fce9!important;color:#102319!important}
#tm-main .sw-topic-directory-grid .el-link:active,
#tm-main .sw-topic-article-grid .el-link:active,
#tm-main .sw-topic-next .uk-button:active{background:#9adfb5!important;border-color:#9adfb5!important;color:#102319!important}
/* The precompiled theme draws arrows with button pseudo-elements. Topic links have plain labels. */
#tm-main .sw-topic-directory-grid .el-link::before,
#tm-main .sw-topic-directory-grid .el-link::after,
#tm-main .sw-topic-article-grid .el-link::before,
#tm-main .sw-topic-article-grid .el-link::after,
#tm-main .sw-topic-next .uk-button::before,
#tm-main .sw-topic-next .uk-button::after{content:none!important;display:none!important;background-image:none!important}
#tm-main .sw-topic-hero a:focus-visible,
#tm-main .sw-topic-results a:focus-visible,
#tm-main .sw-topic-footer a:focus-visible{outline:3px solid #ffda66!important;outline-offset:4px;border-radius:4px}
#tm-main .sw-topic-footer .sw-heading-icon{color:#b9f3ce!important}
@media(max-width:639px){#tm-main .sw-topic-hero{padding-block:24px 16px!important}#tm-main .sw-topic-directory-grid .el-item,#tm-main .sw-topic-article-grid .el-item{padding:20px!important}}
