/* The Spotlight (#708, #709): the version card at the top of the sidebar (hub/partials/_spotlight.html, static
   since #935), its Details panel (hub/partials/_spotlight_expanded.html), the Spotlight message's own rich text
   everywhere it shows (.pl-ann-body: the ticker on Home and the admin rows), and Admin Tools > Spotlight's card.
   Theme tokens only. */

/* ---- The version card ---- */
.pl-spotlight {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    font-family: var(--font-body);
    color: var(--hub-text);
}

/* The version pill that sat under the logo before the Spotlight with the newest update's date under it, and an
   outlined Details on the right. */
.pl-spotlight--quiet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.75rem 0.875rem;
    border-radius: 10px;
    background-color: var(--hub-card-bg);
}

.pl-spotlight__quiet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3125rem;
    min-width: 0;
}

.pl-spotlight__quiet-date {
    font-size: 0.6rem;
    color: var(--hub-text-muted);
    white-space: nowrap;
}

.pl-spotlight__quiet-details {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.125rem;
    min-height: 30px;
    padding: 0.1875rem 0.375rem 0.1875rem 0.625rem;
    border: 1px solid rgba(238, 180, 75, 0.35);
    border-radius: 999px;
    background: none;
    color: var(--hub-link);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pl-spotlight__quiet-details:hover,
.pl-spotlight__quiet-details:focus-visible {
    border-color: var(--color-tuscan-yellow);
    background-color: rgba(238, 180, 75, 0.15);
}

/* In the sidebar the card sits inside the logo block, above its divider: the logo gives up its divider and bottom
   padding, and the card's wrapper takes both. */
.pl-brand--quiet {
    padding-bottom: 0.75rem;
    border-bottom: none;
}

.hub-sidebar__spotlight {
    padding: 0 0.75rem 1rem;
    border-bottom: 1px solid var(--hub-sidebar-border);
}

.pl-spotlight__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-link);
}

/* ---- Details ---- */
.pl-spotlight-panel__main,
.pl-spotlight-panel__changelog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pl-spotlight-panel__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pl-spotlight-panel__section + .pl-spotlight-panel__section {
    padding-top: 1.25rem;
    border-top: 1px solid var(--hub-input-border);
}

.pl-spotlight-panel__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--hub-text-muted);
}

.pl-spotlight-panel__actions {
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.pl-spotlight-panel__version {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--hub-text-muted);
    cursor: pointer;
}

.pl-spotlight-panel__version:hover,
.pl-spotlight-panel__version:focus-visible {
    color: var(--hub-text);
    text-decoration: underline;
}

.pl-spotlight-panel__back {
    align-self: flex-start;
}

/* The newest update, first in Details (#709, #935). */
.pl-spotlight__update {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.pl-spotlight__update-title {
    margin-right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hub-text);
    text-decoration: none;
}

.pl-spotlight__update-title:hover,
.pl-spotlight__update-title:focus-visible {
    color: var(--hub-link);
    text-decoration: underline;
}

.pl-spotlight__update-date {
    margin: 0;
    font-size: 0.8rem;
    color: var(--hub-text-muted);
}

/* ---- A Spotlight message's own rich text (#890), wherever it shows ---- */
.pl-ann-body p + p {
    margin-top: 0.5rem;
}

.pl-ann-body strong {
    font-weight: 700;
}

.pl-ann-body a {
    color: var(--hub-link);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Admin Tools > Spotlight ---- */
.pl-spotlight-admin {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pl-spotlight-admin__title {
    margin: 0;
    font-size: 1rem;
    color: var(--hub-text);
}

/* The add and edit page's form errors (hub/admin/announcement_form.html). */
.pl-spotlight-admin__errors {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: rgba(220, 38, 38, 0.12);
    color: var(--hub-text);
    font-size: 0.875rem;
}

.pl-spotlight-admin__errors p {
    margin: 0;
}
