/* Com Marília Portal v0.4 — extended page system */

.cm-has-sticky-header .cm-site-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0);
  z-index: 60;
  background: rgba(7,17,31,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(150,172,207,.1);
}
.cm-system-fonts, .cm-system-fonts * { font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; }
.cm-reading-container { width: min(100%, var(--cm-reading-width, 840px)); }
.cm-home-grid--no-sidebar { grid-template-columns: minmax(0,1fr); }
.cm-home-grid--no-sidebar .cm-home-primary { max-width: 1280px; margin-inline: auto; }
.cm-notification-link { position: relative; }
.cm-notification-link b { position: absolute; top: -8px; left: 14px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; color: white; background: var(--cm-accent); border-radius: 999px; font-size: .62rem; }

.cm-kicker { display: block; margin-bottom: 8px; color: var(--cm-accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cm-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0 22px; color: #8492a7; font-size: .76rem; }
.cm-breadcrumbs a:hover { color: var(--cm-accent); }
.cm-breadcrumbs i { color: var(--cm-accent); font-style: normal; }
.cm-button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cm-layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); gap: 24px; align-items: start; }
.cm-layout-main { min-width: 0; }
.cm-layout-sidebar { display: grid; gap: 16px; position: sticky; top: 20px; }
.cm-interest-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cm-interest-links a { display: block; padding: 10px 12px; color: #c5cfde; background: rgba(255,255,255,.025); border: 1px solid rgba(150,172,207,.11); border-radius: 9px; }
.cm-interest-links a:hover { color: var(--cm-accent); border-color: rgba(255,90,42,.45); }

/* Advertising slots */
.cm-ad-slot { position: relative; margin-block: 16px; overflow: hidden; border: 1px solid rgba(255,90,42,.65); border-radius: var(--cm-radius); background: linear-gradient(135deg,rgba(48,21,11,.82),rgba(10,22,37,.96)); }
.cm-ad-slot > .cm-ad-label { position: absolute; z-index: 3; top: 0; left: 50%; margin: 0; padding: 3px 10px; transform: translate(-50%,-50%); background: var(--cm-bg); border-radius: 99px; }
.cm-ad-slot .cm-widget { margin: 0; }
.cm-ad-slot img { width: 100%; height: auto; }
.cm-ad-fallback { display: grid; min-height: 96px; place-content: center; gap: 4px; padding: 18px; text-align: center; background: radial-gradient(circle at 15% 130%,rgba(255,90,42,.34),transparent 45%),linear-gradient(110deg,#3a150b,#142238 65%,#341205); }
.cm-ad-fallback strong { font-family: Poppins,sans-serif; font-size: clamp(1.2rem,2.3vw,2rem); letter-spacing: .05em; text-transform: uppercase; }
.cm-ad-fallback span { color: #d8dee8; font-size: .8rem; }
.cm-ad-fallback small { color: #8c9aae; font-size: .6rem; }
.cm-ad-slot--wide { width: 100%; }
.cm-ad-slot--in-feed { margin: 0; }
.cm-ad-slot--inside-content { margin: 34px 0; }
.cm-header-ad .cm-ad-slot { height: 62px; margin: 0; border-radius: 5px; }
.cm-header-ad .cm-ad-fallback { min-height: 60px; padding: 8px; grid-auto-flow: column; align-items: center; justify-content: center; gap: 22px; }
.cm-header-ad .cm-ad-fallback strong { font-size: .92rem; }
.cm-header-ad .cm-ad-fallback span { font-size: .68rem; }
.cm-header-ad .cm-ad-fallback small { display: none; }

/* Generic page hero */
.cm-page-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: end; padding: 34px 0 28px; }
.cm-page-hero h1, .cm-search-header h1, .cm-commercial-hero h1 { margin: 0; font-family: Poppins,sans-serif; font-size: clamp(2.5rem,5vw,5.2rem); line-height: .98; letter-spacing: -.055em; }
.cm-page-hero p { max-width: 620px; color: #aab5c5; font-size: 1.05rem; }
.cm-page-hero form { display: flex; align-items: center; gap: 8px; }
.cm-page-hero input[type=search] { width: 100%; min-height: 54px; padding: 0 20px; color: white; background: var(--cm-surface); border: 1px solid var(--cm-border); border-radius: 999px; }
.cm-page-hero input[type=submit] { min-height: 54px; padding: 0 22px; color: white; background: var(--cm-accent); border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }
.cm-topic-filter { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 22px; scrollbar-width: none; }
.cm-topic-filter::-webkit-scrollbar { display: none; }
.cm-topic-filter a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 20px; color: #c1cbd9; border: 1px solid var(--cm-border-soft); border-radius: 999px; white-space: nowrap; }
.cm-topic-filter a:hover, .cm-topic-filter a.is-active { color: white; background: var(--cm-accent); border-color: var(--cm-accent); }

/* Explore */
.cm-story-circles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px,1fr); gap: 18px; overflow-x: auto; padding: 10px 2px 18px; scrollbar-width: none; }
.cm-story-circle { min-width: 0; text-align: center; }
.cm-story-circle__image { display: block; aspect-ratio: 1; padding: 4px; overflow: hidden; border: 2px solid var(--cm-accent); border-radius: 50%; background: linear-gradient(145deg,var(--cm-accent),#ff9b24); }
.cm-story-circle__image img, .cm-story-circle__image i { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cm-story-circle small { display: inline-block; margin-top: 10px; padding: 3px 6px; color: white; background: var(--cm-accent); border-radius: 4px; font-size: .54rem; font-weight: 800; text-transform: uppercase; }
.cm-story-circle strong { display: -webkit-box; margin-top: 7px; overflow: hidden; font-size: .82rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.cm-story-circle em { color: #8491a3; font-size: .65rem; font-style: normal; }
.cm-category-discovery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.cm-category-card { position: relative; min-height: 280px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); }
.cm-category-card a, .cm-category-card__media { position: absolute; inset: 0; }
.cm-category-card__media img, .cm-category-card__media .cm-image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cm-category-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(3,8,15,.98),rgba(3,8,15,.12) 70%); }
.cm-category-card__body { position: absolute; z-index: 2; inset: auto 18px 18px; }
.cm-category-card h3 { margin: 9px 0 4px; font-size: 1.1rem; line-height: 1.2; }
.cm-category-card p { margin: 0; color: #8e9bad; font-size: .72rem; }
.cm-editorial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.cm-editorial-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); background: var(--cm-surface); }
.cm-editorial-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.cm-editorial-card__media img, .cm-editorial-card__media .cm-image-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cm-editorial-card:hover img { transform: scale(1.035); }
.cm-editorial-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(4,10,18,.98),rgba(4,10,18,.12) 72%); }
.cm-editorial-card__body { position: absolute; z-index: 2; inset: auto 16px 16px; padding-right: 28px; }
.cm-editorial-card h3 { margin: 8px 0 3px; font-size: 1rem; line-height: 1.2; }
.cm-editorial-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #aab5c5; font-size: .72rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cm-editorial-card .cm-card-bookmark { right: 8px; bottom: 7px; }

/* Category pages */
.cm-category-hero { position: relative; min-height: 260px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); background: linear-gradient(120deg,#0d1b2e,#17273b); }
.cm-category-hero::before { position: absolute; inset: 0; opacity: .18; background: radial-gradient(circle at 80% 40%,var(--cm-accent),transparent 35%); content: ""; }
.cm-category-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,12,21,.98),rgba(5,12,21,.15)); }
.cm-category-hero__content { position: relative; z-index: 2; width: min(740px,75%); padding: clamp(30px,5vw,64px); }
.cm-category-hero h1 { margin: 0; font-family: Poppins,sans-serif; font-size: clamp(2.4rem,4.8vw,4.8rem); line-height: 1; letter-spacing: -.05em; }
.cm-category-hero p, .cm-category-hero .cm-archive-description { color: #aeb8c7; }
.cm-category-featured { position: relative; display: grid; grid-template-columns: 1.45fr .9fr; min-height: 390px; overflow: hidden; border: 1px solid rgba(255,90,42,.7); border-radius: var(--cm-radius); background: var(--cm-surface); }
.cm-category-featured__media { position: relative; min-height: 100%; }
.cm-category-featured__media img, .cm-category-featured__media .cm-image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cm-category-featured__shade { position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(5,12,21,.38)); }
.cm-category-featured__body { display: grid; align-content: center; padding: clamp(24px,4vw,48px); }
.cm-category-featured h2 { margin: 12px 0; font-size: clamp(1.8rem,3vw,3rem); line-height: 1.05; }
.cm-category-featured p { color: #aeb8c7; }
.cm-category-featured .cm-card-bookmark { right: 15px; bottom: 15px; }
.cm-story-grid--compact { grid-auto-columns: minmax(125px,1fr); }
.cm-archive-grid--category { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cm-author-hero { display: flex; align-items: center; gap: 22px; padding: 34px 0; }
.cm-author-hero img { border: 3px solid var(--cm-accent); border-radius: 50%; }
.cm-author-hero h1 { margin: 0; font-size: clamp(2.2rem,4vw,4rem); }
.cm-author-hero p { max-width: 760px; color: #a7b2c2; }

/* Search */
.cm-search-header { padding: 26px 0 18px; }
.cm-search-header h1 { margin-bottom: 22px; font-size: clamp(2rem,4vw,4rem); }
.cm-search-header h1::first-letter { color: inherit; }
.cm-search-large { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border: 1px solid var(--cm-accent); border-radius: 12px; background: var(--cm-surface); box-shadow: 0 10px 28px rgba(255,90,42,.08); }
.cm-search-large input { flex: 1; min-height: 60px; color: white; background: transparent; border: 0; outline: 0; font-size: 1.05rem; }
.cm-search-large button { min-height: 42px; padding: 0 22px; color: white; background: var(--cm-accent); border: 0; border-radius: 9px; font-weight: 800; cursor: pointer; }
.cm-search-tabs, .cm-favorites-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 6px; scrollbar-width: none; }
.cm-search-tabs a, .cm-favorites-tabs button { min-height: 38px; padding: 0 20px; color: #c0cad9; background: rgba(255,255,255,.04); border: 1px solid var(--cm-border-soft); border-radius: 999px; white-space: nowrap; cursor: pointer; }
.cm-search-tabs a.is-active, .cm-favorites-tabs button.is-active { color: white; background: var(--cm-accent); border-color: var(--cm-accent); }
.cm-search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 14px; color: #9ba8ba; font-size: .78rem; }
.cm-search-toolbar form { display: flex; align-items: center; gap: 8px; }
.cm-search-toolbar select { padding: 8px 12px; color: white; background: var(--cm-surface); border: 1px solid var(--cm-border); border-radius: 8px; }
.cm-search-results-list, .cm-favorites-list, .cm-event-list { display: grid; gap: 10px; }
.cm-search-result { position: relative; display: grid; grid-template-columns: minmax(220px,32%) 1fr; min-height: 190px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); background: rgba(13,25,43,.78); }
.cm-search-result__media { position: relative; min-height: 100%; }
.cm-search-result__media img, .cm-search-result__media .cm-image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cm-search-result__media .cm-badge { position: absolute; left: 14px; bottom: 14px; }
.cm-search-result__body { display: grid; align-content: center; padding: 24px 54px 24px 24px; }
.cm-search-result h2 { margin: 0 0 8px; font-size: clamp(1.15rem,2vw,1.55rem); line-height: 1.15; }
.cm-search-result p { margin: 0 0 12px; color: #aab5c5; }
.cm-search-result .cm-card-bookmark { right: 13px; bottom: 13px; }
.cm-empty-state--large { padding: 70px 24px; border: 1px dashed var(--cm-border); border-radius: var(--cm-radius); text-align: center; }

/* Favorites */
.cm-page-favorites .cm-archive-header { padding-top: 26px; }
.cm-favorite-item { position: relative; display: grid; grid-template-columns: 30% 1fr; min-height: 170px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); background: var(--cm-surface); }
.cm-favorite-item img { width: 100%; height: 100%; object-fit: cover; }
.cm-favorite-item__body { display: grid; align-content: center; padding: 20px 72px 20px 22px; }
.cm-favorite-item__body small { color: var(--cm-accent); font-weight: 800; text-transform: uppercase; }
.cm-favorite-item__body h3 { margin: 7px 0; font-size: 1.15rem; }
.cm-favorite-item__body p { margin: 0; color: #8f9caf; font-size: .72rem; }
.cm-favorite-item button { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; width: 42px; height: 42px; place-items: center; color: var(--cm-accent); background: transparent; border: 1px solid var(--cm-border); border-radius: 50%; cursor: pointer; }

/* Commercial page */
.cm-commercial-hero { display: grid; grid-template-columns: 1.35fr .8fr; gap: 28px; align-items: center; padding: 24px 0 30px; }
.cm-commercial-hero h1 { margin: 16px 0; }
.cm-commercial-hero p { max-width: 740px; color: #aab5c5; font-size: 1.15rem; }
.cm-audience-panel, .cm-commercial-benefits, .cm-ad-format-grid article { border: 1px solid var(--cm-border); border-radius: var(--cm-radius); background: linear-gradient(145deg,rgba(14,28,47,.96),rgba(8,18,32,.96)); }
.cm-audience-panel { padding: 22px; }
.cm-audience-panel h2, .cm-commercial-benefits h2 { margin-top: 0; font-size: .9rem; text-transform: uppercase; }
.cm-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-metric-grid article { display: grid; padding: 16px; border: 1px solid rgba(150,172,207,.14); border-radius: 12px; background: rgba(255,255,255,.025); }
.cm-metric-grid strong { color: white; font-family: Poppins,sans-serif; font-size: 1.7rem; }
.cm-metric-grid span { color: #9aa7b9; font-size: .72rem; }
.cm-ad-format-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.cm-ad-format-grid article { padding: 20px; }
.cm-ad-format-grid article > span { color: var(--cm-accent); }
.cm-ad-format-grid h3 { margin: 12px 0 0; }
.cm-ad-format-grid strong { color: var(--cm-accent); font-size: .78rem; }
.cm-ad-format-grid p { color: #aab5c5; font-size: .76rem; }
.cm-format-demo { height: 112px; margin-top: 18px; border: 1px solid rgba(150,172,207,.18); border-radius: 10px; background: linear-gradient(90deg,#1b2a3f,#0f1b2d); }
.cm-format-demo::before { display: block; width: 72%; height: 16px; margin: 16px; background: var(--cm-accent); border-radius: 3px; content: ""; }
.cm-format-demo--card::before { width: 45%; height: 65px; margin-left: auto; }
.cm-format-demo--native::before { width: 38%; height: 42px; margin: 50px 12px 12px auto; }
.cm-format-demo--story { width: 64px; height: 112px; margin-inline: auto; }
.cm-format-demo--story::before { width: 40px; height: 12px; margin: 14px auto; }
.cm-commercial-benefits { display: grid; grid-template-columns: 1fr .75fr; gap: 28px; margin-top: 22px; padding: 24px; }
.cm-commercial-benefits ul { columns: 2; margin: 0; padding: 0; list-style: none; }
.cm-commercial-benefits li { margin: 9px 0; }
.cm-commercial-benefits li::before { margin-right: 9px; color: var(--cm-accent); content: "✓"; }
.cm-commercial-cta { padding: 24px; color: white; background: linear-gradient(135deg,var(--cm-accent),#ff7a24); border-radius: var(--cm-radius); text-align: center; }
.cm-commercial-cta .cm-primary-button { color: white; background: var(--cm-bg-deep); }

/* Agenda */
.cm-agenda-hero { position: relative; min-height: 420px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); }
.cm-agenda-hero__media, .cm-agenda-hero__media img, .cm-agenda-hero__media .cm-image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-agenda-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,10,18,.98),rgba(4,10,18,.6) 48%,rgba(4,10,18,.12)); }
.cm-agenda-hero__body { position: relative; z-index: 2; width: min(650px,65%); padding: clamp(28px,5vw,60px); }
.cm-agenda-hero h1 { margin: 14px 0; font-size: clamp(2rem,4vw,4.2rem); line-height: 1.02; }
.cm-agenda-hero p { color: #c1cad6; }
.cm-event-facts { display: flex; flex-wrap: wrap; gap: 16px; color: #d6dce6; font-size: .82rem; }
.cm-event-facts span { display: inline-flex; align-items: center; gap: 7px; }
.cm-event-facts .cm-icon { color: var(--cm-accent); }
.cm-agenda-calendar { margin: 16px 0; padding: 18px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); background: var(--cm-surface); }
.cm-agenda-calendar__head { display: flex; align-items: center; justify-content: space-between; }
.cm-agenda-calendar__head button { color: white; background: transparent; border: 0; font-size: 1.8rem; cursor: pointer; }
.cm-agenda-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; margin: 16px 0; text-align: center; }
.cm-agenda-days span { color: #8e9bad; font-size: .65rem; }
.cm-agenda-days button { aspect-ratio: 1; max-width: 42px; margin: auto; color: white; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.cm-agenda-days button.is-active { background: var(--cm-accent); }
.cm-event-card { position: relative; display: grid; grid-template-columns: 62px 110px 1fr; align-items: center; gap: 14px; min-height: 104px; padding: 10px 54px 10px 10px; border: 1px solid rgba(150,172,207,.13); border-radius: 12px; background: rgba(255,255,255,.018); }
.cm-event-card time { display: grid; align-content: center; text-align: center; }
.cm-event-card time strong { color: var(--cm-accent); font-size: 1.7rem; line-height: 1; }
.cm-event-card time span { color: #8e9bad; font-size: .62rem; }
.cm-event-card__media { height: 82px; overflow: hidden; border-radius: 8px; }
.cm-event-card__media img, .cm-event-card__media .cm-image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cm-event-card h3 { margin: 0 0 5px; font-size: 1rem; }
.cm-event-card p, .cm-event-card small { display: block; margin: 0; color: #95a2b4; font-size: .72rem; }
.cm-event-card .cm-card-bookmark { right: 8px; bottom: 50%; transform: translateY(50%); }

/* Single article */
.cm-article { position: relative; }
.cm-article-header { width: min(100%,var(--cm-reading-width)); }
.cm-article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: #91a0b4; font-size: .78rem; }
.cm-author-chip { display: inline-flex; align-items: center; gap: 9px; color: #cbd4e0; }
.cm-author-chip img { border: 2px solid rgba(255,90,42,.6); border-radius: 50%; }
.cm-article-byline > span { display: inline-flex; align-items: center; gap: 6px; }
.cm-article-layout { display: grid; grid-template-columns: 64px minmax(0,var(--cm-reading-width)) minmax(270px,340px); justify-content: center; gap: 26px; align-items: start; margin-top: 26px; }
.cm-article-layout--no-sidebar { grid-template-columns: 64px minmax(0,var(--cm-reading-width)); }
.cm-article-share-rail { position: sticky; top: 24px; display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--cm-border); border-radius: 12px; }
.cm-article-share-rail span { color: #8997aa; font-size: .52rem; text-transform: uppercase; writing-mode: vertical-rl; }
.cm-article-share-rail button { display: grid; width: 38px; height: 38px; place-items: center; color: #d6dde7; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.cm-article-share-rail button:hover, .cm-article-share-rail button.is-saved { color: var(--cm-accent); background: rgba(255,90,42,.08); }
.cm-article-content { padding: 0 0 60px; }
.cm-article-sidebar { position: sticky; top: 24px; display: grid; gap: 16px; }
.cm-related-mini > a { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(150,172,207,.13); }
.cm-related-mini > a:first-of-type { border-top: 0; }
.cm-related-mini img { width: 82px; height: 66px; object-fit: cover; border-radius: 8px; }
.cm-related-mini span { display: grid; align-content: center; }
.cm-related-mini small { color: var(--cm-accent); font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.cm-related-mini strong { font-size: .78rem; line-height: 1.2; }
.cm-related-mini em { color: #7f8da1; font-size: .6rem; font-style: normal; }
.cm-article-actions-mobile { display: none; }
.cm-related-section { padding-bottom: 30px; }

/* Webstories hub */
.cm-story-hub-hero { display: grid; grid-template-columns: minmax(360px,1.2fr) 1.8fr; min-height: 410px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); }
.cm-story-hub-featured { position: relative; min-height: 410px; border-right: 1px solid rgba(255,90,42,.7); }
.cm-story-hub-featured > a, .cm-story-hub-featured img, .cm-story-hub-featured .cm-image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-story-hub-shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(4,9,17,.98),rgba(4,9,17,.1) 74%); }
.cm-story-hub-body { position: absolute; z-index: 2; inset: auto 26px 28px; }
.cm-story-hub-body h2 { margin: 10px 0 7px; font-size: clamp(1.8rem,3vw,3rem); line-height: 1.05; }
.cm-story-hub-body p { color: #b7c0cd; }
.cm-story-hub-rail { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.cm-story-hub-rail .cm-story-card__media { height: 100%; aspect-ratio: auto; border: 0; border-right: 1px solid rgba(255,90,42,.55); border-radius: 0; }
.cm-story-hub-rail .cm-story-card:last-child .cm-story-card__media { border-right: 0; }
.cm-story-catalog { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 12px; }
.cm-story-catalog .cm-story-card__media { border-radius: 14px; }
.cm-story-hub-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.cm-story-hub-columns .cm-panel { padding: 14px; }
.cm-mini-story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.cm-mini-story-grid .cm-story-card__media { border-radius: 10px; }
.cm-mini-story-grid .cm-story-card h3 { font-size: .72rem; }
.cm-story-collection-ad .cm-ad-fallback { min-height: 160px; }

/* Player shell */
body.cm-story-viewer-page { color: white; background: radial-gradient(circle at 50% 20%,#17273c,#03070d 72%); }
.cm-story-player-shell { min-height: 100vh; padding: 16px 24px 30px; }
.cm-story-shell-header { display: flex; width: min(1600px,100%); min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto 12px; }
.cm-story-shell-header .cm-brand { font-size: 1.45rem; }
.cm-story-back { display: inline-flex; min-height: 38px; align-items: center; padding: 0 16px; border: 1px solid var(--cm-accent); border-radius: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cm-story-stage { display: grid; grid-template-columns: minmax(220px,300px) minmax(420px,var(--cm-story-max-width)) minmax(280px,360px); justify-content: center; gap: clamp(18px,3vw,44px); align-items: center; width: min(1600px,100%); margin: auto; }
.cm-story-stage--solo { grid-template-columns: minmax(420px,var(--cm-story-max-width)); }
.cm-story-center { min-width: 0; }
.cm-story-center .mobile-frame { width: min(var(--cm-story-max-width),calc((100vh - 130px) * .5625)); height: auto; max-height: var(--cm-story-max-height); aspect-ratio: 9/16; margin: auto; border-radius: 22px; }
.cm-story-context { align-self: center; }
.cm-story-context > small, .cm-story-context > h2 { display: block; margin: 0 0 10px; color: #9aa7b9; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.cm-story-context--previous > a { display: block; overflow: hidden; border: 1px solid var(--cm-border); border-radius: 12px; background: var(--cm-surface); }
.cm-story-context--previous img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cm-story-context--previous span { display: grid; gap: 6px; padding: 16px; }
.cm-story-context strong { line-height: 1.25; }
.cm-story-context em { color: #7e8ca0; font-size: .66rem; font-style: normal; }
.cm-story-context--more { display: grid; gap: 0; padding: 16px; border: 1px solid var(--cm-border); border-radius: 14px; background: rgba(13,25,43,.9); }
.cm-story-context--more > a:not(.cm-outline-button) { display: grid; grid-template-columns: 90px 1fr 26px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(150,172,207,.12); }
.cm-story-context--more > a:nth-of-type(1) { border-top: 0; }
.cm-story-context--more img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; }
.cm-story-context--more span { display: grid; }
.cm-story-context--more small { color: var(--cm-accent); font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.cm-story-context--more strong { font-size: .78rem; }
.cm-story-context--more .cm-icon { color: var(--cm-accent); }
.cm-story-context--more .cm-outline-button { margin-top: 14px; font-size: .58rem; }
.cm-story-sponsor-slot { margin: 10px auto 0; }
.cm-story-sponsor-slot .cm-ad-fallback { min-height: 80px; }

/* Responsive */
@media (max-width: 1180px) {
  .cm-layout-with-sidebar { grid-template-columns: minmax(0,1fr) 300px; }
  .cm-category-discovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-ad-format-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-story-catalog { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .cm-story-stage { grid-template-columns: minmax(420px,var(--cm-story-max-width)) minmax(260px,330px); }
  .cm-story-context--previous { display: none; }
}

@media (max-width: 900px) {
  .cm-layout-with-sidebar, .cm-commercial-hero, .cm-commercial-benefits, .cm-page-hero { grid-template-columns: 1fr; }
  .cm-layout-sidebar { position: static; }
  .cm-editorial-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-category-featured { grid-template-columns: 1fr; }
  .cm-category-featured__media { min-height: 330px; }
  .cm-category-featured__body { position: relative; z-index: 2; margin-top: -150px; background: linear-gradient(0deg,var(--cm-surface) 70%,transparent); }
  .cm-story-hub-hero { grid-template-columns: 1fr; }
  .cm-story-hub-featured { min-height: 360px; border-right: 0; border-bottom: 1px solid var(--cm-border); }
  .cm-story-hub-rail { grid-template-columns: repeat(5,minmax(145px,1fr)); overflow-x: auto; }
  .cm-story-hub-rail .cm-story-card__media { aspect-ratio: 2/3; }
  .cm-story-catalog { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .cm-story-hub-columns { grid-template-columns: 1fr; }
  .cm-article-layout, .cm-article-layout--no-sidebar { grid-template-columns: minmax(0,1fr); }
  .cm-article-share-rail { display: none; }
  .cm-article-sidebar { position: static; }
  .cm-article-actions-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%,var(--cm-reading-width)); margin: 14px auto; }
  .cm-article-actions-mobile button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; color: white; background: transparent; border: 1px solid var(--cm-accent); border-radius: 10px; cursor: pointer; }
  .cm-story-stage { grid-template-columns: minmax(0,var(--cm-story-max-width)); }
  .cm-story-context { display: none; }
}

@media (max-width: 700px) {
  .cm-container { width: min(calc(100% - 24px),var(--cm-container)); }
  .cm-page-hero h1, .cm-search-header h1, .cm-commercial-hero h1 { font-size: clamp(2.25rem,12vw,3.4rem); }
  .cm-layout-sidebar { display: none; }
  .cm-category-discovery-grid, .cm-editorial-grid, .cm-archive-grid--category { grid-template-columns: 1fr; }
  .cm-story-circles { grid-auto-columns: 116px; }
  .cm-category-hero { min-height: 220px; margin-inline: -12px; border-radius: 0; }
  .cm-category-hero__content { width: 100%; padding: 28px 20px; }
  .cm-category-featured { min-height: 460px; }
  .cm-category-featured__media { position: absolute; inset: 0; }
  .cm-category-featured__body { align-content: end; min-height: 460px; margin: 0; padding: 24px; background: linear-gradient(0deg,rgba(4,10,18,.98),rgba(4,10,18,.08) 70%); }
  .cm-search-large { padding-right: 8px; }
  .cm-search-large button { width: 46px; padding: 0; overflow: hidden; color: transparent; }
  .cm-search-large button::after { color: white; content: "→"; }
  .cm-search-toolbar { align-items: flex-start; flex-direction: column; }
  .cm-search-result, .cm-favorite-item { grid-template-columns: 38% 1fr; min-height: 140px; }
  .cm-search-result__body { padding: 14px 40px 14px 14px; }
  .cm-search-result h2 { font-size: .96rem; }
  .cm-search-result p { display: -webkit-box; overflow: hidden; font-size: .7rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .cm-search-result .cm-card-meta { font-size: .56rem; }
  .cm-favorite-item__body { padding: 14px 48px 14px 14px; }
  .cm-favorite-item__body h3 { font-size: .92rem; }
  .cm-favorite-item button { right: 8px; width: 34px; height: 34px; }
  .cm-metric-grid, .cm-ad-format-grid { grid-template-columns: 1fr 1fr; }
  .cm-commercial-benefits ul { columns: 1; }
  .cm-agenda-hero { min-height: 560px; margin-inline: -12px; border-radius: 0; }
  .cm-agenda-hero__body { width: 100%; min-height: 560px; display: grid; align-content: end; padding: 24px 20px; background: linear-gradient(0deg,rgba(4,10,18,.98),rgba(4,10,18,.05) 75%); }
  .cm-agenda-calendar { overflow: hidden; }
  .cm-agenda-days { min-width: 520px; overflow-x: auto; }
  .cm-event-card { grid-template-columns: 52px 84px 1fr; gap: 8px; padding-right: 42px; }
  .cm-event-card__media { height: 70px; }
  .cm-event-card h3 { font-size: .86rem; }
  .cm-event-card small { display: none; }
  .cm-story-hub-hero { margin-inline: -12px; border-radius: 0; }
  .cm-story-hub-rail { padding: 12px; }
  .cm-story-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cm-mini-story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.cm-story-viewer-page { overflow: hidden; }
  .cm-story-player-shell { min-height: 100dvh; padding: 0; }
  .cm-story-shell-header { display: none; }
  .cm-story-stage { display: block; width: 100%; }
  .cm-story-center .mobile-frame { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; }
  .cm-story-sponsor-slot { display: none; }
}

@media (max-width: 460px) {
  .cm-metric-grid, .cm-ad-format-grid { grid-template-columns: 1fr; }
  .cm-story-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .cm-story-card h3 { font-size: .78rem; }
}

/* Additional standard templates */
.cm-page-content-wide { padding: 28px 0 64px; color: #d5dce7; }
.cm-page-content-wide > * { max-width: 1200px; margin-inline: auto; }
.cm-institutional-card { display: grid; grid-template-columns: minmax(250px,.7fr) minmax(0,1.3fr); gap: 40px; padding: 36px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); background: linear-gradient(145deg,rgba(14,28,47,.96),rgba(8,18,32,.96)); }
.cm-institutional-card header { position: sticky; top: 24px; align-self: start; }
.cm-institutional-card h1 { margin: 0; font-size: clamp(2.2rem,4vw,4.6rem); line-height: 1; }
.cm-institutional-card header p { color: #aab5c5; }
.cm-landing-hero { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--cm-border); border-radius: var(--cm-radius-lg); }
.cm-landing-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-landing-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(3,8,15,.95),rgba(3,8,15,.18)),linear-gradient(0deg,rgba(3,8,15,.65),transparent 50%); }
.cm-landing-hero__body { position: absolute; z-index: 2; inset: auto auto 0 0; width: min(760px,75%); padding: clamp(28px,5vw,64px); }
.cm-landing-hero h1 { margin: 14px 0; font-size: clamp(2.5rem,5vw,5rem); line-height: .98; }
.cm-landing-hero p { color: #d0d7e2; font-size: 1.08rem; }
.cm-blank-page { min-height: 100vh; }
.cm-error-search { width: min(620px,100%); margin: 20px auto; }
.cm-error-search form { display: flex; gap: 8px; }
.cm-error-search input[type=search] { flex: 1; min-height: 48px; padding: 0 16px; color: white; background: var(--cm-surface); border: 1px solid var(--cm-border); border-radius: 10px; }
.cm-error-search input[type=submit] { padding: 0 18px; color: white; background: var(--cm-accent); border: 0; border-radius: 10px; font-weight: 800; }
.cm-card-bookmark.is-saved { color: var(--cm-accent); }

@media (max-width: 760px) {
  .cm-institutional-card { grid-template-columns: 1fr; padding: 24px; }
  .cm-institutional-card header { position: static; }
  .cm-landing-hero { min-height: 520px; margin-inline: -12px; border-radius: 0; }
  .cm-landing-hero__body { width: 100%; padding: 24px 20px; }
}

/* Com Marília Anúncios plugin integration */
.cm-ad-slot > .cmads-creative{width:100%;border-radius:inherit}.cm-ad-slot > .cmads-image,.cm-ad-slot > .cmads-image .cmads-click,.cm-ad-slot > .cmads-image picture,.cm-ad-slot > .cmads-image img{display:block;width:100%}.cm-ad-slot > .cmads-image img{height:auto;max-height:100%;object-fit:cover}.cm-story-sponsor-slot > .cmads-native{border:0;background:transparent}.cm-story-sponsor-slot > .cmads-native .cmads-native__body{justify-content:center;padding:.65rem}.cm-story-sponsor-slot > .cmads-native .cmads-native__copy p{margin:0}.cm-ad-slot--home-sidebar-ad > .cmads-native .cmads-native__body,.cm-ad-slot--single-sidebar-ad > .cmads-native .cmads-native__body{align-items:flex-start;flex-direction:column}


/* =========================================================
   Com Marília 0.4.2 — featured cards with stable desktop size
   ========================================================= */
@media (min-width: 901px) {
  .cm-category-featured {
    height: 370px;
    min-height: 370px;
    max-height: 370px;
    grid-template-columns: minmax(0,1.38fr) minmax(300px,.82fr);
  }
  .cm-category-featured__media {
    height: 370px;
    min-height: 0;
    overflow: hidden;
  }
  .cm-category-featured__media picture,
  .cm-category-featured__media img,
  .cm-category-featured__media .cm-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
  }
  .cm-category-featured__body {
    height: 370px;
    min-width: 0;
    overflow: hidden;
    padding: 28px 32px;
  }
  .cm-category-featured h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0;
    font-size: clamp(1.55rem,2.1vw,2.3rem);
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .cm-category-featured p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .cm-category-featured {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }
  .cm-category-featured__media {
    height: 280px;
    min-height: 280px;
    overflow: hidden;
  }
  .cm-category-featured__body {
    min-height: 230px;
    overflow: hidden;
  }
}


/* =========================================================
   Com Marília 0.4.5 — stable category Webstory rail
   ========================================================= */
.cm-category-page .cm-story-grid--compact {
  grid-auto-columns: 168px;
  justify-content: start;
}
.cm-category-page .cm-story-grid--compact .cm-story-card {
  width: 168px;
  max-width: 168px;
}
.cm-category-page .cm-story-grid--compact .cm-story-card__media {
  width: 168px;
  height: 252px;
  aspect-ratio: auto;
}
@media (max-width: 900px) {
  .cm-category-page .cm-story-grid--compact {
    grid-auto-columns: 158px;
  }
  .cm-category-page .cm-story-grid--compact .cm-story-card,
  .cm-category-page .cm-story-grid--compact .cm-story-card__media {
    width: 158px;
    max-width: 158px;
  }
  .cm-category-page .cm-story-grid--compact .cm-story-card__media {
    height: 237px;
  }
}
@media (max-width: 560px) {
  .cm-category-page .cm-story-grid--compact {
    grid-auto-columns: 146px;
    gap: 11px;
  }
  .cm-category-page .cm-story-grid--compact .cm-story-card,
  .cm-category-page .cm-story-grid--compact .cm-story-card__media {
    width: 146px;
    max-width: 146px;
  }
  .cm-category-page .cm-story-grid--compact .cm-story-card__media {
    height: 219px;
  }
}

/* Category featured copy must fit the fixed card without premature truncation. */
@media (min-width: 901px) {
  .cm-category-featured__body .cm-badge {
    width: auto;
    max-width: 100%;
    justify-self: start;
  }
  .cm-category-featured h2 {
    font-size: clamp(1.45rem,1.85vw,2.1rem);
    line-height: 1.08;
    -webkit-line-clamp: 4;
  }
  .cm-category-featured h2 a {
    overflow-wrap: anywhere;
  }
  .cm-category-featured p {
    font-size: .92rem;
    line-height: 1.42;
    -webkit-line-clamp: 5;
  }
}

/* =========================================================
   Com Marília 0.4.6 — optional light colour scheme
   Layout dimensions intentionally remain unchanged.
   ========================================================= */
body.cm-color-scheme-light {
  color-scheme: light;
  --cm-bg: #f4f7fb;
  --cm-bg-deep: #edf2f7;
  --cm-surface: #ffffff;
  --cm-surface-2: #f3f6fa;
  --cm-border: #d8e0ea;
  --cm-border-soft: rgba(15,35,64,.14);
  --cm-text: #0b1c36;
  --cm-muted: #68778c;
  --cm-shadow: 0 18px 50px rgba(20,39,68,.11);
}

body.cm-color-scheme-light,
body.cm-color-scheme-light .cm-site-footer {
  background:
    radial-gradient(circle at 46% -8%, rgba(208,221,239,.55), transparent 39rem),
    linear-gradient(180deg,#f8fafc 0%,#edf2f7 100%);
}

body.cm-color-scheme-light .cm-brand span,
body.cm-color-scheme-light h1,
body.cm-color-scheme-light h2,
body.cm-color-scheme-light h3,
body.cm-color-scheme-light h4,
body.cm-color-scheme-light .cm-panel h2,
body.cm-color-scheme-light .cm-section-heading h2 {
  color: #0b1c36;
}

body.cm-color-scheme-light .cm-site-header {
  background: rgba(248,250,252,.96);
  border-color: rgba(15,35,64,.1);
}

body.cm-color-scheme-light .cm-header-action,
body.cm-color-scheme-light .cm-category-nav a,
body.cm-color-scheme-light .cm-section-heading a,
body.cm-color-scheme-light .cm-panel-title-row > a,
body.cm-color-scheme-light .cm-card-meta,
body.cm-color-scheme-light .cm-footer-brand p,
body.cm-color-scheme-light .cm-site-footer,
body.cm-color-scheme-light .cm-article-meta {
  color: #5e6d82;
}

body.cm-color-scheme-light .cm-header-action:hover,
body.cm-color-scheme-light .cm-header-action:focus-visible,
body.cm-color-scheme-light .cm-category-nav a:hover,
body.cm-color-scheme-light .cm-category-nav a:focus-visible {
  color: #0b1c36;
}

body.cm-color-scheme-light .cm-category-nav a {
  background: rgba(255,255,255,.78);
  border-color: #d9e1eb;
  box-shadow: 0 6px 18px rgba(20,39,68,.04);
}

body.cm-color-scheme-light .cm-category-nav a.is-active {
  color: #fff;
  background: var(--cm-accent);
  border-color: var(--cm-accent);
}

body.cm-color-scheme-light .cm-icon-button,
body.cm-color-scheme-light .cm-outline-button,
body.cm-color-scheme-light .cm-article-actions-mobile button,
body.cm-color-scheme-light .cm-article-share-rail,
body.cm-color-scheme-light .cm-topic-filter a {
  color: #0b1c36;
  background: rgba(255,255,255,.72);
  border-color: #ccd6e2;
}

body.cm-color-scheme-light .cm-outline-button:hover,
body.cm-color-scheme-light .cm-topic-filter a.is-active {
  color: #fff;
  background: var(--cm-accent);
  border-color: var(--cm-accent);
}

body.cm-color-scheme-light .cm-hero,
body.cm-color-scheme-light .cm-panel,
body.cm-color-scheme-light .cm-sidebar-ad,
body.cm-color-scheme-light .cm-highlight-card,
body.cm-color-scheme-light .cm-list-card,
body.cm-color-scheme-light .cm-search-result,
body.cm-color-scheme-light .cm-category-featured,
body.cm-color-scheme-light .cm-category-hero,
body.cm-color-scheme-light .cm-commercial-card,
body.cm-color-scheme-light .cm-audience-panel,
body.cm-color-scheme-light .cm-favorites-main,
body.cm-color-scheme-light .cm-related-mini,
body.cm-color-scheme-light .cm-story-hub-columns > section,
body.cm-color-scheme-light .cm-event-list-panel,
body.cm-color-scheme-light .cm-calendar-panel {
  color: #0b1c36;
  background: #fff;
  border-color: #d7e0ea;
  box-shadow: 0 16px 42px rgba(20,39,68,.08);
}

body.cm-color-scheme-light .cm-hero-content {
  color: #0b1c36;
  background: linear-gradient(145deg,#fff,#f6f8fb);
}

body.cm-color-scheme-light .cm-hero-content p,
body.cm-color-scheme-light .cm-highlight-card p,
body.cm-color-scheme-light .cm-list-card p,
body.cm-color-scheme-light .cm-category-featured p,
body.cm-color-scheme-light .cm-search-result p,
body.cm-color-scheme-light .cm-category-hero p,
body.cm-color-scheme-light .cm-category-hero .cm-archive-description,
body.cm-color-scheme-light .cm-article-lead,
body.cm-color-scheme-light .cm-article-content,
body.cm-color-scheme-light .cm-page-content,
body.cm-color-scheme-light .cm-page-content-wide {
  color: #405069;
}

body.cm-color-scheme-light .cm-article-content h2,
body.cm-color-scheme-light .cm-article-content h3 {
  color: #0b1c36;
}

body.cm-color-scheme-light .cm-panel,
body.cm-color-scheme-light .cm-sidebar-ad {
  background: linear-gradient(145deg,#fff,#f8fafc);
}

body.cm-color-scheme-light .cm-newsletter {
  background: radial-gradient(circle at 90% 40%,rgba(255,90,42,.13),transparent 32%),#fff;
}

body.cm-color-scheme-light .cm-newsletter input,
body.cm-color-scheme-light .cm-search-panel input[type="search"] {
  color: #0b1c36;
  background: #fff;
  border-color: #d4dde8;
}

body.cm-color-scheme-light .cm-search-panel {
  background: rgba(236,241,247,.92);
}

body.cm-color-scheme-light .cm-search-close,
body.cm-color-scheme-light .cm-drawer__panel {
  color: #0b1c36;
  background: #fff;
  border-color: #d7e0ea;
}

body.cm-color-scheme-light .cm-drawer nav a {
  color: #233650;
}

body.cm-color-scheme-light .cm-drawer nav a:hover {
  background: #f0f4f8;
}

body.cm-color-scheme-light .cm-image-placeholder {
  background: linear-gradient(135deg,#dfe7f1,#cfd9e6);
}

body.cm-color-scheme-light .cm-ad-label,
body.cm-color-scheme-light .cm-event p,
body.cm-color-scheme-light .cm-event time span,
body.cm-color-scheme-light .cm-weather p,
body.cm-color-scheme-light .cm-footer-bottom {
  color: #718096;
}

body.cm-color-scheme-light .cm-site-footer {
  border-color: #dce4ee;
}

body.cm-color-scheme-light .cm-footer-bottom {
  border-color: #dce4ee;
}

body.cm-color-scheme-light .cm-mobile-bottom-nav {
  color: #66758a;
  background: rgba(255,255,255,.96);
  border-color: rgba(15,35,64,.14);
  box-shadow: 0 -12px 34px rgba(20,39,68,.14);
}

body.cm-color-scheme-light .cm-mobile-bottom-nav a {
  color: #748196;
}

body.cm-color-scheme-light .cm-mobile-bottom-nav a.is-active {
  color: var(--cm-accent);
  background: rgba(255,90,42,.09);
}

body.cm-color-scheme-light .cm-mobile-bottom-nav a:nth-child(3) .cm-mobile-bottom-nav__icon {
  border-color: #ccd6e2;
}

body.cm-color-scheme-light .cm-mobile-bottom-nav a:nth-child(3).is-active .cm-mobile-bottom-nav__icon {
  color: #fff;
  border-color: var(--cm-accent);
}

body.cm-color-scheme-light .cm-trending li,
body.cm-color-scheme-light .cm-event,
body.cm-color-scheme-light .cm-related-mini a {
  border-color: rgba(15,35,64,.1);
}

body.cm-color-scheme-light .cm-story-card,
body.cm-color-scheme-light .cm-category-card,
body.cm-color-scheme-light .cm-editorial-card {
  color: #fff;
}

body.cm-color-scheme-light .cm-story-card h3,
body.cm-color-scheme-light .cm-category-card h3,
body.cm-color-scheme-light .cm-editorial-card h3,
body.cm-color-scheme-light .cm-editorial-card p {
  color: #fff;
}


/* =========================================================
   Com Marília 0.4.7 — dual reading/story actions and navy light mode
   ========================================================= */
.cm-content-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cm-content-actions .cm-outline-button,.cm-content-actions .cm-primary-button{min-height:42px;margin:0;white-space:nowrap}
.cm-primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 18px;border:1px solid var(--cm-accent);border-radius:9px;color:#fff;background:var(--cm-accent);font-size:.74rem;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.cm-primary-button:hover,.cm-primary-button:focus-visible{color:#fff;background:#e94820;border-color:#e94820}
.cm-content-actions--compact .cm-outline-button,.cm-content-actions--compact .cm-primary-button{min-height:36px;padding-inline:13px;font-size:.66rem}
.cm-category-featured__body .cm-content-actions{margin-top:16px}
body.cm-color-scheme-light .cm-site-header{border-bottom-color:rgba(8,29,55,.18);box-shadow:0 8px 24px rgba(8,29,55,.06)}
body.cm-color-scheme-light .cm-category-nav a{color:#0a2342}
body.cm-color-scheme-light .cm-category-nav a.is-active{color:#fff;background:#0a2342;border-color:#0a2342;box-shadow:0 8px 20px rgba(10,35,66,.18)}
body.cm-color-scheme-light .cm-trending>h2,body.cm-color-scheme-light .cm-panel-title-row>h2{color:#fff;background:#0a2342;border-radius:8px;padding:10px 12px}
body.cm-color-scheme-light .cm-site-footer{color:#eaf0f7;background:#081d37;border-color:#0a2342}
body.cm-color-scheme-light .cm-site-footer h2,body.cm-color-scheme-light .cm-site-footer h3,body.cm-color-scheme-light .cm-site-footer strong,body.cm-color-scheme-light .cm-site-footer a,body.cm-color-scheme-light .cm-footer-brand p{color:#eaf0f7}
body.cm-color-scheme-light .cm-footer-bottom{color:#afbed0;background:#06162b;border-color:rgba(255,255,255,.1)}
body.cm-color-scheme-light .cm-primary-button{color:#fff;background:#0a2342;border-color:#0a2342}
body.cm-color-scheme-light .cm-primary-button:hover,body.cm-color-scheme-light .cm-primary-button:focus-visible{background:var(--cm-accent);border-color:var(--cm-accent)}
body.cm-color-scheme-light .cm-mobile-bottom-nav{border-top-color:#0a2342}
body.cm-color-scheme-light .cm-mobile-bottom-nav a:nth-child(3) .cm-mobile-bottom-nav__icon{color:#0a2342;border-color:rgba(10,35,66,.28)}
@media(max-width:640px){.cm-content-actions{gap:8px}.cm-content-actions .cm-outline-button,.cm-content-actions .cm-primary-button{min-height:38px;padding-inline:13px;font-size:.66rem}}

/* Keep dual actions inside the fixed category feature card. */
@media (min-width:901px){
  .cm-category-featured__body:has(.cm-content-actions){padding-block:24px}
  .cm-category-featured__body:has(.cm-content-actions) h2{-webkit-line-clamp:3}
  .cm-category-featured__body:has(.cm-content-actions) p{-webkit-line-clamp:3}
}
@media (max-width:900px){
  .cm-hero-slide.cm-card--image-only .cm-content-actions{display:flex;flex:1 1 260px;gap:8px}
  .cm-hero-slide.cm-card--image-only .cm-content-actions .cm-outline-button,
  .cm-hero-slide.cm-card--image-only .cm-content-actions .cm-primary-button{min-height:38px;padding:8px 12px}
}


/* =========================================================
   Com Marília Portal 0.4.9 — compact category archives and story CTA
   ========================================================= */
.cm-category-page > .cm-container { padding-top: clamp(16px,2vw,28px); }
.cm-single-story-action { display:flex; margin-top:20px; }
.cm-single-story-action .cm-primary-button { display:inline-flex; align-items:center; gap:9px; min-height:44px; margin:0; }
.cm-single-story-action .cm-icon { width:18px; height:18px; }
@media (max-width: 820px) {
  .cm-category-page > .cm-container { padding-top: 10px; }
  .cm-single-story-action { margin-top:16px; }
  .cm-single-story-action .cm-primary-button { width:100%; justify-content:center; }
}
body.cm-color-scheme-light .cm-single-story-action .cm-primary-button { color:#fff; background:#0a2342; border-color:#0a2342; }
