.cjd-public {
    --blue: var(--brand-blue);
    --blue-softer: var(--brand-blue-softer);
    --blue-soft: var(--brand-blue-soft);
    --red: var(--brand-red);
    --font-sans: var(--font-body);
    --cjd-paper: var(--brand-blue-softer);
    --cjd-line: var(--line);
    --cjd-ink: var(--ink);
    --cjd-muted: var(--muted);
    --cjd-accent: var(--brand-blue);
    --cjd-wash: var(--brand-blue-soft);
}
.cjd-public { --cjd-spine: 214px; }
.cjd-hero { position: relative; overflow: hidden; }
.cjd-hero::after { content: "1844"; position: absolute; right: max(20px, calc((100% - 1160px) / 2)); bottom: -72px; font: 700 230px/1 var(--font-brand); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.11); pointer-events: none; }
.cjd-hero .container { position: relative; z-index: 1; }
.cjd-public-section { padding-top: 34px; background: radial-gradient(ellipse at 0 10%, rgba(10,63,122,.035), transparent 42%), var(--paper); }
.cjd-public .cjd-content { padding: 0; border: 0; background: transparent; }
.cjd-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin: 0 0 30px; scroll-margin-top: 104px; }
.cjd-result-count { color: var(--muted); font-size: .78rem; }
.cjd-filter-control { position: relative; margin-left: auto; }
.cjd-filter-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--brand-blue); font: 600 .8rem/1.4 var(--font-body); cursor: pointer; list-style: none; }
.cjd-filter-trigger::-webkit-details-marker { display: none; }
.cjd-filter-trigger:hover { background: var(--brand-blue-soft); border-color: var(--brand-blue); }
.cjd-filter-trigger .icon, .cjd-filter-trigger svg { width: 17px; height: 17px; background: transparent; padding: 0; color: inherit; }
.cjd-filter-count { min-width: 21px; padding: 2px 6px; background: var(--brand-blue); color: white; border-radius: 20px; font-size: .68rem; line-height: 1.4; text-align: center; }
.cjd-applied-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; flex-basis: 100%; min-width: 0; font-size: .73rem; }
.cjd-applied-filter { display: block; max-width: min(320px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 9px; border-radius: 4px; background: var(--brand-blue-soft); color: var(--brand-blue); }
.cjd-applied-filters > a { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 6px; color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.cjd-filter-panel { background: var(--white); color: var(--ink); }
.cjd-filter-control > .cjd-filter-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 45; width: min(600px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.cjd-filter-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 28px 90px rgba(6,47,95,.25); overscroll-behavior: contain; }
.cjd-filter-dialog::backdrop { background: rgba(6,26,48,.5); backdrop-filter: blur(3px); }
html.cjd-filters-open, .cjd-filters-open body { overflow: hidden; }
.cjd-filter-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: var(--white); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.cjd-filter-heading h2 { margin: 0; font: 600 1.35rem/1.3 var(--font-brand); color: var(--brand-blue-deep); }
.cjd-filter-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: 0 0 auto; background: var(--brand-blue-softer); color: var(--brand-blue); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.cjd-filter-close[hidden] { display: none; }
.cjd-filter-close:hover { background: var(--brand-blue-soft); }
.cjd-filter-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cjd-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 24px; }
.cjd-filter-fields .cjd-field--wide { grid-column: 1 / -1; }
.cjd-filter-actions { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--white); }
.cjd-filter-actions > a { color: var(--brand-blue); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.cjd-filter-trigger:focus-visible, .cjd-filter-close:focus-visible, .cjd-filter-actions > a:focus-visible, .cjd-applied-filters > a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.cjd-public .cjd-year-group { grid-template-columns: 180px minmax(0,1fr); gap: 64px; padding: 0 0 24px; }
.cjd-public .cjd-year-group::before, .cjd-public .cjd-year-group::after { content: ""; position: absolute; left: var(--cjd-spine); top: 0; bottom: 0; width: 2px; background: var(--line); }
.cjd-public .cjd-year-group::after { background: var(--brand-red); transform: scaleY(var(--cjd-progress, 0)); transform-origin: top; }
.cjd-public .cjd-year-group:first-child::before, .cjd-public .cjd-year-group:first-child::after { top: 31px; }
.cjd-public .cjd-year-group:last-child::before, .cjd-public .cjd-year-group:last-child::after { bottom: 24px; }
.cjd-public .cjd-year { position: sticky; top: 110px; align-self: start; margin: 0; padding: 4px 0 0; color: #93a8bf; font: 700 clamp(3.5rem, 6vw, 5rem)/1 var(--font-brand); letter-spacing: -.07em; background: transparent; transition: color .25s; }
.cjd-public .cjd-year::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 12px; background: var(--line); transition: width .3s, background .3s; }
.cjd-public .is-current .cjd-year, .cjd-public .cjd-year-group:first-child .cjd-year { color: var(--brand-blue); }
.cjd-public .is-current .cjd-year::after { width: 58px; background: var(--brand-red); }
.cjd-public .cjd-year a:hover { text-decoration: none; color: var(--brand-blue); }
.cjd-public .cjd-year a:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 6px; border-radius: 4px; }
.cjd-public .cjd-year-events { gap: 12px; }
.cjd-public .cjd-card { margin-right: 36px; border-radius: 12px; box-shadow: 0 3px 10px rgba(6,47,95,.025); transition: box-shadow .22s, border-color .22s; }
.cjd-public .cjd-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.cjd-public .cjd-card::before { top: 31px; left: -30px; width: 29px; height: 2px; border-radius: 0; background: var(--line); }
.cjd-marker { position: absolute; z-index: 2; top: 15px; left: -46px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--brand-blue); box-shadow: 0 0 0 5px var(--paper); }
.cjd-marker .icon, .cjd-marker svg { width: 16px; height: 16px; color: inherit; background: transparent; padding: 0; border-radius: 0; }
.cjd-public .cjd-disclosure > summary { padding: 14px 20px; border-radius: 12px; }
.cjd-public .cjd-disclosure > summary:hover { background: rgba(10,63,122,.025); }
.cjd-public .cjd-meta { gap: 6px 10px; margin-bottom: 6px; font-size: .74rem; line-height: 1.5; }
.cjd-public .cjd-type { padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; }
.cjd-public .cjd-card .cjd-event-title { font: 600 1.08rem/1.35 var(--font-body); align-items: center; gap: 16px; }
.cjd-public .cjd-expand { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.1rem; }
.cjd-public .cjd-card-body { padding: 0 20px 16px; }
.cjd-public .cjd-summary-text { font-size: .88rem; line-height: 1.6; }
.cjd-public .cjd-card-bottom { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 10px; gap: 8px; }
.cjd-public .cjd-source-links { font-size: .77rem; }
.cjd-public .cjd-card-tools { line-height: 1.5; }
.cjd-public .cjd-card-tools:empty { display: none; }
.cjd-public .cjd-card[data-cjd-featured="1"] { margin-right: 0; border-color: var(--line-strong); box-shadow: 0 5px 16px rgba(6,47,95,.045); }
.cjd-public .cjd-card[data-cjd-featured="1"]::after { content: ""; position: absolute; top: 16px; bottom: 16px; left: -1px; width: 3px; background: var(--brand-red); border-radius: 2px; }
.cjd-public .cjd-card[data-cjd-featured="1"] .cjd-marker { color: white; border-color: var(--brand-red); background: var(--brand-red); }
.cjd-public .cjd-card[data-cjd-featured="1"] .cjd-event-title { font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 700; color: var(--brand-blue-deep); }
.cjd-public .cjd-card[data-cjd-featured="1"] .cjd-disclosure > summary { padding-top: 17px; padding-bottom: 17px; }
.cjd-public .cjd-card--photo { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: start; }
.cjd-public .cjd-card--photo .cjd-disclosure { min-width: 0; }
.cjd-photo { position: relative; align-self: center; margin: 14px 18px 16px 0; padding: 8px 8px 20px; background: #fff; border: 1px solid #e5e5e5; transform: rotate(3deg); box-shadow: 0 6px 14px rgba(0,0,0,.16); transition: transform .25s; }
.cjd-event:nth-child(even) .cjd-photo { transform: rotate(-3deg); }
.cjd-photo:hover, .cjd-photo:focus-within { transform: rotate(0); }
.cjd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: #f2f1ed; }
.cjd-photo a:focus-visible { display: block; outline: 2px solid var(--brand-red) !important; outline-offset: 3px; }
.cjd-photo figcaption { display: none; }
.cjd-photo [data-cjd-image-open] { display: block; cursor: zoom-in; }
html.cjd-image-open, .cjd-image-open body { overflow: hidden; }
.cjd-image-dialog { width: min(1080px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 8px; border: 0; background: transparent; color: white; overscroll-behavior: contain; }
.cjd-image-dialog:not([open]) { display: none; }
.cjd-image-dialog::backdrop { background: rgba(4,14,29,.88); backdrop-filter: blur(5px); }
.cjd-image-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.cjd-image-heading h2 { margin: 0; color: white; font: 600 clamp(1rem, 2vw, 1.3rem)/1.4 var(--font-brand); overflow-wrap: anywhere; }
.cjd-image-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(255,255,255,.1); color: white; cursor: pointer; }
.cjd-image-close:hover { background: rgba(255,255,255,.22); }
.cjd-image-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.cjd-image-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cjd-image-figure { margin: 0; text-align: center; }
.cjd-image-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); margin: 0 auto; border: 6px solid white; border-radius: 2px; object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.3); }
.cjd-image-figure figcaption { max-width: 800px; margin: 14px auto 0; color: #e0e8f1; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.cjd-image-error { padding: 24px; border-radius: 8px; color: white; background: rgba(255,255,255,.1); text-align: center; }
.cjd-image-dialog [hidden] { display: none; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] { margin-right: 72px; border-radius: 8px; box-shadow: none; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"]::before { top: 22px; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-marker { top: 12px; left: -40px; width: 20px; height: 20px; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-marker svg { width: 11px; height: 11px; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-disclosure > summary { padding: 10px 16px; border-radius: 8px; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-meta { margin-bottom: 4px; font-size: .7rem; gap: 6px 10px; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-type { padding: 0; background: transparent; font-weight: 500; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-event-title { font-size: .94rem; font-weight: 500; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-expand { width: 24px; height: 24px; font-size: 1rem; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-card-body { padding: 0 16px 12px; }
.cjd-public .cjd-card--photo[data-cjd-relevance="secundario"] { grid-template-columns: minmax(0,1fr) 145px; }
.cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-photo { margin: 10px 14px 12px 0; padding: 6px 6px 16px; }
.cjd-public-note { font-size: .76rem; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 14px; }
.cjd-position { position: fixed; z-index: 40; bottom: 22px; right: max(22px, calc((100% - 1160px) / 2)); display: flex; align-items: center; gap: 22px; padding: 10px 12px 10px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: var(--brand-blue-deep); color: white; box-shadow: var(--shadow-lg); }
.cjd-position[hidden] { display: none; }
.cjd-position-year { display: flex; flex-direction: column; }
.cjd-position-year > span { font-size: .62rem; color: #c4d6e9; }
.cjd-position-year strong { font: 700 1.35rem/1.2 var(--font-brand); }
.cjd-position button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; font: 500 .73rem var(--font-body); color: white; background: rgba(255,255,255,.08); cursor: pointer; }
.cjd-position button:hover { background: rgba(255,255,255,.17); }
.cjd-position button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.cjd-position .icon, .cjd-position svg { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; flex-shrink: 0; }
@media (max-width: 1000px) {
    .cjd-public { --cjd-spine: 151px; }
    .cjd-public .cjd-year-group { grid-template-columns: 120px minmax(0,1fr); gap: 61px; }
    .cjd-public .cjd-year { font-size: 3.5rem; }
    .cjd-public .cjd-card { margin-right: 0; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"] { margin-right: 0; }
    .cjd-public .cjd-card--photo { grid-template-columns: minmax(0,1fr) 170px; }
}
@media (max-width: 700px) {
    .cjd-public { --cjd-spine: 13px; }
    .cjd-hero::after { font-size: 160px; bottom: -44px; }
    .cjd-public-section { padding-top: 24px; }
    .cjd-toolbar { gap: 10px; margin-bottom: 24px; }
    .cjd-filter-trigger { padding: 9px 11px; font-size: .74rem; }
    .cjd-result-count { font-size: .73rem; }
    .cjd-filter-heading { padding: 12px 18px; }
    .cjd-filter-heading h2 { font-size: 1.2rem; }
    .cjd-filter-fields { padding: 18px; gap: 15px 12px; }
    .cjd-filter-fields > .cjd-field:nth-child(2), .cjd-filter-fields > .cjd-field:nth-child(3) { grid-column: 1 / -1; }
    .cjd-filter-actions { padding: 14px 18px; }
    .cjd-public .cjd-year-group { display: block; padding: 0 0 20px 38px; }
    .cjd-public .cjd-year { position: relative; top: auto; margin: 0 0 12px -38px; padding: 0; font-size: 3.5rem; line-height: 1; background: var(--paper); z-index: 3; }
    .cjd-public .cjd-year::after { display: none; }
    .cjd-public .cjd-year-group::before, .cjd-public .cjd-year-group::after,
    .cjd-public .cjd-year-group:first-child::before, .cjd-public .cjd-year-group:first-child::after { top: 56px; }
    .cjd-public .cjd-year-group:last-child::before, .cjd-public .cjd-year-group:last-child::after { bottom: 20px; }
    .cjd-public .cjd-year-events { gap: 10px; }
    .cjd-public .cjd-card::before { left: -25px; width: 24px; top: 26px; }
    .cjd-marker { left: -38px; top: 13px; width: 26px; height: 26px; box-shadow: 0 0 0 4px var(--paper); }
    .cjd-marker .icon, .cjd-marker svg { width: 13px; height: 13px; }
    .cjd-public .cjd-disclosure > summary { padding: 12px 14px; }
    .cjd-public .cjd-card-body { padding: 0 14px 13px; }
    .cjd-public .cjd-card .cjd-event-title { font-size: 1rem; gap: 9px; }
    .cjd-public .cjd-card[data-cjd-featured="1"] .cjd-event-title { font-size: 1.24rem; }
    .cjd-public .cjd-card[data-cjd-featured="1"] .cjd-disclosure > summary { padding-top: 15px; padding-bottom: 15px; }
    .cjd-public .cjd-meta { gap: 6px; font-size: .7rem; }
    .cjd-public .cjd-type { font-size: .66rem; }
    .cjd-public .cjd-expand { width: 24px; height: 24px; }
    .cjd-public .cjd-card--photo { display: block; }
    .cjd-photo { width: min(190px, calc(100% - 48px)); margin: 0 auto 16px; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"]::before { top: 22px; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-marker { left: -33px; top: 14px; width: 16px; height: 16px; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-marker svg { width: 9px; height: 9px; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-disclosure > summary { padding: 9px 12px; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-card-body { padding: 0 12px 11px; }
    .cjd-public .cjd-card[data-cjd-relevance="secundario"] .cjd-photo { width: min(140px, calc(100% - 40px)); margin: 0 auto 13px; }
    .cjd-position { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 8px 10px 8px 16px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .cjd-public *, .cjd-public *::after { transition: none !important; animation: none !important; }
}
