/* smdani-gp — content.css
 * Reading body (PLA-04): width, heading rhythm, quotes, lists, images, details/lyrics (PLA-05), legal (ERR-08),
 * letter (A11Y-08), Spectra / Ultimate Blocks leftovers (TEC-05/06, SIS-07), print basics.
 */

/* layout: GP one-container, no sidebar. Everything reads at 68ch unless wide/full. */
.site-content { padding-left: var(--sm-gutter); padding-right: var(--sm-gutter); }
.entry-content > :where(:not(.alignwide):not(.alignfull):not(.sm-section):not(.sm-home-hero):not(.sm-video):not(.sm-cards):not(.sm-affiliates):not(.sm-interlinking):not(.sm-timeline):not(.sm-divider-curve):not(.sm-mosaic):not(.sm-follow)) {
  max-width: var(--sm-w-reading); margin-left: auto; margin-right: auto;
}
.entry-content > .alignwide, .entry-content .alignwide { max-width: var(--sm-w-wide); margin-left: auto; margin-right: auto; width: auto; }
.sm-reading, .sm-reading-width { max-width: var(--sm-w-reading); margin-left: auto; margin-right: auto; }
.sm-section > .sm-reading { margin-left: auto; margin-right: auto; }
.entry-content { font-size: var(--sm-fs-body); line-height: var(--sm-lh-body); text-align: left; }
.entry-content p { margin: 0 0 var(--sm-s5); }
.entry-content > p:last-child { margin-bottom: 0; }
.entry-content .has-text-align-center { text-align: center; }
/* heading rhythm: more air above than below (PLA-04) */
.entry-content h2 { margin: var(--sm-s7) 0 var(--sm-s4); }
.entry-content h3 { margin: var(--sm-s6) 0 var(--sm-s3); }
.entry-content h4, .entry-content h5, .entry-content h6 { margin: var(--sm-s5) 0 var(--sm-s2); }
.entry-content > :first-child, .sm-reading > :first-child, .sm-section > :first-child { margin-top: 0; }
.entry-content h2 + h3 { margin-top: var(--sm-s3); }
.entry-content .sm-kicker + h2 { margin-top: var(--sm-s2); }
.entry-content h2 a, .entry-content h3 a { color: inherit; }
.entry-content .sm-lede, .entry-content > p.has-large-font-size { font-size: 1.2em; line-height: 1.55; }
/* quotes: amber bar, Archivo italic 600 22px, cite (PLA-04) */
.entry-content blockquote, .wp-block-quote, .sm-quote {
  margin: var(--sm-s5) 0; padding: 4px 0 4px 20px; border: 0; border-left: 4px solid var(--sm-ambar); background: transparent;
  font-family: var(--sm-font-display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.4; color: var(--sm-tinta);
}
.wp-block-quote.is-style-sm-quote, .sm-quote { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.entry-content blockquote p, .wp-block-quote p { font: inherit; margin: 0 0 .6em; }
.entry-content blockquote p:last-of-type, .wp-block-quote p:last-of-type { margin-bottom: 0; }
.entry-content blockquote cite, .wp-block-quote cite, .wp-block-quote__citation {
  display: block; margin-top: 8px; font-family: var(--sm-font-display); font-style: normal; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--sm-gris);
}
.entry-content blockquote cite::before, .wp-block-quote cite::before { content: "— "; }
.sm-section--noche blockquote, .sm-section--noche .wp-block-quote { color: var(--sm-blanco); }
.sm-section--noche blockquote cite { color: var(--sm-on-noche-muted); }
/* comunicado as text (A11Y-08): letter block */
.entry-content blockquote.sm-letter, .sm-letter {
  background: var(--sm-superficie); border-left: 4px solid var(--sm-azul); border-radius: 0 var(--sm-r-card) var(--sm-r-card) 0;
  padding: var(--sm-s5) var(--sm-s5) var(--sm-s5) 28px; margin: var(--sm-s6) 0;
  font-family: var(--sm-font-text); font-style: normal; font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--sm-texto);
}
.sm-letter p { margin: 0 0 1em; }
.sm-letter__date, .sm-letter .sm-letter__date { font-family: var(--sm-font-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-gris); margin-bottom: 12px; }
.entry-content .sm-letter cite { margin-top: 12px; }
.entry-content .sm-letter cite::before { content: none; }
/* lists: brand bullet (diamond azul), numbered in Archivo */
.entry-content :where(ul.wp-block-list, ul:not([class])) { list-style: none; margin: 0 0 var(--sm-s5); padding: 0; }
.entry-content :where(ul.wp-block-list, ul:not([class])) > li { position: relative; padding-left: 1.4em; margin: 0 0 .45em; }
.entry-content :where(ul.wp-block-list, ul:not([class])) > li::before {
  content: ""; position: absolute; left: .15em; top: .66em; width: 8px; height: 8px; border-radius: 2px; background: var(--sm-azul); transform: rotate(45deg);
}
.entry-content :where(ol.wp-block-list, ol:not([class])) { margin: 0 0 var(--sm-s5); padding-left: 1.6em; }
.entry-content :where(ol.wp-block-list, ol:not([class])) > li { margin: 0 0 .45em; padding-left: .2em; }
.entry-content :where(ol.wp-block-list, ol:not([class])) > li::marker { font-family: var(--sm-font-display); font-weight: 700; color: var(--sm-azul); }
.entry-content li > ul, .entry-content li > ol { margin: .4em 0 0; }
.sm-section--noche li::before { background: var(--sm-ambar); }
/* images, figures, galleries */
.entry-content img { height: auto; max-width: 100%; }
.entry-content .wp-block-image img, .entry-content figure > img, .entry-content .wp-block-image > a > img { border-radius: var(--sm-r-img); display: block; }
.entry-content .wp-block-image, .entry-content figure.wp-block-image { margin: var(--sm-s6) auto; }
.entry-content .wp-block-image.alignfull img { border-radius: 0; }
.entry-content figcaption, .wp-block-image figcaption, .wp-caption-text { margin: 8px 0 0; font-family: var(--sm-font-display); font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--sm-gris); text-align: left; }
.entry-content .wp-block-columns { gap: var(--sm-s5); margin-bottom: var(--sm-s5); }
.entry-content hr, .wp-block-separator { border: 0; height: 1px; background: var(--sm-linea); margin: var(--sm-s6) auto; max-width: 120px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--sm-linea); padding: 10px 12px; text-align: left; }
.entry-content th { font-family: var(--sm-font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--sm-gris); }
.entry-content code, .entry-content pre { font-size: .9em; background: var(--sm-superficie); border-radius: 4px; }
.entry-content code { padding: .1em .35em; }
/* details / lyrics (PLA-05): closed by default, two columns ≥ 900 (the <summary> spans both) */
.entry-content .wp-block-details, .sm-lyrics { border: 1px solid var(--sm-linea); border-radius: var(--sm-r-card); padding: 0 20px; margin: var(--sm-s5) 0; background: var(--sm-blanco); }
.entry-content .wp-block-details > summary, .sm-lyrics > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; margin: 0 -20px; padding: 16px 20px;
  font-family: var(--sm-font-display); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--sm-azul); -webkit-tap-highlight-color: transparent;
}
.entry-content .wp-block-details > summary::-webkit-details-marker, .sm-lyrics > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::before, .sm-lyrics > summary::before {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin-left: 2px;
}
.entry-content .wp-block-details[open] > summary::before, .sm-lyrics[open] > summary::before { transform: rotate(45deg); }
.entry-content .wp-block-details > summary:hover, .sm-lyrics > summary:hover { color: var(--sm-noche); background: var(--sm-superficie); }
.entry-content .wp-block-details[open] > summary, .sm-lyrics[open] > summary { border-bottom: 1px solid var(--sm-linea); margin-bottom: 16px; }
.entry-content .wp-block-details[open], .sm-lyrics[open] { padding-bottom: 8px; }
.sm-lyrics p { font-size: 16px; line-height: 1.55; margin: 0 0 16px; break-inside: avoid; }
.sm-lyrics .sm-lyrics__body { margin: 0; }
@media (min-width: 900px) {
  .sm-lyrics[open] { column-count: 2; column-gap: 40px; }
  .sm-lyrics > summary { column-span: all; }
  .sm-lyrics .sm-lyrics__body { column-count: 2; column-gap: 40px; }
  .sm-lyrics .sm-lyrics__body ~ *, .sm-lyrics:has(.sm-lyrics__body)[open] { column-count: auto; }
}
/* legal pages (ERR-08) */
.sm-legal h2 { font-size: var(--sm-fs-h3); margin-top: var(--sm-s6); }
.sm-legal p, .sm-legal li { font-size: 17px; }
.sm-legal__updated { font-family: var(--sm-font-display); font-size: 14px; color: var(--sm-gris); }
/* home/intro paragraphs inside sections keep reading measure */
.sm-section .sm-intro { margin-top: var(--sm-s3); }

/* Spectra Legacy leftovers (TEC-06, SIS-07): neutralise per-block colours/paddings still in markup.
 * #content raises specificity above Spectra's .wp-block-uagb-x.uagb-block-id rules. */
#content .wp-block-uagb-container.uagb-is-root-container { padding: 0; margin: 0 0 var(--sm-s5); background: none; min-height: 0; }
#content .uagb-container-inner-blocks-wrap { padding: 0; max-width: none; width: 100%; }
#content .wp-block-uagb-container .uagb-container__shape { display: none; } /* MAR-07: the old curve_asymmetrical dividers */
#content .wp-block-uagb-advanced-heading { margin: 0 0 var(--sm-s4); }
#content .wp-block-uagb-advanced-heading .uagb-heading-text { font-family: var(--sm-font-display); color: var(--sm-tinta); line-height: 1.15; font-size: inherit; margin: 0; }
#content h1.uagb-heading-text { font-size: var(--sm-fs-h1); }
#content h2.uagb-heading-text { font-size: var(--sm-fs-h2); }
#content h3.uagb-heading-text { font-size: var(--sm-fs-h3); }
#content .wp-block-uagb-advanced-heading .uagb-desc-text { font-family: var(--sm-font-text); font-size: var(--sm-fs-body); line-height: var(--sm-lh-body); color: var(--sm-texto); margin: var(--sm-s3) 0 0; }
#content .wp-block-uagb-advanced-heading .uagb-separator { background: var(--sm-ambar); height: 3px; width: 48px; margin: var(--sm-s3) 0 0; }
#content .wp-block-uagb-info-box { margin: 0 0 var(--sm-s5); }
#content .uagb-ifb-icon-wrap, #content .uagb-ifb-image-wrap, #content .uagb-ifb-separator { display: none; } /* SIS-07 decorative icons above titles */
#content .uagb-infobox__content-wrap { text-align: left; padding: 0; }
#content .uagb-ifb-title { font-family: var(--sm-font-display); font-weight: 750; font-size: var(--sm-fs-h3); line-height: 1.25; color: var(--sm-tinta); margin: 0 0 var(--sm-s2); }
#content .uagb-ifb-desc { font-family: var(--sm-font-text); font-size: 17px; line-height: 1.6; color: var(--sm-texto); margin: 0; }
#content .uagb-buttons-layout-wrap { gap: 10px; }
#content .wp-block-uagb-container .wp-block-columns, #content .wp-block-columns.uagb-columns { gap: var(--sm-s5); }
/* Ultimate Blocks ub/button leftovers (TEC-05): render like the primary button */
#content .ub-button-container { margin: var(--sm-s4) 0; }
#content .ub-button-container a.ub-button-block-btn, #content a.ub-button-block-main {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 20px; border-radius: var(--sm-r-btn);
  background: var(--sm-azul) !important; color: var(--sm-blanco) !important; border: 0 !important; /* !important: UB writes colours as inline styles */
  font-family: var(--sm-font-display); font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none;
}
#content a.ub-button-block-main:hover { background: var(--sm-noche) !important; } /* !important: pairs with the rule above */
#content a.ub-button-block-main .ub-button-block-btn { color: inherit; font: inherit; }
/* GenerateBlocks class leftovers in old footer HTML are plain now */
.gb-headline, .gb-container { font: inherit; }
/* GP bits we do not want on this site */
.entry-meta, .post-navigation, .site-info, .featured-image.page-header-image-single { display: none; }

/* print */
@media print {
  .main-navigation, .sm-footer, .site-footer, .sm-video, .sm-rating, .sm-affiliates, .sm-divider-curve, .skip-link { display: none !important; } /* !important: print only */
  body { font-size: 12pt; color: #000; background: #fff; }
  .sm-hero, .sm-section--noche, .sm-home-hero { background: none; color: #000; margin: 0; padding: 0; }
  .sm-hero__title, .sm-section--noche h2 { color: #000; }
  .sm-lyrics[open], .wp-block-details[open] { column-count: 1; }
  details > :not(summary) { display: block; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
