/**
 * Developed by Science & Marketing
 * Project: AlejandroCobo.com
 * Module: Design System - Curved Accent Frames
 * Version: 0.16.24 | Date: 2026-10-15
 * Decorative accents follow each component's real border radius. No changes to layout or focus rings.
 */

/* Cards with their own inset pseudo-accent: draw the left stroke as a true
   border on a full-radius overlay, rather than a straight vertical stripe. */
.reader-comment--author::before,
.conference-context-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-inline-start: 3px solid var(--ac-accent-stroke, #1156a1);
    border-radius: inherit;
    background: none;
    pointer-events: none;
}
.reader-comment--author { --ac-accent-stroke: #1156a1; }
.conference-context-card {
    --ac-accent-stroke: #007cb5;
    border-radius: var(--radius, 14px);
}
.conference-context-card::before { border-inline-start-width: 4px; }

/* A native left border already traces the corner. These callouts previously
   made only the right side round, leaving the accent side squared. */
.article-content blockquote { border-radius: 14px; }
.conference-editorial-section--takeaway { border-radius: 14px; }
.media-kit-emcee { border-radius: 14px; }
.lab-project-card__purpose { border-radius: 10px; }
.release-entry__note { border-radius: 10px; }
.activity-usage-card { border-radius: var(--radius, 14px); }
.thought-map__detail article { border-radius: 22px; }

/* Selected modules use a curved overlay in place of a straight inset shadow.
   Overlay never receives events or changes dimensions of the editor cards. */
:is(.builder-section.is-selected,
    .builder-section.is-preview-active,
    .builder-item.is-selected,
    .builder-outline-element[aria-current="true"],
    .article-audio__track.is-active,
    .sm-audio-item.is-selected,
    .spotify-program__episode.is-current) {
    position: relative;
    box-shadow: none;
}
:is(.builder-section.is-selected,
    .builder-section.is-preview-active,
    .builder-item.is-selected,
    .builder-outline-element[aria-current="true"],
    .article-audio__track.is-active,
    .sm-audio-item.is-selected,
    .spotify-program__episode.is-current)::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 0;
    border-inline-start: 3px solid #007cb5;
    border-radius: inherit;
    pointer-events: none;
}
.builder-outline-element[aria-current="true"] { border-radius: 8px; }
/* The thought-map shifts its emphasis to the top edge on narrow displays. */
@media (max-width: 760px) {
    .thought-map__detail article { border-radius: 18px; }
}
/* The accent is decorative: retain browser-provided focus and contrast. */
@media (forced-colors: active) {
    .reader-comment--author::before,
    .conference-context-card::before,
    :is(.builder-section.is-selected,
        .builder-section.is-preview-active,
        .builder-item.is-selected,
        .builder-outline-element[aria-current="true"],
        .article-audio__track.is-active,
        .sm-audio-item.is-selected,
        .spotify-program__episode.is-current)::after {
        border-inline-start-color: Highlight;
    }
}

/* Developed by Science & Marketing | V0.17.0-alpha | Native Agenda contextual CTA */
.agenda-context-cta{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:clamp(20px,4vw,40px);border:1px solid #bbd0e2;border-radius:18px;background:#f1f7fb}.agenda-context-cta h2{margin:8px 0;font-size:clamp(1.4rem,2.6vw,2.05rem)}.agenda-context-cta p{margin:0;line-height:1.55;color:#496780}.agenda-context-cta .btn{flex:none;min-height:44px}@media(max-width:600px){.agenda-context-cta{flex-direction:column;align-items:stretch}.agenda-context-cta .btn{text-align:center}}

/* Developed by Science & Marketing | Agenda contextual | V0.17.12-alpha | 2026-10-17 */
.agenda-context-cta{display:flex;align-items:center;justify-content:space-between;gap:clamp(1.25rem,3vw,3rem);min-width:0}
.agenda-context-cta>div:first-child{min-width:0;max-width:64ch}
.agenda-context-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:flex-end}
.agenda-context-actions .btn{min-height:44px;text-align:center}
@media(max-width:760px){.agenda-context-cta{flex-direction:column;align-items:stretch}.agenda-context-actions{justify-content:flex-start;width:100%}.agenda-context-actions .btn{flex:1 1 180px;white-space:normal}}

/* Developed by Science & Marketing | Contextual CTA contrast and mobile navigation | V0.17.16-alpha | 2026-10-17 */
/* .btn-secondary is white-on-dark in the global theme; contextual CTAs use light surfaces. */
.agenda-context-cta .agenda-context-actions .btn-secondary,
.section--agenda-context .agenda-context-actions .btn-secondary{
 color:#123d60!important;background:#fff!important;border:2px solid #3178a8!important;
 text-decoration:none;opacity:1!important;box-shadow:none!important;
}
.agenda-context-cta .agenda-context-actions .btn-secondary:hover,
.agenda-context-cta .agenda-context-actions .btn-secondary:focus-visible{
 color:#082c49!important;background:#e8f4fb!important;border-color:#005d92!important;
}
.agenda-context-cta .agenda-context-actions :is(a,button):focus-visible{outline:3px solid #37488d!important;outline-offset:4px}
.agenda-context-cta .agenda-context-actions a{display:inline-flex;align-items:center;justify-content:center;line-height:1.35;min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.agenda-context-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px}.agenda-context-cta .agenda-context-actions a{width:100%;min-height:48px}}
