/*	----------------------	*/
/*	----------------------	*/
/*	Custom media queries.	*/
/*	----------------------	*/
/*	----------------------	*/
/*	Equals nominal 896px.	*/
/*	----------------------	*/
/*	----------------------	*/
@media screen and (max-width: 56rem) {
	.topiclist dt {
		width: calc(100% - 29rem);
	}
	dd.posts {
		display: none;
	}
	/*	----------------------	*/
	/*	@WIP stuff copy/pasted	*/
	/*	from custom_forms.css.	*/
	/*	Responsive UCP/MCP nav	*/
	/*	----------------------	*/
	.nojs .tabs a span, .nojs .minitabs a span {
		max-width: 40px;
		overflow: hidden;
		text-overflow: ellipsis;
		letter-spacing: -.5px;
	}
	.cp-menu, .navigation, .cp-main {
		float: none;
		width: auto;
		margin: 0;
	}
	.navigation {
		max-width: 320px;
		margin: 0 auto;
		padding: 0;
	}
	.navigation a {
		background-image: none;
	}
	.navigation li:first-child a {
		border-radius: 5px 5px 0 0;
	}
	.navigation li:last-child a {
		border-radius: 0 0 5px 5px;
	}
}
@media screen and (min-width: 54rem) {
	.wrap {
		max-width: calc(100% - 60px);
	}
}
/*	----------------------	*/
/*	Equals nominal 768px.	*/
/*	----------------------	*/
@media screen and (max-width: 48rem) {
	.wrap {
		max-width: 100%;
	}
	#wrap {
		padding-top: calc(2.8rem + 7px);
	}
	#skiplink, #page-header,
	.forabg, .forumbg, .rules,
	.panel, .post, .action-bar {
		border-width: 4px 0;
		border-radius: 0;
	}
	.topicreview .post {
		border-width: 1px 0;
	}
	#page-header {
		padding-inline: 0;
	}
	.headerbar .inner {
		border-radius: 0;
		box-shadow: 0 2px 1px #fff2;
	}
	#page-header .navbar {
		margin-inline: 8px;
	}
	.topiclist dl {
		display: block;
	}
	.topiclist dt {
		width: auto;
	}
	.topiclist .header dd {
		display: none !important;
	}
	.topiclist .lastpost, .topiclist .redirect {
		width: auto;
		padding-left: 3.8rem;
	}
	.topiclist .lastpost span {
		display: inline-block;
	}
	.forumbg .lastpost span::after {
		content: '-';
	}
	/*	----------------------	*/
	/*	Profile above content.	*/
	/*	----------------------	*/
	.post.online::before {
		z-index: 1;
	}
	.post > .inner, .has-profile.post > .inner, .search.post > .inner {
		display: block;
	}
	.postprofile, .postbody, .has-profile.post .postbody, .search.post .postbody {
		max-width: 100%;
	}
	/*	----------------------	*/
	.has-profile.post .postprofile, .search.post .postprofile {
		position: relative;
		width: auto;
		padding: 0 2px 6px;
		min-height: 3.8rem;
	}
	.postprofile .has-avatar .avatar-container {
		position: relative;
		top: .25em;
		margin: 0;
		overflow: inherit;
	}
	.postprofile .avatar {
		margin-right: 5px;
	}
	.postprofile .avatar img {
		width: auto !important;
		height: auto !important;
		max-height: 3.2rem;
	}
	.postprofile dd {
		display: none;
	}
	.postprofile dt,
	.postprofile dd.profile-rank,
	.search .postprofile dd {
		display: block;
		margin: 0;
	}
	.postprofile .profile-phpbb_location,
	.postprofile .profile-contact {
		position: absolute;
		display: block;
		top: .125em;
		right: 0;
		margin: 0;
	}
	.postprofile .profile-contact {
		top: auto;
		bottom: .375em;
	}
	/*	----------------------	*/
	.has-profile .postbody h3 {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/*	----------------------	*/
	.action-bar {
		justify-content: center;
	}
	.copyright {
		flex-direction: column;

		.footer-row {
			width: auto;
			text-align: center;
		}
	}
}
/*	----------------------	*/
@media screen and (min-width: 48rem) {
	.action-bar > .pagination {
		margin-inline: auto 2px !important;
	}
}
/*	----------------------	*/
/*	@WIP: phpBB defaults.	*/
/*	----------------------	*/
/*	----------------------	*/
/*	Equals nominal 704px.	*/
/*	----------------------	*/
@media screen and (max-width: 44rem) {
	/*	----------------------	*/
	/*	@WIP: Kill this shit?	*/
	/*	----------------------	*/
	.responsive-hide {display: none !important;}
	.responsive-show, .responsive-search {display: block !important;}
	.responsive-show-inline-block {display: inline-block !important;}
	.responsive-show-inline {display: inline !important;}
	/*	----------------------	*/
	/*	Content wrappers.		*/
	/*	----------------------	*/
	.cp-main .forabg, .cp-main .forumbg, .cp-main .post, .cp-main .panel {
		border-radius: 7px;
	}
	/*	----------------------	*/
	/*	Logo block.				*/
	/*	----------------------	*/
	/*	@WIP: Kill this shit?	*/
	/*	----------------------	*/
	.site-description {
		float: none;
		width: auto;
		text-align: center;
	}
	.site-description h1, .site-description p {
		overflow: hidden;
		float: none;
		margin: 5px;
		line-height: 1.2em;
		text-align: inherit;
		text-overflow: ellipsis;
	}
	.site-description p, .search-header {
		display: none;
	}
	/*	----------------------	*/
	/*	Forums, topics lists,	*/
	/*	----------------------	*/
	.topiclist dd.mark {
		display: block;
		position: absolute;
		right: 5px;
		top: 0;
		margin: 0;
		width: auto;
		min-width: 0;
		text-align: start;
	}
	/*	----------------------	*/
	/*	@WIP: Kill this shit?	*/
	/*	----------------------	*/
	li.row .responsive-show strong {
		font-weight: bold;
		color: inherit;
	}
	/*	----------------------	*/
	/*	Pagination.	Kill this?	*/
	/*	----------------------	*/
	.row .pagination .ellipsis + li {
		display: none !important;
	}
	/*	----------------------	*/
	/*	Responsive tables.		*/
	/*	----------------------	*/
	table.responsive, table.responsive tbody, table.responsive tr, table.responsive td {
		display: block;
	}
	table.responsive thead, table.responsive th {
		display: none;
	}
	table.responsive.show-header thead, table.responsive.show-header th:first-child {
		display: block;
		width: auto !important;
		text-align: left !important;
	}
	table.responsive.show-header th:first-child span.rank-img {
		display: none;
	}
	table.responsive tr {
		margin: 2px 0;
	}
	table.responsive td {
		width: auto !important;
		text-align: left !important;
		padding: 4px;
	}
	table.responsive td.empty {
		display: none !important;
	}
	table.responsive td > dfn {
		display: inline-block !important;
	}
	table.responsive td > dfn:after {
		content: ':';
		padding-right: 5px;
	}
	table.responsive span.rank-img {
		float: none;
		padding-right: 5px;
	}
	table.responsive.memberlist td:first-child input[type="checkbox"] {
		float: right;
	}
	/*	----------------------	*/
	/*	@WIP: Forms.			*/
	/*	----------------------	*/
	fieldset dt, fieldset.fields1 dt, fieldset.fields2 dt {
		width: auto;
		float: none;
	}
	fieldset dd, fieldset.fields1 dd, fieldset.fields2 dd {
		margin-left: 0;
	}
	textarea, dd textarea, .message-box textarea {
		width: 100%;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	dl.pmlist dt {
		width: auto !important;
		margin-bottom: 5px;
	}
	dl.pmlist dd {
		display: inline-block;
		margin-left: 0 !important;
	}
	dl.pmlist dd:first-of-type {
		padding-left: 20px;
	}
	.bbcode-status {
		display: none;
	}
	.colour-palette, .colour-palette tbody, .colour-palette tr {
		display: block;
	}
	.colour-palette td {
		display: inline-block;
		margin-right: 2px;
	}
	.horizontal-palette td:nth-child(2n), .vertical-palette tr:nth-child(2n) {
		display: none;
	}
	/*	----------------------	*/
	/*	@WIP: User profile.		*/
	/*	----------------------	*/
	.column1, .column2, .left-box.profile-details {
		float: none;
		width: auto;
		clear: both;
	}
	/*	----------------------	*/
	/*	@WIP: Polls.			*/
	/*	----------------------	*/
	fieldset.polls dt {
		width: 90%;
	}
	fieldset.polls dd.resultbar {
		padding-left: 20px;
	}
	fieldset.polls dd.poll_option_percent {
		width: 20%;
	}
	fieldset.polls dd.resultbar, fieldset.polls dd.poll_option_percent {
		margin-top: 5px;
	}
	/*	----------------------	*/
	/*	@WIP: Miscllaneous.		*/
	/*	----------------------	*/
	p {
		margin-bottom: .5em;
		overflow: hidden;
	}
	p.rightside {
		margin-bottom: 0;
	}
	fieldset.display-options label {
		display: block;
		clear: both;
		margin-bottom: 5px;
	}
	dl.mini dd.pm-legend {
		float: left;
		min-width: 200px;
	}
	fieldset.display-actions {
		white-space: normal;
	}
	.phpbb_alert {
		width: auto;
		margin: 0 5px;
	}
	.attach-comment dfn {
		width: 100%;
	}
}
/*	----------------------	*/
/*	Equals nominal 608px.	*/
/*	----------------------	*/
/*	@WIP: Consider a11y!	*/
/*	----------------------	*/
@media screen and (max-width: 38rem) {
	#nav_notify_button > span {
		position: absolute;
		width: 1px;
		overflow: hidden;
		white-space: nowrap;
	}
	.badge {
		bottom: 100%;
		left: 35%;
	}
}
/*	----------------------	*/
/*	----------------------	*/
/*	@WIP: phpBB defaults.	*/
/*	----------------------	*/
/*	@WTF? Copy/pasted from	*/
/*	custom_base.css.		*/
/*	----------------------	*/
@media screen and (max-height: 32rem), screen and (max-device-width: 32rem) {
	.phpbb_alert {
		top: 25px;
	}
}
/*	----------------------	*/
/*	----------------------	*/
/*	@WIP: Back to my stuff	*/
/*	----------------------	*/
/*	----------------------	*/
/*	Equals nominal 512px.	*/
/*	----------------------	*/
@media screen and (max-width: 32rem) {
	#username_logged_in {

		.username-coloured {
			position: absolute;
			width: 1px;
			overflow: hidden;
			white-space: nowrap;
		}
		.header-avatar img {
			position: relative; 
		}
	}
	.codebox, blockquote {
		margin: 8px 0;
	}
	/*	----------------------	*/
	/*	@WIP: phpBB defaults.	*/
	/*	----------------------	*/
	dd label {
		white-space: normal;
	}
	select, .inputbox {
		max-width: unset;
	}
	.captcha-panel dd.captcha {
		margin-left: 0;
	}
	.captcha-panel dd.captcha-image img {
		width: 100%;
	}
	dl.details dt, dl.details dd {
		width: auto;
		float: none;
		text-align: start;
	}
	dl.details dd {
		margin-left: 20px;
	}
	p.responsive-center {
		float: none;
		text-align: center;
		margin-bottom: 5px;
	}
	p.jumpbox-return {
		display: none;
	}
	.display-options > label:nth-child(1) {
		display: block;
		margin-bottom: 5px;
	}
	.attach-controls {
		margin-top: 5px;
		width: 100%;
	}
}
/*	----------------------	*/
/*	Equals nominal 480px.	*/
/*	----------------------	*/
@media screen and (max-width: 30rem) {
	.crumb:first-child:not(:only-child) {
		.icon {
			transform: scale(1.5);
		}
		span {
			position: absolute;
			width: 1px;
			overflow: hidden;
			white-space: nowrap;
		}
	}
	.topic-poster {
		position: absolute;
		width: 1px;
		overflow: hidden;
		white-space: nowrap;
	}
}
/*	----------------------	*/
/*	Equals nominal 400px.	*/
/*	----------------------	*/
@media screen and (min-width: 25rem) {
	.subforums_wrap {
		display: grid;
		grid-template-columns: 19rem auto;
	}
	.subforums_wrap a {
		grid-column: 1/2;
		grid-row: 1/2;
	}
	.subforums_wrap a:nth-of-type(2) {
		grid-row: 2/3;
	}
	.subforums_wrap a:nth-of-type(3) {
		grid-column: 2/3;
		grid-row: 1/2;
	}
	.subforums_wrap a:nth-of-type(4) {
		grid-column: 2/3;
		grid-row: 2/3;
	}
	.subforums_wrap a:nth-of-type(5) {
		grid-row: 3/4;
	}
}
/*	----------------------	*/
/*	Equals nominal 384px.	*/
/*	----------------------	*/
@media screen and (max-width: 24rem) {
	.topiclist.forums dd.lastpost {
		display: none;
	}
	.postprofile .profile-phpbb_location {
		display: none;
	}
	/*	----------------------	*/
	/*	PNotifications list.	*/
	/*	----------------------	*/
	.dropdown-extended .dropdown-contents {
		width: auto;
	}
}
@media (max-width: 20rem) {
	select, .inputbox {
		max-width: 15rem;
	}
}
/*	----------------------	*/
/*	----------------------	*/
