/* B-Roll: /blog-roll/ feed and single notes. */
:root {
    --br-ink: #1d2321;
    --br-muted: #6b7471;
    --br-line: #e6ebe9;
    --br-tint: #f4f8f6;
    --br-card: #ffffff;
    --br-accent: #03a87c;
    --br-love: #e0245e;
    --br-film: #151c1a;
    --br-radius: 10px;
}

.br-page { color: var(--br-ink); padding-bottom: 48px; }

/* ---------- Page header ---------- */
.br-head { margin: 8px 0 28px; }
.br-head-title {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.br-head-desc {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--br-muted);
}

/* Two pinned ("sticky") notes side by side, full width, equal height. */
.br-pinned {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.br-pinned .br-card { display: flex; flex-direction: column; background: var(--br-tint); }
.br-pinned .br-card .br-body { flex: 1; }
.br-pin-label {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(3, 168, 124, .12);
    color: #027a5a;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Cards ---------- */
.br-feed { display: grid; gap: 16px; }
.br-card {
    position: relative;
    padding: 20px 22px 12px;
    background: var(--br-card);
    color: var(--br-ink);
    border: 1px solid var(--br-line);
    border-radius: var(--br-radius);
    transition: border-color .15s, box-shadow .15s;
}
.br-card:hover { border-color: #cfdcd7; box-shadow: 0 4px 16px rgba(21, 28, 26, .06); }
.br-hidden { display: none; }
.br-empty {
    padding: 32px;
    margin: 0;
    text-align: center;
    color: var(--br-muted);
    border: 1px dashed var(--br-line);
    border-radius: var(--br-radius);
}
/* theme.css gives every <article> a drop cap; notes don't want one. */
.br-card::first-letter, .br-note::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

.br-title {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.br-link, .br-link:hover { color: var(--br-ink); }
/* The whole card is the link; "Read more" and the actions sit above it. */
.br-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--br-radius); }
.br-card:hover .br-link { color: var(--br-accent); }
.br-link:focus-visible { outline: none; }
.br-link:focus-visible::after { outline: 2px solid var(--br-accent); outline-offset: -2px; }

/* Avatar is 30px; name + role are sized so the two lines match its height. */
.br-byline { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
/* margin: 0 beats theme.css "article img { margin-bottom }", which pushed the avatar up. */
.br-avatar { width: 30px; height: 30px; margin: 0; border-radius: 50%; object-fit: cover; flex: none; }
.br-who { display: flex; flex-direction: column; justify-content: center; min-height: 30px; }
.br-who-top { font-size: .8125rem; line-height: 1.2; }
.br-name { font-weight: 700; }
.br-dot, .br-time { color: var(--br-muted); }
.br-role { font-size: .75rem; line-height: 1.2; color: var(--br-muted); }

.br-body { font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.br-body p { margin: 0 0 .75em; }
.br-body > :last-child { margin-bottom: 0; }
.br-body img { border-radius: var(--br-radius); }
.br-more {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 2px;
    font-weight: 700;
    font-size: .9375rem;
}

/* ---------- Actions ---------- */
.br-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0 0 -8px;
    width: max-content;
}
.br-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 8px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--br-muted);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}
.br-act:hover { color: var(--br-ink); background: rgba(3, 168, 124, .08); }
.br-act:focus-visible { outline: 2px solid var(--br-accent); outline-offset: 1px; }
.br-count:empty { display: none; }
.br-love:hover { color: var(--br-love); background: rgba(224, 36, 94, .08); }
.br-love[aria-pressed="true"] { color: var(--br-love); }
.br-love[aria-pressed="true"] .br-icon { fill: currentColor; }
.br-love.br-pop .br-icon { animation: br-pop .35s ease-out; }
@keyframes br-pop { 40% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .br-love.br-pop .br-icon { animation: none; } }

.br-share { position: relative; }
.br-share-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 5;
    min-width: 190px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--br-line);
    border-radius: var(--br-radius);
    box-shadow: 0 12px 32px rgba(21, 28, 26, .14);
}
.br-share-menu[hidden] { display: none; }
.br-share-menu a, .br-share-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--br-ink);
    font: inherit;
    font-size: .9375rem;
    text-align: left;
    cursor: pointer;
}
.br-share-menu a:hover, .br-share-menu button:hover,
.br-share-menu a:focus-visible, .br-share-menu button:focus-visible { background: var(--br-tint); color: var(--br-ink); outline: none; }
.br-share-menu .br-icon { color: var(--br-muted); }

.br-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1080;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--br-film);
    color: #fff;
    font-size: .9rem;
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.br-toast.br-show { opacity: 1; transform: translate(-50%, 0); }

.br-load-more {
    display: block;
    margin: 20px auto 0;
    padding: 10px 22px;
    border: 1px solid var(--br-line);
    border-radius: 999px;
    background: #fff;
    color: var(--br-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.br-load-more:hover { border-color: var(--br-accent); color: var(--br-accent); }

/* ---------- Single note ---------- */
.br-single { padding-top: 8px; }
.br-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--br-muted);
    font-size: .9375rem;
}
.br-back:hover { color: var(--br-accent); }
.br-back .br-icon { width: 18px; height: 18px; }

.br-note .br-byline { margin-bottom: 20px; }
.br-note .br-body { font-size: 1.125rem; line-height: 1.7; }
/* Love / comment / share and the date, between two rules. */
.br-note-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding: 6px 0;
    border-top: 1px solid var(--br-line);
    border-bottom: 1px solid var(--br-line);
    font-size: .875rem;
    color: var(--br-muted);
}
.br-note-foot .br-actions { margin: 0 0 0 -8px; }

/* Previous / next note, just above the comments. */
.br-prevnext {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.br-pn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border: 1px solid var(--br-line);
    border-radius: var(--br-radius);
    color: var(--br-ink);
    transition: border-color .15s, box-shadow .15s;
}
.br-pn:hover { color: var(--br-ink); border-color: #cfdcd7; box-shadow: 0 4px 16px rgba(21, 28, 26, .06); }
.br-pn:focus-visible { outline: 2px solid var(--br-accent); outline-offset: 2px; }
.br-pn-next { grid-column: 2; text-align: right; align-items: flex-end; }
.br-pn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-muted);
}
.br-pn-label .br-icon { width: 16px; height: 16px; }
.br-pn-title { font-weight: 700; line-height: 1.35; }
.br-pn:hover .br-pn-title { color: var(--br-accent); }

.br-section { margin-top: 40px; }
.br-section-title {
    margin: 0 0 16px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* thatbros comments in the site's light palette (host vars beat the widget's :host). */
thatbros-comments {
    --tb-accent: var(--br-accent);
    --tb-surface: var(--br-tint);
    --tb-card: #ffffff;
    --tb-card-2: #f9fbfa;
    --tb-text: var(--br-ink);
    --tb-muted: var(--br-muted);
    --tb-border: var(--br-line);
    --tb-thread: #dbe4e0;
    --tb-radius: var(--br-radius);
    font-family: inherit;
}

@media (max-width: 767.98px) {
    .br-pinned { grid-template-columns: minmax(0, 1fr); }
    .br-prevnext { grid-template-columns: minmax(0, 1fr); }
    .br-pn-next { grid-column: auto; }
}
@media (max-width: 575.98px) {
    .br-card { padding: 18px 16px 10px; }
    .br-title { font-size: 21px; }
}
@media (max-width: 991.98px) {
    .br-page .col-lg-4 { margin-top: 40px; }
}
