/* The journal's two feeds, articles and quick posts (templates/includes/journal_feeds.html): one switch at the
   top of both pages, in the same place, so changing the feed reads as changing a tab. */
.journal-feeds {
    display: flex;
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 12px auto 4px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 16px;
    background: #eef2f6;
    box-sizing: border-box;
}

.journal-feeds__tab {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.journal-feeds__tab:hover {
    color: #0f172a;
}

.journal-feeds__tab.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .08);
}

.journal-feeds__tab svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.journal-feeds__tab.is-active svg {
    color: #f97316;
}

/* The articles page has 6px side padding of its own: the switch keeps the same 16px from the screen edge. */
.journal-feed-page > .journal-feeds {
    width: calc(100% - 20px);
}

@media (min-width: 768px) {
    .journal-feeds {
        margin-top: 20px;
    }
}

html[data-theme="dark"] .journal-feeds {
    border-color: rgba(255, 255, 255, .16);
    background: #222222;
}

html[data-theme="dark"] .journal-feeds__tab {
    color: #adada9;
}

html[data-theme="dark"] .journal-feeds__tab:hover,
html[data-theme="dark"] .journal-feeds__tab.is-active {
    color: #f2f2ef;
}

html[data-theme="dark"] .journal-feeds__tab.is-active {
    background: #303030;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .journal-feeds__tab.is-active svg {
    color: #ff9a5c;
}
