/*
Theme Name: SmartWording
Theme URI: https://smartwording.com
Author: SAM Marketing Agency
Author URI: https://sammarketingagency.com
Description: SmartWording is a premium, VIP-grade multipurpose magazine theme built for a word-meaning, synonyms & vocabulary publication. It features a vibrant gradient wordmark, smooth animated dropdown menus, a slide-down AJAX search overlay, an auto-rotating featured slider, a built-in light/dark mode toggle and colour-accented sub-headings (every H2/H3/H4 and FAQ question is automatically tinted in the theme colour). Elegant Newsreader headlines, crisp Plus Jakarta Sans body, AdSense-ready slots, Rank Math compatible — no page builders.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartwording
Tags: blog, news, magazine, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, full-width-template
*/

:root {
  --sw-bg: #ffffff;
  --sw-surface: #ffffff;
  --sw-tint: #f0faf8;
  --sw-tint-2: #e9f6f3;
  --sw-ink: #12211f;
  --sw-text: #4a5856;
  --sw-soft: #6b7976;
  --sw-muted: #9aa8a4;
  --sw-border: #e4efec;
  --sw-border-2: #d6e8e3;
  --sw-primary: #0d9488;
  --sw-primary-2: #fb7185;
  --sw-primary-soft: #e6f5f2;
  --sw-grad: linear-gradient(120deg, #0d9488 0%, #14b8a6 52%, #fb7185 100%);
  --sw-glow: rgba(13,148,136,.26);
  --sw-shadow-xs: 0 2px 6px rgba(22,18,31,.06);
  --sw-shadow: 0 18px 44px rgba(22,18,31,.1);
  --sw-shadow-color: 0 22px 50px rgba(13,148,136,.2);
  --sw-shadow-lg: 0 36px 80px rgba(22,18,31,.16);
  --sw-display: "Newsreader", Georgia, "Times New Roman", serif;
  --sw-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sw-container: 1240px;
  --sw-narrow: 760px;
  --sw-radius: 18px;
  --sw-radius-sm: 12px;
  --sw-pill: 999px;
  --sw-ease: cubic-bezier(.22,1,.36,1);
}

html[data-theme="dark"] {
  --sw-bg: #0f1c1b;
  --sw-surface: #15201f;
  --sw-tint: #182523;
  --sw-tint-2: #1d2a27;
  --sw-ink: #eafaf7;
  --sw-text: #c4d3d0;
  --sw-soft: #9fb0ac;
  --sw-muted: #748582;
  --sw-border: #243532;
  --sw-border-2: #2f433f;
  --sw-primary: #2dd4bf;
  --sw-primary-2: #fda4af;
  --sw-primary-soft: #16302c;
  --sw-glow: rgba(45,212,191,.28);
  --sw-shadow: 0 18px 44px rgba(0,0,0,.5);
  --sw-shadow-color: 0 22px 50px rgba(45,212,191,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--sw-body); font-size: 1.05rem; line-height: 1.7; color: var(--sw-text); background: var(--sw-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; transition: background .3s var(--sw-ease), color .3s var(--sw-ease); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sw-primary); text-decoration: none; transition: color .15s var(--sw-ease); }
a:hover { color: var(--sw-primary-2); }
h1, h2, h3, h4 { font-family: var(--sw-display); font-weight: 600; line-height: 1.14; color: var(--sw-ink); margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.2em; }
.sw-grad-text { background: var(--sw-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
blockquote { margin: 1.8em 0; padding: 1.2em 1.6em; border-radius: var(--sw-radius-sm); background: var(--sw-tint); border-left: 4px solid var(--sw-primary); font-family: var(--sw-display); font-size: 1.4rem; font-style: italic; line-height: 1.35; color: var(--sw-ink); }
code { background: var(--sw-tint); padding: .12em .4em; border-radius: 6px; font-size: .9em; }
pre { background: var(--sw-tint); padding: 1.1em; border-radius: var(--sw-radius-sm); overflow-x: auto; }
:focus-visible { outline: 2px solid var(--sw-primary); outline-offset: 3px; border-radius: 3px; }
.sw-container { width: 100%; max-width: var(--sw-container); margin: 0 auto; padding: 0 1.5rem; }
.sw-narrow { max-width: var(--sw-narrow); margin: 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; z-index: 9999; background: var(--sw-primary); color: #fff; padding: .7em 1.2em; }
.skip-link:focus { left: 0; top: 0; }

/* Header */
.sw-header { position: sticky; top: 0; z-index: 300; background: color-mix(in srgb, var(--sw-bg) 90%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--sw-border); }
.sw-header-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0 .9rem; gap: 1rem; }
.sw-header-top .spacer { width: 120px; }
.sw-brand { display: inline-flex; align-items: center; gap: .6rem; margin: 0 auto; }
.sw-brand-logo img { max-height: 56px; width: auto; }
.sw-brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.sw-brand-title { font-family: var(--sw-display); font-weight: 700; font-size: 2rem; letter-spacing: -.01em; }
.sw-brand-title .a { background: var(--sw-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.sw-brand-title .b { color: var(--sw-ink); }
.sw-contact-btn { display: inline-flex; align-items: center; padding: .6rem 1.5rem; background: var(--sw-grad); color: #fff; font-weight: 700; font-size: .9rem; border-radius: var(--sw-pill); flex-shrink: 0; box-shadow: 0 8px 20px var(--sw-glow); transition: transform .2s var(--sw-ease); }
.sw-contact-btn:hover { color: #fff; transform: translateY(-2px); }

.sw-navbar { border-top: 1px solid var(--sw-border); }
.sw-navbar-inner { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 58px; position: relative; }
.sw-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.sw-menu > li { position: relative; }
.sw-menu > li > a { display: flex; align-items: center; gap: .3rem; padding: .55rem .85rem; font-weight: 600; font-size: .95rem; color: var(--sw-text); border-radius: 10px; transition: color .16s var(--sw-ease), background .16s var(--sw-ease); }
.sw-menu > li > a:hover { color: var(--sw-primary); background: var(--sw-tint); }
.sw-menu > .current-menu-item > a { color: var(--sw-primary); }
.sw-menu .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: .15rem; margin-top: -3px; opacity: .6; }
.sw-menu .sub-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; list-style: none; margin: 0; padding: .45rem; background: var(--sw-surface); border: 1px solid var(--sw-border); border-radius: var(--sw-radius-sm); box-shadow: var(--sw-shadow); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top center; transition: opacity .22s var(--sw-ease), transform .22s var(--sw-ease), visibility .22s; z-index: 60; }
.sw-menu li:hover > .sub-menu, .sw-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; animation: swPop .28s var(--sw-ease); }
@keyframes swPop { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 60% { opacity: 1; transform: translateY(-2px) scale(1.01); } 100% { transform: none; } }
.sw-menu .sub-menu a { display: block; padding: .55rem .7rem; font-size: .9rem; font-weight: 600; color: var(--sw-soft); border-radius: 9px; }
.sw-menu .sub-menu a:hover { background: var(--sw-tint); color: var(--sw-primary); }

.sw-nav-actions { display: flex; align-items: center; gap: .35rem; position: absolute; right: 0; }
.sw-icon-btn { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: none; border-radius: 50%; cursor: pointer; color: var(--sw-ink); transition: background .16s var(--sw-ease); }
.sw-icon-btn:hover { background: var(--sw-tint); }
.sw-icon-btn svg { width: 21px; height: 21px; }
.sw-burger { display: none; }

/* Search overlay */
.sw-search-overlay { position: absolute; top: 100%; left: 0; right: 0; background: var(--sw-surface); border-bottom: 1px solid var(--sw-border); box-shadow: var(--sw-shadow); padding: 1.4rem 0; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .26s var(--sw-ease); z-index: 290; }
.sw-search-overlay.is-open { transform: none; opacity: 1; visibility: visible; }
.sw-search-form { display: flex; gap: .6rem; max-width: 760px; margin: 0 auto; }
.sw-search-form input { flex: 1; padding: .9rem 1.3rem; border: 2px solid var(--sw-border-2); border-radius: var(--sw-pill); background: var(--sw-bg); color: var(--sw-ink); font-family: inherit; font-size: 1rem; outline: none; }
.sw-search-form input:focus { border-color: var(--sw-primary); }
.sw-search-form button { padding: .9rem 1.8rem; background: var(--sw-grad); color: #fff; border: none; border-radius: var(--sw-pill); font-weight: 700; cursor: pointer; }
.sw-live { max-width: 760px; margin: .8rem auto 0; }
.sw-live-item { display: flex; gap: .9rem; padding: .7rem; border-radius: 10px; align-items: center; }
.sw-live-item:hover { background: var(--sw-tint); }
.sw-live-item img { width: 60px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sw-live-item .t { font-family: var(--sw-display); font-weight: 600; font-size: 1.05rem; color: var(--sw-ink); line-height: 1.2; }
.sw-live-item .m { font-size: .74rem; color: var(--sw-primary); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.sw-live-loading, .sw-live-empty { padding: .8rem; color: var(--sw-muted); text-align: center; }

/* Hero slider */
.sw-hero { padding: clamp(1.6rem,3vw,2.6rem) 0 0; }
.sw-hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; }
.sw-slider { position: relative; border-radius: var(--sw-radius); overflow: hidden; min-height: 520px; box-shadow: var(--sw-shadow); }
.sw-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--sw-ease); display: flex; align-items: flex-end; }
.sw-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.sw-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sw-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,10,25,0) 35%, rgba(15,10,25,.55) 62%, rgba(15,10,25,.92) 100%); }
.sw-slide-inner { position: relative; z-index: 2; padding: 2.4rem; }
.sw-badge { display: inline-block; padding: .35em 1.1em; background: var(--sw-grad); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--sw-pill); margin-bottom: 1rem; }
.sw-slide-title { font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.08; margin: 0 0 .5rem; color: #fff; }
.sw-slide-title a { color: #fff; }
.sw-slide-meta { color: rgba(255,255,255,.82); font-size: .85rem; }
.sw-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--sw-ink); border: none; display: grid; place-items: center; cursor: pointer; box-shadow: var(--sw-shadow-xs); transition: background .2s; }
.sw-slider-nav:hover { background: #fff; color: var(--sw-primary); }
.sw-slider-nav svg { width: 20px; height: 20px; }
.sw-slider-prev { left: 14px; }
.sw-slider-next { right: 14px; }
.sw-slider-dots { position: absolute; top: 16px; right: 18px; z-index: 5; display: flex; gap: .4rem; }
.sw-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; transition: all .2s; }
.sw-dot.is-active { background: #fff; width: 24px; border-radius: var(--sw-pill); }

.sw-feat-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.sw-feat-mini { position: relative; border-radius: var(--sw-radius-sm); overflow: hidden; min-height: 248px; display: flex; align-items: flex-end; box-shadow: var(--sw-shadow-xs); }
.sw-feat-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sw-ease); }
.sw-feat-mini:hover img { transform: scale(1.06); }
.sw-feat-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,10,25,0) 36%, rgba(15,10,25,.9) 100%); }
.sw-feat-mini-inner { position: relative; z-index: 2; padding: 1.2rem 1.3rem; }
.sw-feat-mini .cat { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.18); padding: .25em .7em; border-radius: var(--sw-pill); margin-bottom: .5rem; backdrop-filter: blur(4px); }
.sw-feat-mini h3 { font-size: 1.25rem; line-height: 1.18; margin: 0; color: #fff; }
.sw-feat-mini h3 a { color: #fff; }

/* Sections */
.sw-section { padding: clamp(2.4rem,4.5vw,4rem) 0; }
.sw-section-tint { background: var(--sw-tint); }
.sw-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.sw-section-title { font-size: clamp(1.6rem,2.8vw,2.2rem); margin: 0; display: inline-flex; align-items: center; gap: .65rem; }
.sw-section-title::before { content: ""; width: 12px; height: 26px; background: var(--sw-grad); border-radius: 5px; }
.sw-section-link { font-weight: 700; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--sw-primary); display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.sw-section-link svg { width: 15px; height: 15px; }

/* Layout + cards */
.sw-content-grid { display: grid; grid-template-columns: 1fr 330px; gap: 3rem; align-items: start; }
.sw-grid { display: grid; gap: 1.7rem; }
.sw-grid-3 { grid-template-columns: repeat(3,1fr); }
.sw-grid-2 { grid-template-columns: repeat(2,1fr); }
.sw-card { background: var(--sw-surface); border: 1px solid var(--sw-border); border-radius: var(--sw-radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .28s var(--sw-ease), box-shadow .28s var(--sw-ease), border-color .28s var(--sw-ease); }
.sw-card:hover { transform: translateY(-6px); box-shadow: var(--sw-shadow-color); border-color: transparent; }
.sw-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--sw-tint); display: block; }
.sw-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sw-ease); }
.sw-card:hover .sw-card-thumb img { transform: scale(1.06); }
.sw-cat { position: absolute; top: 12px; left: 12px; padding: .3em .85em; background: var(--sw-grad); color: #fff !important; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--sw-pill); }
.sw-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.sw-card-title { font-family: var(--sw-display); font-weight: 600; font-size: 1.4rem; line-height: 1.16; margin: 0 0 .5rem; }
.sw-card-title a { color: var(--sw-ink); }
.sw-card-title a:hover { color: var(--sw-primary); }
.sw-card-excerpt { color: var(--sw-soft); font-size: .92rem; margin: 0 0 1.1rem; flex: 1; }
.sw-meta { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--sw-muted); margin-top: auto; }
.sw-meta .sw-avatar { width: 24px; height: 24px; border-radius: 50%; }
.sw-meta-sep::before { content: "•"; margin-right: .5rem; color: var(--sw-primary); }

/* Sidebar */
.sw-sidebar { position: sticky; top: 140px; }
.sw-widget { margin-bottom: 2rem; }
.sw-widget-card { background: var(--sw-surface); border: 1px solid var(--sw-border); border-radius: var(--sw-radius); padding: 1.6rem; }
.sw-widget-title { font-family: var(--sw-display); font-weight: 600; font-size: 1.35rem; margin: 0 0 1.1rem; color: var(--sw-primary); display: inline-flex; align-items: center; gap: .5rem; }
.sw-widget-title::before { content: ""; width: 9px; height: 20px; background: var(--sw-grad); border-radius: 4px; }
.sw-widget ul { list-style: none; padding: 0; margin: 0; }
.sw-widget > ul > li { padding: .55rem 0; border-bottom: 1px solid var(--sw-border); }
.sw-widget > ul > li:last-child { border-bottom: none; }
.sw-widget a { color: var(--sw-soft); font-weight: 600; font-size: .92rem; }
.sw-widget a:hover { color: var(--sw-primary); }
.sw-search-widget { display: flex; gap: .5rem; }
.sw-search-widget input { flex: 1; padding: .75rem 1rem; border: 1px solid var(--sw-border-2); border-radius: var(--sw-radius-sm); background: var(--sw-bg); color: var(--sw-ink); font-family: inherit; }
.sw-search-widget button { padding: .75rem 1.3rem; background: var(--sw-grad); color: #fff; border: none; border-radius: var(--sw-radius-sm); font-weight: 700; cursor: pointer; }
.sw-list-item { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--sw-border); }
.sw-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.sw-list-item img { width: 78px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--sw-tint); }
.sw-list-title { font-family: var(--sw-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; margin: 0 0 .3rem; }
.sw-list-title a { color: var(--sw-ink); }
.sw-list-title a:hover { color: var(--sw-primary); }
.sw-list-meta { font-size: .72rem; color: var(--sw-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sw-ad { margin: 2rem auto; text-align: center; background: var(--sw-tint); border-radius: var(--sw-radius-sm); padding: .6rem; min-height: 90px; display: grid; place-items: center; overflow: hidden; }
.sw-ad::before { content: "Advertisement"; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sw-muted); }

/* Buttons */
.sw-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.9rem; background: var(--sw-grad); color: #fff; font-weight: 700; font-size: .92rem; border: none; border-radius: var(--sw-pill); cursor: pointer; transition: all .22s var(--sw-ease); }
.sw-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--sw-shadow-color); }
.sw-center { text-align: center; }

/* Single + COLORED SUB-HEADINGS */
.sw-article { padding: clamp(1.8rem,3vw,2.8rem) 0; }
.sw-breadcrumbs { font-size: .8rem; color: var(--sw-muted); margin-bottom: 1.2rem; }
.sw-breadcrumbs a { color: var(--sw-soft); }
.sw-breadcrumbs a:hover { color: var(--sw-primary); }
.sw-breadcrumbs span { margin: 0 .45rem; }
.sw-article-cat { display: inline-block; padding: .32em 1em; background: var(--sw-grad); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--sw-pill); margin-bottom: 1rem; }
.sw-article-title { font-size: clamp(2rem,4.6vw,3.4rem); margin: 0 0 .8rem; line-height: 1.08; }
.sw-article-dek { font-family: var(--sw-display); font-style: italic; font-size: 1.4rem; color: var(--sw-soft); margin: 0 0 1.2rem; line-height: 1.3; }
.sw-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--sw-muted); font-size: .88rem; margin-bottom: 1.6rem; }
.sw-article-meta .author { font-weight: 700; color: var(--sw-ink); }
.sw-article-feat { margin: 0 0 1.8rem; border-radius: var(--sw-radius); overflow: hidden; box-shadow: var(--sw-shadow); }

.sw-article-body { font-size: 1.15rem; line-height: 1.85; color: var(--sw-text); }
.sw-article-body > *:first-child { margin-top: 0; }
/* >>> Sub-headings tinted in theme colour <<< */
.sw-article-body h2, .sw-article-body h3, .sw-article-body h4, .sw-article-body h5, .sw-article-body h6 { color: var(--sw-primary); }
.sw-article-body h2 { font-size: 1.95rem; margin: 1.5em 0 .45em; scroll-margin-top: 130px; position: relative; padding-left: .7rem; }
.sw-article-body h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 4px; background: var(--sw-grad); }
.sw-article-body h3 { font-size: 1.5rem; margin: 1.3em 0 .4em; scroll-margin-top: 130px; }
.sw-article-body h4 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.sw-article-body img { border-radius: var(--sw-radius-sm); margin: 1.6em 0; }
.sw-article-body a { color: var(--sw-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sw-article-body a:hover { color: var(--sw-primary-2); }
.sw-article-body ul, .sw-article-body ol { padding-left: 1.3em; }
.sw-article-body li { margin-bottom: .5em; }
.sw-article-body li::marker { color: var(--sw-primary); }

/* FAQ — native <details> accordion + .wp-block-* fallbacks, questions tinted */
.sw-article-body details, .sw-faq details { border: 1px solid var(--sw-border); border-radius: var(--sw-radius-sm); padding: .2rem 1.2rem; margin: 0 0 .8rem; background: var(--sw-surface); transition: border-color .2s var(--sw-ease); }
.sw-article-body details[open], .sw-faq details[open] { border-color: var(--sw-primary); }
.sw-article-body summary, .sw-faq summary { cursor: pointer; padding: .9rem 0; font-family: var(--sw-display); font-weight: 600; font-size: 1.2rem; color: var(--sw-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sw-article-body summary::-webkit-details-marker, .sw-faq summary::-webkit-details-marker { display: none; }
.sw-article-body summary::after, .sw-faq summary::after { content: "+"; font-size: 1.5rem; color: var(--sw-primary); transition: transform .2s var(--sw-ease); }
.sw-article-body details[open] summary::after, .sw-faq details[open] summary::after { transform: rotate(45deg); }
/* Schema FAQ block question headings stay tinted via h2/h3 rule above */
.sw-faq-q { color: var(--sw-primary); font-family: var(--sw-display); font-weight: 600; }

.sw-toc { background: var(--sw-tint); border-radius: var(--sw-radius-sm); padding: 1.2rem 1.4rem; margin: 0 0 1.8rem; }
.sw-toc-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--sw-display); font-weight: 600; font-size: 1.2rem; color: var(--sw-primary); }
.sw-toc-toggle { background: none; border: none; color: var(--sw-primary); cursor: pointer; font-weight: 800; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-family: var(--sw-body); }
.sw-toc ol { margin: .8rem 0 0; padding-left: 1.2rem; }
.sw-toc li { margin-bottom: .4rem; }
.sw-toc a { color: var(--sw-soft); font-weight: 600; font-size: .92rem; }
.sw-toc a:hover { color: var(--sw-primary); }
.sw-toc.is-collapsed ol { display: none; }
.sw-toc .lvl-3 { margin-left: 1rem; }

.sw-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.sw-tag { font-size: .8rem; padding: .4em .95em; background: var(--sw-tint); border-radius: var(--sw-pill); color: var(--sw-soft); font-weight: 600; }
.sw-tag:hover { background: var(--sw-grad); color: #fff; }
.sw-share { display: flex; gap: .5rem; align-items: center; margin: 2rem 0; flex-wrap: wrap; }
.sw-share-label { font-family: var(--sw-display); font-weight: 600; font-size: 1.2rem; color: var(--sw-ink); }
.sw-share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sw-tint); color: var(--sw-soft); }
.sw-share a:hover { background: var(--sw-grad); color: #fff; }
.sw-author { display: flex; gap: 1.3rem; padding: 1.7rem; margin: 2rem 0; border-radius: var(--sw-radius); background: var(--sw-tint); }
.sw-author img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sw-author-name { font-size: 1.3rem; margin: 0 0 .3rem; color: var(--sw-primary); }
.sw-author-bio { font-size: .92rem; color: var(--sw-soft); margin: 0; }
.sw-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.sw-prevnext a { display: block; padding: 1.2rem 1.4rem; border: 1px solid var(--sw-border); border-radius: var(--sw-radius); transition: all .2s var(--sw-ease); background: var(--sw-surface); }
.sw-prevnext a:hover { border-color: var(--sw-primary); transform: translateY(-2px); box-shadow: var(--sw-shadow-xs); }
.sw-prevnext .lbl { font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sw-primary); }
.sw-prevnext .ttl { font-family: var(--sw-display); font-weight: 600; color: var(--sw-ink); font-size: 1.05rem; line-height: 1.25; margin-top: .3rem; }
.sw-prevnext .next { text-align: right; }

.sw-page-head { padding: clamp(2rem,4vw,3rem) 0 0; }
.sw-page-title { font-size: clamp(2rem,4.5vw,3.4rem); margin: .4rem 0 0; }
.sw-archive-desc { color: var(--sw-soft); margin-top: .7rem; max-width: 640px; }
.sw-pagination { margin: 3rem 0 1rem; }
.sw-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.sw-pagination .page-numbers { min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 .6rem; border: 1px solid var(--sw-border); border-radius: var(--sw-radius-sm); color: var(--sw-soft); font-weight: 700; }
.sw-pagination .page-numbers:hover, .sw-pagination .page-numbers.current { background: var(--sw-grad); color: #fff; border-color: transparent; }
.sw-loadmore-wrap { text-align: center; margin: 2.8rem 0; }
.sw-loadmore.is-loading { opacity: .6; pointer-events: none; }
.sw-infinite-sentinel { height: 1px; }

.sw-comments { margin: 2.6rem 0; }
.sw-comments .comment-list { list-style: none; padding: 0; }
.sw-comments .comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--sw-border); }
.sw-comments .children { list-style: none; padding-left: 1.8rem; }
.sw-comments .comment-author { font-family: var(--sw-display); font-weight: 600; color: var(--sw-primary); }
.sw-comments .comment-meta { font-size: .8rem; color: var(--sw-muted); margin-bottom: .5rem; }
.sw-comments input, .sw-comments textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--sw-border-2); border-radius: var(--sw-radius-sm); background: var(--sw-bg); color: var(--sw-text); font-family: inherit; margin-bottom: 1rem; }

/* Footer */
.sw-footer { background: var(--sw-ink); color: rgba(255,255,255,.68); margin-top: 4rem; }
html[data-theme="dark"] .sw-footer { background: #0a1413; }
.sw-footer::before { content: ""; display: block; height: 5px; background: var(--sw-grad); }
.sw-footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.4rem; padding: 3.6rem 0 2.8rem; }
.sw-footer .sw-brand-title .b { color: #fff; }
.sw-footer h3 { font-family: var(--sw-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem; color: #fff; }
.sw-footer p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 320px; }
.sw-footer ul { list-style: none; padding: 0; margin: 0; }
.sw-footer li { padding: .3rem 0; }
.sw-footer a { color: rgba(255,255,255,.68); font-size: .92rem; }
.sw-footer a:hover { color: #fff; }
.sw-footer-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.sw-footer-social a { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 50%; color: rgba(255,255,255,.82); }
.sw-footer-social a:hover { background: var(--sw-grad); color: #fff; }
.sw-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: rgba(255,255,255,.5); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.4em auto; }
.wp-caption-text, .gallery-caption { font-size: .82rem; color: var(--sw-muted); text-align: center; }
.sticky .sw-card { border-color: var(--sw-primary); }
.sw-empty { text-align: center; padding: 4rem 1rem; grid-column: 1/-1; }
.sw-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--sw-ease), transform .55s var(--sw-ease); }
.sw-reveal.is-visible { opacity: 1; transform: none; }
.sw-totop { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--sw-grad); color: #fff; border: none; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--sw-ease); z-index: 200; box-shadow: var(--sw-shadow-color); }
.sw-totop.is-visible { opacity: 1; visibility: visible; transform: none; }

.sw-mobile-panel { position: fixed; top: 0; right: 0; width: min(340px,86%); height: 100%; background: var(--sw-bg); z-index: 700; padding: 1.6rem 1.4rem; transform: translateX(100%); transition: transform .34s var(--sw-ease); box-shadow: var(--sw-shadow-lg); overflow-y: auto; }
.sw-mobile-panel.is-open { transform: none; }
.sw-mobile-panel ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.sw-mobile-panel li { border-bottom: 1px solid var(--sw-border); }
.sw-mobile-panel a { display: block; padding: .9rem .2rem; font-weight: 600; color: var(--sw-ink); font-size: .98rem; }
.sw-mobile-panel .sub-menu a { padding-left: 1rem; color: var(--sw-soft); font-size: .9rem; }
.sw-backdrop { position: fixed; inset: 0; background: rgba(15,10,25,.5); z-index: 650; opacity: 0; visibility: hidden; transition: opacity .3s; }
.sw-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
  .sw-hero-grid, .sw-content-grid { grid-template-columns: 1fr; }
  .sw-sidebar { position: static; }
  .sw-feat-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .sw-grid-3 { grid-template-columns: repeat(2,1fr); }
  .sw-footer-grid { grid-template-columns: 1fr 1fr; }
  .sw-slider { min-height: 420px; }
}
@media (max-width: 900px) {
  .sw-menu { display: none; }
  .sw-burger { display: grid; }
  .sw-navbar-inner { justify-content: flex-start; }
  .sw-nav-actions { position: static; margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .sw-grid-3, .sw-grid-2 { grid-template-columns: 1fr; }
  .sw-feat-side { grid-template-columns: 1fr; }
  .sw-footer-grid { grid-template-columns: 1fr; }
  .sw-prevnext { grid-template-columns: 1fr; }
  .sw-slider { min-height: 360px; }
  .sw-header-top .spacer { display: none; }
  .sw-contact-btn { padding: .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ============ SmartWording additions: search hero, centered head, pretty FAQ ============ */
.sw-hero-search { position: relative; text-align: center; padding: clamp(3rem,7vw,6rem) 0; background: var(--sw-tint); border-bottom: 1px solid var(--sw-border); overflow: hidden; }
.sw-hero-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(closest-side, var(--sw-primary-soft), transparent 72%); opacity: .9; pointer-events: none; }
.sw-hero-search > .sw-container { position: relative; z-index: 2; }
.sw-hero-eyebrow { display: inline-block; font-weight: 800; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sw-primary); background: var(--sw-surface); border: 1px solid var(--sw-border-2); padding: .4em 1.1em; border-radius: var(--sw-pill); margin-bottom: 1.2rem; }
.sw-hero-heading { font-size: clamp(2.4rem,6vw,4.4rem); line-height: 1.04; margin: 0 0 .5rem; }
.sw-hero-sub { font-size: clamp(1.05rem,2vw,1.3rem); color: var(--sw-soft); max-width: 640px; margin: 0 auto; }
.sw-hero-form-wrap { max-width: 720px; margin: 2rem auto 0; position: relative; }
.sw-hero-form { display: flex; align-items: center; gap: .5rem; background: var(--sw-surface); border: 2px solid var(--sw-border-2); border-radius: var(--sw-pill); padding: .5rem .5rem .5rem 1.6rem; box-shadow: 0 18px 44px rgba(18,33,31,.1); transition: border-color .25s var(--sw-ease), box-shadow .25s var(--sw-ease), transform .25s var(--sw-ease); animation: swBlinkIn .5s var(--sw-ease) both; }
@keyframes swBlinkIn { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 60% { opacity: 1; transform: translateY(-2px) scale(1.005); } 100% { transform: none; } }
.sw-hero-form:focus-within { border-color: var(--sw-primary); box-shadow: 0 0 0 5px var(--sw-primary-soft), 0 18px 44px rgba(13,148,136,.16); }
.sw-hero-form input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 1.12rem; color: var(--sw-ink); outline: none; min-width: 0; }
.sw-hero-form button { width: 56px; height: 56px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--sw-grad); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--sw-ease); }
.sw-hero-form button:hover { transform: scale(1.06); }
.sw-hero-form button svg { width: 23px; height: 23px; }
.sw-hero-form-wrap .sw-live { position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0; max-width: none; background: var(--sw-surface); border: 1px solid var(--sw-border); border-radius: 18px; box-shadow: var(--sw-shadow); padding: .5rem; text-align: left; z-index: 60; max-height: 62vh; overflow-y: auto; }
.sw-live:empty { display: none; }
.sw-hero-chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; align-items: center; margin-top: 1.6rem; }
.sw-hero-chips-label { font-weight: 700; font-size: .82rem; color: var(--sw-muted); text-transform: uppercase; letter-spacing: .08em; }
.sw-hero-chip { padding: .5em 1.1em; border-radius: var(--sw-pill); background: var(--sw-surface); border: 1px solid var(--sw-border-2); color: var(--sw-soft); font-weight: 600; font-size: .88rem; transition: all .18s var(--sw-ease); }
.sw-hero-chip:hover { border-color: var(--sw-primary); color: var(--sw-primary); transform: translateY(-2px); }

/* Centered section head with gradient underline */
.sw-section-head--center { flex-direction: column; text-align: center; gap: .8rem; }
.sw-section-head--center .sw-section-title { display: block; }
.sw-section-head--center .sw-section-title::before { display: none; }
.sw-section-underline { width: 84px; height: 4px; border-radius: 4px; background: var(--sw-grad); margin: 0 auto; }

/* Prettier FAQ answers */
.sw-article-body details[open] { background: var(--sw-primary-soft); border-color: var(--sw-primary); box-shadow: 0 8px 24px rgba(13,148,136,.08); }
.sw-article-body details > p, .sw-article-body details > ul, .sw-article-body details > ol { color: var(--sw-text); margin: .1rem 0 .9rem; }
.sw-article-body details > *:last-child { margin-bottom: .8rem; }
.sw-faq-a { background: var(--sw-primary-soft); border-left: 4px solid var(--sw-primary); border-radius: 10px; padding: 1rem 1.2rem; margin: .4rem 0 1.2rem; color: var(--sw-text); }
