/**
 * ESAIC Calendar Feed — "Subscribe to the calendar" flat-list card.
 * Tokens: --color-mainBlue #5082fa, --color-softGrey #f5f5f5, Poppins.
 * Title + five always-visible rows (icon left + label). Google row is the resting
 * highlight; every row highlights (white rounded) on hover/focus.
 */

/* Operator-requested UNSCOPED rule (loads only on the events archive, so limited
   to that page). Brand icons below re-assert their fills over it. */
svg {
    fill: none;
}

.esaic-cal {
    --ecf-blue: var(--color-mainBlue, #5082fa);
    --ecf-card: var(--color-softGrey, #f5f5f5);
    --ecf-ink: #282828;
    margin-top: 16px;
    padding: 20px 16px;
    background-color: var(--ecf-card);
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
}

/* Mobile: relocated into the visible content flow (above the events list). */
.esaic-cal--mobile {
    margin: 0 0 24px;
}

/* Defeat the theme's global `svg { width:100%; height:100% }` rule. */
.esaic-cal svg {
    width: auto;
    height: auto;
    object-fit: initial;
    transform: none;
}

.esaic-cal__title {
    margin: 0 0 12px;
    padding: 0 6px;
    color: var(--ecf-blue);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.esaic-cal__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* --- Rows: icon left + label, left-aligned, always visible --------------- */
.esaic-cal__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    background-color: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--ecf-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* White rounded highlight — resting state for the featured (Google) row and the
   hover/focus state for every row (per the design). */
.esaic-cal__row.is-featured,
.esaic-cal__row:hover,
.esaic-cal__row:focus-visible {
    background-color: #fff;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.esaic-cal__row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex: none;
}
.esaic-cal__row-icon svg {
    width: 24px;
    height: 24px;
}

.esaic-cal__row-label {
    display: inline-block;
}

/* --- Icon colours (must survive the global svg{fill:none}) --------------- */
/* svg element un-none'd; brand marks (Google, Outlook) keep INLINE per-path
   multicolour fills; single-colour marks (Apple, link, download) set here. */
.esaic-cal__row-icon svg {
    fill: initial;
}
/* Apple = solid black; Copy = solid #282828 (matches the supplied SVG). Both
   restated here at higher specificity so they survive the global svg{fill:none}. */
.esaic-cal__ic-apple .esaic-cal__row-icon svg path {
    fill: #000;
}
.esaic-cal__ic-link .esaic-cal__row-icon svg path {
    fill: #282828;
}
/* Download is a STROKE glyph (#282828, fill:none in the supplied SVG). Force
   fill:none (the row-icon svg{fill:initial} would otherwise fill the strokes). */
.esaic-cal__ic-download-glyph .esaic-cal__row-icon svg path {
    fill: none;
    stroke: #282828;
}

/* Copied-state feedback on the Copy row. */
.esaic-cal__ic-link.is-copied {
    color: #1f9d5b;
}
.esaic-cal__ic-link.is-copied .esaic-cal__row-icon svg path {
    fill: #1f9d5b;
}
