/*
Theme Name: SoyMedicina Editorial
Theme URI: https://soymedicina.com/
Author: SoyMedicina
Author URI: https://soymedicina.com/
Description: Tema editorial ligero para SoyMedicina con carrusel automático de artículos, imágenes verticales y lectura científica.
Version: 1.3.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: soymedicina-editorial
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, education, news, custom-logo, custom-menu, featured-images, editor-style, translation-ready
*/

:root {
  --sm-ink: #102b3f;
  --sm-ink-soft: #24465b;
  --sm-teal: #159c96;
  --sm-teal-dark: #0e7775;
  --sm-paper: #f5f8f8;
  --sm-white: #ffffff;
  --sm-muted: #647887;
  --sm-line: #dfe8ea;
  --sm-warm: #c9945d;
  --sm-shadow: 0 18px 48px rgba(16, 43, 63, .08);
  --sm-shadow-soft: 0 8px 24px rgba(16, 43, 63, .06);
  --sm-radius: 18px;
  --sm-radius-sm: 12px;
  --sm-container: 1200px;
  --sm-reading: 760px;
  --sm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sm-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--sm-ink);
  background: var(--sm-paper);
  font-family: var(--sm-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, select, textarea { font-family: var(--sm-font); }
img { max-width: 100%; height: auto; }
a { color: var(--sm-teal-dark); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--sm-ink); }
button { cursor: pointer; }
::selection { color: #fff; background: var(--sm-teal); }

.sm-container { width: min(calc(100% - 48px), var(--sm-container)); margin-inline: auto; }
.sm-reading-width { width: min(calc(100% - 48px), var(--sm-reading)); margin-inline: auto; }
.sm-skip-link { position: absolute; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; color: #fff; background: var(--sm-ink); border-radius: 8px; }
.sm-skip-link:focus { top: 16px; }
.sm-eyebrow, .sm-section-kicker, .sm-meta-label { color: var(--sm-teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.sm-muted { color: var(--sm-muted); }
.sm-overline { display: inline-flex; align-items: center; gap: 9px; color: var(--sm-teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sm-overline:before { width: 22px; height: 2px; content: ""; background: var(--sm-teal); }
.sm-section { padding: 72px 0; }
.sm-section--compact { padding: 48px 0; }
.sm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.sm-section-heading h2 { max-width: 720px; margin: 8px 0 0; color: var(--sm-ink); font-family: var(--sm-serif); font-size: clamp(27px, 3vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.sm-section-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--sm-teal-dark); font-size: 13px; font-weight: 750; }
.sm-section-link:after { content: "→"; font-size: 18px; transition: transform .2s ease; }
.sm-section-link:hover:after { transform: translateX(4px); }

/* Brand and navigation */
.sm-site-header { position: relative; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(16,43,63,.07); }
.sm-utility-bar { color: #dce8ed; background: var(--sm-ink); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sm-utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 16px; }
.sm-utility-right { display: flex; gap: 18px; }
.sm-utility-bar a { color: #dce8ed; }
.sm-utility-bar a:hover { color: #fff; }
.sm-header-main { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 30px; }
.sm-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; color: var(--sm-ink); }
.sm-brand:hover { color: var(--sm-ink); }
.sm-brand-mark { display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.sm-brand-mark svg { display: block; width: 100%; height: 100%; }
.sm-brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.sm-brand-name { font-family: var(--sm-serif); font-size: 27px; font-weight: 700; letter-spacing: -.055em; }
.sm-brand-tagline { margin-top: 6px; color: var(--sm-muted); font-size: 9px; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 230px; max-height: 58px; }
.sm-primary-nav { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 28px; }
.sm-primary-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.sm-primary-nav li { position: relative; }
.sm-primary-nav a { display: inline-flex; align-items: center; min-height: 46px; color: #355267; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.sm-primary-nav a:hover, .sm-primary-nav .current-menu-item > a, .sm-primary-nav .current-menu-ancestor > a { color: var(--sm-teal-dark); }
.sm-primary-nav .sub-menu { position: absolute; top: calc(100% - 2px); left: -18px; display: none; min-width: 220px; padding: 10px; background: #fff; border: 1px solid var(--sm-line); border-radius: 12px; box-shadow: var(--sm-shadow); }
.sm-primary-nav li:hover > .sub-menu, .sm-primary-nav li:focus-within > .sub-menu { display: block; }
.sm-primary-nav .sub-menu a { display: flex; min-height: 38px; padding: 6px 10px; border-radius: 7px; }
.sm-primary-nav .sub-menu a:hover { background: #f0f7f6; }
.sm-header-actions { display: flex; align-items: center; gap: 10px; }
.sm-search-toggle, .sm-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--sm-ink); background: #f3f7f7; border: 1px solid var(--sm-line); border-radius: 50%; }
.sm-search-toggle:hover, .sm-menu-toggle:hover { color: #fff; background: var(--sm-teal); border-color: var(--sm-teal); }
.sm-search-toggle svg, .sm-menu-toggle svg { width: 17px; height: 17px; }
.sm-menu-toggle { display: none; }
.sm-search-panel { display: none; padding: 0 0 20px; }
.sm-search-panel.is-open { display: block; }
.sm-search-form { display: flex; max-width: 680px; margin-left: auto; background: #f4f8f8; border: 1px solid var(--sm-line); border-radius: 999px; overflow: hidden; }
.sm-search-form label { flex: 1; }
.sm-search-form input[type="search"] { width: 100%; min-height: 48px; padding: 0 20px; color: var(--sm-ink); background: transparent; border: 0; outline: 0; }
.sm-search-form input[type="submit"] { min-width: 105px; padding: 0 22px; color: #fff; background: var(--sm-teal-dark); border: 0; font-size: 12px; font-weight: 800; }

/* Portrait editorial carousel */
.sm-featured-carousel-section { padding: 48px 0 58px; background: linear-gradient(180deg, #f8fbfb 0%, #f1f6f5 100%); border-bottom: 1px solid #e6eeee; }
.sm-carousel-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sm-carousel-heading-copy { display: flex; flex-direction: column; gap: 7px; }
.sm-carousel-heading-copy h1 { margin: 0; color: var(--sm-ink); font-family: var(--sm-serif); font-size: clamp(29px, 3.2vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.sm-carousel-controls { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.sm-carousel-counter { margin-right: 7px; color: #718590; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: .08em; }
.sm-carousel-arrow { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--sm-ink); background: #fff; border: 1px solid #dce7e7; border-radius: 50%; box-shadow: 0 4px 14px rgba(16,43,63,.045); transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.sm-carousel-arrow:hover { color: #fff; background: var(--sm-ink); border-color: var(--sm-ink); transform: translateY(-2px); }
.sm-carousel-arrow svg { width: 16px; height: 16px; }
.sm-article-carousel { position: relative; }
.sm-carousel-viewport { overflow: hidden; padding: 2px 2px 15px; margin: -2px -2px -15px; touch-action: pan-y; }
.sm-carousel-track { display: flex; align-items: stretch; gap: 18px; will-change: transform; transition: transform .62s cubic-bezier(.22,.75,.25,1); }
.sm-carousel-card { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(16,43,63,.075); border-radius: 17px; box-shadow: 0 8px 22px rgba(16,43,63,.045); transition: transform .25s ease, box-shadow .25s ease; }
.sm-carousel-card:hover { transform: translateY(-4px); box-shadow: 0 15px 32px rgba(16,43,63,.10); }
.sm-carousel-media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #dce9e9, #b9d0d1); }
.sm-carousel-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.sm-carousel-card:hover .sm-carousel-media img { transform: scale(1.045); }
.sm-carousel-image-shade { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent 25%, rgba(7,29,43,.16) 100%); pointer-events: none; }
.sm-carousel-category { position: absolute; top: 14px; left: 14px; max-width: calc(100% - 28px); overflow: hidden; padding: 7px 11px; color: #fff; background: rgba(12,43,62,.82); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; backdrop-filter: blur(8px); font-size: 9px; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.sm-carousel-open { position: absolute; right: 13px; bottom: 13px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--sm-ink); background: rgba(255,255,255,.94); border-radius: 50%; font-size: 17px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.sm-carousel-card:hover .sm-carousel-open { color: #fff; background: var(--sm-teal-dark); transform: rotate(45deg); }
.sm-carousel-card-body { display: flex; flex-direction: column; min-height: 125px; padding: 17px 18px 18px; }
.sm-carousel-card-title { display: -webkit-box; overflow: hidden; margin: 0; color: var(--sm-ink); font-family: var(--sm-serif); font-size: 19px; font-weight: 600; line-height: 1.27; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sm-carousel-card-title a { color: inherit; }
.sm-carousel-card-title a:hover { color: var(--sm-teal-dark); }
.sm-carousel-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; color: #82929c; font-size: 10px; font-weight: 650; }
.sm-carousel-card-meta .sm-meta-dot { width: 3px; height: 3px; background: #b3c1c6; border-radius: 50%; }
.sm-carousel-progress { height: 2px; overflow: hidden; margin-top: 23px; background: #dfe9e8; border-radius: 99px; }
.sm-carousel-progress span { display: block; width: 0; height: 100%; background: var(--sm-teal); border-radius: inherit; transition: width .35s ease; }
.sm-carousel-card .sm-image-placeholder { position: absolute; inset: 0; min-height: 0; }

/* Cards */
.sm-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sm-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(16,43,63,.06); border-radius: var(--sm-radius); box-shadow: 0 3px 14px rgba(16,43,63,.025); transition: transform .22s ease, box-shadow .22s ease; }
.sm-card:hover { transform: translateY(-4px); box-shadow: var(--sm-shadow-soft); }
.sm-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #dce9e9, #b9d0d1); }
.sm-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sm-card-media > .sm-image-placeholder, .sm-hero-media > .sm-image-placeholder { position: absolute; inset: 0; min-height: 0; }
.sm-card:hover .sm-card-media img { transform: scale(1.035); }
.sm-card-media .sm-image-placeholder { min-height: 100%; }
.sm-card-content { padding: 20px 21px 22px; }
.sm-card-category { display: inline-flex; margin-bottom: 9px; color: var(--sm-teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sm-card-title { margin: 0; color: var(--sm-ink); font-family: var(--sm-serif); font-size: 22px; font-weight: 600; line-height: 1.22; letter-spacing: -.025em; }
.sm-card-title a { color: inherit; }
.sm-card-title a:hover { color: var(--sm-teal-dark); }
.sm-card-excerpt { display: -webkit-box; overflow: hidden; margin: 11px 0 0; color: var(--sm-muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sm-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; color: #84939d; font-size: 10px; font-weight: 650; }
.sm-card-meta .sm-meta-dot { width: 3px; height: 3px; background: #b3c1c6; border-radius: 50%; }
.sm-feature-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.sm-feature-card { position: relative; display: flex; min-height: 315px; overflow: hidden; color: #fff; background: var(--sm-ink); border-radius: var(--sm-radius); }
.sm-feature-card .sm-card-media { position: absolute; inset: 0; height: auto; aspect-ratio: auto; opacity: .55; }
.sm-feature-card:after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(8,31,46,.95), rgba(8,31,46,.2)); }
.sm-feature-card-content { position: relative; z-index: 2; align-self: end; max-width: 620px; padding: 34px; }
.sm-feature-card .sm-card-title { max-width: 560px; color: #fff; font-size: clamp(24px, 3vw, 34px); }
.sm-feature-card .sm-card-title a:hover { color: #7ddbd3; }
.sm-feature-card .sm-card-excerpt { max-width: 560px; color: #d5e0e5; }
.sm-feature-card .sm-card-meta { color: #bbccd4; }
.sm-feature-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.sm-mini-card { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; min-width: 0; padding: 14px; background: #fff; border: 1px solid rgba(16,43,63,.06); border-radius: var(--sm-radius); }
.sm-mini-card .sm-card-media { width: 132px; border-radius: 10px; }
.sm-mini-card .sm-card-content { padding: 0; }
.sm-mini-card .sm-card-title { font-size: 18px; }
.sm-mini-card .sm-card-meta { margin-top: 10px; }

/* Specialties */
.sm-specialties-section { background: #edf4f3; border-top: 1px solid #e2ecea; border-bottom: 1px solid #e2ecea; }
.sm-specialty-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.sm-specialty { display: flex; flex-direction: column; align-items: flex-start; min-height: 130px; padding: 19px 17px; color: var(--sm-ink); background: rgba(255,255,255,.78); border: 1px solid rgba(16,43,63,.07); border-radius: 14px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.sm-specialty:hover { transform: translateY(-3px); color: var(--sm-ink); background: #fff; border-color: rgba(21,156,150,.45); }
.sm-specialty-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; color: var(--sm-teal-dark); background: #e4f4f1; border-radius: 11px; }
.sm-specialty-icon svg { width: 19px; height: 19px; }
.sm-specialty-name { font-size: 12px; font-weight: 800; line-height: 1.35; }
.sm-specialty-count { margin-top: 5px; color: var(--sm-muted); font-size: 10px; }

/* Library and app panels */
.sm-resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sm-resource-panel { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 250px; padding: 34px; overflow: hidden; color: #fff; background: var(--sm-ink); border-radius: var(--sm-radius); }
.sm-resource-panel--teal { background: linear-gradient(135deg, #0b7776, #13495a); }
.sm-resource-panel:after { position: absolute; right: -35px; bottom: -82px; width: 240px; height: 240px; content: ""; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.035), 0 0 0 54px rgba(255,255,255,.025); }
.sm-resource-icon { position: relative; z-index: 1; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); border-radius: 13px; }
.sm-resource-icon svg { width: 22px; height: 22px; }
.sm-resource-panel h3 { position: relative; z-index: 1; max-width: 450px; margin: 0; color: #fff; font-family: var(--sm-serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.sm-resource-panel p { position: relative; z-index: 1; max-width: 470px; margin: 12px 0 20px; color: #d0e0e5; font-size: 13px; }
.sm-resource-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding: 10px 15px; color: var(--sm-ink); background: #fff; border-radius: 999px; font-size: 11px; font-weight: 850; }
.sm-resource-link:hover { color: #fff; background: var(--sm-teal); }

/* Archive and search */
.sm-page-heading { padding: 58px 0 32px; }
.sm-page-heading h1 { max-width: 850px; margin: 10px 0 12px; color: var(--sm-ink); font-family: var(--sm-serif); font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.sm-page-heading p { max-width: 650px; margin: 0; color: var(--sm-muted); font-size: 14px; }
.sm-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 70px; }
.sm-pagination { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 0 0 72px; }
.sm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; color: var(--sm-ink); background: #fff; border: 1px solid var(--sm-line); border-radius: 10px; font-size: 12px; font-weight: 750; }
.sm-pagination .current, .sm-pagination a:hover { color: #fff; background: var(--sm-teal-dark); border-color: var(--sm-teal-dark); }
.sm-no-results { padding: 35px; text-align: center; background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); }

/* Single post */
.sm-reading-progress { position: fixed; top: 0; left: 0; z-index: 100; width: 0; height: 3px; background: var(--sm-teal); }
.sm-article-header { padding: 42px 0 28px; }
.sm-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 25px; color: #8798a2; font-size: 11px; font-weight: 650; }
.sm-breadcrumbs a { color: var(--sm-muted); }
.sm-breadcrumbs span { color: #b7c3c8; }
.sm-article-header h1 { max-width: 1120px; margin: 13px 0 17px; color: var(--sm-ink); font-family: var(--sm-serif); font-size: clamp(32px, 3.5vw, 50px); font-weight: 600; line-height: 1.09; letter-spacing: -.04em; }
.sm-article-deck { max-width: 820px; margin: 0; color: #5d7280; font-size: 17px; line-height: 1.7; }
.sm-article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 23px; color: #758994; font-size: 11px; font-weight: 700; }
.sm-article-byline a { color: var(--sm-teal-dark); }
.sm-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 58px; width: min(calc(100% - 48px), 1120px); margin: 0 auto; padding-bottom: 70px; }
.sm-article-content { min-width: 0; color: #314b5b; font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.sm-article-content > *:first-child { margin-top: 0; }
.sm-article-content h2 { margin: 2.1em 0 .7em; color: var(--sm-ink); font-family: var(--sm-serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.sm-article-content h3 { margin: 1.8em 0 .55em; color: var(--sm-ink); font-family: var(--sm-serif); font-size: 23px; font-weight: 600; line-height: 1.25; }
.sm-article-content h4 { margin: 1.6em 0 .5em; color: var(--sm-ink); font-size: 17px; font-weight: 800; }
.sm-article-content p { margin: 0 0 1.35em; }
.sm-article-content a { color: var(--sm-teal-dark); text-decoration: underline; text-decoration-color: rgba(21,156,150,.35); text-underline-offset: 3px; }
.sm-article-content ul, .sm-article-content ol { margin: 0 0 1.6em; padding-left: 1.45em; }
.sm-article-content li { margin: .35em 0; padding-left: .2em; }
.sm-article-content blockquote { margin: 2em 0; padding: 20px 25px; color: var(--sm-ink); background: #edf6f4; border-left: 3px solid var(--sm-teal); border-radius: 0 12px 12px 0; font-family: var(--sm-serif); font-size: 20px; line-height: 1.55; }
.sm-article-content table { width: 100%; margin: 1.8em 0; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.sm-article-content th, .sm-article-content td { padding: 11px 12px; border: 1px solid var(--sm-line); text-align: left; vertical-align: top; }
.sm-article-content th { color: var(--sm-ink); background: #eef5f4; font-weight: 800; }
.sm-article-content figure { margin: 2em 0; }
.sm-article-content figure img { display: block; height: auto; margin: 0 auto; border-radius: 12px; }
.sm-article-content figcaption { margin-top: 9px; color: #7c8c95; font-size: 11px; text-align: center; }
.sm-article-content iframe, .sm-article-content video { max-width: 100%; }
.sm-article-content .wp-block-table { overflow-x: auto; }
.sm-article-sidebar { position: sticky; top: 28px; }
.sm-sidebar-card { margin-bottom: 18px; padding: 20px; background: #fff; border: 1px solid var(--sm-line); border-radius: 14px; }
.sm-sidebar-title { margin: 0 0 15px; color: var(--sm-ink); font-family: var(--sm-serif); font-size: 19px; font-weight: 600; }
.sm-sidebar-list { display: grid; gap: 14px; }
.sm-sidebar-item { display: grid; grid-template-columns: 64px 1fr; gap: 11px; align-items: center; }
.sm-sidebar-item .sm-card-media { aspect-ratio: 1 / 1; border-radius: 8px; }
.sm-sidebar-item a { color: var(--sm-ink); font-size: 12px; font-weight: 750; line-height: 1.4; }
.sm-sidebar-item a:hover { color: var(--sm-teal-dark); }
.sm-sidebar-item small { display: block; margin-top: 4px; color: var(--sm-muted); font-size: 9px; }
.sm-article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--sm-line); }
.sm-article-tags a { padding: 6px 10px; color: #58707d; background: #eef4f4; border-radius: 999px; font-size: 10px; font-weight: 700; }
.sm-article-tags a:hover { color: #fff; background: var(--sm-teal-dark); }
.sm-related { padding: 55px 0 75px; background: #edf4f3; }
.sm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--sm-line); }
.sm-post-nav a { color: var(--sm-ink); font-size: 13px; font-weight: 750; }
.sm-post-nav span { display: block; margin-bottom: 6px; color: var(--sm-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

/* Comments: editorial discussion module */
.sm-comments { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--sm-line); }
.sm-comments-panel { padding: clamp(21px, 3vw, 34px); background: #fff; border: 1px solid var(--sm-line); border-radius: 18px; box-shadow: var(--sm-shadow-soft); }
.sm-comments-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.sm-comments-heading-copy { min-width: 0; }
.sm-comments-kicker { display: inline-block; margin-bottom: 7px; color: var(--sm-teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.sm-comments-title { margin: 0; color: var(--sm-ink); font-family: var(--sm-serif); font-size: clamp(23px, 2.6vw, 29px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.sm-comments-intro { max-width: 560px; margin: 8px 0 0; color: var(--sm-muted); font-size: 12px; line-height: 1.65; }
.sm-comments-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 7px 11px; color: var(--sm-teal-dark); background: #edf7f5; border: 1px solid #d9eeea; border-radius: 999px; font-size: 10px; font-weight: 800; }
.sm-comment-list { margin: 0; padding: 0; list-style: none; }
.sm-comment-list > li { margin: 0; padding: 20px 0; border-top: 1px solid #edf1f2; list-style: none; }
.sm-comment-list > li:first-child { border-top: 1px solid #edf1f2; }
.sm-comment-list .comment-body { position: relative; min-width: 0; }
.sm-comment-list .comment-author { display: flex; align-items: center; gap: 11px; min-height: 42px; color: var(--sm-ink); font-size: 12px; font-weight: 800; }
.sm-comment-list .comment-author .avatar { width: 42px; height: 42px; flex: 0 0 42px; border: 2px solid #e8f1f0; border-radius: 50%; object-fit: cover; }
.sm-comment-list .comment-author .says { display: none; }
.sm-comment-list .comment-author .fn { color: var(--sm-ink); font-style: normal; }
.sm-comment-list .comment-metadata { margin: -17px 0 0 53px; color: #8a9aa3; font-size: 10px; line-height: 1.4; }
.sm-comment-list .comment-metadata a { color: #81929b; }
.sm-comment-list .comment-content { margin: 12px 0 0 53px; color: #425b69; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.sm-comment-list .comment-content p { margin: 0 0 9px; }
.sm-comment-list .comment-content p:last-child { margin-bottom: 0; }
.sm-comment-list .reply { margin: 10px 0 0 53px; }
.sm-comment-list .comment-reply-link { display: inline-flex; align-items: center; padding: 5px 10px; color: var(--sm-teal-dark); background: #eff7f6; border-radius: 999px; font-size: 10px; font-weight: 800; text-decoration: none; }
.sm-comment-list .comment-reply-link:hover { color: #fff; background: var(--sm-teal-dark); }
.sm-comment-list .children { margin: 18px 0 0 52px; padding: 0 0 0 18px; border-left: 2px solid #e3efed; list-style: none; }
.sm-comment-list .children > li { padding: 15px 0 0; list-style: none; }
.sm-comment-list .bypostauthor > .comment-body { padding: 13px 15px; background: #f7faf9; border: 1px solid #e7f0ee; border-radius: 12px; }
.sm-comments .comment-navigation { margin: 18px 0 0; }
.sm-comments .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 12px; }
.sm-comments .comment-navigation a { color: var(--sm-teal-dark); font-size: 11px; font-weight: 800; }
.sm-comment-respond { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--sm-line); }
.sm-comment-form-title { margin: 0 0 8px; color: var(--sm-ink); font-family: var(--sm-serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.sm-comment-form-title small { margin-left: 8px; font-family: var(--sm-font); font-size: 11px; font-weight: 700; }
.sm-comment-form-title small a { color: var(--sm-teal-dark); }
.sm-comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; margin-top: 17px; }
.sm-comment-form .comment-notes, .sm-comment-form .logged-in-as { grid-column: 1 / -1; margin: 0; color: var(--sm-muted); font-size: 11px; line-height: 1.6; }
.sm-comment-form .comment-form-comment { grid-column: 1 / -1; margin: 0; }
.sm-comment-form .comment-form-author { grid-column: 1; margin: 0; }
.sm-comment-form .comment-form-email { grid-column: 2; margin: 0; }
.sm-comment-form .comment-form-url { grid-column: 1 / -1; margin: 0; }
.sm-comment-form .comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--sm-muted); font-size: 10px; line-height: 1.5; }
.sm-comment-form .comment-form-cookies-consent input { width: auto; min-height: 0; margin: 2px 0 0; accent-color: var(--sm-teal-dark); }
.sm-comment-form label { display: block; margin: 0 0 6px; color: #405a68; font-size: 11px; font-weight: 800; }
.sm-comment-form .required { color: #bd6b54; }
.sm-comment-form input[type="text"], .sm-comment-form input[type="email"], .sm-comment-form input[type="url"], .sm-comment-form textarea { display: block; width: 100%; min-height: 43px; padding: 11px 13px; color: var(--sm-ink); background: #f8faf9; border: 1px solid #dce7e6; border-radius: 10px; outline: none; font: 13px/1.5 var(--sm-font); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.sm-comment-form textarea { min-height: 150px; resize: vertical; }
.sm-comment-form input:focus, .sm-comment-form textarea:focus { background: #fff; border-color: var(--sm-teal); box-shadow: 0 0 0 3px rgba(21,156,150,.11); }
.sm-comment-form .form-submit { grid-column: 1 / -1; margin: 3px 0 0; }
.sm-comment-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 19px; color: #fff; background: var(--sm-ink); border: 1px solid var(--sm-ink); border-radius: 999px; font-size: 11px; font-weight: 850; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.sm-comment-submit:hover { color: #fff; background: var(--sm-teal-dark); border-color: var(--sm-teal-dark); transform: translateY(-1px); }
.sm-comments .no-comments { margin: 0; padding: 16px; color: var(--sm-muted); background: #f7faf9; border-radius: 10px; font-size: 12px; }

/* Pages, footer and utilities */
.sm-page-content { width: min(calc(100% - 48px), var(--sm-reading)); margin: 0 auto; padding: 20px 0 80px; color: #314b5b; font-size: 16px; line-height: 1.85; }
.sm-page-content h1, .sm-page-content h2, .sm-page-content h3 { color: var(--sm-ink); font-family: var(--sm-serif); line-height: 1.2; }
.sm-page-content h1 { font-size: clamp(36px, 5vw, 58px); }
.sm-page-content h2 { margin-top: 1.8em; font-size: 32px; }
.sm-page-content h3 { font-size: 23px; }
.sm-site-footer { color: #d6e2e7; background: #0b2234; }
.sm-footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; padding: 58px 0 46px; }
.sm-footer-brand .sm-brand { color: #fff; }
.sm-footer-brand .sm-brand-tagline { color: #9bb0bb; }
.sm-footer-brand p { max-width: 370px; margin: 17px 0 0; color: #a9bdc7; font-size: 12px; line-height: 1.8; }
.sm-footer-heading { margin: 0 0 15px; color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sm-footer-menu { margin: 0; padding: 0; list-style: none; }
.sm-footer-menu li { margin: 8px 0; }
.sm-footer-menu a { color: #adc0c9; font-size: 12px; }
.sm-footer-menu a:hover { color: #fff; }
.sm-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; color: #8299a5; border-top: 1px solid rgba(255,255,255,.11); font-size: 10px; }
.sm-footer-bottom a { color: #b2c3ca; }
.sm-back-top { display: inline-flex; align-items: center; gap: 7px; }
.sm-back-top:before { content: "↑"; font-size: 15px; }
.sm-404 { padding: 100px 0; text-align: center; }
.sm-404-code { color: var(--sm-teal); font-family: var(--sm-serif); font-size: 100px; line-height: 1; }
.sm-404 h1 { margin: 18px 0 10px; font-family: var(--sm-serif); font-size: 36px; }
.sm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; color: #fff; background: var(--sm-teal-dark); border: 0; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sm-button:hover { color: #fff; background: var(--sm-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--sm-muted); font-size: 11px; text-align: center; }
.gallery { display: grid; gap: 12px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1080px) {
  .sm-primary-nav ul { gap: 16px; }
  .sm-primary-nav a { font-size: 11px; }
  .sm-brand { min-width: 190px; }
  .sm-specialty-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sm-article-layout { grid-template-columns: minmax(0,1fr) 230px; gap: 32px; }
}
@media (max-width: 820px) {
  .sm-carousel-card { flex-basis: calc((100% - 18px) / 2); }
  .sm-carousel-heading-row { align-items: center; }

  .sm-container, .sm-reading-width { width: min(calc(100% - 34px), var(--sm-container)); }
  .sm-utility-right { display: none; }
  .sm-header-main { min-height: 76px; }
  .sm-brand { min-width: 0; }
  .sm-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .sm-brand-name { font-size: 24px; }
  .sm-brand-tagline { font-size: 8px; }
  .sm-menu-toggle { display: inline-flex; }
  .sm-primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 10px 22px 22px; background: #fff; border-top: 1px solid var(--sm-line); box-shadow: var(--sm-shadow); }
  .sm-primary-nav.is-open { display: block; }
  .sm-primary-nav ul { display: block; }
  .sm-primary-nav li { border-bottom: 1px solid #edf1f2; }
  .sm-primary-nav a { display: flex; min-height: 44px; font-size: 13px; }
  .sm-primary-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 9px 14px; border: 0; border-radius: 0; box-shadow: none; }
  .sm-primary-nav .sub-menu a { min-height: 34px; }
  .sm-search-panel { padding: 0 0 14px; }
  .sm-feature-row { grid-template-columns: 1fr; }
  .sm-feature-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .sm-mini-card { grid-template-columns: 100px 1fr; }
  .sm-mini-card .sm-card-media { width: 100px; }
  .sm-archive-grid, .sm-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sm-article-header h1 { max-width: 100%; font-size: clamp(35px, 5.2vw, 43px); }
  .sm-article-layout { grid-template-columns: 1fr; width: min(calc(100% - 34px), var(--sm-reading)); }
  .sm-comments-panel { padding: 22px; }
  .sm-article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sm-article-sidebar .sm-sidebar-card { margin: 0; }
  .sm-footer-main { grid-template-columns: 1fr 1fr; gap: 38px; }
  .sm-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sm-featured-carousel-section { padding: 31px 0 39px; }
  .sm-carousel-heading-row { align-items: flex-start; gap: 14px; margin-bottom: 18px; }
  .sm-carousel-heading-copy h1 { font-size: 29px; }
  .sm-carousel-controls { gap: 6px; }
  .sm-carousel-counter { margin-right: 2px; font-size: 9px; }
  .sm-carousel-arrow { width: 36px; height: 36px; }
  .sm-carousel-track { gap: 14px; }
  .sm-carousel-card { flex-basis: min(82%, 340px); }
  .sm-carousel-card-body { min-height: 118px; padding: 15px 16px 16px; }
  .sm-carousel-card-title { font-size: 18px; }
  .sm-carousel-progress { margin-top: 18px; }

  body { font-size: 15px; }
  .sm-container, .sm-reading-width { width: min(calc(100% - 28px), var(--sm-container)); }
  .sm-utility-inner { min-height: 28px; font-size: 9px; }
  .sm-header-main { min-height: 68px; gap: 12px; }
  .sm-brand { gap: 8px; }
  .sm-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .sm-brand-name { font-size: 22px; }
  .sm-brand-tagline { display: none; }
  .sm-search-toggle, .sm-menu-toggle { width: 38px; height: 38px; }
  .sm-section { padding: 48px 0; }
  .sm-section--compact { padding: 36px 0; }
  .sm-section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .sm-section-heading h2 { font-size: 29px; }
  .sm-card-grid, .sm-archive-grid { grid-template-columns: 1fr; gap: 16px; }
  .sm-card-content { padding: 17px 18px 19px; }
  .sm-card-title { font-size: 21px; }
  .sm-feature-card { min-height: 310px; }
  .sm-feature-card-content { padding: 23px; }
  .sm-feature-card .sm-card-title { font-size: 27px; }
  .sm-feature-side { grid-template-columns: 1fr; gap: 13px; }
  .sm-mini-card { grid-template-columns: 108px 1fr; padding: 12px; }
  .sm-mini-card .sm-card-media { width: 108px; }
  .sm-mini-card .sm-card-title { font-size: 17px; }
  .sm-specialty-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .sm-specialty { min-height: 112px; padding: 15px; }
  .sm-resource-grid { grid-template-columns: 1fr; gap: 14px; }
  .sm-resource-panel { min-height: 235px; padding: 26px; }
  .sm-resource-panel h3 { font-size: 27px; }
  .sm-page-heading { padding: 38px 0 25px; }
  .sm-page-heading h1 { font-size: 38px; }
  .sm-article-header { padding: 34px 0 22px; }
  .sm-article-header h1 { max-width: 100%; font-size: 31px; line-height: 1.12; letter-spacing: -.035em; }
  .sm-article-deck { font-size: 15px; }
  .sm-article-layout { width: calc(100% - 28px); gap: 28px; }
  .sm-comments-panel { padding: 19px 16px; }
  .sm-comments-header { flex-direction: column; gap: 10px; }
  .sm-comment-form { grid-template-columns: 1fr; gap: 12px; }
  .sm-comment-form .comment-form-author, .sm-comment-form .comment-form-email, .sm-comment-form .comment-form-url { grid-column: 1; }
  .sm-comment-list .comment-metadata { margin: 5px 0 0 53px; }
  .sm-comment-list .comment-content, .sm-comment-list .reply { margin-left: 0; }
  .sm-comment-list .children { margin-left: 14px; padding-left: 12px; }
  .sm-article-content { font-size: 15px; }
  .sm-article-content h2 { font-size: 27px; }
  .sm-article-content h3 { font-size: 21px; }
  .sm-article-content table { display: block; overflow-x: auto; white-space: normal; }
  .sm-article-sidebar { grid-template-columns: 1fr; }
  .sm-post-nav { grid-template-columns: 1fr; }
  .sm-footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 42px 0 32px; }
  .sm-footer-brand { grid-column: 1 / -1; }
  .sm-footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ================================================================
   SoyMedicina Editorial 1.3.0 — professional navigation and reading
   Static header by design: no sticky/fixed navigation bar.
   ================================================================ */
.sm-site-header { position: relative; z-index: 70; background: rgba(255,255,255,.98); }
.sm-header-main { position: relative; min-height: 94px; gap: clamp(16px, 2vw, 30px); }
.sm-brand { min-width: 230px; flex-shrink: 0; }
.sm-brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
.sm-brand-name { font-size: 29px; }
.sm-primary-nav { min-width: 0; gap: 8px; }
.sm-primary-nav > ul { display: flex; align-items: center; justify-content: flex-end; gap: clamp(11px, 1.35vw, 21px); width: 100%; }
.sm-primary-nav > ul > li { display: flex; align-items: center; gap: 2px; }
.sm-primary-nav > ul > li > a { min-height: 92px; white-space: nowrap; color: #29485a; font-size: 11px; font-weight: 800; letter-spacing: .025em; }
.sm-primary-nav > ul > li > a:after { content: ""; position: absolute; right: 0; bottom: 23px; left: 0; height: 2px; background: var(--sm-teal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.sm-primary-nav > ul > li > a { position: relative; }
.sm-primary-nav > ul > li:hover > a:after,
.sm-primary-nav > ul > li:focus-within > a:after,
.sm-primary-nav > ul > li.current-menu-item > a:after,
.sm-primary-nav > ul > li.current-menu-ancestor > a:after { transform: scaleX(1); }
.sm-primary-nav .menu-item-has-children { position: relative; }
.sm-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; flex: 0 0 25px; padding: 0; color: #66808c; background: transparent; border: 0; border-radius: 50%; transition: color .18s ease, background .18s ease, transform .18s ease; }
.sm-submenu-toggle:hover, .sm-submenu-toggle[aria-expanded="true"] { color: var(--sm-teal-dark); background: #eaf5f3; }
.sm-submenu-toggle svg { width: 13px; height: 13px; transition: transform .18s ease; }
.sm-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sm-primary-nav .sub-menu { top: calc(100% - 3px); left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 8px; width: min(700px, calc(100vw - 48px)); min-width: 390px; padding: 17px; border: 1px solid rgba(16,43,63,.09); border-radius: 15px; box-shadow: 0 22px 55px rgba(16,43,63,.14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.sm-primary-nav li:hover > .sub-menu,
.sm-primary-nav li:focus-within > .sub-menu,
.sm-primary-nav li.is-submenu-open > .sub-menu { display: grid; opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.sm-primary-nav .sub-menu li { display: block; min-width: 0; }
.sm-primary-nav .sub-menu a { min-height: 40px; padding: 8px 10px; color: #365467; font-size: 12px; font-weight: 650; line-height: 1.35; white-space: normal; border-radius: 8px; }
.sm-primary-nav .sub-menu a:hover,
.sm-primary-nav .sub-menu .current-menu-item > a { color: var(--sm-teal-dark); background: #eef7f5; }
.sm-header-actions { flex: 0 0 auto; gap: 8px; }
.sm-search-toggle, .sm-menu-toggle { width: 44px; height: 44px; background: #f5f8f8; border-color: #dce7e8; }
.sm-search-toggle svg, .sm-menu-toggle svg { width: 18px; height: 18px; }
.sm-search-panel { position: relative; z-index: 75; padding: 0 0 22px; }
.sm-search-form { position: relative; max-width: 760px; min-height: 54px; border-radius: 15px; box-shadow: 0 5px 18px rgba(16,43,63,.045); }
.sm-search-form input[type="search"] { min-height: 54px; font-size: 14px; }
.sm-search-form input[type="submit"] { min-width: 112px; cursor: pointer; transition: background .18s ease; }
.sm-search-form input[type="submit"]:hover { background: var(--sm-ink); }
.sm-live-search-results { max-width: 760px; margin: 9px 0 0 auto; overflow: hidden; background: #fff; border: 1px solid var(--sm-line); border-radius: 15px; box-shadow: 0 18px 45px rgba(16,43,63,.12); }
.sm-live-search-results[hidden] { display: none !important; }
.sm-live-search-status { padding: 15px 18px; color: var(--sm-muted); font-size: 12px; }
.sm-live-search-list { display: grid; margin: 0; padding: 6px; list-style: none; }
.sm-live-search-item + .sm-live-search-item { border-top: 1px solid #edf1f2; }
.sm-live-search-link { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 69px; padding: 9px 12px; color: var(--sm-ink); border-radius: 9px; }
.sm-live-search-link:hover, .sm-live-search-link:focus-visible { color: var(--sm-ink); background: #f3f8f7; }
.sm-live-search-thumb { display: block; width: 48px; height: 57px; overflow: hidden; background: #edf3f3; border-radius: 6px; }
.sm-live-search-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-live-search-thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--sm-teal-dark); }
.sm-live-search-thumb--empty svg { width: 22px; height: 22px; }
.sm-live-search-copy { display: grid; gap: 3px; min-width: 0; }
.sm-live-search-category { color: var(--sm-teal-dark); font-size: 9px; font-weight: 850; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.sm-live-search-title { overflow: hidden; color: var(--sm-ink); font-family: var(--sm-serif); font-size: 15px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; }
.sm-live-search-excerpt { overflow: hidden; color: #758894; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sm-live-search-arrow { color: #91a3aa; font-size: 18px; }
.sm-live-search-all { display: block; padding: 13px 18px; color: var(--sm-teal-dark); background: #f5f9f8; border-top: 1px solid #e8eeee; font-size: 11px; font-weight: 800; text-align: center; }
.sm-live-search-all:hover { color: var(--sm-ink); background: #edf5f3; }

/* Article reading experience */
.sm-article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(30px, 4vw, 58px); width: min(calc(100% - 48px), 1180px); }
.sm-article-content { color: #304b5b; font-size: 17px; line-height: 1.88; }
.sm-entry-content { --sm-reading-font: 17px; font-size: var(--sm-reading-font); line-height: 1.88; }
.sm-entry-content p { margin-bottom: 1.45em; }
.sm-entry-content h2 { scroll-margin-top: 28px; margin-top: 2.25em; margin-bottom: .72em; font-size: clamp(27px, 2.7vw, 34px); }
.sm-entry-content h3 { scroll-margin-top: 28px; margin-top: 1.85em; font-size: 23px; }
.sm-entry-content h4 { scroll-margin-top: 28px; }
.sm-reading-intro { display: grid; gap: 13px; margin: 0 0 29px; }
.sm-reading-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; color: #607783; background: #f5f8f8; border: 1px solid #e5eded; border-radius: 11px; }
.sm-reading-tools-label { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sm-reading-tools-actions { display: flex; align-items: center; gap: 6px; }
.sm-reading-tools button { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; height: 32px; padding: 0 9px; color: var(--sm-ink); background: #fff; border: 1px solid #dce7e8; border-radius: 7px; font-size: 12px; font-weight: 800; }
.sm-reading-tools button:hover { color: #fff; background: var(--sm-teal-dark); border-color: var(--sm-teal-dark); }
.sm-reading-tools .sm-reading-reset { color: #6b808b; font-size: 10px; font-weight: 700; }
.sm-toc-card { overflow: hidden; background: #fff; border: 1px solid #dfe9e9; border-radius: 13px; box-shadow: 0 5px 17px rgba(16,43,63,.035); }
.sm-toc-card details { margin: 0; }
.sm-toc-card summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; color: var(--sm-ink); cursor: pointer; list-style: none; }
.sm-toc-card summary::-webkit-details-marker { display: none; }
.sm-toc-card summary:after { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; color: var(--sm-teal-dark); background: #eff7f5; border-radius: 50%; font-size: 16px; font-weight: 500; }
.sm-toc-card details[open] summary:after { content: "−"; }
.sm-toc-title { font-family: var(--sm-serif); font-size: 17px; font-weight: 700; }
.sm-toc-count { margin-left: auto; color: #84959e; font-size: 10px; font-weight: 700; }
.sm-toc-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3px 22px; margin: 0; padding: 0 18px 17px 36px; color: #81939b; }
.sm-toc-list li { min-width: 0; padding-left: 2px; font-size: 11px; line-height: 1.45; }
.sm-toc-list a { display: inline; color: #536d7b; text-decoration: none; }
.sm-toc-list a:hover, .sm-toc-list a.is-active { color: var(--sm-teal-dark); font-weight: 800; }
.sm-toc-list .sm-toc-h3 { padding-left: 15px; list-style-type: circle; }
.sm-toc-list .sm-toc-h3 a { color: #7c8e98; font-size: 10px; }
.sm-toc-list .sm-toc-h3 a.is-active { color: var(--sm-teal-dark); }
.sm-reading-progress { height: 3px; }
.sm-article-byline { font-size: 12px; }
.sm-breadcrumbs { font-size: 11px; }
.sm-article-sidebar { top: 24px; }
.sm-article-content .wp-block-image figcaption,
.sm-article-content .wp-caption-text { max-width: 680px; margin: 10px auto 0; color: #788b95; font-size: 11px; line-height: 1.5; }
.sm-entry-content pre { max-width: 100%; overflow-x: auto; padding: 18px; color: #e6f0f1; background: #102b3f; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.sm-entry-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid #e1e9e9; }

@media (max-width: 1080px) {
  .sm-header-main { min-height: 82px; }
  .sm-brand { min-width: 0; }
  .sm-menu-toggle { display: inline-flex; }
  .sm-primary-nav { position: absolute; top: calc(100% + 1px); left: 24px; right: 24px; z-index: 90; display: none; padding: 12px 18px 18px; background: #fff; border: 1px solid var(--sm-line); border-radius: 14px; box-shadow: 0 22px 50px rgba(16,43,63,.15); }
  .sm-primary-nav.is-open { display: block; }
  .sm-primary-nav > ul { display: block; width: auto; }
  .sm-primary-nav > ul > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; border-bottom: 1px solid #edf1f2; }
  .sm-primary-nav > ul > li:last-child { border-bottom: 0; }
  .sm-primary-nav > ul > li > a { min-height: 48px; flex: 1; font-size: 13px; }
  .sm-primary-nav > ul > li > a:after { display: none; }
  .sm-submenu-toggle { width: 38px; height: 38px; flex-basis: 38px; margin: 5px 0; background: #f4f8f7; }
  .sm-primary-nav .sub-menu { position: static; display: none; grid-template-columns: 1fr; gap: 1px; width: 100%; min-width: 0; padding: 0 0 11px 14px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .sm-primary-nav > ul > li:not(.is-submenu-open):hover > .sub-menu { display: none; }
  .sm-primary-nav > ul > li.is-submenu-open > .sub-menu { display: grid; }
  .sm-primary-nav .sub-menu a { min-height: 38px; font-size: 12px; }
  .sm-article-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 30px; }
}
@media (max-width: 820px) {
  .sm-article-layout { grid-template-columns: 1fr; width: min(calc(100% - 34px), 820px); }
  .sm-article-sidebar { position: static; }
  .sm-reading-tools { padding: 9px 10px; }
  .sm-toc-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sm-header-main { min-height: 68px; }
  .sm-menu-toggle, .sm-search-toggle { width: 39px; height: 39px; }
  .sm-primary-nav { left: 14px; right: 14px; padding: 8px 14px 14px; }
  .sm-search-panel { padding-bottom: 14px; }
  .sm-search-form { border-radius: 12px; }
  .sm-search-form input[type="search"] { min-height: 49px; padding: 0 13px; font-size: 12px; }
  .sm-search-form input[type="submit"] { min-width: 78px; padding: 0 12px; font-size: 11px; }
  .sm-live-search-link { grid-template-columns: 42px minmax(0,1fr) 12px; gap: 9px; padding: 8px; }
  .sm-live-search-thumb { width: 42px; height: 50px; }
  .sm-live-search-title { font-size: 13px; }
  .sm-live-search-excerpt { display: none; }
  .sm-article-layout { width: calc(100% - 28px); }
  .sm-article-content, .sm-entry-content { font-size: var(--sm-reading-font, 16px); line-height: 1.82; }
  .sm-reading-tools { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sm-reading-tools-actions { width: 100%; }
  .sm-reading-tools .sm-reading-reset { margin-left: auto; }
  .sm-toc-card summary { padding: 13px 14px; }
  .sm-toc-list { padding: 0 14px 15px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-primary-nav .sub-menu,
  .sm-submenu-toggle svg { transition: none; }
}
