/* CMS adapters: keep PHP/Smarty form contracts and stored article content intact. */
.sd-site { overflow-wrap: anywhere; }
.sd-content, .listing-body { min-width: 0; }
.sd-content > h2, .sd-content > h3 { margin-top: 30px; }
.sd-content > h3 { font-size: 23px; }
.sd-content > h2:first-child, .sd-content > h3:first-child { margin-top: 0; }
.sd-home-layout { display: block; }
.sd-home-intro:empty, .frontend_actions:empty { display: none; }
.sd-home-intro { color: var(--muted); margin: 20px 0; }
.sd-widget { margin: 0 0 30px; }
.sd-widget:empty { display: none; }
.sd-latest { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.sd-latest > h3 { font-size: 24px; margin-bottom: 24px; }
.sd-latest #articles > table > tbody { display: block; }
.sd-latest #articles > table > tbody > tr { display: block; min-width: 0; grid-column: 1; }
.sd-latest #articles > table > tbody > tr:nth-child(4n+3),
.sd-latest #articles > table > tbody > tr:nth-child(4n+4) { grid-column: 2; }
.sd-latest #articles > table > tbody > tr:nth-child(4n+1),
.sd-latest #articles > table > tbody > tr:nth-child(4n+3) { background: white; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 18px; padding: 22px; }
.sd-latest #articles > table > tbody > tr > td { display: block; padding: 0; border: 0; }
.sd-latest #articles > table > tbody > tr > td > a:first-child { color: var(--ink); font-size: 21px; line-height: 1.3; display: inline-block; margin-bottom: 12px; }
.sd-latest #articles p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.sd-latest #articles > table > tbody > tr > td:empty { display: none; }
.sd-latest #articles table, .sd-latest #articles tbody { width: 100%; }
.sd-content .category-grid { margin-bottom: 28px; }
.layout .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.category-card { color: var(--ink); }
.listing-body > p { color: var(--muted); }
.listing-body > h3 { margin: 8px 0 12px; }
.listing-body > h3 > a { color: var(--ink); }
.listing-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.listing-actions a { min-height: 36px; display: inline-flex; align-items: center; }
.sd-content .links > .listing-card + .listing-card { margin-top: 18px; }
/* Featured cards keep the regular card's content alignment and typography. */
.sd-site .listing-card.sd-listing-featured { background: #fff9ec; border-color: #eedbb2; border-left: 4px solid var(--amber); padding-left: 20px; }
.sd-site .sd-listing-featured > .listing-body > .tag-amber { background: #ffe3a9; color: #704800; }
@media(max-width:700px) {
 .sd-site .listing-card.sd-listing-featured { padding-left: 17px; }
}
.article-card { min-width: 0; }
.article-card h3 a { color: var(--blue); }
.article-card .read-link { margin-top: 10px; }
.sd-latest > h3 { display: flex; align-items: center; gap: 18px; }
.sd-articles-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--amber); color: var(--ink); }
.sd-articles-icon svg { width: 22px; height: 22px; }
.sd-latest #articles > table > tbody > tr > td > a:first-child { color: var(--blue); }
.sd-latest .article-card { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--amber); border-radius: var(--radius); padding: 24px 26px; }
.sd-latest .article-card h3, .sd-latest .article-card:nth-child(-n+2) h3 { font-size: 24px; line-height: 1.4; font-weight: 400; }
.sd-latest #articles .article-card p { font-size: 16px; line-height: 1.75; }
.sd-article-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.article-card .read-link { display: inline-flex; align-items: center; gap: 10px; }
.article-card .read-link svg { color: var(--amber-ink); width: 16px; height: 16px; }
@media(max-width:600px) {
 .sd-latest .article-card { padding: 20px; }
 .sd-latest .article-card h3, .sd-latest .article-card:nth-child(-n+2) h3 { font-size: 21px; }
}
.frontend_actions img, .float_tiny { display: inline-block; }
.frontend_actions { margin-top: 12px; }
.link_rating, .review { font-size: 13px; color: var(--muted); }
.link_rating img { display: inline-block; }
.sidebar #sidebar { list-style: none; padding: 0; margin: 0; width: 100%; }
#sidebar > li { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 20px; }
#sidebar > li > h3 { font-size: 17px; color: var(--ink); margin: 0 0 14px; }
#sidebar ul { padding: 0; list-style: none; }
#sidebar ul a { display: inline-block; padding: 6px 0; }
#sidebar .login > span { display: block; margin-bottom: 14px; color: var(--muted); }
#sidebar input { margin-bottom: 10px; width: 100%; }
#sidebar .forgot a { font-size: 13px; }
#sidebar table td { padding: 8px 0; }
.sd-site input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=image]):not([type=reset]),
.sd-site select, .sd-site textarea { border: 1px solid #bdcbd5; border-radius: 6px; background: white; color: var(--ink); min-height: 44px; padding: 10px 12px; }
.sd-site textarea { min-height: 130px; width: 100%; }
.sd-site input[type=checkbox], .sd-site input[type=radio] { width: auto; min-height: 0; accent-color: var(--blue); }
.sd-site input[type=submit], .sd-site input[type=button], .sd-site input[type=reset], .sd-site button.btn { border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: white; min-height: 44px; padding: 10px 18px; cursor: pointer; white-space: normal; }
.sd-site input[type=submit]:hover, .sd-site input[type=button]:hover { background: var(--blue-hover); }
.sd-site input[type=image] { width: auto; min-height: 0; display: inline-block; }
.sd-site .search-form input { border: 0!important; background: transparent!important; min-width: 0; }
.sd-site .formPage { width: 100%; max-width: 100%; margin: 0 0 24px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.sd-site .formPage td { padding: 16px; line-height: 1.6; }
.sd-site .formPage td.label { width: 30%; color: var(--muted); }
.sd-site .formPage td.field { width: 70%; }
.sd-site .formPage td input.text, .sd-site .formPage td input[type=password], .sd-site .formPage td select { width: 100%; }
.sd-site .formPage td input.limit_field { width: 75px; min-height: 32px; padding: 3px 6px; }
.sd-site .formPage td:only-child { width: auto; }
.sd-site .req { color: var(--danger); margin-right: 4px; }
.sd-site label { cursor: pointer; }
.sd-site fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin: 0 0 22px; min-width: 0; background: white; }
.sd-site legend { font-size: 18px; padding: 0 8px; }
.sd-site .err, .sd-site .errForm, .sd-site .noResults, .sd-site .msg, .sd-site .msgForm { padding: 18px; border-radius: 6px; margin: 0 0 18px; line-height: 1.65; }
.sd-site .err, .sd-site .errForm { background: var(--danger-soft); color: var(--danger); border: 1px solid #edcbd2; }
.sd-site .msg, .sd-site .msgForm, .sd-site .noResults { background: var(--blue-soft); color: var(--ink); border: 1px solid var(--line); }
.sd-site .err:empty, .sd-site .msg:empty { display: none; }
.sd-coupon { margin-bottom: 24px; background: var(--blue-soft); }
.sd-coupon h2 { font-size: 21px; }
.coupon-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.sd-contact-address { margin: 24px 0; width: auto; }
.sd-login .layout, .sd-profile .layout { max-width: 780px; margin: 0 auto; display: block; }
.sd-login .sidebar, .sd-profile .sidebar { margin-top: 32px; }
.sd-login .page-heading, .sd-profile .page-heading { max-width: 780px; margin-left: auto; margin-right: auto; }
.sd-login #submit_form { max-width: 540px; margin: 0 auto; }
.guidelines { padding: 24px; margin-bottom: 28px; border: 1px solid var(--line); background: var(--blue-soft); border-radius: 8px; }
.guidelines img { margin: 0 auto 24px; }
.guidelines li { line-height: 1.65; }
.guidelines hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.sd-plans { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 22px 0; }
.sd-plan { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.sd-plan:has(input:checked) { border: 2px solid var(--blue); padding: 21px; background: var(--blue-soft); }
.sd-plan-name { font-size: 18px; margin-left: 8px; }
.sd-plan-price { display: block; font-size: 29px; font-weight: 500; margin: 16px 0; }
.sd-plan-price small { font-size: 13px; font-weight: normal; }
.sd-plan > .small { display: block; }
.sd-detail-table { background: white; border: 1px solid var(--line); margin-bottom: 24px; }
.sd-detail-table > tbody > tr > td { padding: 18px; }
.sd-detail-table .label { width: 27%; color: var(--muted); }
.sd-site table.article { width: 100%; background: white; }
.sd-site table.article td { border: 0; padding: 10px 0; }
.sd-site .sd-article-body { line-height: 1.85; font-size: 16px; }
.sd-site .sd-article-body img, .sd-site .smallDesc img, .sd-site .desc img { max-width: 100%; height: auto; }
.sd-site .sd-article-body p { margin-bottom: 20px; }
.sd-site .sd-article-body h2, .sd-site .sd-article-body h3 { margin-top: 30px; }
.sd-site .sd-article-body a { text-decoration: underline; }
.sd-site .smallDesc { overflow-wrap: anywhere; }
.sd-site .smallDesc img[width="14"] { display: inline; }
.sd-site .navigation { padding: 20px 0; margin: 24px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sd-site .pagingLinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sd-site .pagingLinks a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.sd-site .captcha { max-width: 100%; }
.sd-site #categtree { max-width: 100%; max-height: 250px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.sd-site #toggleCategTree, .sd-site #close_tree, .sd-site .categ-item { cursor: pointer; }
.sd-site .categ-item { display: block; padding: 8px; }
.sd-site .categ-item:hover { background: var(--blue-soft); }
.sd-site .categ-item img { display: inline-block; margin-right: 8px; }
.sd-site .article iframe { max-width: 100%; }
.sd-site .float_tiny { float: none!important; }
.sd-site .clear { clear: both; }
@media(min-width:851px) { .sd-content .category-grid { gap: 14px; } }
@media(max-width:850px) { .sidebar #sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; } .sidebar { display: block; } #sidebar > li { margin: 0; } }
@media(max-width:600px) {
 .sd-latest #articles > table > tbody { display: block; }
 .sd-latest #articles > table > tbody > tr { grid-column: auto; }
 .sidebar #sidebar { display: block; } #sidebar > li { margin: 0 0 18px; }
 .sd-site .formPage, .sd-site .formPage > tbody, .sd-site .formPage > tbody > tr, .sd-site .formPage > tbody > tr > td { display: block; width: 100%!important; }
 .sd-site .formPage td { border-bottom: 0; padding: 8px 16px; }
 .sd-site .formPage tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
 .sd-site .formPage td.label { padding-bottom: 0; }
 .sd-site .formPage tr:last-child { border-bottom: 0; }
 .layout .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .guidelines, .sd-site fieldset { padding: 18px; }
 .sd-plans { grid-template-columns: 1fr; }
 .sd-detail-table, .sd-detail-table > tbody, .sd-detail-table > tbody > tr, .sd-detail-table > tbody > tr > td { display: block; width: 100%; }
 .sd-detail-table > tbody > tr > td.label { padding-bottom: 0; border-bottom: 0; }
 .sd-content table { table-layout: fixed; }
 .sd-content table table { table-layout: auto; }
}

/* Revision 2: reference header and hero; one content column throughout. */
.sd-site .wrap { max-width: 1440px; }
.sd-site .site-header { border-top: 0; }
.sd-site .header-inner { min-height: 96px; gap: 32px; }
.sd-site .brand { gap: 12px; }
.sd-site .brand-mark { width: 42px; height: 42px; font-size: 27px; }
.sd-site .brand-word { font-size: 30px; font-weight: 400; }
.sd-site .brand-word small { font-size: 12px; letter-spacing: 2.2px; margin-top: 5px; }
.sd-site .main-nav { gap: 28px; font-size: 16px; }
.sd-site .header-submit { min-height: 54px; padding: 13px 24px; font-size: 16px; gap: 14px; border-radius: 10px; }
.sd-site .hero { grid-template-columns: minmax(0,1fr) 252px; gap: 58px; padding: 64px 0 40px; }
.sd-site .hero .eyebrow { font-size: 13px; letter-spacing: 1.7px; margin-bottom: 18px; }
.sd-site .hero h1 { font-size: 56px; font-weight: 400; line-height: 1.12; letter-spacing: -2.2px; margin-bottom: 32px; }
.sd-site .hero h1 em { text-decoration-thickness: 4px; text-underline-offset: 11px; }
.sd-site .hero .intro { max-width: 620px; font-size: 18px; line-height: 1.75; margin-bottom: 30px; }
.sd-site .hero .search-form { min-height: 72px; padding: 8px; border-radius: 10px; }
.sd-site .hero .search-form input { font-size: 20px; }
.sd-site .hero .search-form .button { min-height: 54px; font-size: 16px; padding: 12px 22px; border-radius: 9px; }
.sd-site .hero .search-form svg { width: 21px; height: 21px; margin: 0 4px 0 10px; }
.sd-site .explore-links { margin-top: 16px; font-size: 14px; gap: 6px 16px; }
.sd-site .hero-note { display: block; padding: 26px 24px; border-left-width: 3px; border-radius: 0 10px 10px 0; font-size: 16px; line-height: 1.55; }
.sd-site .hero-note strong { font-size: 21px; line-height: 1.4; font-weight: 400; margin: 22px 0 10px; }
.sd-site .hero-note svg { width: 20px; height: 20px; }
.sd-main-layout { display: block; width: 100%; min-width: 0; }
.sd-inner-search { max-width: 760px; margin: 0 0 32px; }
.sd-login .sd-main-layout, .sd-profile .sd-main-layout { max-width: 780px; margin: 0 auto; }
.sd-login .sd-inner-search, .sd-profile .sd-inner-search { max-width: 780px; margin-left: auto; margin-right: auto; }
.sd-article .sd-main-layout { max-width: 960px; }
@media(max-width:1100px) {
 .sd-site .header-inner { gap: 20px; }
 .sd-site .main-nav { gap: 17px; font-size: 14px; }
 .sd-site .header-submit { font-size: 14px; padding: 12px 17px; }
 .sd-site .hero { grid-template-columns: minmax(0,1fr) 230px; gap: 32px; }
 .sd-site .hero h1 { font-size: 48px; }
}
@media(max-width:900px) {
 .sd-site .main-nav { display: none; width: 100%; order: 4; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 10px; }
 .sd-site .main-nav.is-open { display: flex; }
 .sd-site .main-nav a { padding: 9px 0; min-height: 44px; }
 .sd-site .menu-toggle { display: inline-flex; order: 3; }
 .sd-site .header-submit { order: 2; }
 .sd-site .hero { grid-template-columns: minmax(0,1fr); }
 .sd-site .hero-note { max-width: 620px; }
}
@media(max-width:600px) {
 .sd-site .header-inner { min-height: 82px; gap: 10px; }
 .sd-site .brand { gap: 8px; }
 .sd-site .brand-mark { width: 32px; height: 32px; font-size: 23px; }
 .sd-site .brand-word { font-size: 24px; }
 .sd-site .brand-word small { font-size: 9px; letter-spacing: 1.6px; }
 .sd-site .header-submit { min-height: 44px; padding: 9px 12px; font-size: 12px; }
 .sd-site .hero { padding: 38px 0 30px; gap: 28px; }
 .sd-site .hero .eyebrow { font-size: 11px; }
 .sd-site .hero h1 { font-size: clamp(30px,8.5vw,44px); letter-spacing: -1.4px; line-height: 1.2; margin-bottom: 26px; }
 .sd-site .hero h1 em { text-underline-offset: 7px; text-decoration-thickness: 3px; }
 .sd-site .hero .intro { font-size: 16px; margin-bottom: 22px; }
 .sd-site .hero .search-form { min-height: 60px; }
 .sd-site .hero .search-form input { font-size: 16px; }
 .sd-site .hero .search-form .button { min-height: 44px; padding: 10px 15px; font-size: 14px; }
 .sd-site .hero-note { padding: 22px; }
 .sd-site .hero-note strong { margin-top: 14px; }
}

/* Article reading layout. Override legacy editor font/paragraph styles only
   inside the article body; preserve emphasis, links, images and stored HTML. */
.sd-article .page-heading, .sd-article .breadcrumb,
.sd-article .sd-inner-search, .sd-article .sd-main-layout { max-width: 860px; margin-left: auto; margin-right: auto; }
.sd-article .page-heading h1 { font-size: 40px; line-height: 1.22; letter-spacing: -1px; }
.sd-article table.article { background: transparent; }
.sd-article table.article > tbody > tr > td { padding: 12px 0; }
.sd-article .sd-article-body { font: 18px/1.8 Arial,Helvetica,sans-serif!important; color: var(--ink); text-align: left!important; overflow-wrap: anywhere; }
.sd-article .sd-article-body p, .sd-article .sd-article-body li,
.sd-article .sd-article-body div, .sd-article .sd-article-body span,
.sd-article .sd-article-body font { font-family: inherit!important; font-size: inherit!important; line-height: inherit!important; text-align: left!important; }
.sd-article .sd-article-body p { margin: 0 0 1.2em!important; padding: 0!important; }
.sd-article .sd-article-body p:empty { display: none; }
.sd-article .sd-article-body h2, .sd-article .sd-article-body h3 { font-family: Arial,Helvetica,sans-serif!important; line-height: 1.3!important; margin: 1.5em 0 .65em!important; }
.sd-article .sd-article-body h2 { font-size: 28px!important; }
.sd-article .sd-article-body h3 { font-size: 23px!important; }
.sd-article .sd-article-body img { display: block; max-width: 100%!important; width: auto; height: auto!important; margin: 24px auto!important; float: none!important; border-radius: 8px; }
.sd-article .sd-article-body ul, .sd-article .sd-article-body ol { padding-left: 1.5em; margin: 0 0 1.3em; }
.sd-article .sd-article-body blockquote { margin: 24px 0!important; padding: 18px 24px!important; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.sd-article table.article img[src*="/images/bar_"],
.sd-article table.article img[src*="/images/tiny_star"] { display: inline-block; vertical-align: middle; margin: 0; border-radius: 0; }
.sd-article table.article fieldset { margin-top: 26px; padding: 24px; }
.sd-article #commentForm textarea { min-height: 150px; }
@media(max-width:600px) {
 .sd-article .page-heading h1 { font-size: 30px; }
 .sd-article .sd-article-body { font-size: 17px!important; line-height: 1.75!important; }
 .sd-article .sd-article-body h2 { font-size: 25px!important; }
 .sd-article table.article fieldset { padding: 18px; }
}

/* Inner-page search lives in the header; homepage keeps its original hero. */
.sd-site .has-header-search { gap: 24px; }
.sd-site .has-header-search .brand { margin-right: 0; }
.sd-site .sd-header-search { flex: 0 1 300px; width: 300px; min-width: 220px; margin-right: auto; padding: 4px; }
.sd-site .sd-header-search input { width: 100%; font-size: 14px; padding: 8px 10px!important; min-height: 40px!important; }
.sd-site .sd-header-search .button { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.sd-site .sd-search-toggle { display: none; }
@media(max-width:1100px) {
 .sd-site .has-header-search .brand { order: 1; margin-right: auto; }
 .sd-site .has-header-search .sd-search-toggle { display: inline-flex; order: 2; gap: 6px; padding: 9px 12px; }
 .sd-site .has-header-search .header-submit { order: 3; }
 .sd-site .has-header-search .menu-toggle { display: inline-flex; order: 4; }
 .sd-site .has-header-search .main-nav { display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 10px; }
 .sd-site .has-header-search .main-nav.is-open { display: flex; }
 .sd-site .has-header-search .main-nav a { padding: 9px 0; min-height: 44px; }
 .sd-site .sd-header-search { order: 6; flex: 0 0 100%; width: 100%; min-width: 0; margin: 0; }
 .sd-site .sd-header-search.is-enhanced { display: none; }
 .sd-site .sd-header-search.is-enhanced.is-open { display: flex; }
}
@media(max-width:600px) {
 .sd-site .has-header-search { gap: 8px; }
 .sd-site .has-header-search .brand-word { font-size: 22px; }
 .sd-site .has-header-search .brand-mark { width: 28px; height: 28px; }
 .sd-site .has-header-search .sd-search-toggle { font-size: 12px; padding: 9px 8px; }
 .sd-site .has-header-search .sd-search-toggle svg { width: 15px; height: 15px; }
 .sd-site .has-header-search .header-submit { font-size: 12px; }
}
@media(max-width:420px) {
 .sd-site .has-header-search .header-submit { order: 7; width: 100%; }
 .sd-site .has-header-search .brand { flex: 1; }
}
/* Category pages: compact subcategory navigation and the existing right widget zone. */
.sd-category-page .page-heading h1 { font-size: 36px; }
.sd-category-page .page-heading { margin-bottom: 30px; }
.sd-category-layout.has-category-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; align-items: start; }
.sd-subcategory-section { margin: 0 0 30px; }
.sd-subcategory-section .section-heading { margin-bottom: 16px; }
.sd-subcategory-section h2 { font-size: 24px; margin: 0; }
.sd-subcategories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.sd-subcategory { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 14px; line-height: 1.5; }
.sd-subcategory > span:first-child { min-width: 0; }
.sd-subcategory > span[aria-hidden] { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.sd-subcategory:hover { background: var(--blue-soft); }
.sd-category-sidebar { min-width: 0; font-size: 14px; line-height: 1.65; }
.sd-side-widget { min-width: 0; margin-bottom: 20px; overflow-wrap: anywhere; }
.sd-side-widget:last-child { margin-bottom: 0; }
.sd-side-widget-box { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.sd-side-widget > h2 { margin: 0 0 16px; font-size: 18px; line-height: 1.4; }
.sd-side-widget img, .sd-side-widget iframe, .sd-side-widget video { max-width: 100%; }
.sd-side-widget img { height: auto; }
.sd-side-widget table { max-width: 100%; table-layout: fixed; }
.sd-side-widget ul { list-style: none; padding-left: 0; margin: 0; }
.sd-side-widget li + li { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.sd-side-widget li > a { display: inline-block; padding: 4px 0; }
@media(max-width:1100px) {
 .sd-category-layout.has-category-sidebar { grid-template-columns: minmax(0,1fr) 250px; gap: 24px; }
 .sd-subcategories { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:850px) {
 .sd-category-layout.has-category-sidebar { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:600px) {
 .sd-category-page .page-heading h1 { font-size: 30px; }
 .sd-subcategories { grid-template-columns: minmax(0,1fr); }
 .sd-side-widget-box { padding: 20px; }
}
/* Homepage articles: two lead cards, then three lighter columns per row. */
.home .sd-latest { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 0; }
.home .sd-latest-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.home .sd-latest-heading h3 { display: flex; align-items: center; gap: 18px; font-size: 28px; font-weight: 400; margin: 0; }
.home .sd-latest-heading .sd-browse-articles { font-size: 16px; min-height: 40px; display: inline-flex; align-items: center; }
.home .sd-latest .articles-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 26px 28px; }
.home .sd-latest .article-card { grid-column: span 2; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; }
.home .sd-latest .article-card:nth-child(-n+2) { grid-column: span 3; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--amber); border-radius: var(--radius); padding: 26px 28px; }
.home .sd-latest .article-card h3 { font-size: 20px; line-height: 1.4; }
.home .sd-latest .article-card:nth-child(-n+2) h3 { font-size: 24px; line-height: 1.4; }
.home .sd-latest .article-card .sd-article-links { margin-top: auto; padding-top: 4px; }
.home .sd-latest .article-card .read-link { min-height: 36px; }
@media(max-width:850px) {
 .home .sd-latest .articles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
 .home .sd-latest .article-card, .home .sd-latest .article-card:nth-child(-n+2) { grid-column: span 1; }
 .home .sd-latest .article-card:nth-child(-n+2) { padding: 22px; }
}
@media(max-width:600px) {
 .home .sd-latest .articles-grid { grid-template-columns: minmax(0,1fr); }
 .home .sd-latest-heading h3 { font-size: 24px; gap: 12px; }
 .home .sd-latest .article-card:nth-child(-n+2) { padding: 20px; }
.home .sd-latest .article-card:nth-child(-n+2) h3 { font-size: 21px; }
}
/* Homepage previews use the controller's configured SUBCATS selection. */
.home .sd-category-with-preview { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.home .sd-category-with-preview > .category-card { border: 0; width: 100%; min-height: 0; padding-bottom: 10px; border-radius: var(--radius) var(--radius) 0 0; }
.home .sd-category-with-preview:nth-child(3n+2) > .category-card > svg { color: var(--amber-ink); }
.home .sd-category-previews { margin: 0 17px 10px; }
.home .sd-category-previews ul { list-style: none; margin: 0; padding: 0; }
.home .sd-category-previews li + li { margin-top: 4px; }
.home .sd-category-previews a { display: inline-block; padding: 5px 0; font-size: 11px; line-height: 1.5; }
.home .sd-category-more { align-self: flex-start; margin: auto 17px 17px; padding-top: 8px; font-size: 11px; line-height: 1.5; }
@media(max-width:600px) { .home .sd-category-previews, .home .sd-category-more { margin-left: 13px; margin-right: 13px; } }
@media(pointer:coarse) { .home .sd-category-previews a { display: flex; align-items: center; min-height: 44px; } }
@media(pointer:coarse) { .home .sd-category-more { display: flex; align-items: center; min-height: 44px; } }

/* Compact homepage section transitions. */
.home .region-links { padding-top: 16px; padding-bottom: 16px; }
.home #categories.home-section { padding-bottom: 16px; }
.home #categories > .category-grid { margin-bottom: 0; }

/* Display the supplied 2000px artwork's 1876 x 346 button region without modifying the image. */
.sd-paypal-checkout { display: inline-block; position: relative; width: 280px; max-width: 100%; aspect-ratio: 1876 / 346; overflow: hidden; vertical-align: middle; }
.sd-site .sd-paypal-checkout input[type=image] { position: absolute; width: 106.609808%; max-width: none; height: auto; min-height: 0; left: -3.304904%; top: 50%; transform: translateY(-50%); padding: 0; margin: 0; border: 0; border-radius: 0; cursor: pointer; }
.sd-paypal-checkout:focus-within { outline: 3px solid var(--blue); outline-offset: 4px; }

/* Country shortcuts start category content beneath the shared header. */
.page > .region-links { border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 24px; }

.sd-detail-table .sd-additional-pages { margin: 0; padding-left: 20px; }
.sd-detail-table .sd-additional-pages li + li { margin-top: 8px; }

.home .category-card > .sd-custom-category-icon { width: 32px; height: 32px; object-fit: contain; margin-bottom: 16px; }

/* Default category icons share the brand blue; uploaded images retain their colors. */
.home .category-card > svg,
.home .category-card:nth-child(3n+2) > svg,
.home .sd-category-with-preview:nth-child(3n+2) > .category-card > svg { color: var(--blue); }
