/* RESET */
*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
a, button { cursor: revert; }
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video { border: 0; font-size: 100%; font: inherit; margin: 0; padding: 0; vertical-align: baseline; }
img { max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; }
textarea { white-space: revert; }
:focus { outline: none; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
body { font-smooth: auto; }

/* COLOURS */
:root {
  --bg: 244, 242, 235;
  --text: 11, 13, 20;
  --link: 58, 123, 213;
  --hover: 91, 94, 191;
}

[data-theme="dark"] {
  --bg: 11, 13, 20;
  --text: 244, 242, 235;
}

/* FONTS */
@font-face { font-family: 'Fantasque'; src: url('/static/fonts/FantasqueSansMono-Regular.woff2') format('woff2'), url('/static/fonts/FantasqueSansMono-Regular.woff') format('woff'), url('/static/fonts/FantasqueSansMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Fantasque'; src: url('/static/fonts/FantasqueSansMono-Italic.woff2') format('woff2'), url('/static/fonts/FantasqueSansMono-Italic.woff') format('woff'), url('/static/fonts/FantasqueSansMono-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Fantasque'; src: url('/static/fonts/FantasqueSansMono-Bold.woff2') format('woff2'), url('/static/fonts/FantasqueSansMono-Bold.woff') format('woff'), url('/static/fonts/FantasqueSansMono-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Fantasque'; src: url('/static/fonts/FantasqueSansMono-BoldItalic.woff2') format('woff2'), url('/static/fonts/FantasqueSansMono-BoldItalic.woff') format('woff'), url('/static/fonts/FantasqueSansMono-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; }

/* GENERAL */
body { background: rgba(var(--bg)); color: rgba(var(--text)); font-family: 'Fantasque', 'Noto Color Emoji', monospace; font-size: calc(16px + 0.320625vw); font-weight: 400; line-height: 1.5; margin: 0; padding: 0; text-align: center; overflow: hidden; }
strong, b { font-weight: 700; }
em { font-style: italic; }
p { padding: 0 0 1.25rem 0; }
.sm { font-size: 0.75em; }
.center { text-align: center; }
[aria-label][data-balloon-pos]:after { font-family: 'Fantasque'!important; }
hr { background-color: rgba(var(--text), 0.5); border: 0; height: 2px; }
i { color: rgba(var(--text), 0.5); }
::-webkit-scrollbar-track{background: transparent;}
::-webkit-scrollbar{width:7px; background: transparent;}
::-webkit-scrollbar-thumb{background:rgba(var(--text), 0.1); border: 1px solid rgba(var(--bg));border-radius: 5px; }

/* LINKS */
a { color: rgba(var(--link)); font-weight: 700; text-decoration: underline solid; transition: all 0.3s linear; }
a:hover { color: rgba(var(--hover)); text-decoration-style: wavy; transition: all 0.3s linear; }

/* HEADINGS */
h1 { font-size: 1.2em; font-weight: 700; text-transform: uppercase; }
h2 { font-size: 1.6em; font-weight: 700; }
h3 { font-size: 1.3em; font-weight: 700; }
h4 { font-size: 1.1em; font-weight: 700; }
.sidebar h2 { font-size: 1em; font-weight: 700; text-transform: uppercase; }

/* LISTS */
ul, ol { list-style-position: inside; margin: 0 0 0.75em 0; padding: 0 0 0 1.25rem; }
ol li::marker { font-weight: 600; }

/* BUTTONS */
.btn { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); cursor: pointer; font-weight: 700; padding: 0.25rem 0.375em; margin: 0 0 0.625rem 0; transition: all 0.3s linear; }
.btn:hover { background-color: rgba(var(--text), 0.08); border: 1px solid rgba(var(--text), 0.2); transform: translate(1px,1px); transition: all 0.3s linear; }
a.btn { text-decoration: none; }
a.btn i { color: rgba(var(--text), 0.5); }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; }

/* DETAILS */
details { margin: 0 0 1.25rem 0; padding: 0; border: 1px solid rgba(var(--border)); }
details > summary { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); font-weight: 700; list-style-type: none; padding: 0.3rem 0.5rem; margin: 0; }
details > summary:hover { cursor: pointer; }  
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "\f0da"; color: rgba(var(--text), 0.5); font: var(--fa-font-solid); font-size: 0.9em; margin-right: 0.625rem; }
details[open] > summary::before { content: "\f0d7"; font: var(--fa-font-solid); font-size: 0.9em; margin-right: 0.625rem; }
details[open]::details-content { padding: 0.5rem 0.5rem 0 0.5rem; }

/* STRUCTURE */
.container { height: 100dvh; }
header { background-color: rgba(var(--text), 0.1); border-bottom: 1px solid rgba(var(--text), 0.1); display: flex; align-items: center; height: 50px; }
.wrapper { display: flex; height: calc(100dvh - 50px); }
nav.menu { background-color: rgba(var(--text), 0.1); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(var(--text), 0.1); width: 50px; }
.sidebar { background-color: rgba(var(--text), 0.06); border-right: 1px solid rgba(var(--text), 0.1); font-size: 0.8em; padding: 0.5rem; max-width: 350px; overflow-y: scroll; text-align: left; width: 25%; }
main { flex: 1; overflow-y: scroll; }
.content { margin: 0 auto; max-width: 960px; padding: 1rem; text-align: left; padding-bottom: 5vh; }

/* HEADER */
.logo { color: rgba(var(--text), 0.3); font-size: 30px; height: 50px; width: 50px; text-align: center; line-height: 50px; }
.title { width: 25%; max-width: 350px; }
.desc { padding-right: 10px; font-size: 0.8em; flex: 1; text-align: right; }

/* NAV */
nav.menu ul { list-style: none; padding: 0; margin: 0; }
nav.menu ul li { border-bottom: 1px solid rgba(var(--text), 0.1); height: 50px; width: 50px; line-height: 50px; }
nav.menu a { color: rgba(var(--text), 0.4); line-height: 1em; text-decoration: none; }
nav.menu a:hover { color: rgba(var(--text), 0.7); }
nav.menu .theme-toggle { border-top: 1px solid rgba(var(--text), 0.1); }

/* SIDEBAR */
.stats { background-color: rgba(var(--text), 0.1); border: 1px solid rgba(var(--text), 0.2); font-size: 0.75em; padding: 0.75rem; }
.searchForm, .cats { margin: 0.75rem 0; }
.cats .sm { font-size: 0.8em; }
.cats ul { list-style: none; padding: 0; margin: 0; }
.cats i { color: rgba(var(--text), 0.4); }

/* SEARCH BAR */
.searchForm form { display: flex; }
.searchForm input { background-color: rgba(var(--text), 0.1) !important; border-style: solid; border-color: rgba(var(--text), 0.2) !important; border-width: 1px 0 1px 1px!important; color: rgba(var(--text)); font-family: 'Fantasque', monospace; font-size: 1em; height: 50px; margin: 0; padding: 0.75rem; text-align: left; vertical-align: middle; width: calc(100% - 50px); }
.searchForm ::placeholder { color: rgba(var(--text), 0.4); font-family: 'Fantasque', monospace; font-weight: 700; padding: 0; }
.searchForm input:focus { outline: none; border-right: 1px solid rgba(var(--text), 0.2) !important; }
.searchForm button { background-color: rgba(var(--text), 0.1); color: rgba(var(--text), 0.4); border-style: solid; border-color: rgba(var(--text), 0.2); border-width: 1px 1px 1px 0; font-family: 'Fantasque', monospace; font-size: 1.2em; font-weight: 700; height: 50px; transition: all 0.3s linear; vertical-align: middle; width: 50px; }
.searchForm button:hover { cursor: pointer; transition: all 0.3s linear; }
.searchForm button:hover i { color: rgba(var(--text), 0.6)!important; }
.searchForm button span { display: none; }

/* HOME */
.lead { font-size: 1.5em; }

/* BROWSE */
.lowercase { text-transform: lowercase; }
.cat-table { display: flex; flex-direction: column; gap: 1rem; }
.cat-table a { text-decoration: none; }
.cat-table i { color: rgba(var(--text), 0.5); }
.cat-table .item { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); display: flex; flex-direction: column; padding: 0.75rem 0.75rem 0.25rem 0.75rem; gap: 0.5rem; font-size: 0.8em }
.cat-table .item:hover { background-color: rgba(var(--text), 0.04); border: 1px solid rgba(var(--text), 0.08); color: rgba(var(--text), 0.8); }
.cat-table .cat-title { display: flex; flex-direction: row; font-size: 1.5em; font-weight: 700; gap: 0.75rem; align-items: center; line-height: 1em; }
.cat-table .cat-sub { font-size: 0.9em; }
.cat-table .cat-sub strong { text-transform: uppercase; }
.cat-table .cat-sub a { margin-right: 1rem!important; }
ul.subcategories { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; gap: 0.75rem; }

/* INTERESTS */
.interests { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0.5rem; font-size: 0.9em; }
.key { font-size: 0.8em; }
.interests .item { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); padding: 0.25rem 0.75rem; }
.interests .item:hover { background-color: rgba(var(--text), 0.04); border: 1px solid rgba(var(--text), 0.08); color: rgba(var(--text), 0.8); }

/* PEOPLE */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr)); gap: 0.5rem; }
.person { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); padding: 0.25rem 0.75rem; }
.person:hover { background-color: rgba(var(--text), 0.04); border: 1px solid rgba(var(--text), 0.08); color: rgba(var(--text), 0.8); }
.person .details { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.person .details .name { font-size: 1.3em; font-weight: 700; }
.person .details .more a i { transition: all 0.3s linear; }
.person .details .more a:hover i { color: rgba(var(--text), 0.7)!important; transition: all 0.3s linear; }
.person .details .pronouns, .person .details .age, .person .details .flags { font-size: 0.7em; }
.person .website { text-align: center; }
.stats-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr)); gap: 0.5rem; }
.stats-card .details { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); padding: 0.25rem 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; min-width: 0; }
.stats-card .website { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); padding: 0.25rem 0.75rem; }
.nsfw, .cw, .lang { background-color: rgba(var(--text), 0.1); border-radius: 2px;font-size: 0.7em; padding: 0.25rem; }
.lang { text-transform: uppercase; }

.interests-grid { columns: 2; column-gap: 2rem; }
.interest-group { break-inside: avoid; margin-bottom: 1.5rem; }
.interest-group ul { list-style: none; padding: 0; margin: 0; }
.interest-group h4 + ul { margin-bottom: 1.25rem; }

/* FORMS */
.all { margin: 0 auto; width: 80%; }
.req { color: deeppink; font-size: 0.6em; font-weight: 700; vertical-align: super; }
label { display: block; font-weight: 700; padding-bottom: 0.375rem; }
label .sm { font-weight: 400!important; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], textarea, select { background-color: rgba(var(--text), 0.04); border: 1px solid rgba(var(--text), 0.1); color: rgba(var(--text)); font-family: 'Fantasque', monospace; font-size: 0.9em; margin: 0 0 1rem 0; padding: 0.625rem; width: 100%; transition: all 0.3s linear; }
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="number"]:focus, textarea:focus, select:focus { background-color: rgba(var(--text), 0.08); border: 1px solid rgba(var(--text), 0.2); transition: all 0.3s linear; }
select option { background-color: rgba(var(--bg)); }
input[type="checkbox"], input[type="radio"] { display: inline-block; margin: 0 0.5em 0 0; width: auto; vertical-align: middle; }
input[type="checkbox"] + label, input[type="radio"] + label { display: inline-block; font-weight: 400; vertical-align: middle; }
ul.radiolist, ul.checkboxlist { list-style: none; padding: 0; margin: 0 0 1rem 0; }
ul.radiolist li, ul.checkboxlist li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
ul.radiolist li label, ul.checkboxlist li label { font-weight: 400; padding: 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.375rem; }
.helptext { display: block; font-size: 0.75em; color: rgba(var(--text), 0.6); margin-top: 0.25rem; }
.errorlist { list-style: none; padding: 0; margin: 0 0 0.5rem 0; color: deeppink; font-size: 0.8em; }
#id_content_warning_options, #id_remove_interests { list-style: none; padding: 0; margin: 0 0 1rem 0; }
#id_content_warning_options li, #id_remove_interests li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
#id_content_warning_options li label, #id_content_warning_options label,  #id_remove_interests li label, #id_remove_interests label { font-weight: 400 !important;  padding: 0 !important; display: inline !important; font-size: 0.8em !important;}
form p { margin-bottom: 1rem; padding: 0; }
form p label { display: block; font-weight: 700; margin-bottom: 0.375rem; }
form h3 { margin: 1.5rem 0 1rem 0; }
form hr { margin: 1.5rem 0; }
.category-block { margin-bottom: 0.75rem; }
.category-block > label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.category-block > label input[type="checkbox"] { margin: 0; }
.category-fields { padding: 0.75rem 0.75rem 0rem 0.75rem; background-color: rgba(var(--text), 0.04); border: 1px solid rgba(var(--text), 0.1); margin-top: 0.5rem; }
.subcategory-block { margin-top: 0.5rem; }
.subcategory-block > label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 400; }
.subcategory-block .category-fields { margin-bottom: 0.75rem; }
.acceptance { font-size: 0.7em; font-weight: 400; }
.all button[type="submit"] { background-color: rgba(var(--text), 0.06); border: 1px solid rgba(var(--text), 0.1); color: rgba(var(--text)); cursor: pointer; font-family: 'Fantasque', monospace; font-size: 1em; font-weight: 700; padding: 0.5rem 1rem; margin: 0 0 0.625rem 0; transition: all 0.3s linear; }
.all button[type="submit"]:hover { background-color: rgba(var(--text), 0.08); border: 1px solid rgba(var(--text), 0.2); transform: translate(1px,1px); transition: all 0.3s linear; }

/* PAGINATION */
.post-pagination { border-top: 2px solid rgba(var(--text), 0.5); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; width: 100%; }
.post-pagination a, .post-pagination span { border: 1px solid rgba(var(--text), 0.1); display: inline-flex; justify-content: center; align-items: center; font-size: 0.9rem; height: 2.25rem; line-height: 1; min-width: 2.25rem; padding: 0 0.75rem; text-decoration: none; }
.post-pagination a { background-color: rgba(var(--text), 0.06); color: rgba(var(--text)); transition: all 0.3s linear; }
.post-pagination a:hover { background-color: rgba(var(--text), 0.08); border: 1px solid rgba(var(--text), 0.2); transition: all 0.3s linear; }
.post-pagination .current { background-color: rgba(var(--text), 0.8); border-color: rgba(var(--text), 0.8); color: rgba(var(--bg)); cursor: default; font-weight: 700; }

/* RESPONSIVITY */
@media (max-width: 1080px) { .sidebar { display: none; } .all { width: 100%; } }
@media (max-width: 650px) { header .desc { display: none; } }