:root {
	--accent-spacing: -0.045rem;
	--text-headers: "Tiktok Sans";
	--accent-font: "League Mono";
	--pre-bg: #15171a;
	--pre-text: #ccc;
	--accent-transform: uppercase;
	--font-size-base: 1.125rem;
	--hushed-color: #999999;
	--code-bg: rgb(232, 241, 252);
	--ctx-header-menu-bg: black;
	--orange-crave: linear-gradient(90deg, #F77E00 2.5%, #ffc300 100%);
}

@media (prefers-color-scheme: dark) {
	:root {
	--code-bg: rgb(23, 36, 54);
}
}

/* DARK MODE MASTHEAD TWEAKS */ 

@media (prefers-color-scheme: dark) {
	 .header {
		background: var(--purple-crave);
    }
	
	.header__content {
		border-bottom: 1px solid rgba(0, 0, 0, 0.09);
	}
	
	 .header__subnav {
        background: transparent;
    } 
	
    button.header__search-button, button.header__nav-toggle, .header__menu a, .header__menu a:visited {
		color: #f5f5f5;
		transition:.2s ease-in-out
    }
	
    button.header__search-button:hover, button.header__nav-toggle:hover, .header__menu a:hover, .header__menu a:visited:hover {
    	color: var(--color-black);
		transition:.2s ease-in-out
    }
	
}

	/* KBD tweaks */

kbd {
	font-family: var(--accent-font);
	font-weight: 400;
	font-size: .8em;
	font-stretch: 90%;
	letter-spacing: var(--accent-spacing);
	text-transform: var(--accent-transform);
}

kbd {
	padding: .25rem .3rem;
	line-height: inherit;
	color: #fff;
	background-color: #2e2e2e;
	border-radius: var(--radius-s);
	box-shadow: 0 .1em .1em rgba(0, 0, 0, .1);
}

	/* INCOPY CODE */

code {
    font-family: var(--accent-font);
    font-weight: 300;
    font-stretch: 90%;
    font-style: normal;
    letter-spacing: 0px;
    font-size: 1rem;
    padding: 3px 6px;
    margin: 1px -1px;
    border-radius: var(--radius-s);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
	background: var(--code-bg);
}

/* VIDEO BLOCK STYLING */

.wp-block-video {
    margin-bottom: 1.8rem;
}

.wp-block-video :where(figcaption)::after {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    content: "";
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%"  height="100%" viewBox="0 0 24 24" fill="none" stroke="%23ADB5BD" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-device-tv"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 7m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"/><path d="M16 3l-4 4l-4 -4"/></svg>');
    vertical-align: middle;
    margin:0 0 .125rem .25rem
}

.wp-block-video video {
	border-radius: var(--radius-l);
}


/* no thumb popular posts restyle */

::has(> .MostPopular-item) {
    counter-reset: most-popular-rank 0;
}

.MostPopular-item {
	counter-increment: most-popular-rank;
	padding: 1.25rem 0;
	position: relative;
	border-bottom: 1px solid var(--ctx-post-above-comments-border);
	margin-bottom: unset; 
}

.MostPopular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.MostPopular-link {
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

@media (prefers-color-scheme: dark) {
    .MostPopular-link {
        color: var(--ctx-sidebar-title-fg);
    }
}

.MostPopular-link:hover .MostPopular-text {
    color: var(--accent-color);
}


.MostPopular-link::before {
    content: counter(most-popular-rank);
    position: relative;
    color: var(--accent-color);
    font-size: 5rem;
    font-weight: 900;
    font-family: var(--text-headers);
    line-height: 1;
    flex-shrink: 0;
    width: 3rem;
    text-align: left;
    background: linear-gradient(-91deg,rgba(255, 255, 255, 0) 0%, rgba(252, 143, 0, 1) 100%);
    -webkit-background-clip: text;
	background-clip: text;
	color: transparent; /* important */
	-webkit-text-fill-color: transparent; /* for Safari */
    opacity: .5;
}

/*@media (prefers-color-scheme: dark) {
  .MostPopular-link::before {
    background: linear-gradient(
      -91deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(91, 42, 134, 1) 100%
    );
	  -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}*/

.MostPopular-title {
    width: auto;
    margin-left: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.MostPopular-caption {
    display: block;
    font-weight: 700;
    font-family: var(--text-headers);
    color: var(--color-blue-05);
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
    white-space: normal;
    line-height: 1.2;
}

.MostPopular-text {
    display: block;
    font-size: clamp(16px, 1.25vw, 1.1rem);
    font-weight: 500;
    font-family: var(--text-headers);
    line-height: 1.3;
    letter-spacing: -0.01875rem;
    word-break: break-word;
    transition: color 0.3s;
}

.MostPopular-item:first-child .MostPopular-text {
    font-weight: 600;
    font-size: clamp(16px, 1.25vw, 1.125rem);
    letter-spacing: -1px;
}

.MostPopular-item:first-child {
    padding-top: unset;
}

.MostPopular-item:last-child {
    padding-bottom: unset;
}


/* C_E_N_T_R_E_D TEST  */

.tile-layout[data-style=""][data-layout="3x"] .layout__title-link {
    text-align: center;
}

.tile-layout[data-style=""][data-layout="3x"] .layout__meta {
        justify-content: center;
        font-weight: 400;
        font-family: var(--text-headers);
        letter-spacing: 0;
}

/* Poaching Futurism's add pref link in post-meta */

.google-add-us-logo {
    display: inline-flex;
    align-items: center;
    opacity: 1;
}

.google-icon {
    width: 12px;
    height: 12px; 
}

.google-add-us-info {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

.post-meta .icon {
    flex: 0 0 14px;
}

.google-add-us-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	padding: 8px 10px;
	background: #1a1a1a;
    color: #fff;
	font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 4px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    z-index: 10;
}

.google-add-us-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-text, #1a1a1a);
}

.google-add-us-info:hover .google-add-us-tooltip,
.google-add-us-info:focus-visible .google-add-us-tooltip,
.google-add-us-info:focus-within .google-add-us-tooltip {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.post-meta .google-link {
    color: inherit;
    padding: 0 .25rem;
}

.post-meta {
    text-transform: capitalize;
    font-weight: normal;
    color: var(--date-color);
}

.post-meta .post-author__avatar {
	opacity:  unset !important;
}

/* sticky thing */

.tile-layout__item.is-sticky .layout__image-container::before {
	content: "Updated";
    position: absolute;
    font-family: var(--text-headers); 
    top: 4%;
    left: 2.5%;
    z-index: 2;
    padding: .25rem .5rem;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: -.25px;
    text-transform: capitalize;
    color: #fff;
    background: var(--accent-color);
    border-radius: var(--radius-s);
    pointer-events: none;
}

/* code bars */

pre {
    margin: 1.8rem 0;
    padding: 1.25rem 1rem;
    overflow: auto;
    font-family: var(--text-monospace);
    font-size: 1.0625rem;
    background: #292929;
    color: #fff;
    line-height: 1.5;
    border-radius: var(--radius-l);
    letter-spacing: -0.5px;
    position: relative;
}

.copy-code {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: var(--radius-s);
    margin: 0.5rem 0.5rem 0 0;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    transition: background 150ms ease-in-out, color 150ms ease-in-out;
}

.copy-code svg {
    height: 16px;
    width: 16px;
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.copy-code.copied {
    color: var(--accent-color);
}


.post-meta {
	font-size: .825rem;
}