/* Thread look «د» (pb_threadlook 0.2): question card, threaded replies with rails that fold, pill actions. Values from the canvas board CompactD. */
[data-pb-look="d"] .thread-page { display: block; }
/* The board's <main>: 860px with a 16px gutter (cards 828px), 18px under the bar; #content's own padding goes */
[data-pb-look="d"] #content { padding: 0; }
[data-pb-look="d"] .thread-main { max-width: 860px; margin: 0 auto; padding: 18px 16px 48px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
[data-pb-look="d"] .thread-main > nav.pager:first-of-type { display: none; }
[data-pb-look="d"] .thread-main > .pbb { margin: 0; }

/* pb_brief's card as the board draws it on this page (pb_brief.php's own sheet stays as it is):
   no icon in the badge, a squarer toggle, and the safety label in its own column */
[data-pb-look="d"] .pbb-badge .fa { display: none; }
[data-pb-look="d"] .pbb-toggle { min-height: 38px; padding: 0 14px; border-radius: 10px; }
[data-pb-look="d"] .pbb-safety { display: flex; gap: 8px; align-items: flex-start; }
[data-pb-look="d"] .pbb-safety > span { display: contents; }

/* Forum header */
.pd-forum { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #dfe5de; border-radius: 14px; padding: 10px 14px; }
.pd-badge { width: 40px; height: 40px; border-radius: 50%; background: #1f6f52; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-ft { flex-grow: 1; display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.pd-ft a { color: #1f2a24; text-decoration: none; font-size: 15px; }
.pd-ft small { font-size: 12px; color: #5f6b64; }
a.pd-follow, a.pd-follow:visited { min-height: 34px; padding: 0 14px; border-radius: 999px; background: #1f6f52; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
a.pd-follow.on { background: #eaf2ec; color: #1f6f52; }

/* Question */
.pd-q { background: #fff; border: 1px solid #dfe5de; border-radius: 14px; padding: 14px 16px; }
.pd-q h1 { margin: 8px 0 4px; font-size: 21px; line-height: 1.6; color: #1f2a24; }
.pd-q .pd-text { font-size: 16px; line-height: 2.05; margin: 0 0 10px; }
.pd-q .pd-h img { width: 26px; height: 26px; }
.pd-q .pd-h { min-height: 0; }
.pd-q .pd-h b, .pd-q .pd-h b a { font-size: 12px; }
.pd-ask { padding: 1px 8px; border-radius: 999px; background: #fbf1cf; color: #6e5214; font-weight: 700; }

/* Sort bar */
.pd-sort { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5f6b64; }
.pd-sort[hidden] { display: none; }
.pd-sort button { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #5f6b64; font: inherit; font-weight: 700; cursor: pointer; }
.pd-sort button[aria-pressed="true"] { background: #1f2a24; color: #fff; }

/* Replies card */
.pd-replies { background: #fff; border: 1px solid #dfe5de; border-radius: 14px; padding: 14px 18px 16px; }
/* The composer (reply.css) as the CompactD_Reply board draws it in this page: 12px under the box, square-ish tabs and tools */
[data-pb-look="d"] .pbr { margin-bottom: 12px; }
[data-pb-look="d"] .pbr-tabs { border-radius: 9px; }
[data-pb-look="d"] .pbr-tabs button { border-radius: 7px; }
[data-pb-look="d"] .pbr-t { border-radius: 8px; }
[data-pb-look="d"] .pbr-add { border-radius: 12px; }
@media (max-width: 639px) { [data-pb-look="d"] .pbr-t { border-radius: 10px; } }
a.pd-ask-box { display: block; margin: 0 0 12px; border: 1px solid #dfe5de; border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #8a948e; text-decoration: none; }
.pd-c { position: relative; display: flex; gap: 8px; }
/* MyBB's #pid anchors stay for links but take no room in the row */
.pd-c > a[name], .pd-q > a[name] { position: absolute; }
#posts > .pd-c + .pd-c { border-top: 1px solid #eef1ec; padding-top: 14px; }
.pd-kids > .pd-c { margin-top: 12px; }
.pd-kids > .pd-c::before { content: ""; position: absolute; top: 0; inset-inline-start: -23px; width: 21px; height: 15px; border-inline-start: 2px solid #d5ddd3; border-bottom: 2px solid #d5ddd3; border-end-start-radius: 12px; }
.pd-col { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
.pd-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pd-rail { flex-grow: 1; width: 16px; margin-top: 4px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; justify-content: center; }
.pd-rail::after { content: ""; width: 2px; height: 100%; background: #d5ddd3; border-radius: 2px; }
.pd-rail:hover::after { background: #1f6f52; }
.pd-c.folded > .pd-col .pd-rail { display: none; }
.pd-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-h { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 12px; line-height: 1.5; color: #5f6b64; }
/* one line on a phone too: badge, date, fold pill and number keep their size; only the name gives way and ends in … */
.pd-h > * { white-space: nowrap; flex-shrink: 0; }
.pd-h b { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pd-h b, .pd-h b a { color: #1f2a24; font-size: 13px; text-decoration: none; }
.pd-sp { flex-grow: 1; }
.pd-op { padding: 0 6px; border-radius: 4px; background: #eaf2ec; color: #1f6f52; font-weight: 700; }
a.pd-num { color: #8a948e; text-decoration: none; }
.pd-fold { height: 26px; padding: 0 10px; border: 1px solid #cfe3d6; border-radius: 999px; background: #eaf2ec; color: #1f6f52; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
[data-pb-look="d"] .pd-text { padding: 0; }
.pd-text { margin: 2px 0 6px; font-size: 15px; line-height: 2; color: #1f2a24; overflow-wrap: anywhere; }
.pd-text img { max-width: 100%; height: auto; }
.pd-text blockquote { margin: 4px 0 8px; padding: 6px 12px; border-inline-start: 3px solid #d5ddd3; background: #f6f8f5; border-radius: 8px; font-size: 14px; color: #5f6b64; }
.pd-meta:empty, .pd-meta span:empty { display: none; }
.pd-meta { font-size: 12px; color: #8a948e; }
.pd-kids[hidden] { display: none; }
.pd-hidden { align-self: flex-start; margin-top: 6px; border: 0; background: #eef1ec; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 12px; font-weight: 700; color: #1f6f52; cursor: pointer; }

.pd-note { margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #f4f6f3; color: #5f6b64; font-size: 12px; text-align: center; }

/* Actions */
.pd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-bottom: 14px; font-size: 12px; font-weight: 700; color: #5f6b64; position: relative; }
.pd-q .pd-acts { padding-bottom: 0; gap: 6px; }
.pd-pill, a.pd-pill, a.pd-pill:visited { height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: #eef1ec; color: #5f6b64; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pd-pill:hover { background: #e3e9e1; color: #1f2a24; }
/* The heart has no pill until it is pressed, then it turns orange (the board's thxBg / thxOn) */
.pd-pill.pd-thx { background: transparent; }
a.pd-pill.pd-thx:hover { background: #eef1ec; }
.pd-pill.pd-thx.is-on, a.pd-thx.thx_btn_remove, a.pd-thx.thx_btn_remove:hover { background: #fdeee4; color: #c2410c; }
.pd-acts .pd-pill.pd-thx svg { fill: none; } /* thanks.css fills it when pressed */
.pd-thx .fa { display: none; }
/* The theme puts its old button sprite on every span in a post's buttons */
.pd-acts span:not(.pd-more):not(.pd-pill):not(.pd-sep), .pd-acts .pd-n { display: inline; color: inherit; background: none !important; padding: 0; margin: 0; font: inherit; border: 0; width: auto; height: auto; }
.pd-more { position: relative; display: inline-flex; }
.pd-dots { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #eef1ec; color: #5f6b64; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pd-menu { position: absolute; top: 36px; left: 0; z-index: 5; min-width: 150px; background: #fff; border: 1px solid #dfe5de; border-radius: 12px; box-shadow: 0 10px 30px rgba(31,42,36,.14); padding: 6px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; }
.pd-menu[hidden] { display: none; }
/* The theme draws these as bordered buttons; in the menu they are plain rows, as on the board */
.pd-menu a, .pd-menu a.btn, .pd-menu a.putton, .pd-menu .pd-check { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 10px; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 8px 10px !important; border: 0 !important; border-radius: 8px !important; background: none !important; box-shadow: none !important; color: #1f2a24 !important; font: inherit !important; text-decoration: none; white-space: nowrap; width: 100%; box-sizing: border-box; }
.pd-menu a:hover, .pd-menu .pd-check:hover { background: #eef1ec !important; }
/* plain text rows on the board: no icons, no red, no rules between the groups */
.pd-menu a .fa, .pd-menu .pd-sep { display: none !important; }
.pd-menu .label { display: inline !important; }
/* MyBB hides quick delete or restore with an inline style; the row rule above must not bring it back */
.pd-menu a[style*="display: none"] { display: none !important; }
.pd-menu .popup_menu { position: absolute; inset-inline-start: 100%; top: auto; background: #fff; border: 1px solid #dfe5de; border-radius: 12px; box-shadow: 0 10px 30px rgba(31,42,36,.14); padding: 6px; }
.pd-menu .popup_item { display: block; padding: 8px 10px; border-radius: 8px; color: #1f2a24; white-space: nowrap; }
.pd-check input { margin: 0 !important; accent-color: #1f6f52; }
.pd-c :focus-visible, .pd-q :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* One footer row under the replies: older thread · pages · newer thread · search in this thread (threadd.js puts them together) */
.pd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fff; border: 1px solid #dfe5de; border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.pd-foot .pager, .pd-foot .thread-nav { display: contents; }
.pd-foot .pagination { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; }
.pd-foot .pagination .pages, .pd-foot .pagination_breadcrumb_link { display: none !important; }
.pd-foot .pagination a, .pd-foot .pagination span, .pd-foot a.btn { height: 30px !important; min-height: 0 !important; line-height: 30px; min-width: 30px; padding: 0 10px; border: 0 !important; border-radius: 999px !important; background: #eef1ec !important; color: #5f6b64 !important; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: inherit; font-weight: 700; text-decoration: none; box-shadow: none !important; box-sizing: border-box; margin: 0 !important; }
.pd-foot .pagination .pagination_current { background: #1f2a24 !important; color: #fff !important; }
.pd-foot .pagination a:hover, .pd-foot a.btn:hover { background: #e3e9e1 !important; color: #1f2a24 !important; }
.pd-foot .pd-older { order: 1; } .pd-foot .pagination { order: 2; } .pd-foot .pd-newer { order: 3; }
.pd-foot .float_left { order: 4; margin-inline-start: auto; float: none; }
.pd-foot form { display: flex; align-items: center; margin: 0; }
.pd-foot input.textbox { height: 32px; width: 200px; padding: 0 14px; border: 1px solid #dfe5de; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; color: #1f2a24; box-sizing: border-box; margin: 0; }
.pd-foot input.textbox:focus { outline: 2px solid #1f6f52; outline-offset: 1px; }
.pd-foot input.button { display: none; }
.pd-browsing { font-size: 12px; color: #8a948e; padding: 0 4px; }
.pd-browsing .browsing { display: block; background: none; border: 0; padding: 0; }
.pd-browsing .fa { display: none; }


/* Breadcrumb in the green bar, starting at the cards' edge (the board's 190px logo block) */
.pd-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 20px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; }
.pd-crumbs a, .pd-crumbs a:link, .pd-crumbs a:visited { color: inherit; text-decoration: none; }
.pd-crumbs a:hover { color: #fff; }
.pd-here { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
/* pb_headlook's bar: the crumbs stand where its section menu was; the menu button (and its drawer with the sections) shows at every width */
[data-pb-look="d"] .hl-bar { border-bottom: 0; }
[data-pb-look="d"] .hl-logo { flex: 0 0 172px; }
[data-pb-look="d"] .hl-bar .pd-crumbs { flex: 0 1 auto; }
[data-pb-look="d"] .hl-bar .menu-btn { display: inline-flex !important; }
/* The old bar */
@media (min-width: 1180px) {
	[data-pb-look="d"] .bar-in { position: relative; }
	[data-pb-look="d"] .bar-in .pd-crumbs { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: calc(50% - 430px); max-width: 560px; }
}
@media (max-width: 1179px) { [data-pb-look="d"] .bar-in .pd-crumbs { flex: 1 1 auto; margin-inline-start: 16px; } }
/* No bar to hold them: a row above the cards, on the page background */
[data-pb-look="d"] .pd-crumbs.pd-crumbs-row { position: static; transform: none; max-width: 860px; margin: 12px auto 0; padding: 0 2px; color: var(--muted); }
[data-pb-look="d"] .pd-crumbs-row a:hover { color: var(--link); }
[data-pb-look="d"] .pd-crumbs-row .pd-here { color: var(--ink); }

/* Moderator tools: one card, pill selects and pill buttons */
/* guests and members get an empty moderation box: no card at all */
[data-pb-look="d"] .mod-tools:not(:has(form, select, input, a)) { display: none; }
[data-pb-look="d"] .mod-tools { background: #fff; border: 1px solid #dfe5de; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
[data-pb-look="d"] .mod-tools br { display: none; }
[data-pb-look="d"] .mod-tools form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; }
[data-pb-look="d"] .mod-tools .smalltext { min-width: 130px; font-size: 12px; color: #5f6b64; }
[data-pb-look="d"] .mod-tools .smalltext strong { font-weight: 700; }
[data-pb-look="d"] .mod-tools select { height: 32px; padding: 0 14px; border: 1px solid #dfe5de; border-radius: 999px; background: #fff; color: #1f2a24; font: inherit; font-size: 13px; max-width: 100%; }
[data-pb-look="d"] .mod-tools .button { height: 32px; min-height: 0; padding: 0 16px; border: 0; border-radius: 999px !important; background: #1f6f52; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
[data-pb-look="d"] .mod-tools input[type="button"].button { background: #eef1ec; color: #5f6b64; }

/* Phone header, as on the CompactD_Mobile board: a 52px row (30px logo), then the path on its own line in the bar */
@media (max-width: 760px) {
	[data-pb-look="d"] .hl-in { height: auto; flex-wrap: wrap; row-gap: 0; padding: 6px 12px 0; }
	[data-pb-look="d"] .hl-logo { flex: 0 0 auto; }
	[data-pb-look="d"] .hl-logo img { width: 30px; height: 30px; }
	[data-pb-look="d"] .hl-logo b { font-size: 17px; }
	[data-pb-look="d"] .hl-bar .pd-crumbs { order: 9; flex: 0 0 100%; margin-top: 6px; padding-bottom: 10px; font-size: 12px; line-height: 18px; overflow-x: auto; }
}

/* Phone: tighter gutters, as on the CompactD_Mobile board */
@media (max-width: 640px) {
	[data-pb-look="d"] .thread-main { padding: 10px 10px 40px; }
	.pd-q h1 { font-size: 19px; }
	.pd-replies { padding: 12px 12px 14px; }
	/* Two-row header, as on the phone board: the path gets its own line under the logo */
	[data-pb-look="d"] .bar-in { flex-wrap: wrap; }
	.pd-foot .float_left { flex-basis: 100%; margin: 0; }
	.pd-foot input.textbox { width: 100%; }
	[data-pb-look="d"] .bar-in .pd-crumbs { order: 9; flex-basis: 100%; margin: 0; padding: 0 2px 10px; font-size: 12px; overflow-x: auto; }
}
