/*
	AYA (aya_ds) - phpBB 3.3 style built on prosilver
	Colours, type and shapes from the AYA Design System.
	Source: infra repo, scripts/aya-forum/aya_ds/ (do not edit on the server only)
	Font: Jost (SIL OFL 1.1, see fonts/OFL.txt). Status icons: Lucide (ISC).
*/

@import url("../../prosilver/theme/stylesheet.css");
@import url("icons.css?v=3");

/* Fonts
---------------------------------------- */
@font-face {
	font-family: "Jost AYA";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("./fonts/jost-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost AYA";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("./fonts/jost-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost AYA";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("./fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Jost AYA";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("./fonts/jost-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens (subset of the AYA Design System)
---------------------------------------- */
:root {
	--aya-orange-50: #fff4ed;
	--aya-orange-100: #ffe3d1;
	--aya-orange-200: #ffc3a0;
	--aya-orange-500: #f2611e;
	--aya-orange-600: #d74e10;
	--aya-orange-700: #b03d0e;
	--aya-blue-50: #ecf4fc;
	--aya-blue-100: #d2e5f8;
	--aya-blue-200: #a7cbf0;
	--aya-blue-500: #1e66bc;
	--aya-blue-600: #1553a0;
	--aya-blue-700: #114483;
	--aya-grey-0: #ffffff;
	--aya-grey-25: #fbfaf8;
	--aya-grey-50: #f5f3ef;
	--aya-grey-100: #ece9e3;
	--aya-grey-200: #dcd8d0;
	--aya-grey-300: #c5bfb5;
	--aya-grey-400: #9e978b;
	--aya-grey-500: #766f64;
	--aya-grey-600: #565049;
	--aya-grey-700: #3c3833;
	--aya-grey-900: #24262b;
	--aya-green-50: #e8f6ee;
	--aya-green-600: #167f47;
	--aya-amber-50: #fff6e0;
	--aya-amber-600: #c2850c;
	--aya-red-50: #fcebea;
	--aya-red-500: #d8412f;
	--aya-red-600: #b22f20;

	--text-strong: var(--aya-grey-900);
	--text-body: var(--aya-grey-700);
	--text-muted: var(--aya-grey-500);
	--text-link: var(--aya-blue-600);
	--text-link-hover: var(--aya-orange-600);
	--surface-page: var(--aya-grey-25);
	--surface-card: var(--aya-grey-0);
	--surface-sunken: var(--aya-grey-50);
	--border-subtle: var(--aya-grey-100);
	--border-default: var(--aya-grey-200);
	--border-strong: var(--aya-grey-300);
	--brand-primary: var(--aya-orange-500);

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-pill: 999px;
	--shadow-sm: 0 2px 6px rgba(36, 38, 43, 0.07);
	--shadow-md: 0 6px 18px rgba(36, 38, 43, 0.09);
	--shadow-brand: 0 6px 16px rgba(242, 97, 30, 0.24);
	--ring-focus: 0 0 0 3px rgba(30, 102, 188, 0.35);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	--font-aya: "Jost AYA", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Type
---------------------------------------- */
body, h1, h2, h3, h4, p, fieldset, input, select, textarea, label,
.content, .content p, dl.faq, p.author, .notice, .postbody h3,
li.header dt, li.header dd, a.forumtitle, a.topictitle,
.attachbox dt, dl.file, dl.file dt, dl.thumbnail dd,
fieldset.polls, fieldset.polls dd div, .button, .pagination li.active span,
.dropdown-extended .header, .notification_list p.notifications_title,
.message-box textarea, select optgroup option,
a.button1, input.button1, input.button3, a.button2, input.button2 {
	font-family: var(--font-aya);
}

code, pre, .codebox code, kbd, samp {
	font-family: var(--font-mono);
}

html, body {
	color: var(--text-body);
	background-color: var(--surface-page);
}

body {
	font-size: 11px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 16px 0 24px;
}

::selection {
	background: var(--aya-orange-200);
	color: var(--aya-grey-900);
}

h1, h2, h4 { color: var(--text-strong); }

h2 {
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

h2.forum-title, h2.topic-title, h2.solo {
	font-size: 2.4em;
}
h2 a, h2.forum-title a, h2.topic-title a { color: var(--text-strong); }
h2 a:hover { color: var(--text-link-hover); text-decoration: none; }

h3 {
	color: var(--text-strong);
	border-bottom-color: var(--border-default);
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 1.1em;
}

hr {
	border-color: transparent;
	border-top-color: var(--border-default);
}

p { line-height: 1.45em; }

/* Links
---------------------------------------- */
a {
	color: var(--text-link);
	transition: color 120ms var(--ease-out);
}
a:hover {
	color: var(--text-link-hover);
}

a:focus-visible, .button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
	outline: none;
	box-shadow: var(--ring-focus);
	border-radius: 6px;
}

.postlink {
	color: var(--text-link);
	border-bottom: 1px solid var(--aya-blue-200);
}
.postlink:visited {
	color: var(--aya-blue-700);
	border-bottom-color: var(--aya-blue-200);
}
.postlink:hover {
	background-color: var(--aya-orange-50);
	color: var(--aya-orange-700);
	border-bottom-color: var(--aya-orange-200);
}

.forumbg .header a, .forabg .header a, th a { color: var(--text-strong); }
.forumbg .header a:hover, .forabg .header a:hover, th a:hover { color: var(--text-link-hover); }

/* Page frame
---------------------------------------- */
.wrap {
	background-color: transparent;
	border: 0;
	max-width: 1180px;
	padding: 0 16px;
}

/* Header card: logo, search and navbar together */
.headerbar {
	background: var(--surface-card);
	background-image: none;
	color: var(--text-strong);
	border: 1px solid var(--border-subtle);
	border-bottom: 0;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	margin-bottom: 0;
	padding: 14px 18px 10px;
}

.headerbar .inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.site-description {
	float: none;
	width: auto;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
}

.logo {
	float: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.site_logo {
	background-image: url("./images/aya-wordmark.svg");
	background-size: contain;
	background-position: left center;
	width: 80px;
	height: 36px;
}

.logo::after {
	content: "Forum";
	font-weight: 500;
	font-size: 17px;
	color: var(--text-muted);
	border-left: 2px solid var(--border-default);
	padding-left: 12px;
	line-height: 26px;
}

/* Site name stays for screen readers only */
.site-description h1,
.site-description p:not(.skiplink) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	margin: 0;
	padding: 0;
}

.search-header {
	float: none;
	margin: 0;
	box-shadow: none;
	border-radius: var(--radius-pill);
	border: 2px solid var(--border-default);
	background: var(--surface-card);
	overflow: hidden;
	display: flex;
}
.search-header:focus-within {
	border-color: var(--aya-blue-500);
	box-shadow: var(--ring-focus);
}
.search-header fieldset { display: flex; }
.search-header .inputbox {
	background: transparent;
	height: 34px;
	padding: 0 6px 0 14px;
	font-size: 14px;
	color: var(--text-strong);
}
.search-box .inputbox, .search-box .inputbox:hover, .search-box .inputbox:focus { border-color: transparent; }
.search-header .button-search,
.search-header .button-search-end {
	background: transparent;
	border: 0;
	box-shadow: none;
	height: 34px;
	padding: 0 10px;
}
.search-header .button-search-end { padding-right: 14px; }
.search-header .button-search,
.search-header .button-search-end,
.action-bar .search-box .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.navbar {
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-top: 1px solid var(--border-subtle);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 4px 14px;
	margin-bottom: 20px;
}

.navbar ul.linklist > li { font-size: 13.5px; }
.navbar ul.linklist > li > a,
.navbar .crumb a { color: var(--text-body); font-weight: 500; }
.navbar ul.linklist > li > a:hover,
.navbar .crumb a:hover { color: var(--text-link-hover); text-decoration: none; }
.navbar .icon { color: var(--aya-grey-400); }
.navbar a:hover .icon { color: var(--aya-orange-500); }

ul.navlinks { border-top: 1px solid var(--border-subtle); }

.breadcrumbs .crumb { font-weight: 500; }
.breadcrumbs .crumb:before { color: var(--aya-grey-300); }
.navbar .crumb:last-child a { color: var(--text-strong); font-weight: 700; }

/* Design switch link (event overall_header_navigation_append) */
.aya-style-switch a { color: var(--aya-orange-700) !important; }

/* Lists of forums and topics
---------------------------------------- */
.forabg, .forumbg {
	background: var(--surface-card);
	background-image: none;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin-bottom: 20px;
	padding: 0;
	overflow: hidden;
}

ul.forums, ul.topics {
	background: var(--surface-card);
	background-image: none;
	filter: none;
}

ul.topiclist li { color: var(--text-muted); }

li.header {
	background: var(--surface-card);
	border-bottom: 1px solid var(--border-default);
}
li.header dt, li.header dd {
	color: var(--text-muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 12px;
	padding-bottom: 10px;
}
li.header dt { font-weight: 700; color: var(--text-strong); }
li.header dt .list-inner,
li.header dl.row-item dt .list-inner { padding-left: 18px; }
li.header dt .list-inner a,
li.header dt .list-inner > span:first-child {
	font-size: 13.5px;
	letter-spacing: 0.08em;
}
.forabg li.header dt .list-inner::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand-primary);
	margin-right: 10px;
	vertical-align: 1px;
}

li.row {
	border-top: 1px solid var(--border-subtle);
	border-bottom: 0;
	transition: background-color 120ms var(--ease-out);
}
li.row:first-child { border-top: 0; }
li.row.bg1, li.row.bg2 { background-color: var(--surface-card); }
li.row:hover { background-color: var(--surface-sunken); }
li.row strong { color: var(--text-strong); font-weight: 600; }

ul.topiclist dd { border-left-color: var(--border-subtle); }
li.row:hover dd { border-left-color: var(--border-default); }

dl.row-item {
	background-position: 14px 50%;
	background-size: 38px;
}
dl.row-item dt .list-inner { padding-left: 66px; }
/* contain floated poster line and pagination, so top and bottom padding match */
dl.row-item dt .list-inner { display: flow-root; }
/* Topic icon chosen by the poster (inline background on dt): small, top right of the
   title cell instead of under the status tile. Offsets = width of the dd columns + 12px. */
ul.topiclist dl.row-item dt { background-position: right 452px top 13px; background-size: 22px; }
ul.topiclist.missing-column dl.row-item dt { background-position: right 357px top 14px; }
ul.topiclist.two-long-columns dl.row-item dt { background-position: right 262px top 14px; }
ul.topiclist.two-columns dl.row-item dt { background-position: right 92px top 14px; }
dl.row-item dt[style*="background-image"] .list-inner { padding-right: 32px; }

/* Topic icons in post headers and the posting form (replaced in icons.css) */
img[src*="images/icons/"] { width: 20px; height: 20px; vertical-align: -4px; }
.postbody h3 img[src*="images/icons/"] { margin-right: 4px; }
dl.row-item dt, dl.row-item dd { min-height: 46px; }
.row .list-inner { padding: 10px 0; }
ul.topiclist li.row dd { padding-top: 10px; } /* keep prosilver's 999px bottom padding trick */

a.forumtitle, a.topictitle {
	color: var(--text-strong);
	font-weight: 700;
	font-size: 1.45em;
	letter-spacing: -0.005em;
}
a.forumtitle:hover, a.topictitle:hover {
	color: var(--text-link-hover);
	text-decoration: none;
}

.forum-description, .row .list-inner br + a, .topic-poster { color: var(--text-muted); }

dd.lastpost, dd.posts, dd.topics, dd.views { color: var(--text-muted); }
dd.lastpost > span { font-size: 1.2em; line-height: 1.45; }
.topic-poster, .forum-description { font-size: 1.15em; }
a.lastsubject { color: var(--text-link); font-weight: 600; }
a.lastsubject:hover { color: var(--text-link-hover); }
dd.posts, dd.topics, dd.views { font-size: 1.35em; font-weight: 600; color: var(--text-strong); }
li.header dd.posts, li.header dd.topics, li.header dd.views { font-size: 11.5px; color: var(--text-muted); }

.sticky, .announce { background-color: transparent; }
li.row.sticky, li.row.announce { background-color: var(--surface-card); }

.forumbg-table, .forumbg table.table1 { background: var(--surface-card); }

/* Action bar, buttons, pagination
---------------------------------------- */
.action-bar { margin: 8px 0 12px; }

.button {
	background: var(--surface-card);
	background-image: none;
	border: 2px solid var(--border-default);
	border-radius: var(--radius-pill);
	box-shadow: none;
	color: var(--text-strong);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	padding: 4px 14px;
	text-shadow: none;
	transition: border-color 120ms var(--ease-out), background-color 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.button:hover, .button:focus {
	background: var(--surface-card);
	background-image: none;
	border-color: var(--aya-orange-500);
	color: var(--text-strong);
}
.button:active { transform: scale(0.98); }
.button .icon, .button-secondary { color: var(--aya-grey-500); }
.button-secondary:focus, .button-secondary:hover,
.button:focus .icon, .button:hover .icon { color: var(--aya-orange-600); }

/* Primary actions: new topic, reply */
.action-bar a.button[href*="mode=post"],
.action-bar a.button[href*="mode=reply"] {
	background: var(--aya-orange-500);
	border-color: var(--aya-orange-500);
	color: #fff;
	box-shadow: var(--shadow-brand);
}
.action-bar a.button[href*="mode=post"]:hover,
.action-bar a.button[href*="mode=reply"]:hover {
	background: var(--aya-orange-600);
	border-color: var(--aya-orange-600);
}
.action-bar a.button[href*="mode=post"] .icon,
.action-bar a.button[href*="mode=reply"] .icon { color: #fff; }

.caret { border-color: var(--border-default); }

/* Search boxes in action bars: one pill like the header search */
.action-bar .search-box fieldset {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: 32px;
	background: var(--surface-card);
	border: 2px solid var(--border-default);
	border-radius: var(--radius-pill);
	overflow: hidden;
}
.action-bar .search-box fieldset:focus-within {
	border-color: var(--aya-blue-500);
	box-shadow: var(--ring-focus);
}
.action-bar .search-box .inputbox,
.action-bar .search-box .inputbox:hover,
.action-bar .search-box .inputbox:focus {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	height: 28px;
	padding: 0 6px 0 12px;
}
.action-bar .search-box .button,
.action-bar .search-box .button:hover {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	height: 28px;
	padding: 0 8px;
}
.action-bar .search-box .button-search-end { padding-right: 12px; }

.pagination li a, .pagination li span {
	border-radius: var(--radius-pill);
	min-width: 12px;
	padding: 3px 8px;
	font-size: 12.5px;
	font-weight: 600;
}
.pagination li a {
	background: var(--surface-card);
	border: 2px solid var(--border-default);
	color: var(--text-body);
}
.pagination li.active span {
	background: var(--aya-orange-500);
	border: 2px solid var(--aya-orange-500);
	color: #fff;
}
.pagination li a:hover, .pagination li a:hover .icon,
.pagination .dropdown-visible a.dropdown-trigger,
.nojs .pagination .dropdown-container:hover a.dropdown-trigger {
	background: var(--aya-orange-50);
	border-color: var(--aya-orange-500);
	color: var(--aya-orange-700);
}
.row .pagination li a, .row .pagination li span { font-size: 11px; padding: 1px 6px; }

/* Posts
---------------------------------------- */
.post {
	background-color: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin-bottom: 16px;
	padding: 16px 20px;
}
.post.bg1, .post.bg2, .post.bg3 { background-color: var(--surface-card); }
.post:target { border-color: var(--aya-orange-200); box-shadow: 0 0 0 3px var(--aya-orange-50), var(--shadow-sm); }
.post:target .content { color: var(--text-body); }
.post h3 a.first-unread, .post:target h3 a { color: var(--text-strong); }

.postbody { color: var(--text-body); }
.postbody h3, .postbody h3.first {
	font-size: 1.7em;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.postbody h3 a { color: var(--text-strong); }
.postbody h3 a:hover { color: var(--text-link-hover); }

p.author {
	color: var(--text-muted);
	font-size: 1.1em;
	border-bottom: 1px solid var(--border-subtle);
	padding-bottom: 8px;
	margin-bottom: 12px;
}
p.author a { color: var(--text-muted); }
p.author .username, p.author .username-coloured { font-weight: 700; }

.postbody .content {
	color: var(--text-body);
	font-size: 1.45em;
	line-height: 1.6;
}
.content { color: var(--text-body); }
.content p { font-size: 1.15em; line-height: 1.55; }

.content h2, .panel h2 {
	color: var(--text-strong);
	border-bottom-color: var(--border-default);
	font-weight: 700;
}

.postprofile {
	border-left-color: var(--border-subtle);
	color: var(--text-muted);
	font-size: 1.05em;
}
.postprofile dd, .postprofile dt { line-height: 1.45em; margin-left: 14px; }
.postprofile strong { color: var(--text-strong); font-weight: 600; }
.postprofile .username, .postprofile .username-coloured {
	font-size: 1.3em;
	font-weight: 700;
}
.postprofile .username, .postprofile a.username { color: var(--text-strong); }
.postprofile a.username:hover { color: var(--text-link-hover); }
.postprofile .avatar img, .postprofile .avatar {
	border-radius: var(--radius-md);
}
.profile-rank {
	color: var(--aya-orange-700);
	font-weight: 600;
}

.post-buttons .button {
	border-width: 1px;
	padding: 2px 6px;
}
.post-buttons .button .icon { color: var(--aya-grey-400); }
.post-buttons .button:hover .icon { color: var(--aya-orange-600); }

.signature {
	border-top-color: var(--border-subtle);
	color: var(--text-muted);
}
.notice { border-top-color: var(--border-subtle); color: var(--text-muted); }

/* Quotes, code, attachments */
blockquote {
	background-color: var(--surface-sunken);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	margin: 1em 1px 1em 12px;
	padding: 10px 14px;
}
blockquote blockquote { background-color: var(--surface-card); }
blockquote blockquote blockquote { background-color: var(--surface-sunken); }
blockquote cite { color: var(--text-strong); font-weight: 700; }
blockquote cite a { color: var(--text-strong); }
blockquote cite:before, .uncited:before { color: var(--aya-orange-500); }

.codebox {
	background-color: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
}
.codebox p { border-bottom-color: var(--border-subtle); }
.codebox code { color: var(--aya-blue-700); }

.attachbox {
	background-color: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
}
.attachbox dd { border-top-color: var(--border-subtle); }
.attachbox p, .attachbox p.stats, dl.file dd, dl.thumbnail dd { color: var(--text-muted); }
.attach-image img, dl.thumbnail img { border-color: var(--border-default); border-radius: var(--radius-sm); }
dl.thumbnail dt a:hover { background-color: var(--surface-sunken); }
dl.thumbnail dt a:hover img { border-color: var(--aya-orange-500); }
.postbody img.postimage { border-radius: var(--radius-sm); }

.posthilit { background-color: var(--aya-amber-50); color: var(--aya-grey-900); }

/* Polls */
fieldset.polls dl { border-top-color: var(--border-subtle); color: var(--text-muted); }
fieldset.polls dl.voted { color: var(--text-strong); }
.pollbar1, .pollbar2, .pollbar3, .pollbar4, .pollbar5 {
	border: 0;
	border-radius: var(--radius-pill);
}
.pollbar1 { background-color: var(--aya-orange-200); color: var(--aya-grey-900) !important; }
.pollbar2 { background-color: var(--aya-orange-500); }
.pollbar3 { background-color: var(--aya-orange-600); }
.pollbar4 { background-color: var(--aya-orange-700); }
.pollbar5 { background-color: var(--aya-blue-600); }

/* Panels, boxes, forms
---------------------------------------- */
.panel {
	background-color: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	color: var(--text-body);
	padding: 12px 18px;
	margin-bottom: 16px;
}
.bg1 { background-color: var(--surface-card); }
.bg2 { background-color: var(--surface-card); }
.bg3 { background-color: var(--surface-sunken); }
.panel.bg3 { background-color: var(--surface-sunken); }

table.zebra-list tr:nth-child(odd) td, ul.zebra-list li:nth-child(odd) { background-color: var(--surface-card); }
table.zebra-list tr:nth-child(even) td, ul.zebra-list li:nth-child(even) { background-color: var(--surface-sunken); }
.ucprowbg { background-color: var(--surface-sunken); }
.fieldsbg { background-color: var(--surface-sunken); }

label { color: var(--text-strong); }
dd label { color: var(--text-body); }
fieldset dl:hover dt label { color: var(--text-strong); }

.inputbox, select, textarea.inputbox {
	background-color: var(--surface-card);
	border: 2px solid var(--border-default);
	border-radius: var(--radius-md);
	color: var(--text-strong);
	padding: 5px 10px;
	transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.inputbox:hover, select:hover { border: 2px solid var(--border-strong); }
.inputbox:focus, select:focus {
	border: 2px solid var(--aya-blue-500);
	box-shadow: var(--ring-focus);
}
.inputbox::placeholder { color: var(--aya-grey-400); }
fieldset.quick-login input.inputbox { background-color: var(--surface-card); }
.message-box textarea { color: var(--text-strong); font-size: 15px; line-height: 1.6; }

a.button1, input.button1, input.button3, a.button2, input.button2 {
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 600;
	padding: 6px 18px;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
a.button1, input.button1 {
	background-color: var(--aya-orange-500);
	border: 2px solid var(--aya-orange-500);
	color: #fff;
	box-shadow: var(--shadow-brand);
}
a.button1:hover, input.button1:hover {
	background-color: var(--aya-orange-600);
	border-color: var(--aya-orange-600);
	color: #fff;
	background-image: none;
}
a.button2, input.button2, input.button3 {
	background-color: var(--surface-card);
	border: 2px solid var(--border-strong);
	color: var(--text-strong);
}
a.button2:hover, input.button2:hover, input.button3:hover {
	background-color: var(--surface-card);
	background-image: none;
	border-color: var(--aya-orange-500);
	color: var(--text-strong);
}
input.button1:focus, input.button2:focus, input.button3:focus {
	border-color: var(--aya-blue-500);
	box-shadow: var(--ring-focus);
	color: inherit;
}
input.button1:focus { color: #fff; }
input.disabled { color: var(--text-muted); }

.rules, div.rules {
	background-color: var(--aya-red-50);
	color: var(--aya-red-600);
	border-radius: var(--radius-md);
}
p.post-notice {
	background-color: var(--aya-amber-50);
	border-radius: var(--radius-md);
}
.error { color: var(--aya-red-600); }
.successbox, .errorbox {
	border-radius: var(--radius-md);
}
.reported { background-color: var(--aya-red-50); }
li.reported:hover { background-color: #f8dcd9 !important; }

/* Control panels (UCP / MCP)
---------------------------------------- */
.tabs .tab > a {
	background: var(--surface-sunken);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	color: var(--text-body);
	font-weight: 500;
}
.tabs .tab > a:hover { background: var(--aya-orange-50); color: var(--aya-orange-700); }
.tabs .activetab > a, .tabs .activetab > a:hover {
	background: var(--surface-card);
	background-image: none;
	color: var(--text-strong);
	border-color: var(--border-subtle);
	font-weight: 700;
}
.minitabs .tab > a { background-color: var(--surface-sunken); }
.minitabs .activetab > a, .minitabs .activetab > a:hover { background-color: var(--surface-card); color: var(--text-strong); }

.panel-container .panel { background-color: var(--surface-card); }
.panel-container h2, .panel-container h3 { color: var(--text-strong); }
.panel-container .panel li.row { border-bottom-color: var(--border-subtle); border-top-color: transparent; }
ul.cplist { border-top-color: var(--border-subtle); }
.panel-container .panel li.header dd, .panel-container .panel li.header dt { color: var(--text-strong); }
.panel-container table.table1 thead th { color: var(--text-strong); border-bottom-color: var(--border-default); }
.cp-main .pm-message { border-color: var(--border-subtle); background-color: var(--surface-card); border-radius: var(--radius-md); }
.cp-main .pm { background-color: var(--surface-card); }
.cp-mini { background-color: var(--surface-sunken); border-radius: var(--radius-md); }
dl.mini dt { color: var(--text-strong); }

.navigation a {
	background: var(--surface-sunken);
	color: var(--text-body);
	border-radius: var(--radius-sm);
	margin-bottom: 2px;
}
.navigation a:hover {
	background: var(--aya-orange-50);
	color: var(--aya-orange-700);
}
.navigation .active-subsection a,
.navigation .active-subsection a:hover {
	background: var(--surface-card);
	color: var(--aya-orange-700);
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--border-default);
}

/* Tables (memberlist, search results, team) */
table.table1 thead th { color: var(--text-strong); }
.forumbg table.table1 thead th { color: var(--text-muted); }
table.table1 tbody tr { border-color: var(--border-subtle); }
table.table1 tbody tr:hover, table.table1 tbody tr.hover { background-color: var(--surface-sunken); color: var(--text-strong); }
table.table1 td { color: var(--text-body); }
table.table1 tbody td { border-top-color: var(--border-subtle); }
table.table1 tbody th { border-bottom-color: var(--border-default); color: var(--text-strong); background-color: var(--surface-card); }
table.info tbody th, dl.details dt { color: var(--text-strong); }
dl.details dd { color: var(--text-body); }
.sep { color: var(--aya-orange-500); }

/* Dropdowns, jumpbox, notifications, alerts
---------------------------------------- */
.dropdown .dropdown-contents {
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}
.dropdown .pointer { border-color: var(--border-subtle) transparent; }
.dropdown .pointer-inner { border-color: var(--surface-card) transparent; }
.dropdown-extended .pointer-inner { border-color: var(--surface-sunken) transparent; }
.dropdown li, .dropdown li li, .dropdown li.separator { border-color: var(--border-subtle); }
.dropdown-extended ul li { border-top-color: var(--border-subtle); }
.dropdown-extended ul li:hover { background-color: var(--surface-sunken); color: var(--text-strong); }
.dropdown-extended .header, .dropdown-extended .footer { border-color: var(--border-subtle); color: var(--text-strong); }
.dropdown-extended .header {
	background: var(--surface-sunken);
	background-image: none;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.dropdown-extended a.mark_read { background-color: var(--surface-card); }

.jumpbox .dropdown li { border-top-color: var(--border-subtle); }
.jumpbox-cat-link { background-color: var(--aya-grey-900); border-top-color: var(--aya-grey-900); color: #fff; }
.jumpbox-cat-link:hover { background-color: var(--aya-grey-700); border-top-color: var(--aya-grey-700); color: #fff; }
.jumpbox-forum-link, .jumpbox-sub-link { background-color: var(--surface-card); }
.jumpbox-forum-link:hover, .jumpbox-sub-link:hover { background-color: var(--aya-orange-50); }
.jumpbox .dropdown .pointer-inner { border-color: var(--surface-card) transparent; }

.notification_list p.notification-time { color: var(--text-muted); }
li.notification-reported strong, li.notification-disapproved strong { color: var(--aya-red-600); }
.badge { background-color: var(--aya-orange-500); color: #fff; }

.phpbb_alert {
	background-color: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.darken { background-color: var(--aya-grey-900); }

.search-results li:hover, .search-results li.active { background-color: var(--surface-sunken); }
.contact-icons a { border-color: var(--border-subtle); }
.contact-icons a:hover { background-color: var(--surface-sunken); }

/* Icon colours */
.icon.icon-blue, a:hover .icon.icon-blue { color: var(--aya-blue-500); }
.icon.icon-green, a:hover .icon.icon-green { color: var(--aya-green-600); }
.icon.icon-red, a:hover .icon.icon-red { color: var(--aya-red-500); }
.icon.icon-orange, a:hover .icon.icon-orange { color: var(--aya-orange-500); }
.icon.icon-bluegray, a:hover .icon.icon-bluegray { color: var(--aya-grey-500); }
.icon.icon-gray, a:hover .icon.icon-gray { color: var(--aya-grey-500); }
.icon.icon-lightgray, a:hover .icon.icon-lightgray { color: var(--aya-grey-400); }
.icon.icon-black, a:hover .icon.icon-black { color: var(--aya-grey-900); }
.top i { color: var(--aya-grey-400); }
.arrow-left:hover, .arrow-right:hover { color: var(--aya-orange-600); }

/* Index page blocks (who is online, statistics, login)
---------------------------------------- */
.stat-block {
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 4px 18px 14px;
	margin-bottom: 16px;
	clear: both;
}
.stat-block h3 { margin-top: 14px; border-bottom-color: var(--border-subtle); }
.stat-block p { color: var(--text-body); }

.headerspace { margin-top: 0; }

fieldset.quick-login {
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 12px 16px;
	margin-bottom: 16px;
}

/* Footer
---------------------------------------- */
.page-footer .navbar { margin-top: 8px; border-radius: var(--radius-lg); border-top: 1px solid var(--border-subtle); }
.copyright { color: var(--text-muted); padding-top: 16px; }
.copyright a { color: var(--text-muted); }
.footer-row { font-size: 11.5px; }

/* Small screens
---------------------------------------- */
@media (max-width: 700px) {
	.wrap { padding: 0 8px; margin: 0; }
	.headerbar { padding: 12px 12px 8px; }
	.search-header { display: none; } /* prosilver shows a search link in the navbar instead */
	.site_logo { width: 64px; height: 30px; }
	.logo::after { font-size: 15px; }
	h2.forum-title, h2.topic-title, h2.solo { font-size: 2em; }
	.post { padding: 12px 14px; }
	ul.topiclist dl.row-item dt,
	ul.topiclist.missing-column dl.row-item dt,
	ul.topiclist.two-long-columns dl.row-item dt,
	ul.topiclist.two-columns dl.row-item dt { background-position: right 10px top 12px; }
	dl.row-item { background-size: 32px; background-position: 10px 50%; }
	dl.row-item dt .list-inner { padding-left: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
