/* BGW Diary — the interface, drawn.
   Same tokens, fonts and proportions as the real thing. Sharp at any size, follows the
   palette, and cannot go stale the way a screenshot does. */

.bgwdl-i { width: 1em; height: 1em; flex: 0 0 auto; }

.bgwdl-frame {
	background: var(--bg, #faf7f2); border: 1px solid var(--line2, rgba(26,23,20,.14));
	border-radius: 14px; overflow: hidden;
	box-shadow: 0 14px 34px rgba(26,23,20,.10);
}
.bgwdl-chrome {
	display: flex; align-items: center; gap: 6px; padding: 9px 13px;
	border-bottom: 1px solid var(--line2, rgba(26,23,20,.1));
	background: var(--surface, rgba(26,23,20,.045));
}
.bgwdl-chrome > span {
	width: 8px; height: 8px; border-radius: 50%;
	background: color-mix(in srgb, currentColor 20%, transparent);
}
.bgwdl-url {
	display: inline-flex; align-items: center; gap: 5px; margin-left: 10px;
	font-style: normal; font-size: 10px; color: var(--text2, #4a443d); opacity: .7;
	padding: 3px 10px; border-radius: 20px;
	background: color-mix(in srgb, currentColor 7%, transparent);
}
.bgwdl-url .bgwdl-i { width: 9px; height: 9px; }

/* three columns, the way the app is laid out */
.bgwdl-ui { display: grid; grid-template-columns: 118px minmax(0, 1fr) 132px; font-size: 9px; }
.bgwdl-ui-side {
	padding: 12px 9px; border-right: 1px solid var(--line2, rgba(26,23,20,.1));
	display: flex; flex-direction: column; gap: 1px;
}
.bgwdl-ui-nav {
	display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px;
	color: var(--text2, #4a443d); font-weight: 500;
}
.bgwdl-ui-nav .bgwdl-i { width: 11px; height: 11px; }
.bgwdl-ui-nav.on {
	background: color-mix(in srgb, currentColor 8%, transparent);
	color: var(--text, #1a1714); font-weight: 600;
}
.bgwdl-ui-h {
	font-size: 7.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent, #9b2f2c); padding: 14px 8px 6px;
}
.bgwdl-ui-j { display: flex; align-items: center; gap: 7px; padding: 5px 8px; color: var(--text, #1a1714); }
.bgwdl-ui-j i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.bgwdl-ui-j b { margin-left: auto; font-weight: 500; color: var(--text2, #4a443d); opacity: .75; }

.bgwdl-ui-main { min-width: 0; display: flex; flex-direction: column; }
.bgwdl-ui-top {
	display: flex; align-items: center; justify-content: center; gap: 10px; position: relative;
	padding: 9px 12px; border-bottom: 1px solid var(--line2, rgba(26,23,20,.09));
	color: var(--text2, #4a443d);
}
.bgwdl-ui-top em { position: absolute; right: 12px; font-style: normal; opacity: .6; font-size: 8px; }
.bgwdl-ui-tools {
	display: flex; align-items: center; gap: 9px; padding: 8px 14px;
	border-bottom: 1px solid var(--line2, rgba(26,23,20,.09));
	color: var(--text2, #4a443d);
}
.bgwdl-ui-tools .bgwdl-i { width: 12px; height: 12px; }
.bgwdl-t { font-family: 'Fraunces', Georgia, serif; font-size: 12px; font-weight: 600; }
.bgwdl-sep { width: 1px; height: 11px; background: var(--line2, rgba(26,23,20,.18)); }

.bgwdl-ui-doc { padding: 16px 20px 18px; }
.bgwdl-ui-doc h4 {
	font-family: 'Fraunces', Georgia, serif; font-size: 15px; font-weight: 600;
	line-height: 1.2; margin: 0 0 9px; color: var(--text, #1a1714);
}
.bgwdl-ui-doc p {
	font-family: Georgia, 'Fraunces', serif; font-size: 9.5px; line-height: 1.75;
	color: var(--text, #1a1714); margin: 0 0 10px !important; opacity: .88;
}
.bgwdl-ui-photos { display: flex; gap: 7px; margin: 11px 0; }
.bgwdl-ui-photos img {
	flex: 1 1 0; min-width: 0; height: 66px; object-fit: cover; border-radius: 6px; display: block;
	object-position: 50% 45%;
}
.bgwdl-ui-audio {
	display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px;
	background: color-mix(in srgb, currentColor 6%, transparent);
	color: var(--accent, #9b2f2c); margin-top: 4px;
}
.bgwdl-ui-audio .bgwdl-i { width: 13px; height: 13px; }
.bgwdl-ui-audio span {
	flex: 1; height: 3px; border-radius: 2px;
	background: color-mix(in srgb, currentColor 30%, transparent);
}

.bgwdl-ui-list { border-left: 1px solid var(--line2, rgba(26,23,20,.1)); padding: 10px 8px; }
.bgwdl-ui-lh {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 3px 8px; color: var(--text2, #4a443d);
}
.bgwdl-ui-lh em {
	font-style: normal; font-weight: 600; font-size: 8px; color: #fff;
	background: var(--accent, #9b2f2c); padding: 3px 7px; border-radius: 5px;
}
.bgwdl-ui-search {
	display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 6px;
	margin-bottom: 8px; border: 1px solid var(--line2, rgba(26,23,20,.14));
	color: var(--text2, #4a443d);
}
.bgwdl-ui-search .bgwdl-i { width: 9px; height: 9px; }
.bgwdl-ui-search span {
	flex: 1; height: 3px; border-radius: 2px;
	background: color-mix(in srgb, currentColor 12%, transparent);
}
.bgwdl-ui-item { display: flex; gap: 7px; padding: 7px; border-radius: 7px; }
.bgwdl-ui-item.on { background: color-mix(in srgb, currentColor 7%, transparent); }
.bgwdl-ui-item b { font-family: 'Fraunces', Georgia, serif; font-size: 12px; color: var(--text, #1a1714); }
.bgwdl-ui-item div { min-width: 0; }
.bgwdl-ui-item strong {
	display: block; font-size: 8.5px; font-weight: 600; color: var(--text, #1a1714);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgwdl-ui-item span {
	display: block; font-size: 8px; color: var(--text2, #4a443d); opacity: .8;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- the calendar ---------- */
.bgwdl-cal { padding: 16px 18px 20px; }
/* The month, with a way either side of it and a way back to this one. */
.bgwdl-cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.bgwdl-cal-bar b {
	font-family: 'Fraunces', Georgia, serif; font-size: 15px; font-weight: 600;
	color: var(--text, #1a1714);
}
.bgwdl-cal-bar i {
	font-style: normal; font-size: 15px; line-height: 1;
	color: var(--text2, #4a443d); opacity: .55;
}
.bgwdl-cal-bar b { order: 1; }
.bgwdl-cal-bar i:first-child { order: 0; }
.bgwdl-cal-bar i:nth-of-type(2) { order: 2; }
.bgwdl-cal-bar em {
	order: 3; margin-left: auto; font-style: normal; font-size: 9px; font-weight: 600;
	color: var(--accent, #9b2f2c);
}
.bgwdl-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.bgwdl-cal-d {
	font-size: 8px; font-weight: 600; text-align: center;
	color: var(--text2, #4a443d); opacity: .6; padding-bottom: 3px;
}
.bgwdl-cal-c {
	aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
	font-size: 9.5px; border-radius: 6px; color: var(--text2, #4a443d);
}
.bgwdl-cal-c.has {
	background: color-mix(in srgb, var(--accent, #9b2f2c) 16%, transparent);
	color: var(--accent, #9b2f2c); font-weight: 600;
}
/* A day with a photograph wears it, with a shade weighted to the bottom so the date
   still reads over a bright picture. The same way the calendar itself draws it. */
.bgwdl-cal-c.pic {
	position: relative; isolation: isolate; overflow: hidden;
	background-color: #1a1714; background-size: cover;
	color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.bgwdl-cal-c.pic::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to bottom, rgba(20,17,15,.05) 0%, rgba(20,17,15,.55) 100%);
}
/* A day somebody marked keeps its dot under the date, so the square can still say
   whether anything was written there. */
.bgwdl-cal-c.mk { position: relative; }
.bgwdl-cal-c.mk::after {
	content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
	width: 4px; height: 4px; border-radius: 50%; background: var(--mk, #9b2f2c);
	box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 0 2px rgba(20,17,15,.22);
}
.bgwdl-cal-sum {
	margin: 15px 0 0; font-size: 10px; font-weight: 600;
	color: var(--text2, #4a443d); opacity: .8;
}

/* ---------- dates that matter, under the month ---------- */
.bgwdl-dm { margin-top: 16px; }
.bgwdl-dm-h {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 6px; margin-bottom: 2px;
	border-bottom: 1px solid var(--line2, rgba(26,23,20,.12));
}
.bgwdl-dm-h span {
	font-size: 7.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent, #9b2f2c);
}
.bgwdl-dm-h i {
	font-style: normal; width: 15px; height: 15px; border-radius: 5px; font-size: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--text2, #4a443d); border: 1px solid var(--line2, rgba(26,23,20,.18));
}
.bgwdl-dm-r {
	display: flex; align-items: center; gap: 8px; padding: 7px 0;
	border-bottom: 1px solid var(--line2, rgba(26,23,20,.08));
}
.bgwdl-dm-r:last-child { border-bottom: 0; }
.bgwdl-dm-r u { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.bgwdl-dm-r > div { flex: 1; min-width: 0; }
.bgwdl-dm-r b {
	display: block; font-family: 'Fraunces', Georgia, serif; font-size: 11px;
	font-weight: 600; color: var(--text, #1a1714);
}
.bgwdl-dm-r b .bgwdl-i {
	width: 9px; height: 9px; margin-left: 5px; opacity: .5;
	color: var(--text2, #4a443d); vertical-align: baseline;
}
.bgwdl-dm-r span { display: block; font-size: 8px; color: var(--text2, #4a443d); opacity: .8; }
.bgwdl-dm-r s {
	text-decoration: none; flex: 0 0 auto; font-size: 8px; font-weight: 600;
	color: var(--text2, #4a443d); white-space: nowrap;
}

/* ---------- the prompt packs ---------- */
.bgwdl-pr { padding: 14px 16px 18px; }
.bgwdl-pr-today {
	border-radius: 10px; padding: 14px 15px 11px; color: #fff; margin-bottom: 16px;
}
.bgwdl-pr-today > span {
	display: block; font-size: 7px; font-weight: 600; letter-spacing: .16em;
	text-transform: uppercase; opacity: .8; margin-bottom: 7px;
}
.bgwdl-pr-today p {
	margin: 0 0 12px; font-family: 'Fraunces', Georgia, serif; font-size: 13px;
	line-height: 1.3; font-weight: 600; color: #fff;
}
.bgwdl-pr-today > div {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border-top: 1px solid rgba(255,255,255,.24); padding-top: 8px; font-size: 8.5px;
}
.bgwdl-pr-today i { font-style: normal; opacity: .85; }
.bgwdl-pr-today b { font-weight: 600; }
.bgwdl-pr-k {
	display: block; font-size: 7.5px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: var(--accent, #9b2f2c); margin-bottom: 8px;
}
.bgwdl-pr-p {
	position: relative; display: flex; align-items: center; gap: 9px; overflow: hidden;
	padding: 8px 10px; margin-bottom: 5px; border-radius: 8px;
	background: var(--surface, rgba(26,23,20,.04));
	border: 1px solid var(--line2, rgba(26,23,20,.1));
}
.bgwdl-pr-p > i {
	flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.bgwdl-pr-p > i .bgwdl-i { width: 12px; height: 12px; }
.bgwdl-pr-p > div { flex: 1; min-width: 0; }
.bgwdl-pr-p > div b { display: block; font-size: 10px; color: var(--text, #1a1714); }
.bgwdl-pr-p > div span {
	display: block; font-size: 8px; line-height: 1.45; color: var(--text2, #4a443d); opacity: .85;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgwdl-pr-p > u { flex: 0 0 auto; text-align: right; text-decoration: none; }
.bgwdl-pr-p > u b {
	display: block; font-family: 'Fraunces', Georgia, serif; font-size: 11px;
	color: var(--text, #1a1714);
}
.bgwdl-pr-p > u span { display: block; font-size: 7px; color: var(--text2, #4a443d); opacity: .8; }
.bgwdl-pr-p > s {
	position: absolute; left: 0; right: 0; bottom: 0; height: 2px; text-decoration: none;
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.bgwdl-pr-p > s em { display: block; height: 100%; }

/* ---------- the media wall ---------- */
.bgwdl-mw { padding: 14px 16px 18px; }
.bgwdl-mw-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.bgwdl-mw-h b { font-family: 'Fraunces', Georgia, serif; font-size: 15px; color: var(--text, #1a1714); }
.bgwdl-mw-h i { font-style: normal; font-size: 9px; color: var(--text2, #4a443d); opacity: .7; }
.bgwdl-mw-h i.on { color: var(--accent, #9b2f2c); font-weight: 600; opacity: 1; }
.bgwdl-mw-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.bgwdl-mw-t {
	position: relative; aspect-ratio: 1 / 1; border-radius: 7px; overflow: hidden;
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center;
	color: var(--accent, #9b2f2c);
}
.bgwdl-mw-t.is-audio, .bgwdl-mw-t.is-doc { background: color-mix(in srgb, currentColor 7%, transparent); }
.bgwdl-mw-t .bgwdl-i { width: 18px; height: 18px; opacity: .6; }
.bgwdl-mw-t em {
	position: absolute; right: 5px; bottom: 3px; font-style: normal;
	font-family: 'Fraunces', Georgia, serif; font-size: 11px; font-weight: 600;
	color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
.bgwdl-mw-t.is-audio em, .bgwdl-mw-t.is-doc em { color: var(--text2, #4a443d); text-shadow: none; }

/* ---------- an icon on every card, to the left of what it labels ---------- */
.bgwdl-c .bgwdl-i {
	grid-column: 1; grid-row: 1; margin-top: 2px;
	width: 19px; height: 19px; color: var(--accent, #9b2f2c); display: block;
}
.bgwdl-row .bgwdl-i { flex: 0 0 auto; width: 16px; height: 16px; color: #d98b7f; }

/* ---------- words one side, the interface the other ---------- */
.bgwdl-split {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: clamp(26px, 4vw, 56px); align-items: center;
	padding: clamp(30px, 4.5vw, 56px) 0;
	border-top: 1px solid var(--line2, rgba(26,23,20,.12));
}
.bgwdl-split.flip .bgwdl-split-t { order: 2; }
.bgwdl-split h2 { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.18; margin: 0 0 13px; }
/* The words column only. The drawn interface beside it has paragraphs of its own, and
   this rule was reaching into them: the question on the red card came out body-sized
   and body-coloured, which on that background is unreadable. */
.bgwdl-split-t p { font-size: 15px; line-height: 1.7; color: var(--text2, #4a443d); max-width: 34em; }

@media (max-width: 860px) {
	.bgwdl-frame { box-shadow: 0 10px 24px rgba(26,23,20,.09); }
	.bgwdl-ui { grid-template-columns: 96px minmax(0, 1fr); }
	.bgwdl-ui-list { display: none; }
	.bgwdl-split { grid-template-columns: 1fr; }
	.bgwdl-split.flip .bgwdl-split-t { order: 0; }
	.bgwdl-mw-g { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
	.bgwdl-ui { grid-template-columns: 1fr; }
	.bgwdl-ui-side { display: none; }
}

/* ---------- the template gallery, drawn ---------- */
.bgwdl-tpl { display: grid; grid-template-columns: 178px minmax(0, 1fr); font-size: 9.5px; }
.bgwdl-tpl-side {
	padding: 11px 9px 14px; border-right: 1px solid var(--line2, rgba(26,23,20,.1));
	display: flex; flex-direction: column; gap: 1px;
}
.bgwdl-tpl-find {
	display: flex; align-items: center; gap: 6px; margin-bottom: 9px;
	padding: 6px 9px; border-radius: 7px; color: var(--text2, #4a443d); opacity: .65;
	border: 1px solid var(--line2, rgba(26,23,20,.16));
}
.bgwdl-tpl-find .bgwdl-i { width: 10px; height: 10px; }
.bgwdl-tpl-h {
	font-size: 7.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	padding: 13px 8px 3px;
}
.bgwdl-tpl-note {
	font-size: 8px; line-height: 1.45; color: var(--text2, #4a443d); opacity: .75;
	padding: 0 8px 6px;
}
.bgwdl-tpl-row {
	display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px;
	color: var(--text, #1a1714); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgwdl-tpl-row.on { background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 600; }
.bgwdl-tpl-row i {
	flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.bgwdl-tpl-row i .bgwdl-i, .bgwdl-tpl-title i .bgwdl-i { width: 11px; height: 11px; }

.bgwdl-tpl-prev { padding: 15px 18px 18px; display: flex; flex-direction: column; }
.bgwdl-tpl-title { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.bgwdl-tpl-title i {
	width: 24px; height: 24px; border-radius: 7px; color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.bgwdl-tpl-title i .bgwdl-i { width: 14px; height: 14px; }
.bgwdl-tpl-title b { font-family: 'Fraunces', Georgia, serif; font-size: 14px; color: var(--text, #1a1714); }

/* The field chip, the same one the entry gets. */
.bgwdl-chip {
	align-self: flex-start; font-size: 7.5px; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: var(--text2, #4a443d);
	background: var(--surface, rgba(26,23,20,.06)); border-radius: 5px; padding: 3px 7px;
}
.bgwdl-rule {
	display: block; height: 1px; margin: 12px 0 16px;
	background: var(--line2, rgba(26,23,20,.13));
}
.bgwdl-dots { display: block; margin: 9px 0 14px; padding-left: 14px; }
.bgwdl-dots em {
	display: block; height: 5px; margin-bottom: 9px; border-radius: 3px;
	background: color-mix(in srgb, currentColor 13%, transparent); position: relative;
}
.bgwdl-dots em::before {
	content: ''; position: absolute; left: -12px; top: 1px; width: 3px; height: 3px;
	border-radius: 50%; background: color-mix(in srgb, currentColor 40%, transparent);
}

@media (max-width: 860px) {
	.bgwdl-tpl { grid-template-columns: 148px minmax(0, 1fr); }
}

/* The line that says what makes this one different, marked out from the rest. */
.bgwdl-plus {
	display: flex; gap: 12px; margin-top: 18px !important;
	padding: 15px 17px; border-radius: 11px;
	background: color-mix(in srgb, var(--accent, #9b2f2c) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent, #9b2f2c) 20%, transparent);
	font-size: 14px !important; line-height: 1.6;
}
.bgwdl-plus .bgwdl-i {
	width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; color: var(--accent, #9b2f2c);
}
.bgwdl-plus b { color: var(--text, #1a1714); }

/* ---------- looking back, drawn ---------- */
.bgwdl-in { padding: 15px 18px 20px; }
.bgwdl-in-k {
	font-size: 7.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent, #9b2f2c); margin: 0 0 8px;
}
.bgwdl-in-k + * + .bgwdl-in-k, .bgwdl-in-m + .bgwdl-in-k { margin-top: 16px; }
.bgwdl-in-bars { display: flex; flex-direction: column; gap: 4px; }
.bgwdl-in-b { display: flex; align-items: center; gap: 8px; }
.bgwdl-in-b span { flex: 0 0 62px; font-size: 8.5px; font-weight: 600; color: var(--text, #1a1714); }
.bgwdl-in-b u {
	flex: 1; height: 6px; border-radius: 4px; overflow: hidden; text-decoration: none;
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.bgwdl-in-b i { display: block; height: 100%; border-radius: 4px; }

.bgwdl-in-m { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.bgwdl-in-mc { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bgwdl-in-mc u {
	flex: 1; width: 100%; display: flex; align-items: flex-end; text-decoration: none;
	border-radius: 4px; background: color-mix(in srgb, currentColor 6%, transparent);
}
.bgwdl-in-mc i { display: block; width: 100%; border-radius: 4px; }
.bgwdl-in-mc em { margin-top: 4px; font-style: normal; font-size: 7.5px; color: var(--text2, #4a443d); opacity: .8; }

.bgwdl-in-t { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.bgwdl-in-t b { font-size: 10px; color: var(--text, #1a1714); }
.bgwdl-in-t em { font-style: normal; font-size: 8px; color: var(--text2, #4a443d); opacity: .75; }
.bgwdl-in-q {
	margin: 0; padding: 7px 11px; border-radius: 0 6px 6px 0;
	border-left: 2px solid var(--accent, #9b2f2c);
	background: color-mix(in srgb, currentColor 4%, transparent);
	font-family: 'Fraunces', Georgia, serif; font-size: 10.5px; line-height: 1.45;
	color: var(--text, #1a1714);
}

/* ---------- the personality type, drawn ---------- */
.bgwdl-ty {
	padding: 10px 12px; margin-bottom: 14px; border-radius: 7px;
	background: color-mix(in srgb, currentColor 4%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
}
.bgwdl-ty-k {
	display: block; font-size: 7px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: var(--accent, #9b2f2c); margin-bottom: 3px;
}
.bgwdl-ty b {
	display: block; font-family: 'Fraunces', Georgia, serif; font-size: 12.5px;
	line-height: 1.3; color: var(--text, #1a1714);
}
.bgwdl-ty p { margin: 4px 0 0; font-size: 8.5px; line-height: 1.5; color: var(--text2, #4a443d); }

.bgwdl-ty-l { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.bgwdl-ty-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.bgwdl-ty-h b { font-size: 8.5px; font-weight: 600; color: var(--text, #1a1714); }
.bgwdl-ty-h em { font-style: normal; font-size: 8px; font-weight: 600; color: var(--text2, #4a443d); opacity: .8; }
.bgwdl-ty-r u {
	position: relative; display: block; height: 5px; border-radius: 4px; text-decoration: none;
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.bgwdl-ty-r i { display: block; height: 100%; border-radius: 4px; background: var(--accent, #9b2f2c); opacity: .5; }
.bgwdl-ty-r s {
	position: absolute; top: -2px; width: 2px; height: 9px; border-radius: 2px;
	margin-left: -1px; text-decoration: none; background: var(--accent, #9b2f2c);
}
.bgwdl-ty-e {
	display: flex; justify-content: space-between; gap: 8px; margin-top: 3px;
	font-size: 7px; color: var(--text2, #4a443d); opacity: .7;
}

/* ---------- recurring topics, drawn ---------- */
.bgwdl-tp-w { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.bgwdl-tp-c {
	display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px;
	border-radius: 20px; font-size: 8.5px; font-weight: 600; color: var(--text, #1a1714);
	background: color-mix(in srgb, currentColor 6%, transparent);
}
.bgwdl-tp-c em { font-style: normal; font-size: 7.5px; opacity: .6; }
.bgwdl-tp { display: flex; flex-direction: column; }
.bgwdl-tp-r {
	padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.bgwdl-tp-r:last-child { border-bottom: 0; }
.bgwdl-tp-r b {
	display: block; font-family: 'Fraunces', Georgia, serif; font-size: 10.5px;
	line-height: 1.35; color: var(--text, #1a1714);
}
.bgwdl-tp-r.open b { margin-bottom: 6px; }
.bgwdl-tp-r:not(.open) b { opacity: .62; }

/* ---------- the second hero: the thing nothing else does ---------- */
.bgwdl-hero2 {
	padding: clamp(34px, 5vw, 62px) 0 clamp(30px, 4vw, 50px);
	border-top: 1px solid var(--line2, rgba(26,23,20,.12));
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 3.5vw, 48px); align-items: center;
}
.bgwdl-hero2-t { grid-column: 1; }
.bgwdl-hero2-s { grid-column: 2; grid-row: 1 / span 2; }
.bgwdl-hero2-g { grid-column: 1; }
.bgwdl-hero2 h2 {
	font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 14px;
	letter-spacing: -.01em;
}
.bgwdl-hero2 .bgwdl-lead {
	font-size: clamp(15px, 1.3vw, 17px); line-height: 1.65; margin: 0;
	color: var(--text2, #4a443d); max-width: 34em;
}
.bgwdl-hero2-g {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px 22px; margin-top: 26px;
}
.bgwdl-hero2-c {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px;
	align-content: start;
}
.bgwdl-hero2-c b {
	grid-column: 2; grid-row: 1;
	display: block; font-size: 14px; margin: 0 0 3px; color: var(--text, #1a1714);
}
.bgwdl-hero2-c span {
	grid-column: 2; grid-row: 2;
	display: block; font-size: 12.5px; line-height: 1.55; color: var(--text2, #4a443d);
}
.bgwdl-hero2-c .bgwdl-i {
	grid-column: 1; grid-row: 1; margin-top: 1px;
	width: 16px; height: 16px; color: var(--accent, #9b2f2c); display: block;
}
.bgwdl-hero2-ai {
	grid-column: 1 / -1;
	margin: 26px 0 0; padding: 16px 19px; border-radius: 11px;
	background: var(--surface, rgba(26,23,20,.04));
	border: 1px solid var(--line2, rgba(26,23,20,.12));
	font-size: 13.5px; line-height: 1.6; color: var(--text2, #4a443d);
}
.bgwdl-hero2-ai > p { display: flex; gap: 11px; align-items: flex-start; margin: 0; }
.bgwdl-hero2-ai .bgwdl-i { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--accent, #9b2f2c); }
.bgwdl-hero2-ai b { color: var(--text, #1a1714); }
.bgwdl-hero2-ail {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px 20px; margin: 15px 0 0 29px;
}
.bgwdl-hero2-ail b { display: block; font-size: 13px; }
.bgwdl-hero2-ail span { display: block; font-size: 12.5px; line-height: 1.5; margin-top: 2px; }

@media (max-width: 860px) {
	.bgwdl-hero2 { grid-template-columns: 1fr; }
	.bgwdl-hero2-t, .bgwdl-hero2-s, .bgwdl-hero2-g { grid-column: 1; }
	.bgwdl-hero2-s { grid-row: auto; margin: 6px 0 4px; }
}

/* ---------- what you wrote, and the row we hold ---------- */
.bgwdl-cy {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: clamp(14px, 2.5vw, 30px); margin: 26px 0 30px;
}
.bgwdl-cy-p { min-width: 0; }
.bgwdl-cy-k {
	display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: #d98b7f; margin-bottom: 9px;
}
.bgwdl-cy-w, .bgwdl-cy-db {
	padding: 16px 18px; border-radius: 11px; min-height: 168px;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
}
.bgwdl-cy-w em {
	display: block; font-style: normal; font-size: 11px; letter-spacing: .04em;
	color: rgba(244,239,230,.55); margin-bottom: 7px;
}
.bgwdl-cy-w b {
	display: block; font-family: 'Fraunces', Georgia, serif; font-size: 17px;
	line-height: 1.3; color: #fff; margin-bottom: 8px;
}
.bgwdl-cy-w p { margin: 0; font-size: 13px; line-height: 1.65; color: rgba(244,239,230,.78); }

/* the lock, and the sentence that says where it happens */
.bgwdl-cy-m { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 116px; }
.bgwdl-cy-m .bgwdl-i { width: 26px; height: 26px; color: #d98b7f; }
.bgwdl-cy-m span {
	font-size: 11px; line-height: 1.45; text-align: center; color: rgba(244,239,230,.72);
}

/* the row itself */
.bgwdl-cy-db { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bgwdl-cy-r { display: flex; gap: 10px; font-size: 11.5px; margin-bottom: 7px; }
.bgwdl-cy-r em { flex: 0 0 54px; font-style: normal; color: rgba(244,239,230,.45); }
.bgwdl-cy-r b { font-weight: 400; color: rgba(244,239,230,.9); }
.bgwdl-cy-body { margin-bottom: 0; }
.bgwdl-cy-body b {
	min-width: 0; word-break: break-all; line-height: 1.5;
	color: rgba(244,239,230,.55); max-height: 92px; overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 62%, transparent);
	mask-image: linear-gradient(#000 62%, transparent);
}
.bgwdl-cy-n { margin: 10px 0 0; font-size: 11.5px; color: rgba(244,239,230,.6); }

@media (max-width: 780px) {
	.bgwdl-cy { grid-template-columns: 1fr; gap: 16px; }
	.bgwdl-cy-m { flex-direction: row; max-width: none; justify-content: center; }
	.bgwdl-cy-w, .bgwdl-cy-db { min-height: 0; }
}
