/**
 * Shiplake Villages forum styles, layered on bbPress's default bbpress.css.
 * Built from the Figma "Shiplake Website Design - V1" frames "Forum" (555:188)
 * and "Forum Thread Example" (564:674). Sizes are the design's own at its
 * 1600px content width and step down on narrower screens. Fonts (Jost, Open
 * Sans) are expected from the site theme.
 *
 * Website Energizers
 */

#bbpress-forums {
	/* Figma variables "Colours/Option 1/*" */
	--shiplake-moss: #566419;      /* Moss Green */
	--shiplake-meadow: #a6b727;    /* Meadow Green */
	--shiplake-charcoal: #2d302a;  /* Charcoal */
	--shiplake-stone: #ede8db;     /* Stone */
	--shiplake-cream: #f8f6f0;     /* Cream */
	--shiplake-river: #47758a;     /* River Blue */
	--shiplake-clay: #b65e3c;      /* Clay */
	/* Unnamed values used in the forum frames */
	--shiplake-section: #e9e5d9;
	--shiplake-muted: #68675e;
	--shiplake-badge: #9bae2b;
	/* Unnamed values used in the thread frame */
	--shiplake-post-text: #155c37;
	--shiplake-post-border: #d8d1bc;
	--shiplake-meta: #77766b;
	--shiplake-input-border: #aaa998;
	--shiplake-notice: #ffffe3;
	--shiplake-notice-border: #d5d526;

	--shiplake-heading: "Jost", "Futura", "Century Gothic", sans-serif;
	--shiplake-body: "Open Sans", "Segoe UI", Arial, sans-serif;

	/* bbpress.css clears floats with overflow: hidden, which would clip the
	   full-width breadcrumb bar; flow-root contains floats without clipping. */
	display: flow-root;
	overflow: visible;
	background: transparent;
	color: var(--shiplake-charcoal);
	font-family: var(--shiplake-body);
	font-size: 18px;
	line-height: 1.5;
}

#bbpress-forums a {
	color: var(--shiplake-river);
	font-weight: 700;
	text-decoration: none;
}

#bbpress-forums a:hover {
	text-decoration: underline;
}

#bbpress-forums a:focus-visible,
#bbpress-forums button:focus-visible,
#bbpress-forums input:focus-visible,
#bbpress-forums textarea:focus-visible {
	outline: 3px solid var(--shiplake-meadow);
	outline-offset: 2px;
}

#bbpress-forums h2,
#bbpress-forums h3 {
	margin: 0;
	padding: 0;
	clear: none;
	color: inherit;
	font-family: var(--shiplake-body);
	line-height: 1.2;
}

#bbpress-forums .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Breadcrumb: a full-width Stone bar (box-shadow + clip-path bleed it to the
   viewport edges without touching the theme's containers). */

#bbpress-forums .shiplake-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0 0 20px;
	padding: 20px 0;
	background: var(--shiplake-stone);
	box-shadow: 0 0 0 100vmax var(--shiplake-stone);
	clip-path: inset(0 -100vmax);
	font-size: 20px;
	font-weight: 700;
}

#bbpress-forums .shiplake-breadcrumb a {
	color: var(--shiplake-charcoal);
}

#bbpress-forums .shiplake-breadcrumb .bbp-breadcrumb-current {
	color: var(--shiplake-moss);
}

#bbpress-forums .shiplake-breadcrumb .bbp-breadcrumb-sep {
	display: inline-block;
	width: 8px;
	height: 13px;
	background: url(../images/chevron.svg) no-repeat center / contain;
	font-size: 0;
}

/* Buttons */

#bbpress-forums a.shiplake-button,
#bbpress-forums .bbp-submit-wrapper button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: var(--shiplake-meadow);
	border: 0;
	border-radius: 12px;
	color: var(--shiplake-charcoal);
	font-family: var(--shiplake-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

#bbpress-forums a.shiplake-button-light {
	background: var(--shiplake-stone);
}

#bbpress-forums a.shiplake-button:hover,
#bbpress-forums .bbp-submit-wrapper button:hover {
	filter: brightness(1.06);
	text-decoration: none;
}

#bbpress-forums .shiplake-arrow,
#bbpress-forums .bbp-submit-wrapper button::after {
	display: inline-block;
	width: 24px;
	height: 14px;
	background: url(../images/arrow.svg) no-repeat center / contain;
}

#bbpress-forums .bbp-submit-wrapper button::after {
	content: "";
}

/* Search */

/* bbpress.css floats .bbp-search-form right; the design puts it above the forums. */
#bbpress-forums div.shiplake-search {
	float: none;
	margin: 0 0 32px;
}

#bbpress-forums .shiplake-search form {
	display: flex;
	width: 400px;
	max-width: 100%;
	height: 37px;
	background: #fff;
	border: 1px solid var(--shiplake-charcoal);
	border-radius: 12px;
	overflow: hidden;
}

#bbpress-forums .shiplake-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 8px;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--shiplake-charcoal);
	font-family: var(--shiplake-body);
	font-size: 18px;
}

#bbpress-forums .shiplake-search input[type="search"]::placeholder {
	color: var(--shiplake-charcoal);
	opacity: 0.8;
}

#bbpress-forums .shiplake-search-button {
	flex: none;
	width: 46px;
	height: 100%;
	padding: 0;
	background: url(../images/search-button.svg) no-repeat center / 100% 100%;
	border: 0;
	cursor: pointer;
}

#bbpress-forums .shiplake-search-hint {
	margin: 10px 0 0;
	font-size: 18px;
}

/* Forum sections */

#bbpress-forums .shiplake-section {
	margin: 0 0 36px;
	padding: 0;
	background: var(--shiplake-section);
	border: 0;
	overflow: visible;
}

#bbpress-forums .shiplake-section-header {
	padding: 20px 32px;
	background: var(--shiplake-moss);
	color: #fff;
}

#bbpress-forums .shiplake-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#bbpress-forums .shiplake-section-header h2 {
	font-size: 28px;
	font-weight: 700;
}

#bbpress-forums .shiplake-section-header h2 a {
	color: #fff;
}

#bbpress-forums .shiplake-forum-description {
	margin: 8px 0 0;
	color: var(--shiplake-stone);
	font-size: 16px;
	line-height: 1.4;
}

#bbpress-forums .shiplake-topic-labels,
#bbpress-forums li.shiplake-topic {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 152px 320px;
	align-items: center;
	padding: 10px 32px;
}

#bbpress-forums .shiplake-topic-labels {
	border-bottom: 2px solid var(--shiplake-moss);
	color: var(--shiplake-muted);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}

#bbpress-forums .shiplake-topic-labels span:not(:first-child) {
	text-align: center;
}

#bbpress-forums ul.shiplake-topics {
	margin: 0;
	padding: 0;
	list-style: none;
}

#bbpress-forums li.shiplake-topic {
	padding: 20px 32px;
	background: none;
	border-bottom: 1px solid var(--shiplake-river);
}

#bbpress-forums li.shiplake-topic.sticky,
#bbpress-forums li.shiplake-topic.super-sticky {
	box-shadow: inset 6px 0 0 var(--shiplake-meadow);
}

#bbpress-forums .shiplake-topic-title {
	margin: 0 0 14px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.18;
}

#bbpress-forums .shiplake-topic-title a {
	color: var(--shiplake-river);
}

#bbpress-forums .shiplake-badge {
	display: inline-block;
	margin-left: 14px;
	padding: 4px 9px;
	background: var(--shiplake-badge);
	border-radius: 8px;
	color: var(--shiplake-charcoal);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	vertical-align: middle;
	white-space: nowrap;
}

#bbpress-forums .shiplake-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin: 0;
	color: var(--shiplake-muted);
	font-size: 18px;
}

#bbpress-forums .shiplake-meta .shiplake-author-name {
	color: var(--shiplake-charcoal);
	font-weight: 700;
}

#bbpress-forums .shiplake-meta a:not(.shiplake-author-name) {
	font-weight: 600;
}

#bbpress-forums .shiplake-count {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	color: var(--shiplake-muted);
	font-size: 18px;
	line-height: 1.4;
}

#bbpress-forums .shiplake-count strong {
	color: var(--shiplake-moss);
	font-size: 30px;
	line-height: 1.1;
}

#bbpress-forums .shiplake-section-footer {
	margin: 0;
	padding: 10px 32px;
	font-size: 20px;
}

#bbpress-forums .shiplake-empty {
	color: var(--shiplake-muted);
	font-size: 18px;
}

#bbpress-forums .bbp-row-actions {
	float: right;
}

#bbpress-forums .bbp-topic-pagination {
	margin-top: 6px;
}

/* Thread page: posts beside the "Forums" sidebar */

#bbpress-forums .shiplake-thread-layout {
	display: grid;
	grid-template-columns: 285px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-bottom: 50px;
}

/* Main content comes first in the markup for screen readers and phones. */
#bbpress-forums .shiplake-thread-main {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

#bbpress-forums .shiplake-forum-nav {
	grid-column: 1;
	grid-row: 1;
	border: 1px solid var(--shiplake-charcoal);
}

#bbpress-forums .shiplake-forum-nav h2 {
	padding: 20px 32px;
	background: var(--shiplake-moss);
	color: #fff;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.35;
}

#bbpress-forums .shiplake-forum-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#bbpress-forums .shiplake-forum-nav li {
	border-bottom: 1px solid var(--shiplake-meadow);
}

#bbpress-forums .shiplake-forum-nav li:last-child {
	border-bottom: 0;
}

#bbpress-forums .shiplake-forum-nav a {
	display: block;
	padding: 20px 32px;
	color: var(--shiplake-moss);
	font-size: 20px;
	font-weight: 700;
}

#bbpress-forums .shiplake-forum-nav a[aria-current="page"] {
	background: var(--shiplake-stone);
	box-shadow: inset 6px 0 0 var(--shiplake-moss);
}

#bbpress-forums .shiplake-thread-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: -16px;
}

#bbpress-forums .shiplake-thread-actions:empty {
	display: none;
}

#bbpress-forums #subscription-toggle,
#bbpress-forums #favorite-toggle {
	float: none;
	margin: 0;
}

#bbpress-forums #subscription-toggle a,
#bbpress-forums #favorite-toggle a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--shiplake-moss);
	border-radius: 12px;
	color: var(--shiplake-moss);
	font-size: 16px;
	font-weight: 600;
}

#bbpress-forums #subscription-toggle a.is-subscribed,
#bbpress-forums #favorite-toggle a.is-favorite {
	background: var(--shiplake-moss);
	color: #fff;
}

/* Posts: bordered cards with a moss left edge, the opening post in white and
   replies in Stone (frame 564:674, node 564:774). */

#bbpress-forums article.shiplake-post {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 28px 40px 28px 44px;
	background: var(--shiplake-stone);
	border: 3px solid var(--shiplake-post-border);
	border-left: 6px solid var(--shiplake-moss);
	overflow: hidden;
}

#bbpress-forums article.shiplake-post-lead {
	padding-top: 30px;
	background: #fff;
	border-left-width: 9px;
}

#bbpress-forums .shiplake-replies {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

#bbpress-forums .shiplake-thread-title {
	margin: 0 0 22px;
	color: var(--shiplake-charcoal);
	font-size: 46px;
	font-weight: 600;
	line-height: 1.35;
}

#bbpress-forums .shiplake-post-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	padding-bottom: 18px;
	margin-bottom: 26px;
	border-bottom: 2px solid var(--shiplake-post-border);
}

#bbpress-forums .shiplake-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 62px;
	height: 62px;
	background: var(--shiplake-moss);
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
}

#bbpress-forums .shiplake-post-header .shiplake-author-name {
	color: var(--shiplake-charcoal);
	font-size: 25px;
	font-weight: 700;
}

#bbpress-forums .shiplake-tag {
	display: inline-block;
	padding: 0 12px;
	background: #fff;
	border: 3px solid var(--shiplake-moss);
	border-radius: 19px;
	color: var(--shiplake-moss);
	font-size: 17px;
	font-weight: 400;
	line-height: 28px;
}

#bbpress-forums .shiplake-post-time,
#bbpress-forums a.shiplake-post-time {
	margin-left: auto;
	color: var(--shiplake-meta);
	font-size: 17px;
	font-weight: 400;
}

#bbpress-forums .shiplake-post-header .bbp-author-ip {
	color: var(--shiplake-charcoal);
	font-size: 14px;
	font-weight: 400;
}

#bbpress-forums article.shiplake-post div.bbp-topic-content,
#bbpress-forums article.shiplake-post div.bbp-reply-content {
	margin: 0;
	padding: 0;
	color: var(--shiplake-post-text);
	font-size: 25px;
	line-height: 1.65;
}

#bbpress-forums article.shiplake-post div.bbp-topic-content p,
#bbpress-forums article.shiplake-post div.bbp-reply-content p {
	margin: 0 0 1.65em;
}

#bbpress-forums article.shiplake-post div.bbp-topic-content p:last-child,
#bbpress-forums article.shiplake-post div.bbp-reply-content p:last-child {
	margin-bottom: 0;
}

#bbpress-forums article.shiplake-post div.bbp-topic-content a,
#bbpress-forums article.shiplake-post div.bbp-reply-content a {
	color: var(--shiplake-river);
	font-weight: 700;
	text-decoration: underline;
}

/* Images in posts: never more than 500px either way; anything shown smaller
   than its real size opens full size via js/shiplake-lightbox.js. */
#bbpress-forums article.shiplake-post div.bbp-topic-content img,
#bbpress-forums article.shiplake-post div.bbp-reply-content img {
	/* A width set in the image dialog still applies, within the caps. */
	height: auto;
	max-width: min(500px, 100%);
	max-height: 500px;
	object-fit: contain;
	vertical-align: top;
}

#bbpress-forums img.shiplake-enlargeable {
	cursor: zoom-in;
}

#bbpress-forums img.shiplake-enlargeable:focus-visible {
	outline: 3px solid var(--shiplake-meadow);
	outline-offset: 3px;
}

#bbpress-forums article.shiplake-post span.bbp-admin-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	float: none;
	margin-top: 36px;
	color: var(--shiplake-river);
}

#bbpress-forums article.shiplake-post span.bbp-admin-links a {
	color: var(--shiplake-river);
	font-size: 20px;
	font-weight: 400;
	text-transform: none;
}

#bbpress-forums .shiplake-replies-heading {
	margin: 18px 0 -8px;
	color: var(--shiplake-charcoal);
	font-size: 31px;
	font-weight: 600;
}

#bbpress-forums .shiplake-in-reply-to {
	margin: 0 0 12px;
	font-size: 16px;
}

#bbpress-forums ul.shiplake-reply-thread,
#bbpress-forums ul.bbp-threaded-replies {
	display: flex;
	flex-direction: column;
	gap: 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#bbpress-forums ul.bbp-threaded-replies {
	margin: 25px 0 0 48px;
}

/* Reply / new thread form: a Stone box whose legend sits on a white strip
   across the top border. */

#bbpress-forums .bbp-reply-form,
#bbpress-forums .bbp-topic-form {
	margin: 0;
}

/* Fieldsets size to their content by default; min-width: 0 lets the long
   legend wrap on phones instead of widening the page. */
#bbpress-forums fieldset.bbp-form {
	min-width: 0;
	margin: 0;
	padding: 20px 40px 36px;
	background: var(--shiplake-stone);
	border: 3px solid var(--shiplake-post-border);
}

#bbpress-forums fieldset.bbp-form legend {
	padding: 0 10px;
	background: #fff;
	color: var(--shiplake-post-text);
	font-family: var(--shiplake-body);
	font-size: 31px;
	font-weight: 700;
	line-height: 1.8;
}

#bbpress-forums fieldset.bbp-form > div:not(.bbp-template-notice) {
	display: flex;
	flex-direction: column;
	gap: 30px;
	color: var(--shiplake-post-text);
	font-size: 22px;
}

#bbpress-forums fieldset.bbp-form > div:not(.bbp-template-notice) > * {
	margin: 0;
}

#bbpress-forums fieldset.bbp-form label {
	font-weight: 400;
}

/* The moderator-only "Revision" fieldset nested inside the form stays plain. */
#bbpress-forums fieldset.bbp-form fieldset.bbp-form {
	padding: 0;
	background: none;
	border: 0;
}

#bbpress-forums fieldset.bbp-form fieldset.bbp-form legend {
	padding: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
}

#bbpress-forums fieldset.bbp-form > div:not(.bbp-template-notice) > p:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
	gap: 6px;
}

#bbpress-forums fieldset.bbp-form > div:not(.bbp-template-notice) > .bbp-submit-wrapper {
	float: none;
	align-self: flex-end;
	margin: 0;
}

#bbpress-forums input[type="checkbox"] {
	width: 19px;
	height: 19px;
	margin: 0;
	accent-color: var(--shiplake-post-text);
}

#bbpress-forums div.bbp-template-notice {
	padding: 10px 16px;
	background: var(--shiplake-notice);
	border: 3px solid var(--shiplake-notice-border);
	border-radius: 0;
	color: var(--shiplake-charcoal);
	font-size: 19px;
}

#bbpress-forums fieldset.bbp-form > div.bbp-template-notice {
	margin: 0 0 30px;
}

#bbpress-forums div.bbp-template-notice p,
#bbpress-forums div.bbp-template-notice li {
	margin: 0;
	font-size: inherit;
}

#bbpress-forums .bbp-the-content-wrapper {
	border: 0;
}

/* Visual editor (WordPress's TinyMCE 4) dressed as the old forum's editor:
   TinyMCE 6 "Oxide" toolbar with its SVG icons in place of WordPress's icon
   font. */

#bbpress-forums div.wp-editor-container {
	margin: 0;
	padding: 0;
	background: #fff;
	border: 2px solid #eee;
	border-radius: 10px;
	overflow: hidden;
}

#bbpress-forums .mce-tinymce.mce-panel {
	border: 0;
	box-shadow: none;
}

#bbpress-forums div.mce-toolbar-grp {
	padding: 0 4px;
	background: #fff;
	border-bottom: 1px solid #e3e3e3;
}

#bbpress-forums div.mce-toolbar-grp > div {
	padding: 0;
}

#bbpress-forums .mce-toolbar .mce-btn-group .mce-btn {
	margin: 6px 1px 5px 0;
	background: none;
	border: 0;
	border-radius: 3px;
	box-shadow: none;
}

#bbpress-forums .mce-toolbar .mce-btn-group .mce-btn button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
}

#bbpress-forums .mce-toolbar .mce-btn-group .mce-btn:hover,
#bbpress-forums .mce-toolbar .mce-btn-group .mce-btn:focus,
#bbpress-forums .mce-toolbar .mce-btn-group .mce-btn.mce-active {
	background: #cce2fa;
	border: 0;
	box-shadow: none;
}

#bbpress-forums .mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover {
	background: none;
}

#bbpress-forums .mce-toolbar i.mce-ico {
	width: 24px;
	height: 24px;
	background-color: #222f3e;
	-webkit-mask: no-repeat center / 24px 24px;
	mask: no-repeat center / 24px 24px;
}

#bbpress-forums .mce-toolbar i.mce-ico::before {
	content: none;
}

#bbpress-forums .mce-toolbar .mce-btn.mce-disabled i.mce-ico {
	background-color: rgba(34, 47, 62, 0.5);
}

#bbpress-forums .mce-toolbar i.mce-i-image {
	-webkit-mask-image: url(../images/editor/image.svg);
	mask-image: url(../images/editor/image.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-bold {
	-webkit-mask-image: url(../images/editor/bold.svg);
	mask-image: url(../images/editor/bold.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-italic {
	-webkit-mask-image: url(../images/editor/italic.svg);
	mask-image: url(../images/editor/italic.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-underline {
	-webkit-mask-image: url(../images/editor/underline.svg);
	mask-image: url(../images/editor/underline.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-link {
	-webkit-mask-image: url(../images/editor/link.svg);
	mask-image: url(../images/editor/link.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-unlink {
	-webkit-mask-image: url(../images/editor/unlink.svg);
	mask-image: url(../images/editor/unlink.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-bullist {
	-webkit-mask-image: url(../images/editor/bullist.svg);
	mask-image: url(../images/editor/bullist.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-blockquote {
	-webkit-mask-image: url(../images/editor/blockquote.svg);
	mask-image: url(../images/editor/blockquote.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-undo {
	-webkit-mask-image: url(../images/editor/undo.svg);
	mask-image: url(../images/editor/undo.svg);
}

#bbpress-forums .mce-toolbar i.mce-i-selectall {
	-webkit-mask-image: url(../images/editor/selectall.svg);
	mask-image: url(../images/editor/selectall.svg);
}

/* The old editor marked focus with a line under the toolbar. */
#bbpress-forums .mce-edit-area {
	border-top: 2px solid transparent;
}

#bbpress-forums div.wp-editor-container:focus-within .mce-edit-area {
	border-top-color: var(--shiplake-river);
}

#bbpress-forums textarea,
#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="password"],
#bbpress-forums select {
	padding: 8px 12px;
	background: #fff;
	border: 3px solid var(--shiplake-input-border);
	border-radius: 0;
	color: var(--shiplake-charcoal);
	font-family: var(--shiplake-body);
	font-size: 20px;
}

#bbpress-forums textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 363px;
}

#bbpress-forums input#bbp_topic_tags {
	width: 552px;
	max-width: 100%;
}

#bbpress-forums textarea:focus,
#bbpress-forums input[type="text"]:focus {
	border-color: var(--shiplake-moss);
}

#bbpress-forums .bbp-submit-wrapper button {
	min-height: 62px;
	padding: 0 25px;
	background: var(--shiplake-post-text);
	border-radius: 3px;
	color: #fff;
	font-size: 19px;
}

#bbpress-forums .bbp-submit-wrapper button::after {
	content: none;
}

/* Notices */

#bbpress-forums .shiplake-notice {
	padding: 10px 32px;
	background: var(--shiplake-clay);
	color: var(--shiplake-cream);
	font-size: 20px;
	font-weight: 700;
}

#bbpress-forums .shiplake-notice p {
	margin: 0;
}

#bbpress-forums .shiplake-notice a {
	color: var(--shiplake-cream);
	text-decoration: underline;
}

/* Pagination */

#bbpress-forums .bbp-pagination {
	margin: 0;
	color: var(--shiplake-muted);
	font-size: 16px;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
	min-width: 34px;
	padding: 4px 8px;
	border: 1px solid var(--shiplake-river);
	border-radius: 8px;
	font-size: 16px;
	text-align: center;
}

#bbpress-forums .bbp-pagination-links span.current {
	background: var(--shiplake-moss);
	border-color: var(--shiplake-moss);
	color: #fff;
	opacity: 1;
}

/* Laptops: same layout, design sizes eased down */

@media (max-width: 1280px) {

	#bbpress-forums .shiplake-topic-labels,
	#bbpress-forums li.shiplake-topic {
		grid-template-columns: minmax(0, 1fr) 120px 160px;
	}

	#bbpress-forums .shiplake-thread-title {
		font-size: 36px;
	}

	#bbpress-forums article.shiplake-post div.bbp-topic-content,
	#bbpress-forums article.shiplake-post div.bbp-reply-content {
		font-size: 20px;
	}

	#bbpress-forums .shiplake-post-header .shiplake-author-name {
		font-size: 21px;
	}

	#bbpress-forums .shiplake-avatar {
		width: 52px;
		height: 52px;
		font-size: 19px;
	}

	#bbpress-forums .shiplake-replies-heading,
	#bbpress-forums fieldset.bbp-form legend {
		font-size: 26px;
	}

	#bbpress-forums article.shiplake-post span.bbp-admin-links a,
	#bbpress-forums fieldset.bbp-form > div:not(.bbp-template-notice) {
		font-size: 18px;
	}
}

/* Tablets: sidebar moves below the posts */

@media (max-width: 980px) {

	#bbpress-forums .shiplake-thread-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	#bbpress-forums .shiplake-thread-main,
	#bbpress-forums .shiplake-forum-nav {
		grid-column: 1;
		grid-row: auto;
	}

	#bbpress-forums .shiplake-forum-nav h2 {
		font-size: 28px;
	}
}

/* Phones */

@media (max-width: 700px) {

	#bbpress-forums {
		font-size: 16px;
	}

	#bbpress-forums .shiplake-breadcrumb {
		font-size: 16px;
		padding: 14px 0;
	}

	#bbpress-forums .shiplake-section-header,
	#bbpress-forums .shiplake-section-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	#bbpress-forums .shiplake-section-heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	#bbpress-forums .shiplake-section-header h2 {
		font-size: 24px;
	}

	#bbpress-forums .shiplake-topic-labels {
		display: none;
	}

	#bbpress-forums li.shiplake-topic {
		grid-template-columns: auto auto 1fr;
		gap: 10px 20px;
		padding: 16px;
	}

	#bbpress-forums .shiplake-topic-main {
		grid-column: 1 / -1;
	}

	#bbpress-forums .shiplake-topic-title {
		margin-bottom: 8px;
		font-size: 20px;
	}

	#bbpress-forums .shiplake-meta {
		gap: 2px 8px;
		font-size: 15px;
	}

	#bbpress-forums .shiplake-meta-sep {
		display: none;
	}

	#bbpress-forums .shiplake-count {
		flex-direction: row;
		align-items: baseline;
		gap: 5px;
		font-size: 15px;
	}

	#bbpress-forums .shiplake-count strong {
		font-size: 20px;
	}

	#bbpress-forums article.shiplake-post,
	#bbpress-forums fieldset.bbp-form {
		padding: 16px 16px 20px 18px;
	}

	#bbpress-forums .shiplake-thread-title {
		font-size: 26px;
	}

	#bbpress-forums .shiplake-post-header {
		gap: 4px 10px;
		padding-bottom: 12px;
		margin-bottom: 16px;
	}

	#bbpress-forums .shiplake-avatar {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	#bbpress-forums .shiplake-post-header .shiplake-author-name {
		font-size: 17px;
	}

	#bbpress-forums .shiplake-tag {
		border-width: 2px;
		font-size: 13px;
		line-height: 22px;
	}

	/* Date drops to its own line under the name instead of squeezing right. */
	#bbpress-forums .shiplake-post-time,
	#bbpress-forums a.shiplake-post-time {
		flex-basis: 100%;
		margin-left: 50px;
		font-size: 14px;
	}

	#bbpress-forums article.shiplake-post div.bbp-topic-content,
	#bbpress-forums article.shiplake-post div.bbp-reply-content {
		font-size: 17px;
	}

	#bbpress-forums article.shiplake-post span.bbp-admin-links {
		margin-top: 20px;
	}

	#bbpress-forums article.shiplake-post span.bbp-admin-links a,
	#bbpress-forums fieldset.bbp-form > div:not(.bbp-template-notice) {
		font-size: 16px;
	}

	#bbpress-forums .shiplake-replies-heading,
	#bbpress-forums fieldset.bbp-form legend {
		font-size: 21px;
	}

	#bbpress-forums .bbp-submit-wrapper button {
		min-height: 48px;
	}

	#bbpress-forums .shiplake-notice {
		padding: 10px 16px;
		font-size: 17px;
	}
}

/* Lightbox: appended to <body>, outside #bbpress-forums. */

dialog.shiplake-lightbox {
	max-width: 95vw;
	max-height: 95vh;
	padding: 0;
	background: transparent;
	border: 0;
	overflow: visible;
	cursor: zoom-out;
}

dialog.shiplake-lightbox::backdrop {
	background: rgba(20, 22, 18, 0.85);
}

dialog.shiplake-lightbox img {
	display: block;
	max-width: 95vw;
	max-height: 90vh;
	width: auto;
	height: auto;
}

dialog.shiplake-lightbox .shiplake-lightbox-close {
	position: absolute;
	right: 0;
	bottom: 100%;
	margin-bottom: 8px;
	padding: 6px 14px;
	background: #fff;
	border: 0;
	border-radius: 12px;
	color: #2d302a;
	font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	cursor: pointer;
}

/* "Insert/Edit Image" dialog (js/shiplake-image-dialog.js), laid out like the
   old forum editor's. Appended to <body>, outside #bbpress-forums. */

dialog.shiplake-image-dialog {
	box-sizing: border-box;
	width: min(490px, calc(100vw - 32px));
	padding: 16px 16px 20px;
	background: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15);
	color: #222f3e;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
}

dialog.shiplake-image-dialog::backdrop {
	background: rgba(255, 255, 255, 0.75);
}

dialog.shiplake-image-dialog header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

dialog.shiplake-image-dialog h2 {
	margin: 0;
	padding: 0;
	color: #222f3e;
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}

dialog.shiplake-image-dialog label {
	display: block;
	margin: 0 0 4px;
	color: rgba(34, 47, 62, 0.7);
	font-size: 14px;
	line-height: 1.3;
}

dialog.shiplake-image-dialog input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 38px;
	margin: 0 0 12px;
	padding: 5px 12px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	box-shadow: none;
	color: #222f3e;
	font: inherit;
}

dialog.shiplake-image-dialog input[type="text"]:focus {
	border: 2px solid #207ab7;
	padding: 4px 11px;
	outline: none;
}

dialog.shiplake-image-dialog .shiplake-dialog-row,
dialog.shiplake-image-dialog .shiplake-dialog-dimensions {
	display: flex;
	align-items: flex-start;
	gap: 4px;
}

dialog.shiplake-image-dialog .shiplake-dialog-row input {
	flex: 1;
}

dialog.shiplake-image-dialog .shiplake-dialog-dimensions > div {
	flex: 1;
}

dialog.shiplake-image-dialog .shiplake-dialog-dimensions .shiplake-dialog-icon {
	align-self: center;
	margin-top: 6px;
}

dialog.shiplake-image-dialog .shiplake-dialog-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 6px;
	color: #222f3e;
	cursor: pointer;
}

dialog.shiplake-image-dialog .shiplake-dialog-icon:hover {
	background: #f0f0f0;
}

dialog.shiplake-image-dialog .shiplake-dialog-icon svg {
	fill: currentColor;
}

dialog.shiplake-image-dialog .shiplake-dialog-status {
	margin: -8px 0 12px;
	font-size: 14px;
}

dialog.shiplake-image-dialog .shiplake-dialog-status:empty {
	display: none;
}

dialog.shiplake-image-dialog .shiplake-dialog-status.is-error {
	color: #b65e3c;
}

dialog.shiplake-image-dialog footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

dialog.shiplake-image-dialog footer button {
	min-width: 66px;
	padding: 8px 16px;
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

dialog.shiplake-image-dialog .shiplake-dialog-cancel {
	background: #f0f0f0;
	color: #222f3e;
}

dialog.shiplake-image-dialog .shiplake-dialog-save {
	background: #207ab7;
	color: #fff;
}

dialog.shiplake-image-dialog .shiplake-dialog-save:disabled {
	opacity: 0.6;
	cursor: wait;
}

dialog.shiplake-image-dialog button:focus-visible {
	outline: 2px solid #207ab7;
	outline-offset: 2px;
}
