:root {
    --abr: 0px;
    --album-art: 100px;
    --avatar-image: 64px;
    --avatar-padding: 6px;
    --avatar-total: calc(var(--avatar-image) + (var(--avatar-padding) * 2));
    --avatar-uncalc: var(--avatar-image) + (var(--avatar-padding) * 2);
}

/* ---------- COLOR SCHEMES ---------- */

/* theme 0 - my colors */

:root {
    --p-accent: var(--accent);
    --p-background: rgba(var(--post-background),1);
    --p-border: rgba(var(--post-text),0.15);
    --p-light: rgba(var(--post-text),0.1);
    --p-text-1: rgba(var(--post-text),1);
    --p-text-2: rgba(var(--post-text),0.75);
    --p-text-3: rgba(var(--post-text),0.6);
}

/* theme 1 - transparent */

body.cs1 {
    --p-accent: rgba(var(--post-text),1);
    --p-border: rgba(var(--post-text),0.25);
}

body.cs1.t1 { --p-background: rgba(var(--post-background),0.1); }
body.cs1.t2 { --p-background: rgba(var(--post-background),0.2); }
body.cs1.t3 { --p-background: rgba(var(--post-background),0.3); }
body.cs1.t4 { --p-background: rgba(var(--post-background),0.4); }
body.cs1.t5 { --p-background: rgba(var(--post-background),0.5); }
body.cs1.t6 { --p-background: rgba(var(--post-background),0.6); }
body.cs1.t7 { --p-background: rgba(var(--post-background),0.7); }
body.cs1.t8 { --p-background: rgba(var(--post-background),0.8); }
body.cs1.t9 { --p-background: rgba(var(--post-background),0.9); }

body.cs1 .sidebar-links.dropdown ul,
body.cs1 .sidebar-links.dropdown input:checked ~ label {
    background: #fff;
    color: #000;
}

body.cs1 .sidebar-links.dropdown input:checked ~ label {
    border-bottom-color: rgba(0,0,0,0.13);
}

body.cs1 .pagination a {
    background: rgba(var(--background-text),1);
    color: var(--background-color);
}

body.cs1.gradient .pagination a {
    color: var(--background-gradient);
}

body.cs1 .audio-overlay {
    color: var(--p-text-1);
}

body.cs1 .post-body .poll-post a.poll-row:hover {
    background: var(--p-background);
    color: inherit;
}

/* theme 2 - light preset */

body.cs2 {
    --post-background: 255,255,255;
    --post-text: 15,20,25;
    --p-background: rgba(var(--post-background),1);
    --p-border: rgba(var(--post-text),0.15);
    --p-light: rgba(var(--post-text),0.1);
    --p-text-1: rgba(var(--post-text),1);
    --p-text-2: rgba(var(--post-text),0.75);
    --p-text-3: rgba(var(--post-text),0.6);
}

/* theme 3 - dark preset */

body.cs3 {
    --post-background: 15,20,25;
    --post-text: 255,255,255;
    --p-background: rgba(var(--post-background),1);
    --p-border: rgba(var(--post-text),0.15);
    --p-light: rgba(var(--post-text),0.1);
    --p-text-1: rgba(var(--post-text),1);
    --p-text-2: rgba(var(--post-text),0.75);
    --p-text-3: rgba(var(--post-text),0.6);
}

/* ---------- BASICS ---------- */

body {
    margin: 0;
    background: var(--background-color);
    font-family: var(--font);
    font-size: var(--font-size);
    line-height: 1.4em ;
    color: var(--p-text-1);
    -webkit-font-smoothing: antialiased;
    background-attachment: fixed !important;
}

/* background types */

body.gradient { 
    background: linear-gradient(to bottom, 
				var(--background-color) 54px, 
				var(--background-gradient) 100%); 
}

body.full { 
    -webkit-background-size: cover; 
    -moz-background-size: cover; 
    -o-background-size: cover; 
    background-size: cover; 
}

body.repeat { background-repeat: repeat; }
body.bgf { background-repeat: no-repeat; }
body.bgf.bf1 { background-position: top left; }
body.bgf.bf2 { background-position: top center; }
body.bgf.bf3 { background-position: top right; }
body.bgf.bf4 { background-position: center left; }
body.bgf.bf5 { background-position: center center; }
body.bgf.bf6 { background-position: center right; }
body.bgf.bf7 { background-position: bottom left; }
body.bgf.bf8 { background-position: bottom center; }
body.bgf.bf9 { background-position: bottom right; }

/* links */

a, a > * { 
	text-decoration: none; 
	color: inherit; 
}

a.deactivated { 
	cursor: default !important; 
}

/* ---------- TUMBLR TOP BAR / IFRAME ---------- */

.tmblr-iframe-compact .tmblr-iframe--unified-controls { 
    width: 100% !important;
}

.iframe-controls--phone-mobile,
.tmblr-iframe--app-cta-button,
.tmblr-iframe:not(#new-tumblr-controls) {
    visibility: hidden !important;
    display: none !important;
}

.iframe-container,
iframe#new-tumblr-controls {
    position: fixed;
    top: 0;
    left: 0;
    height: 54px;
    width: 100% !important;
    background: var(--background-color);
    z-index: 10;
}

/* ---------- MAIN ---------- */

main {
    position: absolute;
    top: 54px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: calc(var(--gap) * 2);
}

/* ---------- SIDEBAR ---------- */

section#sidebar {
    width: var(--sidebar-width);
    max-width: 100%;
    height: calc(100vh - 54px);
    display: flex;
}

.sidebar {
    position: fixed;
    width: var(--sidebar-width);
    max-width: 100%;
    background: var(--p-background); 
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 var(--border-stroke) var(--p-border);
}

.sidebar img, 
.sidebar > * > *, 
.sidebar > * > * > *,
.sidebar > * > * > * > *,
.sidebar > * > * > * > * > * {
    max-width: 100%;
}

/* header image */

.header-image {
    overflow: hidden; 
    line-height: 0; 
    border-radius: var(--border-radius) var(--border-radius) 0 0; 
    height: var(--header-height);
}

body.header-hide .header-image {
    display: none;
    visibility: hidden;
}

.header-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* avatar image */

body.a-square .avatar-image { 
	--abr: 4px; 
}

body.a-circle .avatar-image { 
	--abr: var(--avatar-total); 
}

.avatar-image {
    display: inline-block;
    width: 100%;
    height: var(--avatar-total);
    margin-top: calc((((var(--avatar-uncalc)) / 2) + 1px) * -1);
    margin-bottom: -10px;
    overflow: hidden;
    text-align: center;
    border-radius: var(--abr);
}

.avatar-image a { 
    display: block;
    width: var(--avatar-image);
    height: var(--avatar-image);
    margin: 0 auto;
    background: rgba(var(--post-background),1);
    border: var(--avatar-padding) rgba(var(--post-background),1) solid;
    border-radius: var(--abr);
}

.avatar-image img {
    width: var(--avatar-image);
    height: var(--avatar-image);
    border-radius: var(--abr);
}

.avatar-image::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: calc(50% - ((var(--avatar-uncalc)) / 2));
    height: calc((var(--avatar-uncalc)) / 2);
    width: var(--avatar-total);
    background: var(--p-background);
    border-radius: var(--abr) var(--abr) 0 0;
    box-shadow: 0 0 0 var(--border-stroke) var(--p-border);
}

body.a-hide .avatar-image { 
    display: none !important; 
}

/* uncropped avatars */

body.a-uncropped .avatar-image {
    display: inline-block !important;
    background: none !important;
    border: none !important;
    height: var(--avatar-image) !important;
    margin-top: calc((var(--avatar-image) * 2 / 3) * -1) !important;
}

body.a-uncropped .avatar-image a {
    display: inline-block !important;
    background: none !important;
    border: none !important;
    width: auto !important;
}

body.a-uncropped .avatar-image img {
    width: auto !important;
    height: var(--avatar-image) !important;
}

body.a-uncropped .avatar-image::before {
    display: none !important;
}

/* sidebar title + description */

.sidebar-text {
    display: flex;
    flex-flow: column nowrap;
    gap: 15px;
    width: calc(100% - 40px);
    padding: 15px 20px 20px;
}

.sidebar-title {
    text-align: center;
    font-size: 1.375em;
    line-height: 1.2em;
    margin: 5px 15px -3px;
    font-family: var(--title-font);
    font-weight: var(--title-font-weight);
}

.sidebar-title a:active {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
}

.sidebar-title a { 
	display: block; 
}

.sidebar-description { 
	text-align: center; 
}

.sidebar-description a { 
	text-decoration: underline; 
}

/* navigation */

.sidebar-links {
    position: relative;
    margin-top: 5px;
    font-size: 0.875em;
    line-height: 1.375em;
}

.sidebar-links.regular ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 8px 16px;
}

.sidebar-links.regular li a {
    color: var(--p-accent);
    font-weight: 700;
    padding: 1px 0;
}

.sidebar-links.regular a.current-page { 
    border-bottom: 2px var(--p-accent) solid; 
}

/* dropdown navigation */

.sidebar-links.dropdown input {
    display: none;
}

.sidebar-links.dropdown label {
    display: inline-block;
    width: calc(100% - 22px);
    padding: 7px 10px;
    background: var(--p-light);
    border: 1px solid;
    border-color: transparent;
    color: var(--p-text-3);
    border-radius: calc(var(--border-radius) * 0.75);
    cursor: pointer;
}

.sidebar-links.dropdown label::after {
    content: "\EABA";
    font-size: 0.6em;
    float: right;
    margin-right: 1px;
    transform: rotate(-45deg);
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.sidebar-links.dropdown ul {
    position: absolute;
    z-index: 11;
    display: none;
    border: 1px solid var(--p-border);
    border-top: none;
    background: rgba(var(--post-background),1);
    padding: 4px 0;
    margin: 0;
    list-style: none;
    width: calc(100% - 2px);
    border-radius: 0 0 calc(var(--border-radius) * 0.75) calc(var(--border-radius) * 0.75);
    max-height: 100px;
    overflow-y: scroll;
}

.sidebar-links.dropdown a {
    display: block;
    padding: 4px 10px;
    text-decoration: none;
}

.sidebar-links.dropdown a:hover {
    background: var(--p-light);
}

.sidebar-links.dropdown input:checked ~ label {
    border-radius: calc(var(--border-radius) * 0.75) calc(var(--border-radius) * 0.75) 0 0;
    background: rgba(var(--post-background),1);
    color: var(--p-text-1);
    border-color: var(--p-border);
}

.sidebar-links.dropdown input:checked ~ label::after {
    transform: rotate(0deg);
}

.sidebar-links.dropdown input:checked ~ ul {
    display: block;
}

/* ---------- POSTS ---------- */

section#posts {
    width: var(--post-size);
    max-width: 100%;
    display: flex;
    flex-flow: column nowrap;
    gap: var(--gap);
    padding: var(--gap) 0;
}

.post {
    width: var(--post-size);
    max-width: 100%;
    background: var(--p-background);
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 var(--border-stroke) var(--p-border);
    overflow: hidden;
}

/* ---------- POST HEADER ---------- */

.post-header {
    display: block;
    padding: 13px 15px 12px;
    font-size: 0.875em;
    font-weight: 700;
    border-bottom: 1px var(--p-border) solid;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: var(--p-text-3);
}

.reblog-icon:before {
    content: "\EA92";
    float: left;
    margin: 0 4px 0 0;
    font-size: 1.5em;
    line-height: 1em;
}

/* ---------- REBLOG CHAINS ---------- */

.post-reblog-item { 
	border-top: 1px var(--p-border) solid; 
}

.post-reblog-item:first-child { 
	border-top: none; 
}

.post-reblog-header { 
	padding: 20px 20px 0; 
}

.reblog-item-avatar img {
    height: 25px;
    width: 25px;
    border-radius: 3px;
    float: left;
    margin-right: 10px;
}

.reblog-item-username { 
    color: var(--p-text-1); 
    height: 25px;
    font-weight: 700;
    line-height: 26px;
    font-size: 0.875em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.reblog-item-username a { 
	text-decoration: none !important; 
}

.reblog-item-username .deactivated { 
	cursor: default; 
}

.post-body.original > *:first-child {
	margin-top: 20px;
}

.post-quote .post-body, 
.post-chat .post-body { 
	display: none; 
}

/* ---------- GENERAL POST CONTENT ---------- */

p.tmblr-attribution a { 
	display: none !important; 
}

.post-reblog-item > *:last-child {
	 margin-block-end: 1em; 
 }

/* links */

.quote-source a, 
.post-body a { 
	text-decoration: underline; 
}

/* paragraph and header spacing */

.post-body p, 
.post-body h1, 
.post-body h2, 
.post-body h3, 
.post-body h4, 
.post-body h5, 
.post-body h6, 
.post-body ul, 
.post-body ol { 
    margin-left: 20px; 
    margin-right: 20px; 
}

/* headers */

article h1, 
article h2 {
    font-family: var(--font);
    font-weight: 400;
    margin: .75em 0;
    line-height: 1.3;
}

.post-body h1, 
.post-body h2 { 
	line-height: 1.4em; 
	margin: .75em 20px; 
}

.post-body h1 { 
	font-size: 1.625rem; 
}

.post-body h2 { 
	font-size: 1.25rem; 
}

/* blockquotes */
 
.post-body blockquote {
    border-left: 3px var(--p-light) solid;
    margin: 1em 0 1em 25px;
    padding: 0;
}

.post-body blockquote > div { 
	margin-left: 20px; 
	margin-right: 20px; 
}

/* inline images and figures */

.post-body img, 
.post-body figure { 
	max-width: 100%; 
	height: auto; 
}

.post-body figure.tmblr-full img, 
.image-container img { 
	width: 100%; 
}

.post-body figure:not(.tmblr-full) img.post_media_photo { 
    margin: 0 20px; 
}

.video, 
.tumblr_video_container {
    width: 100% !important;
    height: auto !important;
}

/* polls */

.post-body .poll-post { 
	margin-bottom: 1.5em; 
}

.post-body .poll-post a.poll-row {
    background: transparent;
    border: 2px var(--p-accent) solid;
    margin: 0 20px 10px;
    width: calc(100% - 44px);
    color: var(--p-accent);
}

.post-body .poll-post a.poll-row:hover {
    background: var(--p-accent);
    color: var(--p-background);
}

.post-body .poll-post a.poll-see-results {
	display: none;
}

/* ---------- MEDIA POSTS ---------- */

.image-container > div {
	cursor: pointer;
}

.image-container, 
.photoset-container { 
	line-height: 0; 
}

figure.tmblr-full video, 
img.high-res { 
	width: 100%;
}

/* ---------- TEXT POSTS ---------- */

h2.post-title { 
    font-size: 2em; 
    padding: 20px 20px 0;
    margin: 0 0 -0.5rem;
    line-height: 1.4em;
    font-family: var(--title-font);
    font-weight: var(--title-font-weight);
}

article.post.alert h2.post-title {
    padding: 20px;
	font-size: 1.625rem;
}

body.use-font .sidebar-title, 
body.use-font h2.post-title, 
body.use-font .quote { 
    font-family: var(--font) !important;
}

/* read more */

a.read_more {
    display: block;
    text-decoration: none;
    color: var(--p-accent);
    font-weight: 700;
}

a.read_more::after { 
	content: ' →'; 
}

/* npf text */

p.npf_quirky {
	font-family: Fairwater, Georgia, Times, Times New Roman, serif;
	font-size: 1.6rem;
	line-height: 1.25em;
}

.npf_color_joey { 
	color :#ff492f; 
}

.npf_color_monica { 
	color: #ff8a00; 
}

.npf_color_ross { 
	color: #00cf35; 
}

.npf_color_rachel { 
	color: #00b8ff; 
}

.npf_color_chandler { 
	color: #7c5cff; 
}

.npf_color_niles { 
	color :#ff62ce; 
}

/* ask and submit boxes */

.post-body.ask-submit > p, 
.post-body.ask-submit > h1, 
.post-body.ask-submit > h2, 
.post-body.ask-submit > h3, 
.post-body.ask-submit > h4, 
.post-body.ask-submit > h5, 
.post-body.ask-submit > h6, 
.post-body.ask-submit > ul, 
.post-body.ask-submit > ol {
    margin-left: 0;
    margin-right: 0;
}

.post-body.ask-submit { 
	margin: 10px 20px; 
}

.post-body.ask-submit > *:first-child { 
	margin-top: 0 !important; 
}

iframe#ask_form { 
	margin: 1em 20px 14px; 
	max-width: calc(100% - 40px); 
}

iframe#submit_form { 
	margin: 0; 
	padding: 10px 0 1px; 
}

/* ---------- QUOTE POSTS ---------- */

.quote {
    margin: 1em 20px;
	font-family: Georgia, Times, Times New Roman, serif;
    line-height: 1.3;
    quotes: initial;
    word-break: break-word;
}

.quote.short { 
	font-size: 2.125rem; 
}

.quote.medium { 
	font-size: 1.5rem; 
}

.quote.long { 
	font-size: 1.4375rem; 
}

.quote::before { 
	content: open-quote; 
	letter-spacing: 0.05em; 
}

.quote::after { 
	content: close-quote; 
}

.quote-source { 
	margin: 5px 20px 0; 
}

p.npf_quote {
	font-family: Georgia, Times, Times New Roman, serif;
    font-size: 1.5rem !important;
	line-height: 1.4em !important;
}

/* ---------- LINK POSTS ---------- */

div.npf-link-block { 
	margin: 1em 20px; 
	border-color: var(--p-border); 
}

div.npf-link-block .title { 
	font-weight: 700 !important; 
}

div.npf-link-block .bottom { 
	padding: 16px 20px; 
}

div.npf-link-block:not(.has-poster) .title { 
    padding: 14px 20px 0 !important; 
    margin-bottom: -8px !important;
}

/* ---------- CHAT POSTS ---------- */

.chat, 
p.npf_chat {
	font-family: Courier, monospace;
	font-size: 1rem;
	line-height: 1.5em;
}

.chat {
    display: flex;
    flex-flow: column nowrap;
    gap: 3px;
    margin: 1em 20px;
	line-height: 1.4em;
}

p.npf_chat { 
	line-height: 1.5em; 
}

/* ---------- AUDIO POSTS ---------- */

.tmblr-full .audio-caption, 
.tmblr-full audio:not(.new-audio) { 
	display: none !important; 
}

.tmblr-full + .tmblr-full .new-audio-player {
    margin-top: 1em;
}

.new-audio-player {
    color: #fff;
    font-size: 1em;
    line-height: 1.4em;
    display: flex;
    max-width: 100%;
	background: var(--accent);
}

.audio-container {
    flex-grow: 1;
}

.audio-seekbar {
    width: 100%;
    height: var(--album-art);
    background: transparent;
    overflow: hidden;
}

.audio-progress {
    width: 0;
    height: 100%;
	background: var(--p-border);
}

.audio-buttons-details {
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    height: var(--album-art);
    margin-top: calc(var(--album-art) * -1);
    pointer-events: none;
    color: rgb(var(--post-background));
}

.new-audio-player.audio-has-album-art .audio-buttons-details {
    width: calc(100% - var(--album-art));
}

.audio-button {
    margin: 0 25px;
    height: 26px;
    width: 26px;
    cursor: pointer;
    pointer-events: all;
}

.audio-button svg {
    height: 26px;
    width: 26px;
    fill: #fff;
}

.audio-details {
    margin-right: 10px;
    display: flex;
    flex-flow: column nowrap;
    gap: 2px;
}

.audio-track-name {
    font-weight: bold;
}

.audio-artist, .audio-album {
    font-size: 0.875em;
    line-height: 1.4em;
}

img.audio-album-art {
    flex-shrink: 0;
    height: var(--album-art) !important;
    width: var(--album-art) !important;
}

iframe.spotify_audio_player {
    display: block;
    max-height: 152px !important;
    background: var(--p-light);
    padding: 20px;
    max-width: calc(100% - 40px);
}

/* ---------- ASK POSTS ---------- */

.ask {
    margin: 20px 20px 0;
}

.ask-avatar {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    float: right;
}

.ask-content {
    position: relative;
    background: var(--p-light);
    margin-right: 58px;
    border-radius: 3px;
    padding: 2px 0;
}

.ask-content:after {
    content: '';
    position: absolute;
    right: -16px;
    top: 13px;
    height: 0;
    width: 0;
    border: 8px solid transparent;
    border-left-color: var(--p-light);
}

.answer { 
	margin-top: 20px; 
}

.answer .post-body.ask-body { 
	margin-bottom: 2px; 
}

.ask-user { 
    margin-left: 20px; 
    margin-right: 20px; 
    font-size: 0.875em;
    color: var(--p-text-2); 
}

.post-answer .post-body.reblogged:not(:empty) {
    border-top: 1px var(--p-border) solid;
    margin-top: 20px;
}

/* ---------- POST FOOTER ---------- */

.post-metadata {
    width: calc(100% - 40px);
    padding: 0 20px;
    margin-top: 25px;
    margin-bottom: 13px;
}

a.meta-item { 
    color: var(--p-text-3); 
    margin-right: 10px; 
}

a.meta-item:hover { 
    color: var(--p-text-2); 
}

/* pinned posts */

a.pinned-label {
    cursor: initial !important;
    color: var(--p-accent) !important; 
    font-weight: 700;
    margin-right: 15px;
}

.pinned-label svg {
    float: left;
    margin: 0.2em 6px 0px 0px;
    height: 1em;
    fill: var(--p-accent);
}

/* main footer */

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row;
    clear: both;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
    width: calc(100% - 40px);
    height: auto;
    padding: 0 20px 15px 20px;
    color: var(--p-text-3);
}

.post-footer a { 
    font-weight: 700;
}

.post-footer a:hover { 
    color: var(--p-text-2); 
}

.post-footer a.post-notes {
    margin-left: 1px;
}

.post-footer > div { 
    display: inline-block; 
}

.post-controls .control {
    display: inline-block;
    position: relative;
    text-align: left;
    vertical-align: middle;
    font-size: 1.625em;
    margin-left: 5px;
    height: 1em;
    width: 1em;
    overflow: hidden;
    margin-left: 0.375em;
    cursor: pointer;
}

.post-controls .control .like_button::before, 
.post-controls .control .reblog_button::before {
    display: block;
    line-height: 1;
}

.post-controls .like_button iframe {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    opacity: 0;
    height: 1em;
    width: 1em;
}

.post-controls .reblog_button:before { 
	content: "\EA8F"; 
}

.post-controls .like_button:before { 
	content: "\EA4E"; 
}

.post-controls .control .like_button:hover, 
.post-controls .control .reblog_button:hover { 
	color: var(--p-text-2); 
}

.post-controls .like_button.liked.interacted:after, 
.post-controls .like_button.liked:before { 
	content: "\EA4F"; 
}

.post-controls .like_button.liked, 
.post-controls .like_button.liked:hover { 
	color: var(--p-accent); 
}

/* ---------- PERMALINK NOTES CONTAINER ---------- */

article.post-names {
    overflow: hidden;
}

article.post-names.pn-notes {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: calc(var(--gap) * -1);
    border-bottom: 1px var(--p-border) solid;
}

article.post-names > div {
    display: flex;
    background: var(--p-light);
    flex-flow: row nowrap;
    padding: 20px;
    gap: 4%;
}

.pn-item {
    width: 48%;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75em;
    line-height: 1.4em;
}

.pn-item > a, .pn-item img {
    border-radius: 3px;
    width: 40px;
    height: 40px;
    background: var(--p-background);
}

.pn-label { 
	overflow: hidden; 
}

.pn-label a {
    display: block;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
    font-size: 0.875rem;
    height: 1.2em;
}

/* post notes */

article.notes-container {
    overflow: hidden;
}

article.notes-container.pn-notes {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

article.notes-container ol.notes {
    list-style-type: none;
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding: 7px 0;
    font-size: 0.875rem;
    color: var(--p-text-2);
    background: var(--p-light);
}

article.notes-container ol.notes img.avatar {
    height: 25px;
    width: 25px;
    border-radius: 2px;
}

ol.notes a.avatar_frame {
    display: block;
    float: left;
    margin: -2px 12px 0 0;
    border-radius: 2px;
}

ol.notes li {
    min-height: 23px;
    margin: 0;
    padding: 10px 15px;
}

ol.notes .note a {
    color: var(--p-text-1);
    font-weight: 700;
}

.reblog-list .post-reblog-header .post-avatar.sub-icon-reblog:after, 
.reblog:not(.original_post) .avatar_frame:after,
.like .avatar_frame:after {
    float: right;
    border-radius: 50%;
    color: #fff;
    position: absolute;
    margin-top: 15px;
    margin-left: -8px;
    height: 5px;
    width: 5px;
}

.reblog-list .post-reblog-header .post-avatar.sub-icon-reblog:after, 
.reblog:not(.original_post) .avatar_frame:after {
    content: "\EA92";
    background-color: #56bc8a;
    font-size: 15px;
    padding: 7px 10px 3px 0px;
    line-height: 1px;
}

.like .avatar_frame:after {
    content: "\EA50";
    background-color: #d95e40;
    padding: 7px 8px 3px 2px;
    font-size: 13px;
    line-height: 1px;
}

ol.notes blockquote {
    border-left: 2px solid var(--p-border);
    font-size: inherit;
    line-height: 1.4;
    margin: 5px 15px 0 40px;
    quotes: none;
    padding: 0 0 0 10px;
}

ol.notes .note blockquote a {
    font-weight: 400;
    color: var(--p-text-2);
}

/* ---------- PAGINATION ---------- */

.pagination {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.pagination a {
    display: inline-block;
    background: var(--p-accent);
    color: var(--p-background);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: 700;
}

.prev:not(:link), 
.next:not(:link) {
    visibility: hidden;
}

.prev::before,
.next::after {
    display: inline-block;
    font-size: 0.875rem;
}

.prev::before {
    content: "\EA08";
    margin: 0 5px 0 -2px;
    float: left;
}

.next::after {
    content: "\EA09";
    margin: 0 -2px 0 5px;
    float: right;
}

section#posts[aria-busy="true"]::after {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: var(--gap);
    color: rgb(var(--background-text));
    opacity: 0.5;
    font-weight: 700;
}

body.endless-scroll .pagination {
    display: none;
}

/* ---------- ALTERNATE SIDEBAR LAYOUTS ---------- */

main.sb-right { 
	flex-direction: row-reverse; 
}

main:not(.sb-t) section#sidebar { 
	align-items: center; 
}

main.sb-t section#sidebar { 
    align-items: flex-start; 
    padding-top: var(--gap);
}

main.sb-above {
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap);
    padding:calc(var(--gap) * 2) 0;
}

main.sb-above section#sidebar { 
	height: auto; width: auto; 
}

main.sb-above section#posts { 
	padding: 0; 
}

body.header-hide.a-circle main.sb-t .sidebar,
body.header-hide.a-square main.sb-t .sidebar {
    margin-top: calc(((var(--avatar-uncalc)) / 2) + 1px);
}

body.header-hide.a-uncropped main.sb-t .sidebar {
    margin-top: calc(var(--avatar-image) * 2 / 3);
}

body.header-hide.a-circle main.sb-above .sidebar,
body.header-hide.a-square main.sb-above .sidebar {
    margin-top: calc(((var(--avatar-uncalc)) / 2) + 1px);
}

body.header-hide.a-uncropped main.sb-above .sidebar {
    margin-top: calc(var(--avatar-image) * 2 / 3);
}

main.sb-above .sidebar {
    width: var(--post-size);
    position: relative;
}

/* ---------- ICON FONT STYLING ---------- */

.t-icon, 
.a-icon::after,
.b-icon::before, 
.c-icon > *::before,
.reblog-list .post-reblog-header .post-avatar.sub-icon-reblog:after, 
.reblog:not(.original_post) .avatar_frame:after,
.like .avatar_frame:after {
    font-family: 'Tumblr Icons';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
}