/* Generated by scripts/sync_site_chrome.py from https://danielwmorgan.town/. Do not edit. */
.postlist-item {
	display: flex; 
	align-items: flex-start;
	gap: 1rem; 
	margin-bottom: 1.5rem; 
}
.postlist-content {
	flex: 1;
}
/* The thumbnail picture wrapper is the flex item, so it carries the sizing */
.postlist-item > picture {
	display: block;
	flex-shrink: 0;
}
.featured-image-thumbnail {
	display: block;
	flex-shrink: 0; 
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
	max-height: 70px;
	width: auto;
	object-fit: cover;
}
.postlist-link {
	font-size: 1.1em; 
	font-weight: 600; 
	text-decoration: none; 
}
.postlist-link:hover { 
	text-decoration: underline; 
}
.postlist-date { 
	font-size: 0.9em; 
	color: #666; 
	margin-top: 0.25rem; 
}
/* This is an arbitrary CSS string added to the bundle */
/* Defaults */
:root {
	--font-family: -apple-system, system-ui, sans-serif;
	--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
}

/* Theme colors */
:root {
	--color-gray-20: #e0e0e0;
	--color-gray-50: #C0C0C0;
	--color-gray-90: #333;

	--background-color: #fff;

	--text-color: var(--color-gray-90);
	--text-color-link: #082840;
	--text-color-link-active: #5f2b48;
	--text-color-link-visited: #17050F;

	--syntax-tab-size: 2;

	/* Code and UI element variables */
	--mono-font: var(--font-family-monospace);
	--code: var(--text-color);
	--code-bg: #c6c6d7;
	--code-text: var(--text-color);
	--preformatted: var(--color-gray-50);
	--border: var(--color-gray-20);
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-gray-20: #e0e0e0;
		--color-gray-50: #C0C0C0;
		--color-gray-90: #dad8d8;

		/* --text-color is assigned to --color-gray-_ above */
		--text-color-link: #1493fb;
		--text-color-link-active: #6969f7;
		--text-color-link-visited: #a6a6f8;

		--background-color: #15202b;
		
		/* Add code styling variables for dark mode */
		--code-bg: #2d3748;
		--code-text: #e2e8f0;

		/* Code and UI element variables for dark mode */
		--code: var(--code-text);
		--preformatted: var(--color-gray-50);
		--border: #4a5568;
	}
}

/* Dark mode class for user toggle */
.dark {
	--color-gray-20: #e0e0e0;
	--color-gray-50: #C0C0C0;
	--color-gray-90: #dad8d8;

	/* --text-color is assigned to --color-gray-_ above */
	--text-color-link: #1493fb;
	--text-color-link-active: #6969f7;
	--text-color-link-visited: #a6a6f8;

	--background-color: #15202b;

	/* Code styling variables for dark mode */
	--code-bg: #2d3748;
	--code-text: #e2e8f0;

	/* Code and UI element variables for dark mode */
	--code: var(--code-text);
	--preformatted: var(--color-gray-50);
	--border: #4a5568;
}

/* Dark mode component styles */
.dark pre {
	background: var(--code-bg, #2d3748);
	color: var(--code-text, #e2e8f0);
	border: 1px solid var(--border);
}

.dark code {
	color: var(--code-text, #e2e8f0);
}

/* Light mode explicit override — beats the media query when user forces light on a dark-preference system */
.light {
	--color-gray-90: #333;
	--background-color: #fff;
	--text-color-link: #082840;
	--text-color-link-active: #5f2b48;
	--text-color-link-visited: #17050F;
	--code-bg: #c6c6d7;
	--code-text: #333;
	--code: #333;
	--border: var(--color-gray-20);
}

.light pre {
	background: var(--code-bg);
	color: var(--code-text);
	border: 1px solid var(--border);
}

.light code {
	color: var(--code-text);
}

/* Global stylesheet */
* {
	box-sizing: border-box;
}

@view-transition {
	navigation: auto;
}

html,
body {
	padding: 0;
	margin: 0 auto;
	font-family: var(--font-family);
	color: var(--text-color);
	background-color: var(--background-color);
}
html {
	overflow-y: scroll;
}
body {
	max-width: 40em;
}

/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Fluid images via https://www.zachleat.com/web/fluid-images/ */
img,
video,
iframe {
  max-width: 100%;
}
img[width][height] {
  height: auto;
}

p:last-child {
	margin-bottom: 0;
}
p {
	line-height: 1.5;
}

li {
	line-height: 1.5;
}

a[href] {
	color: var(--text-color-link);
}
a[href]:visited {
	color: var(--text-color-link-visited);
}
a[href]:hover,
a[href]:active {
	color: var(--text-color-link-active);
}

main,
footer {
	padding: 1rem;
}
main :first-child {
	margin-top: 0;
}

header {
	border-bottom: 1px dashed var(--color-gray-20);
}
header:after {
	content: "";
	display: table;
	clear: both;
}

.links-nextprev {
	display: flex;
	justify-content: space-between;
	gap: .5em 1em;
	list-style: "";
	border-top: 1px dashed var(--color-gray-20);
	padding: 1em 0;
}
.links-nextprev > * {
	flex-grow: 1;
}
.links-nextprev-next {
	text-align: right;
}

table {
	margin: 1em 0;
}
table td,
table th {
	padding-right: 1em;
}

pre,
code {
	font-family: var(--font-family-monospace);
}
pre:not([class*="language-"]) {
	margin: .5em 0;
	line-height: 1.375; /* 22px /16 */
	-moz-tab-size: var(--syntax-tab-size);
	-o-tab-size: var(--syntax-tab-size);
	tab-size: var(--syntax-tab-size);
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	overflow-x: auto;
}
code {
	word-break: break-all;
}

/* Header */
header {
	display: flex;
	gap: 1em .5em;
	flex-wrap: wrap;
	align-items: center;
	padding: 1em;
}
.home-link {
	font-size: 1em; /* 16px /16 */
	font-weight: 700;
	margin-right: 2em;
}
.home-link:link:not(:hover) {
	text-decoration: none;
}

/* Nav */
.nav {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none;
}
.nav-item {
	display: inline-block;
	margin-right: 1em;
}
.nav-item a[href]:not(:hover) {
	text-decoration: none;
}
.nav a[href][aria-current="page"] {
	text-decoration: underline;
}

/* Theme toggle */
.theme-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	padding: 0.25rem;
	line-height: 1;
	margin-top: 0.5rem;
	display: inline-block;
}

.theme-icon-moon {
	display: none;
}

.theme-icon-sun {
	display: inline;
	color: #000000;
}

.dark .theme-icon-moon {
	display: inline;
	color: #ffffff;
}

.dark .theme-icon-sun {
	display: none;
}

/* Posts list */
.postlist {
	list-style: none;
	padding: 0;
	padding-left: 1.5rem;
}
.postlist-item {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 1em;
}
.postlist-item:before {
	display: inline-block;
	pointer-events: none;
	line-height: 100%;
	text-align: right;
	margin-left: -1.5rem;
}
.postlist-date,
.postlist-item:before {
	font-size: 0.8125em; /* 13px /16 */
	color: var(--color-gray-90);
}
.postlist-date {
	word-spacing: -0.5px;
}
.postlist-link {
	font-size: 1.1875em; /* 19px /16 */
	font-weight: 700;
	flex-basis: calc(100% - 1.5rem);
	padding-left: 0;
	padding-right: .5em;
	text-underline-position: from-font;
	text-underline-offset: 0;
	text-decoration-thickness: 1px;
}
.postlist-item-active .postlist-link {
	font-weight: bold;
}

/* Tags */
.post-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-style: italic;
}
.postlist-item > .post-tag {
	align-self: center;
}

/* Tags list */
.post-metadata {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
	padding: 0;
	margin: 0;
}
.tag-columns {
	column-count: 3;
	column-gap: 2rem;
	list-style: none;
	padding: 0;
}
.tag-columns li {
	break-inside: avoid;
	margin-bottom: .5rem;
}
.post-metadata time {
	margin-right: 1em;
}


.disclosure {
	font-family: Arial, sans-serif;
}

.toggle-checkbox {
	display: none;
}

.toggle-label {
	display: inline-block;  
	font-size: 15px;
	cursor: pointer;  
	user-select: none;
}

.toggle-label:hover {
	text-decoration: underline;
}

.toggle-label::before {
	content: '→ More';  
}

.toggle-checkbox:checked + .toggle-label::before {
	transform: rotate(-90deg);
		display: inline-block;
		margin-left: -24px;
		padding-left: -18px;
		padding-right: 2px;
		margin-bottom: 37px;
		transition: transform 0.10s ease-in-out;
}

.disclosed-content {
	display: none;
}

.toggle-checkbox:checked + .toggle-label + .disclosed-content {
	display: block;
}

.center {
	margin: 0 auto;
	text-align: center;
}

figcaption {
	font-size: 85%;
}


/* Use mono font for code like elements */
code,
pre,
pre span,
kbd,
samp {
  font-size: 12px;
  font-family: var(--mono-font);
  color: var(--code);
}

kbd {
  color: var(--preformatted);
  border: 1px solid var(--preformatted);
  border-bottom: 3px solid var(--preformatted);
  border-radius: 5px;
  padding: 0.1rem;
}

pre {
  padding: 1rem 1.4rem;
  max-width: 100%;
  overflow: auto;
  overflow-x: auto;
  color: var(--code);
  background: var(--code-bg, #c6c6d7);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono-font);
    font-size: 12px;
}

.hljs {
  background: var(--code-bg, #c6c6d7);
  color: var(--code, var(--text-color));
}

@media (prefers-color-scheme: dark) {
    pre {
        background: var(--code-bg, #2d3748);
        color: var(--code-text, #e2e8f0);
        border: 1px solid var(--border);
    }
    
    code {
        color: var(--code-text, #e2e8f0);
    }
}

.footnotes {
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  padding-top: 0.75rem;
}
.footnotes ol {
  margin-left: 1.25rem;
}
.footnotes li {
  margin-bottom: 0.5rem;
}
.footnotes a[href^="#fnref"] {
  text-decoration: none;
}
sup.footnote-ref {
  line-height: 0;
}

/* Centered images */
.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.dark .ia-mirror-logo {
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}
/* Critical CSS - Above the fold styles */
:root {
	--font-family: -apple-system, system-ui, sans-serif;
	--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
}

/* Theme colors */
:root {
	--color-gray-20: #e0e0e0;
	--color-gray-50: #C0C0C0;
	--color-gray-90: #333;
	--background-color: #fff;
	--text-color: var(--color-gray-90);
	--text-color-link: #082840;
	--text-color-link-active: #5f2b48;
	--text-color-link-visited: #17050F;
	--syntax-tab-size: 2;

	/* Code and UI element variables */
	--mono-font: var(--font-family-monospace);
	--code: var(--text-color);
	--code-bg: #c6c6d7;
	--code-text: var(--text-color);
	--preformatted: var(--color-gray-50);
	--border: var(--color-gray-20);
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-gray-20: #e0e0e0;
		--color-gray-50: #C0C0C0;
		--color-gray-90: #dad8d8;
		--text-color-link: #1493fb;
		--text-color-link-active: #6969f7;
		--text-color-link-visited: #a6a6f8;
		--background-color: #15202b;
		--code-bg: #2d3748;
		--code-text: #e2e8f0;

		/* Code and UI element variables for dark mode */
		--code: var(--code-text);
		--preformatted: var(--color-gray-50);
		--border: #4a5568;
	}
}

/* Dark mode class for user toggle */
.dark {
	--color-gray-20: #e0e0e0;
	--color-gray-50: #C0C0C0;
	--color-gray-90: #dad8d8;
	--text-color-link: #1493fb;
	--text-color-link-active: #6969f7;
	--text-color-link-visited: #a6a6f8;
	--background-color: #15202b;
	--code-bg: #2d3748;
	--code-text: #e2e8f0;
	--code: var(--code-text);
	--preformatted: var(--color-gray-50);
	--border: #4a5568;
}

* {
	box-sizing: border-box;
}

html, body {
	padding: 0;
	margin: 0 auto;
	font-family: var(--font-family);
	color: var(--text-color);
	background-color: var(--background-color);
}

.home-link {
	font-size: 1em;
	font-weight: 700;
	margin-right: 2em;
	text-decoration: none;
}

.nav {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav-item {
	display: inline-block;
	margin-right: 1em;
}

main {
	padding: 1rem;
	max-width: 60em;
	margin: 0 auto;
}

figure {
	margin: 0;
	padding:0
}
