/*
Theme Name: Diabetes Uruguay
Author: Sebastián Haro
Description: Portal de recursos con portada modular, lectura cómoda y navegación clara. Compatible con el editor clásico.
Version: 0.2.23
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diabetes-uruguay
Tags: custom-logo, custom-menu, featured-images
*/

:root {
    /* El sitio utiliza una paleta clara fija; evita el oscurecimiento automático. */
    color-scheme: only light;
    --du-ink: #152344;
    --du-muted: #526078;
    --du-blue: #075db4;
    --du-blue-hover: #034784;
    --du-border: #d8e2ec;
    --du-light: #edf6fd;
    --du-page: #f6f8fb;
    --du-surface: #ffffff;
    --du-yellow: #f9c62b;
    --du-radius: 16px;
    --du-radius-lg: 26px;
    --du-gap: clamp(52px, 5.4vw, 78px);
    --du-shadow: 0 12px 34px rgba(21, 35, 68, .07);
    --du-content-shell-width: 1000px; /* Same outer reading/collection width for pages, posts and archives. */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 28px; }
body { margin: 0; background: #fff; color: var(--du-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.6; }
img, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, select, textarea { max-width: 100%; border: 1px solid #8b9ab0; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--du-ink); }
a { color: var(--du-blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--du-blue-hover); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--du-blue); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--du-ink); line-height: 1.18; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 24px; font-weight: 760; }
h2 { font-size: clamp(25px, 2.7vw, 32px); margin: 0 0 24px; font-weight: 720; }
h3 { font-size: 21px; }
p { margin: 0 0 20px; }
.du-container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.du-icon { width: 24px; height: 24px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.du-skip { position: fixed; top: 10px; left: 14px; z-index: 1000; transform: translateY(-160%); background: #fff; padding: 12px 18px; border: 2px solid var(--du-blue); border-radius: 8px; }
.du-skip:focus { transform: none; }
.du-button, input[type="submit"], button[type="submit"] { display: inline-flex; gap: 12px; align-items: center; justify-content: center; border: 1px solid var(--du-blue); border-radius: 9px; background: var(--du-blue); color: #fff; text-decoration: none; font-weight: 680; padding: 13px 22px; min-height: 48px; line-height: 1.4; }
.du-button:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--du-blue-hover); border-color: var(--du-blue-hover); color: #fff; }
.du-text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; text-decoration: underline; line-height: 1.5; padding-block: 7px; min-height: 40px; }
.du-eyebrow { color: var(--du-blue); font-size: 14px; font-weight: 760; letter-spacing: .075em; text-transform: uppercase; margin-bottom: 16px; }
.du-intro { color: var(--du-muted); font-size: clamp(18px, 2vw, 20px); line-height: 1.6; max-width: 620px; margin-bottom: 30px; }

/* Header: explicit labels and progressively enhanced menus. */
.du-header { border-bottom: 1px solid #dce6ee; position: relative; z-index: 10; background: #f5f8fb; }
.du-header-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-block: 17px; }
.du-brand { flex: 0 0 auto; order: 1; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: 150px; height: auto; max-height: 64px; object-fit: contain; display: block; mix-blend-mode: multiply; }
.du-navigation { margin-left: auto; order: 2; }
.du-header-tools { display: flex; align-items: center; gap: 12px; order: 3; }
.du-menu, .du-menu ul { list-style: none; padding: 0; margin: 0; }
.du-menu { display: flex; gap: 20px; align-items: center; }
.du-menu li { position: relative; }
.du-menu a { color: var(--du-ink); font-size: 16px; font-weight: 640; text-decoration: none; display: inline-block; padding: 12px 0; }
.du-menu a:hover, .du-menu .current-menu-item > a, .du-menu .current-menu-ancestor > a { color: var(--du-blue); text-decoration: underline; }
.du-menu .sub-menu { background: #fff; padding: 12px; border: 1px solid var(--du-border); border-radius: 12px; min-width: 230px; }
.du-js .du-menu .sub-menu { display: none; position: absolute; top: 100%; right: 0; box-shadow: var(--du-shadow); }
.du-js .du-menu .is-open > .sub-menu { display: block; }
.du-menu .sub-menu a { display: block; padding: 11px 10px; }
.du-submenu-toggle { vertical-align: middle; width: 36px; min-height: 44px; background: transparent; border: 0; color: var(--du-blue); font-size: 18px; }
.du-toggle { display: none; }
.du-menu-toggle { border: 1px solid var(--du-border); border-radius: 9px; color: var(--du-ink); background: #fff; padding: 9px 12px; min-height: 48px; gap: 7px; align-items: center; font-size: 16px; }
.du-search { position: relative; }
.du-search summary { list-style: none; display: flex; align-items: center; gap: 7px; padding: 10px 7px; min-height: 48px; cursor: pointer; font-size: 16px; font-weight: 640; color: var(--du-ink); }
.du-search summary::-webkit-details-marker { display: none; }
.du-search[open] summary { color: var(--du-blue); }
.du-search-panel { position: absolute; width: min(480px, calc(100vw - 48px)); top: calc(100% + 14px); right: 0; background: #fff; border: 1px solid var(--du-border); padding: 20px; border-radius: 14px; box-shadow: var(--du-shadow); }
.du-search-form { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.du-search-form input[type="search"] { min-width: 0; width: 100%; flex: 1; }
.du-search-form .du-button { flex: 0 0 auto; }

/* Home modules: a mobile-first rhythm with clear visual grouping. */
.du-home { padding-top: clamp(30px, 3.5vw, 46px); padding-bottom: clamp(50px, 5vw, 72px); }
.du-module + .du-module { margin-top: var(--du-gap); }
.du-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: clamp(28px, 3.8vw, 44px); align-items: center; padding: clamp(24px, 3.2vw, 34px); border: 1px solid #d9e8f3; border-radius: 24px; background: linear-gradient(135deg, #f8fbfd 0%, #eef6fb 100%); overflow: hidden; }
.du-hero-copy { position: relative; z-index: 2; padding: 8px 4px 8px 10px; }
.du-hero h1 { max-width: 680px; font-size: clamp(34px, 4vw, 50px); margin-bottom: 20px; }
.du-hero .du-intro { margin-bottom: 24px; }
.du-hero-media { align-self: stretch; min-height: 286px; border-radius: 20px; overflow: hidden; background: #dbe8f3; }
.du-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.du-section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.du-section-heading h2 { margin-bottom: 0; }
.du-module-footer { display: flex; justify-content: flex-end; align-items: center; margin-top: 18px; }
.du-module-footer .du-text-link { flex-shrink: 0; font-size: 17px; }
.du-needs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.du-need { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(88, 111, 138, .11); border-radius: 18px; text-decoration: none; color: var(--du-ink); min-height: 0; overflow: hidden; box-shadow: 0 6px 18px rgba(21, 35, 68, .025); background: #fff; }
.du-need:hover { color: var(--du-ink); border-color: #a9c9e1; box-shadow: 0 11px 26px rgba(21, 35, 68, .065); }
.du-need-media { aspect-ratio: 1.72; overflow: hidden; background: var(--du-light); }
.du-need-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.du-need:hover .du-need-media img { transform: scale(1.03); }
.du-need-body { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 20px 20px 48px; flex: 1; }
.du-pastel-1 .du-need-body { background: #f3f9fd; }
.du-pastel-2 .du-need-body { background: #fffaf0; }
.du-pastel-3 .du-need-body { background: #f3faf5; }
.du-pastel-4 .du-need-body { background: #faf7fd; }
.du-need-copy { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.du-need strong { font-size: 18px; line-height: 1.3; }
.du-need-copy > span { font-size: 15.5px; line-height: 1.5; color: var(--du-muted); }
.du-need-arrow { position: absolute; bottom: 18px; right: 20px; color: var(--du-blue); }
.du-featured { background: transparent; border: 0; border-radius: 0; padding: 0; }
.du-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.du-card { border: 1px solid #dfe7ef; border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; background: #fff; min-width: 0; box-shadow: 0 7px 20px rgba(21, 35, 68, .035); }
.du-card-image { aspect-ratio: 1.72; overflow: hidden; background: var(--du-light); }
.du-card-image img { width: 100%; height: 100%; object-fit: cover; }
.du-card-placeholder { background: linear-gradient(145deg, #eaf5fd 0%, #f4f9fd 100%); height: 168px; display: grid; place-items: center; color: var(--du-blue); }
.du-card-placeholder .du-icon { width: 64px; height: 64px; stroke-width: 1.1; }
.du-card-content { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.du-card-title { font-size: 21px; margin: 0 0 12px; line-height: 1.27; }
.du-card-title a { color: var(--du-ink); text-decoration: none; }
.du-card-title a:hover { color: var(--du-blue); text-decoration: underline; }
.du-card-content p { color: var(--du-muted); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.du-card-content time { display: block; color: var(--du-muted); font-size: 16px; margin-bottom: 12px; }
.du-card-action { margin-top: 8px; align-self: flex-start; font-weight: 720; }
.du-family { background: #eef6fd; border: 1px solid #d3e5f3; padding: clamp(22px, 3vw, 26px); border-radius: var(--du-radius-lg); display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto; align-items: center; gap: 28px; overflow: hidden; }
.du-family-media { border-radius: 18px; overflow: hidden; min-height: 176px; background: #dfeaf3; }
.du-family-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.du-family-copy { flex: 1; }
.du-family h2 { font-size: clamp(24px, 2.5vw, 30px); margin-bottom: 12px; }
.du-family p { color: var(--du-muted); margin-bottom: 0; max-width: 720px; }
.du-family .du-button { font-size: 17px; flex-shrink: 0; }
.du-article-list { border: 1px solid #dde6ee; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: none; }
.du-article-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 24px; align-items: center; border-top: 1px solid #e4ebf1; }
.du-article-row:first-child { border-top: 0; }
.du-row-thumb { background: var(--du-light); border-radius: 12px; width: 150px; aspect-ratio: 1.62; overflow: hidden; }
.du-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.du-article-copy { min-width: 0; }
.du-article-row h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.du-article-row h3 a { color: var(--du-ink); text-decoration: none; }
.du-article-row h3 a:hover { text-decoration: underline; color: var(--du-blue); }
.du-article-row time { display: block; width: fit-content; color: #607089; font-size: 14px; font-weight: 680; line-height: 1.35; margin-top: 7px; }

.du-admin-help { background: #fff8df; border: 1px solid #e5d29c; border-radius: 12px; padding: 22px; margin-top: 48px; font-size: 17px; }

/* Reading templates and archives. */
/* Shared public content width: templates can choose shorter *text*, never a different title/box offset. */
.du-main, .du-home { width: min(var(--du-content-shell-width), calc(100% - 64px)); }
.du-main { padding-block: 54px 80px; min-height: 55vh; }
.du-breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; font-size: 16px; margin-bottom: 28px; width: 100%; }
.du-article-header, .du-list-header { width: 100%; }
.du-singular { width: 100%; max-width: none; margin: 0; }
.du-article-header { margin-bottom: 28px; }
.du-article-header h1, .du-list-header h1 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.18; margin: 0; }
.du-meta { font-size: 16px; color: var(--du-muted); margin: 0; }
.du-article-image { width: 86%; margin: 0 auto 40px; }
.du-article-image img { border-radius: 9px; display: block; width: 100%; height: auto; }
.du-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.du-reading-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
.du-toc { border: 1px solid var(--du-border); background: #f8fafc; padding: 20px; border-radius: 8px; font-size: 16px; position: static; }
.admin-bar .du-toc { top: 60px; }
.du-toc summary { font-weight: 700; cursor: pointer; min-height: 30px; }
.du-toc ol { list-style: none; padding: 0; margin: 16px 0 0; }
.du-toc li { margin: 0 0 12px; line-height: 1.45; }
.du-toc .du-toc-sub { padding-left: 12px; }
.du-toc a { display: inline-block; padding-block: 4px; }
.du-content { width: 100%; max-width: none; min-width: 0; margin-inline: 0; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
/* Text is measured for reading comfort, but begins at the SAME left edge as the H1.
   Wide content (grids, media, embeds, shortcodes) may use the full shared width. */
.du-content > :is(p, ul, ol, blockquote, h2, h3, h4) { max-width: 74ch; }
.du-content > p:has(.du-tarjetas-frame) { max-width: none; width: 100%; margin: 0; padding: 0; }
.du-content > :first-child { margin-top: 0; }
.du-content h2 { font-size: 26px; margin: 48px 0 20px; }
.du-content h3 { font-size: 22px; margin: 38px 0 16px; }
.du-content h4 { font-size: 20px; margin-top: 30px; }
.du-content p, .du-content ul, .du-content ol { margin-bottom: 24px; }
.du-content ul, .du-content ol { padding-left: 26px; }
.du-content li { padding-left: 4px; margin-bottom: 8px; }
.du-content img { height: auto; }
.du-singular .du-content > p > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.du-singular .du-content > p > a:only-child > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) { display: block; width: auto; max-width: 78%; height: auto; margin-inline: auto; }
.du-singular .du-content > p:has(> img:only-child),
.du-singular .du-content > p:has(> a:only-child > img:only-child) { margin-block: 36px; text-align: center; }
.du-singular .du-content > figure:has(img):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.du-singular .du-content > .wp-caption:not(.alignleft):not(.alignright) { width: 78% !important; max-width: 78%; margin: 38px auto; }
.du-singular .du-content > figure:has(img) img,
.du-singular .du-content > .wp-caption img { display: block; width: 100%; max-width: 100%; height: auto; margin-inline: auto; }
.du-singular + .du-comments { margin-inline: auto; max-width: 780px; }
.du-content figure { max-width: 100%; margin-inline: 0; }
.du-content iframe[src*="youtube"], .du-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.du-content blockquote { margin: 30px 0; padding: 20px 28px; border-left: 4px solid var(--du-blue); background: var(--du-light); }
.du-content blockquote p:last-child { margin-bottom: 0; }
.du-content hr { border: 0; border-top: 1px solid var(--du-border); margin: 36px 0; }
.du-content table { border-collapse: collapse; width: 100%; font-size: 18px; }
.du-content table.du-scroll-table { display: block; max-width: 100%; overflow-x: auto; }
.du-content th, .du-content td { border: 1px solid var(--du-border); text-align: left; padding: 12px 16px; }
.du-content th { background: var(--du-light); }
.du-table-wrap { max-width: 100%; overflow-x: auto; margin-bottom: 24px; }
.du-table-wrap table.du-scroll-table { display: table; max-width: none; }
.du-content pre { overflow-x: auto; max-width: 100%; padding: 20px; background: #f5f7fa; }
.du-content .alignleft { float: left; margin: 8px 24px 16px 0; }
.du-content .alignright { float: right; margin: 8px 0 16px 24px; }
.du-content .aligncenter { display: block; margin-inline: auto; }
.du-content .wp-caption { max-width: 100%; }
.du-content .wp-caption-text, .du-content figcaption { color: var(--du-muted); font-size: 16px; line-height: 1.5; margin-top: 10px; }
.du-content::after { content: ""; display: table; clear: both; }
.du-list-header { margin-bottom: 28px; max-width: none; }
.du-list-header > p, .du-list-header > .du-archive-description { max-width: 74ch; }
.du-catalog-intro { margin-bottom: 36px; }
.du-catalog-intro:empty { display: none; }
.du-empty { background: #f8fafc; border: 1px solid var(--du-border); border-radius: 8px; padding: 32px; max-width: 800px; }
.du-error { margin-inline: auto; }
.du-error .du-search-form { margin-block: 28px; }
/* Center pagination controls across article lists, category archives and search results. */
.du-pagination { margin-top: 42px; width: 100%; }
.du-pagination ul.page-numbers { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
/* paginate_links() also gives the UL the .page-numbers class: style only its actual links/spans. */
.du-pagination a.page-numbers, .du-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; min-height: 46px; border: 1px solid var(--du-border); border-radius: 6px; text-decoration: none; }
.du-pagination .current { background: var(--du-blue); color: #fff; border-color: var(--du-blue); }
.du-content-pages { margin-top: 28px; }
.du-edit-link { font-size: 16px; margin-top: 32px; }
.du-comments { max-width: 800px; margin-top: 64px; }
.du-comments ol { padding-left: 24px; }
.du-comments textarea { width: 100%; }
.du-comments .comment-form-comment label { display: block; }

/* Footer: deliberately compact so it closes the page without competing with content. */
.du-footer { margin-top: 0; min-height: 58px; padding-block: 14px; background: #13284a; color: #fff; display: flex; align-items: center; }
.du-footer-inner { display: flex; align-items: center; }
.du-footer-line { margin: 0; color: rgba(255, 255, 255, .84); font-size: 15px; line-height: 1.35; }
.du-footer-line strong { color: #fff; font-weight: 700; }

@media (max-width: 1080px) {
    .du-header-inner { gap: 20px; }
    .du-js .du-menu-toggle { display: inline-flex; }
    .du-header-tools { order: 2; margin-left: auto; }
    .du-navigation { order: 3; width: 100%; margin-left: 0; }
    .du-js .du-navigation { display: none; }
    .du-js .du-navigation.is-open { display: block; }
    .du-menu { align-items: stretch; gap: 0; flex-direction: column; border-top: 1px solid var(--du-border); padding-top: 14px; }
    .du-menu > li > a { padding: 14px 8px; font-size: 18px; }
    .du-submenu-toggle { width: 44px; }
    .du-js .du-menu .sub-menu { position: static; box-shadow: none; margin-bottom: 10px; }
    .du-hero { grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr); gap: 28px; }
    .du-needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .du-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .du-family { grid-template-columns: 280px minmax(0, 1fr); }
    .du-family .du-button { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
    .du-container { width: calc(100% - 40px); }
    .du-main, .du-home { width: calc(100% - 40px); }
    .du-header-inner { padding-block: 15px; gap: 14px; }
    .custom-logo { width: 150px; }
    .du-header-tools { gap: 8px; }
    .du-home { padding-top: 28px; padding-bottom: 64px; }
    .du-main { padding-block: 36px 54px; }
    .du-module + .du-module { margin-top: 64px; }
    .du-hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; border-radius: 20px; }
    .du-hero h1 { font-size: clamp(32px, 8.6vw, 42px); }
    .du-hero-copy { padding: 0; }
    .du-hero-media { min-height: 250px; }
    .du-section-heading { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 24px; }
    .du-featured { padding: 0; border-radius: 0; }
    .du-reading-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
    .du-toc, .admin-bar .du-toc { position: static; max-height: none; }
    .du-content { font-size: 17px; line-height: 1.55; }
    .du-article-header h1, .du-list-header h1 { font-size: 27px; line-height: 1.18; }
    .du-content h2 { font-size: 23px; line-height: 1.25; margin: 30px 0 14px; }
    .du-content h3 { font-size: 20px; line-height: 1.3; margin: 24px 0 12px; }
    .du-content h4 { font-size: 18px; margin: 22px 0 10px; }
    .du-content p, .du-content ul, .du-content ol { margin-top: 0; margin-bottom: 16px; }
    .du-content li { padding-left: 0; margin-bottom: 5px; }
    .du-content li > ul, .du-content li > ol { margin-top: 5px; margin-bottom: 8px; }
    .du-content li > p { margin-bottom: 8px; }
    .du-content ul, .du-content ol { padding-left: 22px; }
    .du-content li:last-child { margin-bottom: 0; }
    .du-content table { font-size: 16px; }
    .du-article-header { margin-bottom: 22px; }
    .du-reading-layout { gap: 22px; }
    .du-article-row { grid-template-columns: 126px minmax(0, 1fr); column-gap: 18px; padding: 20px 22px; }
    .du-row-thumb { width: 126px; border-radius: 10px; }
    .du-family { grid-template-columns: 1fr; padding: 28px; gap: 20px; border-radius: 22px; }
    .du-family-media { min-height: 190px; }
    .du-family h2 { font-size: 25px; }
    .du-family .du-button { grid-column: auto; }
    .du-article-image { width: 100%; margin-bottom: 30px; }
    .du-singular .du-content > p > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
    .du-singular .du-content > p > a:only-child > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) { max-width: 100%; }
    .du-singular .du-content > figure:has(img):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
    .du-singular .du-content > .wp-caption:not(.alignleft):not(.alignright) { width: 100% !important; max-width: 100%; margin-block: 28px; }
}
@media (max-width: 680px) {
    .du-needs-grid, .du-resource-grid { grid-template-columns: minmax(0, 1fr); }
    .du-needs-grid { gap: 16px; }
    .du-need-arrow { right: 20px; bottom: 18px; transform: none; }
    .du-card-content { padding: 24px; }
    .du-card-placeholder { height: 154px; }
}
@media (max-width: 520px) {
    .du-container { width: calc(100% - 32px); }
    .du-main, .du-home { width: calc(100% - 32px); }
    .du-header-inner { gap: 10px; }
    .custom-logo { width: 132px; }
    .du-menu-toggle { padding: 8px 10px; }
    .du-menu-toggle .du-icon { width: 20px; }
    .du-search summary { gap: 5px; padding-inline: 5px; }
    .du-search summary .du-icon { width: 21px; }
    .du-header-tools { gap: 6px; }
    .du-search-panel { position: fixed; top: auto; margin-top: 14px; left: 16px; right: 16px; width: auto; padding: 16px; }
    .du-search-form { flex-direction: column; }
    .du-search-form .du-button { align-self: stretch; }
    .du-hero { padding: 28px 22px; }
    .du-hero .du-button { width: 100%; }
    .du-featured { padding: 0; margin-inline: 0; }
    .du-hero-media { min-height: 220px; }
    .du-family { display: block; padding: 22px; }
    .du-family-media { min-height: 168px; margin-bottom: 18px; }
    .du-family-copy { margin-bottom: 22px; }
    .du-family .du-button { width: 100%; }
    .du-article-row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 18px; }
    .du-row-thumb { width: 104px; }
    .du-article-row h3 { font-size: 17px; }
    .du-footer { min-height: 54px; padding-block: 12px; }
    .du-footer-line { font-size: 14px; }
    .du-empty { padding: 24px; }
    .du-content .alignleft, .du-content .alignright { float: none; display: block; margin: 20px 0; }
}
@media (max-width: 360px) {
    .du-header-tools { margin-left: 0; width: 100%; justify-content: space-between; }
}


/* Home only: four recent posts in a two-by-two editorial grid. Keep archive listings unchanged. */
.du-latest .du-article-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.du-latest .du-article-row,
.du-latest .du-article-row:first-child {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 18px;
    min-height: 152px;
    border: 1px solid #dde6ee;
    border-radius: 15px;
    background: #fff;
}
.du-latest .du-row-thumb {
    width: 132px;
    aspect-ratio: 1.35;
    border-radius: 10px;
}
.du-latest .du-article-row h3 { font-size: 18px; line-height: 1.34; }
.du-latest .du-article-row time { margin-top: 9px; }
@media (max-width: 760px) {
    .du-latest .du-article-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .du-latest .du-article-row,
    .du-latest .du-article-row:first-child {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
        min-height: 0;
    }
    .du-latest .du-row-thumb { width: 112px; }
}
@media (max-width: 520px) {
    .du-latest .du-article-row,
    .du-latest .du-article-row:first-child {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
    }
    .du-latest .du-row-thumb { width: 104px; }
    .du-latest .du-article-row h3 { font-size: 17px; }
}
@media (max-width: 360px) {
    .du-latest .du-article-row,
    .du-latest .du-article-row:first-child {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .du-latest .du-row-thumb { width: 94px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
    .du-header-tools, .du-navigation, .du-footer, .du-toc, .du-edit-link, .du-comments, .du-admin-help { display: none !important; }
    .du-container { width: 100%; }
    .du-reading-layout.has-toc { display: block; }
    body, .du-content { font-size: 12pt; }
    .du-header { border: 0; }
    .du-header-inner { padding: 0 0 20px; }
    a { color: #000; }
    .du-card, .du-need { break-inside: avoid; }
}

/* 0.2.3 — Shared reading experience for guides and posts.
   Keep all outer templates at the standard 1000px, and center only the reading column. */
.du-singular--reading .du-article-header h1 { margin-bottom: 12px; }
.du-singular--reading .du-article-header { margin-bottom: 30px; }
.du-singular--reading .du-article-lead {
    max-width: 760px;
    margin: 0 0 15px;
    color: #526078;
    font-size: clamp(18px, 1.85vw, 21px);
    line-height: 1.53;
    font-weight: 400;
}
.du-singular--reading .du-article-header .du-meta { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: #66758a; }
.du-singular--reading .du-article-image {
    width: 75%;
    max-width: 750px;
    margin: 0 auto 36px;
}
.du-singular--reading .du-article-image img { width: 100%; height: auto; border-radius: 10px; }
.du-singular--reading .du-reading-layout,
.du-singular--reading .du-related {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}
.du-singular--reading .du-reading-layout.has-toc { grid-template-columns: minmax(0,1fr); }
.du-singular--reading .du-content { width: 100%; max-width: 100%; margin: 0; }
.du-singular--reading .du-content > :is(p,ul,ol,blockquote,h2,h3,h4) { max-width: none; }
.du-singular--reading .du-content > p > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.du-singular--reading .du-content > p > a:only-child > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) { max-width: 75%; width: auto; }
.du-singular--reading .du-content > figure:has(img):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.du-singular--reading .du-content > .wp-caption:not(.alignleft):not(.alignright) {
    width: 75% !important;
    max-width: 75%;
    margin: 34px auto;
}
.du-singular--reading .du-content > figure:has(img) img,
.du-singular--reading .du-content > .wp-caption img { width: 100%; max-width: 100%; height: auto; }
.du-singular--reading .du-content h2 { border-top: 1px solid #e0e8ef; padding-top: 21px; margin-top: 42px; margin-bottom: 14px; }
.du-singular--reading .du-content h3 { margin-top: 30px; }
.du-singular--reading .du-content > :first-child { margin-top: 0; }
.du-related { border-top: 1px solid var(--du-border); margin-top: 58px; padding-top: 25px; }
.du-related h2 { font-size: 23px; margin-bottom: 15px; }
.du-related ul { padding-left: 20px; margin: 0; }
.du-related li { padding: 5px 0; }
.du-singular--reading .du-edit-link { max-width: 760px; margin: 28px auto 0; }
.du-singular--wide .du-reading-layout { width: 100%; max-width: none; }
.du-singular--wide .du-article-header { margin-bottom: 26px; }
@media (max-width: 760px) {
    .du-singular--reading .du-article-header { margin-bottom: 24px; }
    .du-singular--reading .du-article-lead { font-size: 18px; line-height: 1.5; }
    .du-singular--reading .du-article-image { width: 100%; max-width: none; margin-bottom: 26px; }
    .du-singular--reading .du-content > p > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
    .du-singular--reading .du-content > p > a:only-child > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) { max-width: 100%; }
    .du-singular--reading .du-content > figure:has(img):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
    .du-singular--reading .du-content > .wp-caption:not(.alignleft):not(.alignright) { width: 100% !important; max-width: 100%; }
    .du-singular--reading .du-content h2 { margin-top: 31px; padding-top: 18px; }
}

/* 0.2.4 — Consistent, genuinely centered reading layouts for posts and pages.
   The outer 1000px shell remains unchanged; only the contents of reading
   templates are placed on a single 760px axis. Wide tools keep full width. */
.du-singular--reading .du-breadcrumb,
.du-singular--reading .du-article-header,
.du-singular--reading .du-reading-layout,
.du-singular--reading .du-related,
.du-singular--reading .du-edit-link {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.du-singular--reading .du-breadcrumb { margin-bottom: 28px; }
.du-singular--reading .du-article-header { margin-bottom: 28px; }
.du-singular--reading .du-article-lead { max-width: 100%; }
.du-singular--reading .du-article-image {
    width: 75%;
    max-width: 570px;
    margin: 0 auto 36px;
}
.du-singular--reading .du-article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
}
/* WordPress Classic Editor and Gutenberg images must respect the same reading
   column, without forcing a smaller source image to be stretched. */
.du-singular--reading .du-content > p > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.du-singular--reading .du-content > p > a:only-child > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
    width: auto;
    height: auto;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}
.du-singular--reading .du-content > figure:has(img):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.du-singular--reading .du-content > .wp-caption:not(.alignleft):not(.alignright) {
    width: 75% !important;
    max-width: 75%;
    margin: 34px auto;
}
.du-singular--reading .du-content > figure:has(img) img,
.du-singular--reading .du-content > .wp-caption img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}
.du-singular--reading .du-content :is(.alignwide,.alignfull) { max-width: 100%; }
@media (max-width: 760px) {
    .du-singular--reading .du-breadcrumb,
    .du-singular--reading .du-article-header,
    .du-singular--reading .du-reading-layout,
    .du-singular--reading .du-related,
    .du-singular--reading .du-edit-link { max-width: 100%; }
    .du-singular--reading .du-article-image { width: 100%; max-width: 100%; margin-bottom: 26px; }
    .du-singular--reading .du-content > p > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
    .du-singular--reading .du-content > p > a:only-child > img:only-child:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) { max-width: 100%; }
    .du-singular--reading .du-content > figure:has(img):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
    .du-singular--reading .du-content > .wp-caption:not(.alignleft):not(.alignright) { width: 100% !important; max-width: 100%; }
}

/* Travel guide cards — theme-native component; no editor HTML styling needed. */
.du-content .duv2-travel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 12px 0 34px;
  padding: 0;
}
.du-content .duv2-travel-card,
.du-content .duv2-travel-card:visited {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  min-width: 0;
  padding: 12px;
  margin: 0;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  color: var(--du-ink);
  text-decoration: none;
  box-shadow: none;
  line-height: 1.4;
}
.du-content .duv2-travel-card:hover,
.du-content .duv2-travel-card:focus-visible {
  background: #f3f8fc;
  border-color: #94b8d7;
  color: var(--du-ink);
}
.du-content .duv2-travel-card__image {
  display: block;
  width: 174px;
  height: 112px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  object-fit: cover;
}
.du-content .duv2-travel-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.du-content .duv2-travel-card__title {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--du-blue);
  text-decoration: none;
}
.du-content .duv2-travel-card__description {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #354562;
  text-decoration: none;
}
@media (max-width: 600px) {
  .du-content .duv2-travel-grid { gap: 10px; margin: 10px 0 28px; }
  .du-content .duv2-travel-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    align-items: center;
  }
  .du-content .duv2-travel-card__image {
    width: 116px;
    height: 96px;
  }
  .du-content .duv2-travel-card__body { gap: 4px; }
  .du-content .duv2-travel-card__title { font-size: 17px; line-height: 1.25; }
  .du-content .duv2-travel-card__description { font-size: 14px; line-height: 1.35; }
}
@media (max-width: 360px) {
  .du-content .duv2-travel-card { grid-template-columns: 94px minmax(0, 1fr); gap: 10px; padding: 9px; }
  .du-content .duv2-travel-card__image { width: 94px; height: 94px; }
  .du-content .duv2-travel-card__description { font-size: 13px; }
}

/* 0.2.6 — Featured image width and centered embeds across posts and pages. */
/* The 85% measurement is relative to the shared 760px reading column. */
.du-singular--reading .du-article-image {
    width: 85%;
    max-width: 646px;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress embeds, social embeds and raw iframe inserts; not the cards plugin. */
.du-singular .du-content > :is(
    .wp-block-embed, .wp-block-video, .wp-video, .jetpack-video-wrapper,
    .fluid-width-video-wrapper, .embed-container, .fb-post, .fb-video,
    .tiktok-embed, .instagram-media, .twitter-tweet
) {
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}
.du-singular .du-content > :is(
    .wp-block-embed, .wp-block-video, .wp-video, .jetpack-video-wrapper,
    .fluid-width-video-wrapper, .embed-container
) { text-align: center; }
.du-singular .du-content :is(
    blockquote.instagram-media, .instagram-media-rendered, blockquote.twitter-tweet,
    blockquote.tiktok-embed, .fb_iframe_widget, .fb-post, .fb-video
) {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.du-singular .du-content :is(.instagram-media, .twitter-tweet, .tiktok-embed, .fb_iframe_widget) {
    display: block !important;
    width: fit-content;
}
.du-singular .du-content .fb_iframe_widget span {
    max-width: 100% !important;
}
.du-singular .du-content > p:has(> iframe),
.du-singular .du-content > p:has(> :is(.fb-post, .fb-video, .fb_iframe_widget, .instagram-media, .twitter-tweet, .tiktok-embed)) {
    text-align: center;
}
.du-singular .du-content iframe:not([data-du-cards]) {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.du-singular .du-content .wp-block-embed__wrapper {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Preserve responsive full-width behavior on smaller screens. */
@media (max-width: 760px) {
    .du-singular--reading .du-article-image {
        width: 100%;
        max-width: 100%;
    }
}

/* 0.2.7 — hierarchical page breadcrumbs, including every WordPress parent. */
.du-breadcrumb [aria-current="page"] { color: var(--du-muted); overflow-wrap: anywhere; }

/* 0.2.8 — Travel hub: match the text measure to the travel-card width.
   The 74ch editorial measure is for reading pages, not this resource index.
   Scope to the travel hub; other wide shortcodes and articles are unchanged. */
.du-singular--travel-hub .du-content > :is(p, ul, ol, blockquote, h2, h3, h4) {
    max-width: 100%;
}

/* 0.2.9 — Catálogo: las páginas de herramientas y las entradas comparten el índice. */
.du-catalog { max-width: var(--du-content-shell-width); }
.du-catalog .du-catalog-intro { max-width: 800px; margin-bottom: 42px; }
.du-catalog-section + .du-catalog-section { margin-top: 50px; }
.du-catalog-section > h2 { font-size: clamp(23px, 2.6vw, 29px); margin-bottom: 23px; }
.du-resource-grid.du-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.du-catalog-grid .du-card-image { aspect-ratio: 1.9; }
.du-catalog-grid .du-card-content { padding: 24px; }
.du-catalog-grid .du-card-title { font-size: 21px; line-height: 1.32; }
.du-catalog-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.du-catalog-tool { display: flex; flex-direction: column; position: relative; min-width: 0; gap: 8px; border: 1px solid #dae7f1; background: #f7fafd; border-radius: 13px; padding: 22px 48px 23px 22px; text-decoration: none; color: var(--du-ink); }
.du-catalog-tool strong { font-size: 18px; line-height: 1.35; color: var(--du-blue); }
.du-catalog-tool > span:not(.du-catalog-tool-arrow) { font-size: 15.5px; line-height: 1.52; color: var(--du-muted); }
.du-catalog-tool-arrow { position: absolute; right: 22px; top: 21px; font-size: 23px; font-weight: 500; color: var(--du-blue); }
.du-catalog-tool:hover { background: #edf6fd; border-color: #a6c8e3; color: var(--du-ink); }
.du-catalog-tool:hover strong { text-decoration: underline; }
@media (max-width: 680px) {
  .du-resource-grid.du-catalog-grid, .du-catalog-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .du-catalog-section + .du-catalog-section { margin-top: 38px; }
  .du-catalog .du-catalog-intro { margin-bottom: 32px; }
  .du-catalog-tool { padding: 19px 44px 20px 19px; }
}

/* 0.2.10 — Resource catalog: the intro aligns with both columns of cards.
   Remove both the 800px wrapper cap and the 74ch editorial limit,
   without changing news, guides or other reading layouts. */
.du-catalog .du-catalog-intro { max-width: none; }
.du-catalog .du-catalog-intro > :is(p, ul, ol, blockquote, h2, h3, h4) { max-width: none; }

/* 0.2.17 — Instagram embeds: compact and centered in articles and pages.
   Instagram's embed.js injects an iframe with inline min-width / width / max-width.
   Keep its native height, interactions and attribution; never crop the widget.
   This change is deliberately limited to Instagram, not YouTube or other media. */
.du-singular .du-content :is(
    blockquote.instagram-media,
    iframe.instagram-media,
    iframe.instagram-media-rendered,
    iframe[src*="instagram.com/p/"],
    iframe[src*="instagram.com/reel/"],
    iframe[src*="instagram.com/tv/"]
) {
    display: block !important;
    box-sizing: border-box;
    width: min(100%, 360px) !important;
    min-width: 0 !important;
    max-width: 360px !important;
    margin: 30px auto !important;
}
/* Gutenberg embeds: the WordPress wrapper must not keep the previous wide layout. */
.du-singular .du-content .wp-block-embed-instagram,
.du-singular .du-content .wp-block-embed-instagram .wp-block-embed__wrapper {
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Inside small screens, never exceed the actual available column width. */
@media (max-width: 420px) {
    .du-singular .du-content :is(
        blockquote.instagram-media,
        iframe.instagram-media,
        iframe.instagram-media-rendered,
        iframe[src*="instagram.com/p/"],
        iframe[src*="instagram.com/reel/"],
        iframe[src*="instagram.com/tv/"]
    ) {
        max-width: 100% !important;
    }
    .du-singular .du-content .wp-block-embed-instagram,
    .du-singular .du-content .wp-block-embed-instagram .wp-block-embed__wrapper {
        max-width: 100% !important;
    }
}


/* 0.2.18 — Estadísticas HCEN: article-only editorial data presentation.
   All selectors are scoped to .du-data-article: no other page is restyled. */
.du-singular .du-content .du-data-article {
    --du-story-navy: #142c51;
    --du-story-blue: #075db4;
    --du-story-sky: #56b2df;
    --du-story-ice: #f0f7fc;
    --du-story-ink: #193352;
    --du-story-muted: #52657b;
    color: var(--du-story-ink);
    line-height: 1.65;
}
.du-data-article > p { margin: 0 0 22px; }
.du-singular--reading .du-content .du-data-article h2 {
    border-top: 1px solid #dce8f0;
    padding: 28px 0 0;
    margin: 50px 0 18px;
    font-size: clamp(24px, 3.2vw, 30px);
    line-height: 1.23;
}
.du-singular--reading .du-content .du-data-article h3 {
    margin: 32px 0 13px;
    font-size: clamp(19px, 2.5vw, 22px);
    line-height: 1.3;
}
.du-data-article p, .du-data-article li { overflow-wrap: anywhere; }
.du-data-article .du-data-eyebrow,
.du-data-article .du-data-kicker,
.du-data-article .du-data-stat__tag {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 780;
    letter-spacing: .095em;
    text-transform: uppercase;
}
/* Header with a big typographic number; no separate image needed. */
.du-data-article .du-data-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(205px, .9fr);
    overflow: hidden;
    margin: 27px 0 14px;
    color: #fff;
    background: #132f57;
    border-radius: 17px;
    box-shadow: 0 14px 28px rgba(11,48,91,.10);
}
.du-data-article .du-data-hero__main {
    padding: 30px 32px 27px;
    background: radial-gradient(circle at 97% 2%,rgba(78,154,221,.25),transparent 45%),linear-gradient(126deg,#123259,#0a4c86);
}
.du-data-article .du-data-hero .du-data-eyebrow { color: #c0e2fa; margin-bottom: 10px; }
.du-data-article .du-data-hero__number {
    color: #fff;
    font-size: clamp(42px,7.8vw,68px);
    font-weight: 820;
    line-height: 1.02;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
    margin: 0 0 13px;
    white-space: nowrap;
}
.du-data-article .du-data-hero__label { max-width: 350px; font-size: 17px; line-height: 1.43; font-weight: 620; color: #fff; margin: 0 0 24px; }
.du-data-article .du-data-hero__source { color: #c6d8e8; font-size: 12.5px; line-height: 1.45; margin: 0; }
.du-data-article .du-data-hero__side { display: grid; grid-template-rows: 1fr 1fr; }
.du-data-article .du-data-hero__mini { padding: 24px 24px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border-left: 1px solid rgba(255,255,255,.13); }
.du-data-article .du-data-hero__mini + .du-data-hero__mini { border-top: 1px solid rgba(255,255,255,.14); }
.du-data-article .du-data-hero__mini strong { color: #fff; font-size: clamp(23px,3vw,30px); line-height: 1.12; letter-spacing: -.04em; }
.du-data-article .du-data-hero__mini span { color: #d2e3ef; font-size: 13.5px; line-height: 1.46; }
.du-data-article .du-data-stats { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 23px; }
.du-data-article .du-data-stat { min-width:0; border:1px solid #d9e6f1; background: #f5f9fc; border-radius: 12px; padding: 19px 19px 17px; display:flex; flex-direction:column; gap: 7px; }
.du-data-article .du-data-stat__tag { color: #47739d; font-size: 10px; min-height: 29px; }
.du-data-article .du-data-stat strong { display:block; color:#135a9f; font-size: clamp(25px,3.4vw,32px); letter-spacing:-.035em; line-height:1.1; }
.du-data-article .du-data-stat > span:last-child { color:#3f5870; font-size: 13.5px; line-height: 1.38; }
/* Caveats get varied treatments without garish green/red dashboard boxes. */
.du-data-article .du-data-note { margin: 27px 0; padding: 18px 22px; border: 1px solid #d9e4eb; border-left: 4px solid #3174ac; border-radius: 0 11px 11px 0; background: #f7fafc; }
.du-data-article .du-data-note strong:first-child { display:block; font-size: 16.5px; line-height:1.45; margin-bottom: 7px; color:#153452; }
.du-data-article .du-data-note p { font-size: 15.5px; line-height:1.6; color:#425a70; margin:0; }
.du-data-article .du-data-note--important { border-left-color:#e5ae28; background:#fffaf0; border-color:#e9debf; border-left-width:4px; }
.du-data-article .du-data-note--warning { border-left-color:#dfad2d; background:#fffaf0; }
.du-data-article .du-data-note--neutral { border-left-color:#74a0bd; }
.du-data-article .du-data-method { border: 1px solid #e0e8f0; border-radius:14px; overflow:hidden; margin:24px 0 22px; }
.du-data-article .du-data-method__step { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items:start; gap:15px; padding:16px 19px; }
.du-data-article .du-data-method__step + .du-data-method__step { border-top: 1px solid #e0e8f0; }
.du-data-article .du-data-method__num { color:#4784b4; font-size:15px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1.55; }
.du-data-article .du-data-method strong { color:#193752; font-size:16px; }
.du-data-article .du-data-method p { font-size: 15px; color: #4d6177; line-height:1.55; margin:3px 0 0; }
.du-data-article .du-data-source-link { font-size:15px; font-weight:680; margin:18px 0 27px; }
.du-data-article .du-data-social { margin:29px auto 35px; text-align:center; border-top:1px solid #e3eaf2; padding:24px 0 0; }
.du-data-article .du-data-social__title { font-size: 13px; color: #52657b; letter-spacing: .04em; font-weight:750; margin:0 0 12px; }
.du-singular .du-content .du-data-social > blockquote.instagram-media { width:min(100%,360px)!important; max-width:360px!important; min-width:0!important; margin:10px auto!important; padding:0!important; border:0; background:#fff; }
/* Side-by-side comparable descriptions, explicitly NOT same denominator. */
.du-data-article .du-data-compare { display:grid; grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr); align-items:stretch; gap:10px; margin:26px 0 25px; }
.du-data-article .du-data-compare__item { min-width:0; background:#f2f7fc; border:1px solid #dce7f0; border-radius:13px; padding:20px 20px 17px; }
.du-data-article .du-data-compare__item:nth-child(3) { background:#f7f9fc; }
.du-data-article .du-data-kicker { color: #547697; font-size:11px; }
.du-data-article .du-data-compare__item > strong { display:block; font-size:38px; line-height:1.12; color:#115996; letter-spacing:-.04em; margin:9px 0 8px; }
.du-data-article .du-data-compare__item p { margin:0; font-size:14px; line-height:1.53; color:#4d6278; }
.du-data-article .du-data-compare__versus { font-size:27px; font-weight:750; align-self:center; text-align:center; color:#a2b0c0; }
/* Accessible horizontal bars: exact figures are visible in text next to each bar. */
.du-data-article .du-data-chart { margin:21px 0 22px; padding:23px 25px 19px; background:#f7fafc; border:1px solid #dce8f0; border-radius:13px; }
.du-data-article .du-data-bar + .du-data-bar { margin-top:19px; }
.du-data-article .du-data-bar__head { display:flex; justify-content:space-between; gap:10px; align-items:baseline; line-height:1.35; margin-bottom:7px; }
.du-data-article .du-data-bar__head strong { font-size:15px; font-weight:700; }
.du-data-article .du-data-bar__head > span { font-size:14px; color:#4b637a; text-align:right; font-variant-numeric:tabular-nums; }
.du-data-article .du-data-bar__track { width:100%; height:12px; border-radius:20px; overflow:hidden; background:#dce8f0; }
.du-data-article .du-data-bar__fill { display:block; height:100%; border-radius:20px; }
.du-data-article .du-data-bar__fill--blue { background:#136cae; }
.du-data-article .du-data-bar__fill--sky { background:#62abd4; }
.du-data-article .du-data-bar__fill--gray { background:#91a5b7; }
.du-data-article .du-data-chart__caption { margin:14px 0 0; color:#68798a; font-size:13px; line-height:1.48; }
/* Age emphasis includes explicitly overlapping age groups; not a stacked graph. */
.du-data-article .du-data-age { display:grid; grid-template-columns:1.12fr 1fr; border:1px solid #dce7f0; overflow:hidden; border-radius:13px; margin:22px 0 20px; }
.du-data-article .du-data-age__feature { padding:26px 25px; background:linear-gradient(130deg,#eaf5fc,#dff0fb); display:flex; flex-direction:column; justify-content:center; }
.du-data-article .du-data-age__feature > span { font-size:14px; line-height:1.4; font-weight:700; color:#365c7c; }
.du-data-article .du-data-age__feature strong { font-size:clamp(31px,4.8vw,46px); line-height:1.18; letter-spacing:-.04em; font-variant-numeric:tabular-nums; color:#0d5795; margin:5px 0 1px; }
.du-data-article .du-data-age__feature em { font-size:16px; font-style:normal; font-weight:700; color:#406b8b; }
.du-data-article .du-data-age__side { display:grid; grid-template-rows:1fr 1fr; background:#fafcfe; }
.du-data-article .du-data-age__side > div { display:flex; flex-direction:column; justify-content:center; padding:16px 24px; }
.du-data-article .du-data-age__side > div + div { border-top:1px solid #dce8ef; }
.du-data-article .du-data-age__side strong { font-size:23px; line-height:1.15; color:#205d8a; font-variant-numeric:tabular-nums; }
.du-data-article .du-data-age__side span { font-size:13.5px; line-height:1.4; color:#53677b; margin-top:3px; }
.du-data-article .du-data-compact-table { margin:22px 0 23px; border:1px solid #dce7ef; border-radius:12px; padding:18px 20px 14px; background:#fff; overflow-x:auto; }
.du-data-article .du-data-table-title { color:#284b68; font-size:15px; font-weight:720; margin:0 0 12px; }
.du-data-article .du-data-compact-table table { width:100%; font-size:14px; border-collapse:collapse; }
.du-data-article .du-data-compact-table :is(th,td) { padding:9px 12px; border:0; border-bottom:1px solid #e7edf3; text-align:left; }
.du-data-article .du-data-compact-table th { color:#526b83; font-size:12px; background:#f5f8fa; font-weight:730; }
.du-data-article .du-data-compact-table td:nth-child(even) { font-variant-numeric:tabular-nums; font-weight:700; }
/* Three proportional segments and explicit labeled counts. */
.du-data-article .du-data-type { padding:25px; border:1px solid #d9e6ef; border-radius:13px; background:#f8fbfd; margin:21px 0 25px; }
.du-data-article .du-data-type__strip { height:22px; display:flex; overflow:hidden; border-radius:6px; width:100%; background:#dae5ef; }
.du-data-article .du-data-type__strip span { height:100%; display:block; }
.du-data-article .du-data-type__t1 { background:#0d5ca8; }
.du-data-article .du-data-type__t2 { background:#65b1dd; }
.du-data-article .du-data-type__unknown { background:#e3b74d; }
.du-data-article .du-data-type__legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:18px; }
.du-data-article .du-data-type__legend > div { position:relative; padding-left:17px; display:flex; flex-direction:column; gap:3px; }
.du-data-article .du-data-type__dot { position:absolute; top:5px; left:0; width:10px; height:10px; border-radius:3px; }
.du-data-article .du-data-type__dot--t1 { background:#0d5ca8; }
.du-data-article .du-data-type__dot--t2 { background:#65b1dd; }
.du-data-article .du-data-type__dot--unknown { background:#e3b74d; }
.du-data-article .du-data-type__legend strong { font-size:22px; line-height:1.2; letter-spacing:-.025em; color:#173854; font-variant-numeric:tabular-nums; }
.du-data-article .du-data-type__legend span:last-child { font-size:13px; line-height:1.4; color:#53687d; }
/* Methodological limitations, applied to boxes instead of nested bullet lists. */
.du-data-article .du-data-limits { display:grid; gap:12px; margin:25px 0; }
.du-data-article .du-data-limit { display:grid; grid-template-columns:37px minmax(0,1fr); gap:13px; border:1px solid #dce6ef; border-radius:12px; padding:19px 20px; }
.du-data-article .du-data-limit > span { display:block; color:#3275ac; font-weight:800; font-size:17px; line-height:1.4; }
.du-singular--reading .du-content .du-data-article .du-data-limit h3 { margin:0 0 6px; font-size:18px; border:0; padding:0; }
.du-data-article .du-data-limit p { margin:0; font-size:15px; line-height:1.57; color:#4d6174; }
.du-data-article .du-data-impact, .du-data-article .du-data-next { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin:25px 0; }
.du-data-article .du-data-impact > div { padding:23px; border:1px solid #dbe7ef; border-radius:13px; background:#f4f9fc; }
.du-data-article .du-data-impact > div > span { color:#3679b1; font-size:13px; font-weight:800; letter-spacing:.04em; }
.du-singular--reading .du-content .du-data-article .du-data-impact h3 { margin:9px 0; font-size:18px; line-height:1.34; }
.du-data-article .du-data-impact p { font-size:14.5px; line-height:1.56; color:#48647b; margin:0; }
.du-data-article .du-data-next > div { border:1px solid #dae5ed; border-left:3px solid #6aa5ce; border-radius:3px 11px 11px 3px; padding:19px 20px; }
.du-data-article .du-data-next strong { font-size:16px; line-height:1.45; color:#214864; }
.du-data-article .du-data-next p { font-size:14.5px; line-height:1.5; color:#4d6278; margin:6px 0 0; }
.du-data-article .du-data-ending { margin:49px 0 5px; background:#153757; padding:30px 34px 28px; border-radius:14px; color:#fff; }
.du-data-article .du-data-ending .du-data-eyebrow { color:#bbd9ec; }
.du-singular--reading .du-content .du-data-article .du-data-ending h2 { color:#fff; border:0; padding:0; margin:10px 0 16px; font-size:clamp(23px,3vw,29px); }
.du-data-article .du-data-ending p { color:#e2eef6; font-size:16px; line-height:1.63; margin:0 0 13px; }
.du-data-article .du-data-ending p:last-child { margin-bottom:0; }
.du-data-article .du-data-ending strong { color:#fff; }
@media (max-width:620px) {
    .du-data-article .du-data-hero { grid-template-columns:1fr; }
    .du-data-article .du-data-hero__main { padding:25px 24px; }
    .du-data-article .du-data-hero__number { font-size:clamp(43px,11vw,59px); }
    .du-data-article .du-data-hero__side { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
    .du-data-article .du-data-hero__mini { padding:16px 20px; border-left:0; border-top:1px solid rgba(255,255,255,.15); }
    .du-data-article .du-data-hero__mini + .du-data-hero__mini { border-left:1px solid rgba(255,255,255,.15); }
    .du-data-article .du-data-hero__mini strong { font-size:21px; }
    .du-data-article .du-data-stats { grid-template-columns:1fr 1fr; gap:9px; }
    .du-data-article .du-data-stat { padding:16px; }
    .du-data-article .du-data-stat:last-child { grid-column:1 / -1; }
    .du-data-article .du-data-stat__tag { min-height:0; }
    .du-data-article .du-data-compare { grid-template-columns:1fr; gap:0; }
    .du-data-article .du-data-compare__versus { line-height:1.25; padding:8px 0; }
    .du-data-article .du-data-age { grid-template-columns:1fr; }
    .du-data-article .du-data-age__side { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
    .du-data-article .du-data-age__side > div { padding:17px; }
    .du-data-article .du-data-age__side > div + div { border-top:0; border-left:1px solid #dce8ef; }
    .du-data-article .du-data-impact, .du-data-article .du-data-next { grid-template-columns:1fr; gap:10px; }
}
@media (max-width:430px) {
    .du-data-article .du-data-hero__mini { padding:16px; }
    .du-data-article .du-data-hero__mini strong { font-size:19px; }
    .du-data-article .du-data-hero__mini span { font-size:12.5px; }
    .du-data-article .du-data-stats { grid-template-columns:1fr; }
    .du-data-article .du-data-stat:last-child { grid-column:auto; }
    .du-data-article .du-data-stat { gap:4px; }
    .du-data-article .du-data-age__side { grid-template-columns:1fr; }
    .du-data-article .du-data-age__side > div + div { border-top:1px solid #dce8ef; border-left:0; }
    .du-data-article .du-data-type { padding:18px 16px; }
    .du-data-article .du-data-type__legend { grid-template-columns:1fr; gap:13px; }
    .du-data-article .du-data-note { padding:16px 17px; }
    .du-data-article .du-data-chart { padding:20px 17px; }
    .du-data-article .du-data-bar__head { align-items:flex-start; }
    .du-data-article .du-data-bar__head :is(strong,span) { font-size:13.5px; }
    .du-data-article .du-data-ending { padding:26px 22px; }
    .du-data-article .du-data-compact-table { padding:12px; }
    .du-data-article .du-data-compact-table :is(th,td) { padding:8px 6px; }
}

/* 0.2.19: The Classic Editor may drop the outer rich-article wrapper.
   Detect this specific data feature server-side and restore its styling scope
   on the WordPress template's .du-content element (see singular.php). */
.du-singular .du-content.du-data-article {
    --du-story-navy: #142c51;
    --du-story-blue: #075db4;
    --du-story-sky: #56b2df;
    --du-story-ice: #f0f7fc;
    --du-story-ink: #193352;
    --du-story-muted: #52657b;
    color: var(--du-story-ink);
    line-height: 1.65;
}
.du-content.du-data-article .du-data-hero > p:empty,
.du-content.du-data-article .du-data-stats > p:empty,
.du-content.du-data-article .du-data-compare > p:empty,
.du-content.du-data-article .du-data-type > p:empty,
.du-content.du-data-article .du-data-age > p:empty { display: none; }

/* 0.2.20 — Editor clásico: el HTML de tarjetas numeradas puede quedar
   sin sus DIV interiores. Un grid de dos columnas ponía entonces todo el
   texto en su pista de 36/37 px. Apilamos número, título y descripción,
   sin depender de contenedores adicionales dentro de cada tarjeta. */
.du-singular--reading .du-content .du-data-method__step,
.du-singular--reading .du-content .du-data-limit {
    display: block;
    grid-template-columns: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.du-singular--reading .du-content .du-data-method__num,
.du-singular--reading .du-content .du-data-limit > span {
    display: block;
    margin: 0 0 8px;
    width: auto;
    max-width: none;
    line-height: 1.4;
}
.du-singular--reading .du-content .du-data-method__step :is(strong, h3, p),
.du-singular--reading .du-content .du-data-limit :is(strong, h3, p) {
    width: auto;
    min-width: 0;
    max-width: none;
    word-break: normal;
    overflow-wrap: break-word;
}
.du-singular--reading .du-content .du-data-method__step > :is(p, div),
.du-singular--reading .du-content .du-data-limit > :is(p, div) {
    margin-inline: 0;
}
/* Neutralize article-base heading margins if the editor promotes an H3
   into a direct child of the numbered card. */
.du-singular--reading .du-content .du-data-method__step h3,
.du-singular--reading .du-content .du-data-limit h3 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 18px;
    line-height: 1.4;
}
