fanfiction.lol Dark skin by fanfiction.lol

Dark theme for fanfiction.lol with muted blurple colors and dark backgrounds.
Role:
user
Media:
screen
Condition:
Normal

CSS

/* fanfiction.lol site skin | DARK THEME
 *
 * Built on a small set of tokens (:root below). Every text and background pairing
 * used here is chosen to reach WCAG AAA (7:1) for body text and at least AA
 * (4.5:1) for everything else.
 */

/* Font overhaul */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Public+Sans:wght@400;500;600;700&display=swap');

body {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: normal !important;
  font-size: 125% !important;
  line-height: 1.125 !important;
}

/* Sans-serif (Public Sans) for interface,
   serif (EB Garamond) for reading text. */
h1, h2, h3, h4, h5, h6, .heading, #header, #footer, #dashboard, .btn, input, select, textarea, button, .button, .action, .actions, .actions a, .navigation, .navigation a,
.pagination, .pagination a, .dropdown, .dropdown a, .menu, .menu a, .current, label, legend, dt, th, thead td, .toggled form, .dynamic form, .secondary, .filters, .tabs, .tabs a {
  font-family: 'Public Sans', sans-serif !important;
}
.userstuff dt, .userstuff th, .userstuff thead td, .userstuff label, .userstuff legend, .userstuff button {
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Weights: navigation boldest, controls and labels medium */
#header .primary a, #header .primary > li > a, #header ul.user a, #header #login a, #header .dropdown > a, #header .menu a {
  font-family: 'Public Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95em !important;
}
.actions a, .actions button, .actions input, .action, input[type="submit"], button, .button, .current, #dashboard a, #dashboard span, .pagination a, .pagination span, .tabs a {
  font-weight: 500 !important;
}
input[type="submit"], button[type="submit"], .actions .submit input, .btn {
  font-weight: 600 !important;
}
label, dt, th, legend {
  font-weight: 500 !important;
}
th, legend {
  font-weight: 600 !important;
}
#footer a, #footer li, #footer p {
  font-weight: 500 !important;
}
#footer h4, #footer .heading {
  font-weight: 700 !important;
}
.userstuff dt, .userstuff th, .userstuff label, .userstuff legend {
  font-weight: inherit !important;
}


/* ============================================================
   Tokens
   ============================================================ */
:root {
  --ff-bg: #1a1a2e;
  --ff-surface: #22223d;
  --ff-surface-2: #2c2c4d;
  --ff-surface-3: #3a3a63;
  --ff-border: #6a6fa8;
  --ff-text: #e8ecff;
  --ff-text-muted: #d3daff;
  --ff-heading: #e2e7ff;
  --ff-link: #d3daff;
  --ff-link-visited: #e6dcff;
  --ff-link-hover: #ffffff;
  --ff-accent: #4338ca;
  --ff-accent-hover: #3730a3;
  --ff-accent-text: #ffffff;
  --ff-accent-muted: #3a3a63;
  --ff-focus: #e2e7ff;
  --ff-header-from: #2b2f45;
  --ff-header-to: #1d2133;
  --ff-notice-bg: #1f2a44;
  --ff-notice-text: #c9deff;
  --ff-caution-bg: #3b3213;
  --ff-caution-text: #ffe9a6;
  --ff-error-bg: #3d1d28;
  --ff-error-text: #ffc9d4;
  --ff-success-bg: #17352a;
  --ff-success-text: #b8f0c8;

  /* legacy names, kept so older snippets still work */
  --ff-primary: var(--ff-accent);
  --ff-primary-dark: var(--ff-accent-hover);
  --ff-primary-light: var(--ff-heading);
  --ff-bg-light: var(--ff-surface);

  /* Tokens only the light skin defines. Mapped here so a light rule that
     leaks into dark mode (for example while a stale dark file is cached)
     still resolves to dark-theme colours. */
  --ff-ink: var(--ff-text);
  --ff-button-bg: var(--ff-surface-2);
  --ff-button-hover: var(--ff-surface-3);
  --ff-button-text: var(--ff-text);
}

/* ============================================================
   Page, text and links
   ============================================================ */
html {
  background: var(--ff-bg) !important;
}
body, .main, .wrapper, #outer, #inner, #main, .userstuff, .toggled form, .dynamic form, div.dynamic {
  background-color: var(--ff-bg) !important;
  background-image: none !important;
  color: var(--ff-text) !important;
}
/* Text elements inherit their colour from body, so author work skins that set a
   colour on a parent (for example a light chat bubble with dark text) keep working. */
.module, .blurb, .group, .filters, .prefs, .admin, .home, .stats, .comments, .bookmarks, .collections, .series, .tags, .works, .people, .faq, .tos, .diversity, .donate, .misc,
.account.module {
  color: var(--ff-text);
}
.module, .blurb, .group, .filters, .prefs, .stats, .comments, .bookmarks, .collections, .series, .tags, .works, .people, .faq, .tos, .diversity, .donate, .misc {
  background-color: transparent !important;
  background-image: none !important;
}

h1, h2, h3, h4, h5, h6, .heading, .module h3, .module h4, .module .heading, .group .heading, legend {
  color: var(--ff-heading) !important;
}
legend, form.verbose legend, .verbose form legend {
  font-weight: 600 !important;
  background: var(--ff-surface-2) !important;
  border: 1px solid var(--ff-border) !important;
  box-shadow: none !important;
}
.heading.byline, .byline, .byline a {
  color: var(--ff-heading) !important;
}

a[href], a[href]:link {
  color: var(--ff-link) !important;
}
a[href]:visited {
  color: var(--ff-link-visited) !important;
}
a[href]:hover, a[href]:focus {
  color: var(--ff-link-hover) !important;
  background-color: transparent !important;
  background-image: none !important;
}
a[href].heading, a[href].title, .heading a[href], .title a[href], a[href].tag {
  color: var(--ff-heading) !important;
}
a[href].tag:hover, .heading a[href]:hover, .title a[href]:hover {
  color: var(--ff-link-hover) !important;
}

:focus-visible {
  outline: 2px solid var(--ff-focus) !important;
  outline-offset: 2px !important;
}

/* Links: content links are always underlined
   (Archive's own underline is a border-bottom,
   removed to avoid a double line). Navigation,
   buttons and tabs are styled by rules below. */
a[href]:where(:not(.button, .action, .symbol, .help, .landmark, [role="button"])) {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  border-bottom: 0;
}
a.tag, ul.tags a, .tags a, .heading a, .title a {
  border-bottom: 0 !important;
}
#header a[href], #header .primary a[href], .actions a[href], .navigation a[href], .pagination a[href], #dashboard a[href], .dropdown a[href], .menu a[href], .tabs a[href],
.modal-close, a.close {
  text-decoration: none !important;
}
#footer a[href] {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Mirror of the light rule so it cannot leak into dark mode */
.navigation a[href]:not(.current), .actions a[href]:not(.current), #dashboard a[href]:not(.current), .pagination a[href]:not(.current) {
  color: var(--ff-text) !important;
}

.required, .error:not(.notice) {
  color: var(--ff-error-text) !important;
}
/* Base styles .required .autocomplete and .autocomplete .notice to #2a2a2a,
   which is invisible on our dark surfaces (hit the Fandom token field). */
.required .autocomplete, .autocomplete .notice {
  color: var(--ff-text) !important;
}
::placeholder {
  color: var(--ff-text-muted) !important;
  opacity: 1;
}

/* Chevrons before the browse-fandoms links (Archive makes them red) */
.splash .browse li a:before {
  color: var(--ff-heading) !important;
}

/* Intro module | left align text instead of center */
.intro.module .stats, .intro.module .parent, .intro.module.odd .parent, .intro.module.odd p.parent, .intro.module.odd > p, .splash .intro.module.odd > p, .splash .intro .stats, .splash .parent {
  text-align: left !important;
}

/* Make intro module wider for logged-in users to reduce white space */
.logged-in .splash .intro.module {
  width: 100%;
  float: none;
}
.splash .module div.account, .splash .favorite li:nth-of-type(odd) a {
  background: var(--ff-surface) !important;
  color: var(--ff-text) !important;
}

/* ============================================================
   Header and footer
   ============================================================ */
#header, #header .primary, #footer {
  background: linear-gradient(90deg, var(--ff-header-from), var(--ff-header-to)) !important;
  background-image: linear-gradient(90deg, var(--ff-header-from), var(--ff-header-to)) !important;
  color: #ffffff !important;
  position: relative;
}
#header {
  border-bottom: 7px solid transparent !important;
  border-image: linear-gradient(90deg, #c4b5fd, #93c5fd, #86efac, #fcd34d, #fca5a5) 1 !important;
}
#header .logo {
  margin-right: 0.5em;
}
#header .heading a[href] {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}
#header a[href], #header a[href]:link, #header a[href]:visited, #header .primary a[href], #header .primary a[href]:visited,
#header .primary .heading a, #header .primary .title a {
  color: #ffffff !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}
#header .primary a[href]:hover, #header .primary a[href]:focus, #header .dropdown:hover > a, #header .open > a,
#header a[href]:hover, #header a[href]:focus {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.16) !important;
  background-image: none !important;
}
#header sup, #header .tagline {
  color: #ffffff !important;
}
#header #login, #header #login p, #header p.user, #header .user {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}
#header #login a[href], #header #login a[href]:visited {
  background-color: var(--ff-surface-2) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid var(--ff-border) !important;
}
#header #login a[href]:hover, #header #login .open a:hover, #header #login .open a:focus {
  background-color: var(--ff-surface-3) !important;
  color: #ffffff !important;
}
#header .menu, #small_login, #header .dropdown .menu {
  background: var(--ff-surface-2) !important;
  background-image: none !important;
  border: 1px solid var(--ff-border) !important;
  color: var(--ff-text) !important;
}
#header .dropdown .menu a, #header .dropdown .menu a:visited, #header .menu a {
  color: var(--ff-text) !important;
  background-color: transparent !important;
}
#header .dropdown .menu a:hover, #header .dropdown .menu a:focus, #header .menu a:hover, #header .menu a:focus {
  color: #ffffff !important;
  background-color: var(--ff-surface-3) !important;
}
#header h2.collections {
  background: transparent !important;
  color: #ffffff !important;
}
#header .search, #header form.search, #header #search, #header form, #header fieldset, #header .dropdown, #header li.dropdown {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

#footer a[href], #footer a[href]:visited {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#footer a[href]:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}
#footer h4, #footer .heading, #footer .module h4, #footer .module .heading {
  color: #ffffff !important;
  font-weight: 700 !important;
}
#footer .module, #footer .module.group, #footer p, #footer li {
  background-color: transparent !important;
  color: #ffffff !important;
}
.footer-logo {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}
.footer-logo-img {
  max-width: 300px;
  height: auto;
}

/* ============================================================
   Forms
   ============================================================ */
form, .verbose.search {
  background-color: transparent !important;
  color: var(--ff-text) !important;
}
fieldset, form dl, fieldset dl dl, fieldset fieldset fieldset, fieldset fieldset dl dl, dd.hideme, form blockquote.userstuff, fieldset fieldset, .listbox, fieldset fieldset.listbox {
  background-color: var(--ff-surface) !important;
  background-image: none !important;
  border: 1px solid var(--ff-border) !important;
  color: var(--ff-text) !important;
}
.listbox .index, .listbox .index li {
  background-color: var(--ff-surface) !important;
  background-image: none !important;
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], input[type="date"],
input:not([type]), select, textarea, #site_search {
  background-color: var(--ff-surface-2) !important;
  background-image: none !important;
  color: var(--ff-text) !important;
  border: 1px solid var(--ff-border) !important;
  box-shadow: none !important;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="url"]:focus,
select:focus, textarea:focus {
  background-color: var(--ff-bg) !important;
  border-color: var(--ff-focus) !important;
}
input[disabled], select[disabled], textarea[disabled] {
  color: var(--ff-text-muted) !important;
}
input[type="checkbox"], input[type="radio"] {
  accent-color: #7a80d6 !important;
}
.LV_invalid {
  background: var(--ff-error-bg) !important;
  color: var(--ff-error-text) !important;
}
.autocomplete div.dropdown ul, .autocomplete.dropdown, #ui-datepicker-div, #modal, .secondary, .ui-datepicker table {
  background: var(--ff-surface-2) !important;
  background-image: none !important;
  color: var(--ff-text) !important;
  border: 1px solid var(--ff-border) !important;
}
/* TinyMCE loads the light "oxide" skin: #222f3e icons/text on light hover
   backgrounds — invisible on our dark surfaces. Mirror oxide-dark's state
   colors with our tokens. */
.tox .tox-tbtn, .tox .tox-mbtn, .tox .tox-tbtn--select {
  color: var(--ff-text) !important;
}
.tox .tox-tbtn svg, .tox .tox-mbtn svg {
  fill: var(--ff-text) !important;
}
.tox .tox-tbtn:hover, .tox .tox-tbtn:focus, .tox .tox-mbtn:hover, .tox .tox-mbtn:focus {
  background: var(--ff-surface-3) !important;
}
.tox .tox-tbtn:active, .tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:hover,
.tox .tox-mbtn--active, .tox .tox-mbtn--active:hover {
  background: var(--ff-border) !important;
}
.tox .tox-tbtn:hover svg, .tox .tox-tbtn:focus svg, .tox .tox-tbtn--enabled svg,
.tox .tox-tbtn--enabled:hover svg, .tox .tox-mbtn:hover svg, .tox .tox-mbtn--active svg {
  fill: #ffffff !important;
}
.tox .tox-tbtn--disabled svg, .tox .tox-tbtn--disabled:hover svg,
.tox .tox-tbtn:disabled svg, .tox .tox-tbtn:disabled:hover svg {
  fill: rgba(232, 236, 255, 0.4) !important;
}
.tox .tox-tbtn__select-chevron svg {
  fill: rgba(232, 236, 255, 0.7) !important;
}
.ui-datepicker tr:hover, .ui-datepicker td:hover, .ui-sortable li:hover {
  background: var(--ff-surface-3) !important;
}
.ui-sortable li {
  background: var(--ff-surface-2) !important;
  color: var(--ff-text) !important;
}
.qtip-content, .search [role="tooltip"], span.question, a.help .symbol, .symbol.question {
  background: var(--ff-surface-3) !important;
  color: #ffffff !important;
  border-color: var(--ff-border) !important;
}
#modal-bg {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Search filters (checkbox and radio indicators) */
.filters .indicator:before {
  background: var(--ff-surface-3) !important;
  background-image: none !important;
  border-color: var(--ff-border) !important;
  box-shadow: none !important;
}
.filters [type="checkbox"]:checked + .indicator:before {
  background: var(--ff-accent) !important;
  background-image: none !important;
}
.filters .exclude [type="checkbox"]:checked + .indicator:before {
  background: #8a2d48 !important;
  background-image: none !important;
}
.filters [type="radio"]:checked + .indicator:before {
  background: var(--ff-surface-3) radial-gradient(ellipse at center, #ffffff 0%, #ffffff 35%, rgba(255, 255, 255, 0) 45%) !important;
}

/* ===============================================================
   Buttons, action links (secondary by default, submit = primary)
   =============================================================== */
.actions a, .actions a:link, .actions a:visited, .action, .action:link, .action:visited, .actions button, .actions input, .actions label,
input[type="submit"], input[type="button"], input[type="reset"], button, .button, a.button, .current, a.current, .actions .current,
.work.navigation.actions a, .work.navigation.actions button, .navigation.actions a {
  background-color: var(--ff-surface-2) !important;
  background-image: none !important;
  color: var(--ff-text) !important;
  border: 1px solid var(--ff-border) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.actions a:hover, .actions a:focus, .action:hover, .action:focus, .actions button:hover, .actions button:focus, .actions input:hover, .actions input:focus, label.action:hover,
input[type="submit"]:hover, input[type="submit"]:focus, input[type="button"]:hover, button:hover, button:focus, .button:hover, a.button:hover,
.work.navigation.actions a:hover, .work.navigation.actions button:hover, .navigation.actions a:hover {
  background-color: var(--ff-surface-3) !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #b4bfff !important;
  box-shadow: none !important;
}
.actions a:active, .current, a.current, a:link.current, .current a:visited, .actions .current, #dashboard .current, #dashboard a.current {
  background-color: var(--ff-accent) !important;
  background-image: none !important;
  color: var(--ff-accent-text) !important;
  border-color: #b4bfff !important;
  box-shadow: none !important;
}
input[type="submit"], button[type="submit"], .actions input[type="submit"], .actions .submit input, p.submit input, dd.submit input, .submit.actions input {
  background-color: var(--ff-accent) !important;
  background-image: none !important;
  color: var(--ff-accent-text) !important;
  border: 1px solid #b4bfff !important;
  font-weight: 600 !important;
}
input[type="submit"]:hover, input[type="submit"]:focus, button[type="submit"]:hover, button[type="submit"]:focus, .actions input[type="submit"]:hover, .actions .submit input:hover,
p.submit input:hover, dd.submit input:hover, .submit.actions input:hover {
  background-color: var(--ff-accent-hover) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
.actions label.disabled, #tos_prompt [disabled], button[disabled], input[type="submit"][disabled] {
  background-color: var(--ff-surface) !important;
  background-image: none !important;
  color: var(--ff-text-muted) !important;
  border-color: var(--ff-border) !important;
  opacity: 0.85;
}
.actions .disabled select {
  background: var(--ff-surface-2) !important;
  color: var(--ff-text) !important;
}
.delete a, span.delete {
  color: var(--ff-error-text) !important;
}

/* Collapsible section toggles (expander buttons) read as links, not buttons */
button.expander, button.expanded, button.collapsed.expander, dt button, .toggle button, .actions.expandable button {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--ff-link) !important;
  border: none !important;
}
button.expander:hover, button.expanded:hover, dt button:hover, .toggle button:hover {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Header search button and the login modal keep the same compact styling */
#header .submit input[type="submit"], #header .button, #header input[type="submit"] {
  background-color: var(--ff-surface-2) !important;
  border-color: var(--ff-border) !important;
  color: #ffffff !important;
}
#header .submit input[type="submit"]:hover, #header .button:hover, #header input[type="submit"]:hover {
  background-color: var(--ff-surface-3) !important;
  color: #ffffff !important;
}
#login-modal a[href], #login-modal a[href]:visited, .modal a[href], .modal a[href]:visited, #small_login a[href], #small_login a[href]:visited,
.simple.login a[href], .simple.login a[href]:visited, .footnote.actions a[href], .footnote.actions a[href]:visited {
  color: var(--ff-link) !important;
  font-weight: 600 !important;
  background: transparent !important;
}
#login-modal a[href]:hover, .modal a[href]:hover, #small_login a[href]:hover, .simple.login a[href]:hover, .footnote.actions a[href]:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}
#new_subscription input[type="submit"] {
  background-color: var(--ff-surface-2) !important;
  color: var(--ff-text) !important;
  border: 1px solid var(--ff-border) !important;
}
#new_subscription input[type="submit"]:hover, #new_subscription input[type="submit"]:focus {
  background-color: var(--ff-surface-3) !important;
  color: #ffffff !important;
}

/* ============================================================
   Dashboard, tables, states
   ============================================================ */
#dashboard.own {
  border-top: 15px solid var(--ff-accent-muted) !important;
  border-bottom: 15px solid var(--ff-accent-muted) !important;
}
#dashboard a, #dashboard a:visited {
  color: var(--ff-link) !important;
}
#dashboard a:hover, #dashboard a:focus {
  background: var(--ff-surface-3) !important;
  color: #ffffff !important;
}

table, thead td, tfoot, tbody, caption {
  background: var(--ff-surface) !important;
  background-image: none !important;
  color: var(--ff-text) !important;
  box-shadow: none !important;
}
th, col.name {
  background: var(--ff-surface-2) !important;
  color: var(--ff-heading) !important;
}
td {
  background: var(--ff-surface) !important;
  color: var(--ff-text) !important;
  border-color: var(--ff-border) !important;
}
tr:hover, tr:hover td, tr:hover th {
  background: var(--ff-surface-3) !important;
}
th, td, table, thead td {
  border-color: var(--ff-border) !important;
}
.statistics .index li:nth-of-type(even), dl.index dd, .item dl.visibility, .reading h4.viewed {
  background: var(--ff-surface) !important;
  color: var(--ff-text) !important;
}
.own, .draft, .draft .wrapper, .unread, .child, .unwrangled, .unreviewed {
  background: var(--ff-surface) !important;
}
span.unread, .replied, span.claimed, .actions span.defaulted {
  background: var(--ff-surface-3) !important;
  color: #ffffff !important;
}
.nominations .approved {
  background: var(--ff-success-bg) !important;
  color: var(--ff-success-text) !important;
}
.nominations .rejected {
  background: var(--ff-error-bg) !important;
  color: var(--ff-error-text) !important;
}
.nomination dt {
  background: var(--ff-surface-2) !important;
}
li.relationships a, li.relationships a[href]:link, li.relationships a[href]:visited {
  background: #353582 !important;
  color: #ffffff !important;
}
li.relationships a:hover {
  background: var(--ff-accent) !important;
}
.work.blurb .header {
  border-left: 3px solid var(--ff-accent-muted) !important;
}
.group .blurb .header {
  border-bottom: 3px solid var(--ff-accent-muted) !important;
}
.wrapper dl.meta, dl.meta, dl.work.meta.group {
  background: transparent !important;
  border-color: var(--ff-border) !important;
}
.primary.header.module {
  min-height: 100px !important;
  overflow: visible !important;
}
.primary.header.module .icon {
  height: 100px !important;
  width: 100px !important;
}

/* Comments */
.comment h4.byline {
  background: var(--ff-surface-2) !important;
  color: var(--ff-heading) !important;
}
.thread .even, .thread li.comment:nth-of-type(even) {
  background: var(--ff-surface) !important;
}
.thread .odd {
  background: transparent !important;
}
.mark button {
  color: var(--ff-link) !important;
}
.mark button:hover {
  color: #ffffff !important;
}

/* ============================================================
   Notices, flashes, banners
   ============================================================ */
.notice, .comment_notice, .kudos_notice, ul.notes, .announcement .userstuff, .system .notice {
  background: var(--ff-notice-bg) !important;
  background-image: none !important;
  color: var(--ff-notice-text) !important;
  border-color: #6a8fd0 !important;
}
.caution, .alert .userstuff, .alert.flash {
  background: var(--ff-caution-bg) !important;
  background-image: none !important;
  color: var(--ff-caution-text) !important;
}
.error, .comment_error, .kudos_error, #proxy-notice, .event .userstuff {
  background: var(--ff-error-bg) !important;
  background-image: none !important;
  color: var(--ff-error-text) !important;
}
.annotation {
  background: var(--ff-surface-2) !important;
  color: var(--ff-text) !important;
}
.notice a[href], .comment_notice a[href], .kudos_notice a[href], ul.notes a[href], .announcement .userstuff a[href] {
  color: #ffffff !important;
}
.caution a[href], .alert .userstuff a[href], .alert.flash a[href] {
  color: #ffffff !important;
}
.error a[href], .comment_error a[href], .kudos_error a[href], .event .userstuff a[href] {
  color: #ffffff !important;
}
.announcement .thermometer .track {
  background: var(--ff-surface-3) !important;
  background-image: none !important;
}
.development-notice {
  background-color: var(--ff-surface-2) !important;
  border: 1px solid var(--ff-accent) !important;
  color: var(--ff-text) !important;
}

/* Terms of Service overlay */
#tos_prompt {
  background: var(--ff-bg) !important;
  color: var(--ff-text) !important;
}
#tos_prompt h2.heading, #tos_prompt .heading {
  background: var(--ff-accent) !important;
  color: #ffffff !important;
}
#tos_prompt h2.heading span {
  color: #ffffff !important;
}
#tos_prompt .agreement, #tos_prompt p, #tos_prompt label {
  color: var(--ff-text) !important;
}

/* Admin role (24-role-admin.css paints tables green) */
.admin table, .admin thead td, .admin th, .admin td, table.admin {
  background: var(--ff-surface) !important;
}
.admin th, .admin thead td {
  background: var(--ff-surface-2) !important;
}

/* ============================================================
   Social buttons, badges, misc
   ============================================================ */
#tumblr-button,
#mastodon-button,
#website-button,
#email-button {
  display: inline-block !important;
  border-radius: 8px !important;
  border: none !important;
  padding: 8px 16px !important;
  margin: 4px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
  font-size: 0.9em !important;
}

/* Tumblr | blue gradient */
#tumblr-button {
  background: linear-gradient(90deg, #36465d, #537199) !important;
  background-image: linear-gradient(90deg, #36465d, #537199) !important;
  background-color: #36465d !important;
}
#tumblr-button:hover {
  background: linear-gradient(90deg, #465671, #6381a9) !important;
  background-image: linear-gradient(90deg, #465671, #6381a9) !important;
  background-color: #465671 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(54, 70, 93, 0.3) !important;
}

/* Mastodon | black-grey gradient */
#mastodon-button {
  background: linear-gradient(90deg, #1a1a1a, #4a4a4a) !important;
  background-image: linear-gradient(90deg, #1a1a1a, #4a4a4a) !important;
  background-color: #1a1a1a !important;
}
#mastodon-button:hover {
  background: linear-gradient(90deg, #2a2a2a, #5a5a5a) !important;
  background-image: linear-gradient(90deg, #2a2a2a, #5a5a5a) !important;
  background-color: #2a2a2a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Website | rainbow gradient (darker) */
#website-button {
  background: linear-gradient(90deg, #7c3aed, #2563eb, #059669, #d97706, #dc2626) !important;
  background-image: linear-gradient(90deg, #7c3aed, #2563eb, #059669, #d97706, #dc2626) !important;
  background-color: #7c3aed !important;
}
#website-button:hover {
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #10b981, #f59e0b, #ef4444) !important;
  background-image: linear-gradient(90deg, #8b5cf6, #3b82f6, #10b981, #f59e0b, #ef4444) !important;
  background-color: #8b5cf6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
}

/* Email | dark gray */
#email-button {
  background: #4a4a4a !important;
  background-image: none !important;
}
#email-button:hover {
  background: #5a5a5a !important;
  background-image: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.social.module .resp-sharing-button__icon {
  display: inline-block !important;
  margin-right: 8px !important;
  font-size: 1.1em !important;
}

/* Share buttons keep their brand backgrounds; the link colour and underline
   rules above would otherwise make the white button text unreadable */
#share a.resp-sharing-button__link, .social.module a.resp-sharing-button__link {
  color: #ffffff !important;
  text-decoration: none !important;
}
.resp-sharing-button--bluesky, .resp-sharing-button--bluesky:active {
  background-color: #0168d6 !important;
  border-color: #0168d6 !important;
}
.resp-sharing-button--bluesky:hover, a:focus .resp-sharing-button--bluesky {
  background-color: #0159b8 !important;
  border-color: #0159b8 !important;
}
.resp-sharing-button--tumblr, .resp-sharing-button--tumblr:active {
  background-color: #35465c !important;
  border-color: #35465c !important;
}
.resp-sharing-button--tumblr:hover, a:focus .resp-sharing-button--tumblr {
  background-color: #222d3c !important;
  border-color: #222d3c !important;
}
.social.module ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.social.module li {
  display: inline-block;
  margin: 5px;
}

/* Badges section */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}
.badges-container .badge {
  width: 88px;
  height: 31px;
  margin: 4px;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.badges-container .badge:hover {
  transform: scale(1.1);
}

#workskin {
  max-width: 55em !important;
}

/* ============================================================
   Category icons: pride flag gradients
   ============================================================ */

/* Slash (M/M) | Gay men's flag */
.required-tags .category-slash {
  background: linear-gradient(to bottom,
    #3d1a8e 0%, #3d1a8e 20%,
    #7bade2 20%, #7bade2 40%,
    #ffffff 40%, #ffffff 60%,
    #26ceaa 60%, #26ceaa 80%,
    #078d70 80%, #078d70 100%
  ) !important;
}

/* Femslash (F/F) | Lesbian flag */
.required-tags .category-femslash {
  background: linear-gradient(to bottom,
    #d62900 0%, #d62900 20%,
    #ff9b55 20%, #ff9b55 40%,
    #ffffff 40%, #ffffff 60%,
    #d461a6 60%, #d461a6 80%,
    #a50062 80%, #a50062 100%
  ) !important;
}

/* Hetero (F/M) | Black & white */
.required-tags .category-het {
  background: linear-gradient(to bottom,
    #000000 0%, #000000 50%,
    #ffffff 50%, #ffffff 100%
  ) !important;
}

/* General (non relationship-focused) | Blurple background with GEN label */
.required-tags .category-gen {
  background: #5865F2 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.required-tags .category-gen::after {
  content: "GEN";
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.required-tags .category-gen span.text {
  display: none !important;
}

/* Poly/Ensemble | Polyamory flag */
.required-tags .category-poly {
  background: linear-gradient(to bottom,
    #0000ff 0%, #0000ff 33.3%,
    #ff0000 33.3%, #ff0000 66.6%,
    #000000 66.6%, #000000 100%
  ) !important;
}

/* Queerplatonic Relationship | QPR flag */
.required-tags .category-qpr {
  background: linear-gradient(to bottom,
    #c8c800 0%, #c8c800 50%,
    #000000 50%, #000000 100%
  ) !important;
}

/* Asexual | Asexual flag */
.required-tags .category-asexual {
  background: linear-gradient(to bottom,
    #000000 0%, #000000 25%,
    #808080 25%, #808080 50%,
    #ffffff 50%, #ffffff 75%,
    #800080 75%, #800080 100%
  ) !important;
}

/* Aromantic | Aromantic flag */
.required-tags .category-aromantic {
  background: linear-gradient(to bottom,
    #3d8026 0%, #3d8026 20%,
    #a8d379 20%, #a8d379 40%,
    #ffffff 40%, #ffffff 60%,
    #aaaaaa 60%, #aaaaaa 80%,
    #000000 80%, #000000 100%
  ) !important;
}

/* Genderqueer | Genderqueer flag */
.required-tags .category-genderqueer {
  background: linear-gradient(to bottom,
    #b57edc 0%, #b57edc 33.3%,
    #ffffff 33.3%, #ffffff 66.6%,
    #4a8123 66.6%, #4a8123 100%
  ) !important;
}

/* Nonbinary | Non-binary flag */
.required-tags .category-nb {
  background: linear-gradient(to bottom,
    #fcf434 0%, #fcf434 25%,
    #ffffff 25%, #ffffff 50%,
    #9c59d1 50%, #9c59d1 75%,
    #2c2c2c 75%, #2c2c2c 100%
  ) !important;
}

/* Y/N (reader insert) | Dark green with Y/N label */
.required-tags .category-yn {
  background: #1b5e20 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.required-tags .category-yn::after {
  content: "Y/N";
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.required-tags .category-yn span.text {
  display: none !important;
}

/* Getting Together | solid pink with "GT" label */
.required-tags .category-getting-together {
  background: #e91e8c !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.required-tags .category-getting-together::after {
  content: "GT";
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.required-tags .category-getting-together span.text {
  display: none !important;
}

/* Casual | solid indigo with "CAS" label */
.required-tags .category-casual {
  background: #5c6bc0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.required-tags .category-casual::after {
  content: "CAS";
  color: #ffffff;
  font-size: 7px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.required-tags .category-casual span.text {
  display: none !important;
}

/* Queer | Rainbow flag */
.required-tags .category-queer {
  background: linear-gradient(to bottom,
    #ff0000 0%, #ff0000 16.6%,
    #ff8c00 16.6%, #ff8c00 33.3%,
    #ffff00 33.3%, #ffff00 50%,
    #008026 50%, #008026 66.6%,
    #004dff 66.6%, #004dff 83.3%,
    #750787 83.3%, #750787 100%
  ) !important;
}

/* Other | Questioning flag with ? label */
.required-tags .category-other {
  background: linear-gradient(to bottom,
    #FF9F43 0%, #FF9F43 25%,
    #FDCB6E 25%, #FDCB6E 50%,
    #00B894 50%, #00B894 75%,
    #0984E3 75%, #0984E3 100%
  ) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.required-tags .category-other::after {
  content: "?";
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.required-tags .category-other span.text {
  display: none !important;
}

/* Multi | solid purple with "MULTI" label */
.required-tags .category-multi {
  background: #9c27b0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.required-tags .category-multi::after {
  content: "MULTI";
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.required-tags .category-multi span.text {
  display: none !important;
}