/* X Postings.

   These are X posts, so they are drawn as X posts: ink cards, a face, a handle, the
   mark, the numbers. On the site's paper, in the site's type. Fraunces for anything
   somebody said, Inter for everything around it. No embed, no iframe, no X script.
   No shadows: ink on paper is enough contrast, and a shadow under a black card only
   muddies the paper around it. */

body.bgwna-single .wordpress > h1:first-child,
body.bgwna-archive .wordpress > h1:first-child { display: none; }
body.bgwna-single #brx-content.wordpress,
body.bgwna-archive #brx-content.wordpress { width: min(1140px, 100% - 48px); max-width: none; margin-left: auto; margin-right: auto; }

/* The Articles page puts its first line 79px under the header. A panel needs less
   than a line does, because it has its own padding inside: 32px to the panel edge
   puts its text at the same 80. A question page starts on a small eyebrow, so it
   gets the full distance. */
.bgwna { max-width: 780px; margin: 0 auto; padding: 72px 0 80px; color: var(--bgw-ink, #121011); font-family: 'Inter', system-ui, sans-serif; }
.bgwna-index { max-width: 1140px; padding-top: 32px; }
.bgwna a { text-decoration: none; }

/* ---- small parts ---- */
.bgwna-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
	font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bgw-ash, #8a827a);
}
.bgwna-eyebrow a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.bgwna-eyebrow a:hover { color: var(--bgw-ember, #9b2f2c); }
.bgwna-eyebrow-light { color: rgba(246,241,231,.62); }
.bgwna-eyebrow .bgwna-x { width: 14px; height: 14px; }

.bgwna-h2 {
	margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bgw-ash, #8a827a);
}

.bgwna-av {
	flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
	background: var(--bgw-paper-dim, #ece4d6); color: var(--bgw-ink, #121011);
	font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 18px;
}
.bgwna-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgwna-av-lg { width: 60px; height: 60px; font-size: 24px; }
.bgwna-post .bgwna-av-txt, .bgwna-hero .bgwna-av-txt { background: var(--bgw-paper, #f6f1e7); color: var(--bgw-ink, #121011); }

.bgwna-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bgwna-nm { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: inherit; }
.bgwna-hd { font-size: 14px; color: var(--bgw-ash, #8a827a); }
.bgwna-check { flex: none; vertical-align: -3px; }
.bgwna-i { flex: none; vertical-align: -3px; }
.bgwna-x { flex: none; }

/* ---- the post card ---- */
.bgwna-post {
	background: var(--bgw-ink, #121011); color: var(--bgw-paper, #f6f1e7);
	border-radius: 18px; padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 14px;
}
.bgwna-post-top { display: flex; align-items: center; gap: 12px; }
.bgwna-post-top .bgwna-xmark { margin-left: auto; color: rgba(246,241,231,.85); }
.bgwna-post-top .bgwna-xmark .bgwna-x { width: 22px; height: 22px; }
.bgwna-post-q {
	margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 21px; line-height: 1.35; color: #fff;
}
.bgwna-post-lg { padding: 28px 30px 22px; gap: 18px; }
.bgwna-post-lg .bgwna-post-q { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; }
.bgwna-post-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(246,241,231,.62); }
.bgwna-stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.bgwna-stat-date { margin-left: auto; }
.bgwna-open {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
	border: 1px solid rgba(246,241,231,.28); color: #fff; font-size: 13px; font-weight: 600; transition: border-color .15s, background .15s;
}
.bgwna-open:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.bgwna-post-lg .bgwna-stat-date { margin-left: 0; }
.bgwna-post-lg .bgwna-open { margin-left: auto; }

/* ---- the thread ---- */
.bgwna-thread { margin: 36px 0 0; }
.bgwna-list { list-style: none; margin: 0; padding: 0; }
.bgwna-reply { position: relative; display: flex; gap: 14px; padding: 6px 0 26px; }
.bgwna-reply::before {
	content: ''; position: absolute; left: 21px; top: 54px; bottom: 0; width: 2px; background: var(--bgw-paper-dim, #ece4d6);
}
.bgwna-reply:last-child::before { display: none; }
.bgwna-reply-c { flex: 1; min-width: 0; }
.bgwna-reply-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.bgwna-when { color: var(--bgw-ash, #8a827a); }
.bgwna-body {
	margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 19px; line-height: 1.5; color: var(--bgw-ink, #121011); overflow-wrap: anywhere;
}
.bgwna-reply-foot { display: flex; align-items: center; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--bgw-ash, #8a827a); }
.bgwna-reply-foot .bgwna-stat.is-on { color: var(--bgw-ember, #9b2f2c); }
.bgwna-stat-link { color: var(--bgw-ash, #8a827a); }
.bgwna-stat-link:hover { color: var(--bgw-ink, #121011); }
.bgwna-stat-link .bgwna-x { width: 15px; height: 15px; }
.bgwna-more-note {
	display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0 58px; font-size: 14px; font-weight: 600; color: var(--bgw-ember, #9b2f2c);
}
.bgwna-more-note:hover { text-decoration: underline; text-underline-offset: 3px; }
.bgwna-empty { margin: 0; font-size: 14px; color: var(--bgw-ash, #8a827a); }

/* ---- Bill's answer ---- */
.bgwna-bill {
	display: flex; gap: 14px; margin: 8px 0 0; padding: 22px 24px;
	background: var(--bgw-paper-dim, #ece4d6); border-left: 3px solid var(--bgw-ember, #9b2f2c); border-radius: 0 14px 14px 0;
}
.bgwna-me-tag {
	margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--bgw-ember, #9b2f2c); color: #fff;
	font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.bgwna-answer { font-size: 17px; line-height: 1.7; color: var(--bgw-ink, #121011); }
.bgwna-answer > :first-child { margin-top: 0; }
.bgwna-answer > :last-child { margin-bottom: 0; }

/* ---- sign in with X ---- */
.bgwna-promo {
	position: relative; overflow: hidden; margin: 44px 0 0; padding: 32px 34px;
	background: var(--bgw-ember, #9b2f2c); color: #fff; border-radius: 18px;
}
.bgwna-promo-mark { position: absolute; right: -18px; top: -22px; color: rgba(255,255,255,.10); pointer-events: none; }
.bgwna-promo-mark .bgwna-x { width: 190px; height: 190px; }
.bgwna-promo-t { position: relative; max-width: 560px; }
.bgwna-promo .bgwna-eyebrow-light { color: rgba(255,255,255,.7); }
.bgwna-promo-h { margin: 0 0 10px; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; color: #fff; }
.bgwna-promo-b { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.88); }
.bgwna-promo-b a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bgwna-promo-btn { display: inline-flex !important; align-items: center; gap: 9px; background: var(--bgw-paper, #f6f1e7) !important; color: var(--bgw-ink, #121011) !important; border-color: var(--bgw-paper, #f6f1e7) !important; }
.bgwna-promo-btn:hover { background: #fff !important; }
.bgwna-promo-btn .bgwna-x { width: 16px; height: 16px; }

/* ---- read more ---- */
.bgwna-more { margin: 44px 0 0; }
.bgwna-more-list { list-style: none; margin: 0; padding: 0; }
.bgwna-more-list li { border-top: 1px solid var(--bgw-paper-dim, #ece4d6); }
.bgwna-more-list li:last-child { border-bottom: 1px solid var(--bgw-paper-dim, #ece4d6); }
.bgwna-more-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0;
	font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: var(--bgw-ink, #121011);
}
.bgwna-more-list a:hover { color: var(--bgw-ember, #9b2f2c); }
.bgwna-more-list .bgwna-i { color: var(--bgw-ash, #8a827a); }

.bgwna-takedown { margin: 36px 0 0; font-size: 13px; color: var(--bgw-ash, #8a827a); }
.bgwna-takedown a { color: var(--bgw-ember, #9b2f2c); }
.bgwna-takedown a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- the index ---- */
.bgwna-hero {
	display: flex; align-items: center; justify-content: space-between; gap: 40px;
	padding: 48px 52px; margin: 0 0 28px; border-radius: 22px;
	background: linear-gradient(135deg, var(--bgw-ink, #121011) 0%, var(--bgw-ink-soft, #1c1917) 100%); color: var(--bgw-paper, #f6f1e7);
}
.bgwna-hero-t { max-width: 640px; }
.bgwna-hero-h { margin: 0 0 14px; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.015em; color: #fff; }
.bgwna-hero-b { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: rgba(246,241,231,.78); max-width: 54ch; }
.bgwna-hero-b a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bgwna-hero-n { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: rgba(246,241,231,.62); }
.bgwna-hero-n b { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1; color: #fff; margin-bottom: 4px; }
.bgwna-hero-me {
	flex: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px;
	border: 1px solid rgba(246,241,231,.16); color: var(--bgw-paper, #f6f1e7); transition: border-color .15s, background .15s;
}
.bgwna-hero-me:hover { border-color: rgba(246,241,231,.5); background: rgba(255,255,255,.04); }
.bgwna-hero-me .bgwna-hd { color: rgba(246,241,231,.6); }
.bgwna-follow {
	margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
	background: var(--bgw-paper, #f6f1e7); color: var(--bgw-ink, #121011); font-size: 13px; font-weight: 600;
}

.bgwna-lead { margin: 0 0 22px; }
.bgwna-lead-a { display: block; color: inherit; border-radius: 18px; overflow: hidden; transition: transform .15s; }
.bgwna-lead-a:hover { transform: translateY(-2px); }
.bgwna-lead-a .bgwna-post { border-radius: 18px 18px 0 0; padding: 28px 30px 22px; }
.bgwna-lead-a .bgwna-post-q { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.bgwna-lead-top { display: flex; gap: 14px; padding: 22px 30px 24px; background: #fff; border: 1px solid var(--bgw-paper-dim, #ece4d6); border-top: 0; border-radius: 0 0 18px 18px; }
.bgwna-lead-top .bgwna-body { font-size: 20px; }
.bgwna-lead-top .bgwna-hd { margin-top: 6px; display: block; }

/* Masonry. Posts are different lengths, and a grid would hold every card in a row to
   the tallest one and leave a hole under the short ones. Columns pack them: each
   card sits right under the one before it, and the bottom edge is as even as the
   content allows. */
.bgwna-grid { list-style: none; margin: 0; padding: 0; column-width: 340px; column-gap: 18px; }
.bgwna-card { break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 18px; }
.bgwna-card a { display: block; position: relative; color: inherit; border-radius: 18px; transition: transform .15s; }
.bgwna-card a:hover { transform: translateY(-3px); }
.bgwna-card-tag {
	position: absolute; top: -9px; right: 18px; padding: 4px 10px; border-radius: 6px;
	background: var(--bgw-ember, #9b2f2c); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.bgwna-pages { margin: 30px 0 0; font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.bgwna-pages .page-numbers { padding: 8px 14px; border: 1px solid var(--bgw-paper-dim, #ece4d6); border-radius: 8px; color: var(--bgw-ink, #121011); }
.bgwna-pages .page-numbers.current { background: var(--bgw-ink, #121011); color: var(--bgw-paper, #f6f1e7); border-color: var(--bgw-ink, #121011); }

@media (max-width: 820px) {
	.bgwna-hero { flex-direction: column; align-items: flex-start; padding: 32px 26px; gap: 24px; }
	.bgwna-lead-a .bgwna-post, .bgwna-post-lg { padding: 22px 20px 18px; }
	.bgwna-lead-top { padding: 18px 20px; }
	.bgwna-promo { padding: 26px 22px; }
	.bgwna-promo-mark { right: -30px; top: -30px; }
	.bgwna-body { font-size: 17px; }
	.bgwna-bill { padding: 18px; }
	.bgwna-more-note { margin-left: 0; }
}
