a, a:hover, a:focus {
	color: inherit;
	text-decoration: none;
	transition: all 0.3s;
}

/* Sidebar */
.wrapper {
	display: flex;
	align-items: stretch;
}

#sidebar {
	min-width: 250px;
	max-width: 250px;
	transition: all 0.3s;
}

#sidebar.active {
	min-width: 80px;
	max-width: 80px;
	text-align: center;
}

#sidebar.active .sidebar-header h3, #sidebar.active .visit {
	display: none;
}

#sidebar.active .sidebar-header strong {
	display: block;
}

#sidebar.active ul li a {
	padding: 20px 10px;
	text-align: center;
	font-size: 0.85em;
}

#sidebar.active ul li a i {
	margin-right:  0;
	display: block;
	font-size: 1.8em;
	margin-bottom: 5px;
}

#sidebar.active ul ul a {
	padding: 10px !important;
}

#sidebar.active a[aria-expanded="false"]::before, #sidebar.active a[aria-expanded="true"]::before {
	top: auto;
	bottom: 5px;
	right: 50%;
	-webkit-transform: translateX(50%);
	-ms-transform: translateX(50%);
	transform: translateX(50%);
}

#sidebar .sidebar-header {
	padding: 10px 20px;
	background: #373a3c
}

#sidebar .sidebar-header strong {
	display: none;
	font-size: 1.5em;
}

#sidebar ul li a {
	padding: 10px;
	font-size: 1.1em;
	display: block;
}
#sidebar ul li a:hover {
	color: #2780e3;
	background: #fff;
}
#sidebar ul li a i {
	margin-right: 10px;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
	color: #fff;
	background: #1a6dca;
}


#sidebar a[data-toggle="collapse"] {
	position: relative;
}

#sidebar a[aria-expanded="true"]::before {
	content: '\e260';
}

#sidebar ul ul a {
	font-size: 0.9em !important;
	padding-left: 30px !important;
	background: #1a6dca;
}

.visit {
	padding: 20px;
}

.visit a {
	text-align: center;
	font-size: 0.9em !important;
	display: block;
	border-radius: 5px;
	margin-bottom: 5px;
}

.visit a {
	background: #fff;
	color: #7386D5;
	padding: 10px
}

/* content */
#content {
	padding: 20px;
	min-height: 100vh;
	transition: all 0.3s;
	width: 100%
}

/* Media Queries */
@media (max-width: 768px) {
	#sidebar {
		min-width: 80px;
		max-width: 80px;
		text-align: center;
		margin-left: -80px !important ;
	}
	a[aria-expanded="false"]::before, a[aria-expanded="true"]::before {
		top: auto;
		bottom: 5px;
		right: 50%;
		-webkit-transform: translateX(50%);
		-ms-transform: translateX(50%);
		transform: translateX(50%);
	}
	#sidebar.active {
		margin-left: 0 !important;
	}

	#sidebar .sidebar-header h3, #sidebar .CTAs {
		display: none;
	}

	#sidebar .sidebar-header strong {
		display: block;
	}

	#sidebar ul li a {
		padding: 20px 10px;
	}

	#sidebar ul li a span {
		font-size: 0.85em;
	}
	#sidebar ul li a i {
		margin-right:  0;
		display: block;
	}

	#sidebar ul ul a {
		padding: 10px !important;
	}

	#sidebar ul li a i {
		font-size: 1.3em;
	}
	#sidebar {
		margin-left: 0;
	}
	#sidebarCollapse span {
		display: none;
	}
}

/* Sfera-inspired portfolio shell, book navigation, reader controls, and themes. */
:root {
  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #172235;
  --body-ink: #27354a;
  --muted: #65748a;
  --navy: #101827;
  --navy-soft: #182337;
  --accent: #cf5b45;
  --accent-light: #ed9b82;
  --site-reading-size: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: var(--site-reading-size)/1.6 'DM Sans', 'Montserrat', sans-serif; text-align: center; }
a, a:hover, a:focus { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 13px; transform: translateY(-160%); border-radius: 6px; background: #fff; color: #101827; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 3px 18px rgba(16,24,39,.07); }
.masthead { width: min(1500px, 100%); min-height: 100px; margin: auto; padding: 16px 30px; display: flex; align-items: center; gap: 24px; transition: min-height .2s ease, padding .2s ease; }
.brand-lockup { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 13px; color: var(--ink); text-align: left; }
.brand-monogram { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font: 800 20px/1 'Playfair Display', Georgia, serif; letter-spacing: -.05em; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font: 700 clamp(19px,2.3vw,27px)/1.15 'Playfair Display', Georgia, serif; }
.brand-subtitle { color: #647188; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.masthead-tools { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.site-search { width: min(330px, 32vw); height: 42px; padding: 3px; display: flex; border: 1px solid #354258; border-radius: 8px; background: #182337; }
.site-search input { min-width: 0; flex: 1; padding: 0 11px; border: 0; outline: 0; background: transparent; color: #fff; font: 13px 'DM Sans',sans-serif; }
.site-search input::placeholder { color: #a6b1c0; }
.site-search:focus-within { border-color: #8798b2; box-shadow: 0 0 0 3px rgba(135,152,178,.16); }
.site-search button { width: 36px; padding: 0; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; font-size: 23px; line-height: 1; }
.reading-size-controls { display: flex; align-items: center; gap: 4px; }
.reading-control-button { min-width: 30px; min-height: 30px; padding: 4px 7px; border: 1px solid #d5dbe4; border-radius: 6px; background: #fff; color: #34445b; cursor: pointer; font: 700 11px 'DM Sans',sans-serif; }
.reading-control-button:hover { border-color: var(--accent); background: #f2f4f7; }
.reading-controls-value { min-width: 39px; color: #47556a; font: 600 10px/1 'DM Sans',sans-serif; }
.reading-reset { min-width: 27px; padding: 3px; font-size: 16px; }
.theme-toggle { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #c9d0da; border-radius: 50%; background: #fff; color: #44526a; cursor: pointer; font: 400 16px/1 'DM Sans',sans-serif; transition: transform .18s ease, background .18s ease; }
.theme-toggle:hover { transform: rotate(-10deg); border-color: var(--accent); background: #edf1f6; }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-header.is-compact .masthead { min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.site-header.is-compact .brand-monogram { width: 42px; height: 42px; }
.site-layout { width: min(1500px, 100%); min-height: calc(100vh - 145px); margin: 0 auto; padding: 26px 26px 45px; display: grid; grid-template-columns: 260px minmax(0,1fr); align-items: start; gap: 26px; }
.site-sidebar { position: sticky; top: var(--site-sidebar-sticky-top, calc(var(--site-header-height, 100px) + 12px)); padding: 18px 14px 15px; border: 1px solid #26354b; border-radius: 12px; background: var(--navy); color: #eef2f7; box-shadow: 0 8px 26px rgba(16,24,39,.13); text-align: left; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.eyebrow { color: var(--accent-light); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-mark { color: var(--accent); font-size: 19px; }
.menu-group { padding: 12px 0 2px; }
.menu-group h2 { margin: 0 8px 6px; color: #8291a7; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.menu-group ul { margin: 0; padding: 0; list-style: none; }
.menu-link { min-height: 35px; padding: 6px 9px; display: flex; align-items: center; gap: 9px; border-radius: 7px; color: #d7dfeb; font-size: clamp(13px, calc(var(--site-reading-size) * 0.875), 18px); font-weight: 600; line-height: 1.35; transition: color .18s ease, background-color .18s ease; }
.menu-link:hover, .menu-link:focus-visible { background: #25364d; color: #fff; }
.menu-link:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.menu-group-secondary { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.site-main { min-width: 0; padding: 1px 0 0; color: var(--body-ink); }
.site-main .container { max-width: 100%; padding-right: 8px; padding-left: 8px; }
.site-main .card { margin: 10px 0; border: 1px solid #e3e7ed; border-radius: 10px; background: var(--surface); color: var(--body-ink); box-shadow: 0 4px 14px rgba(16,24,39,.08); text-align: center; }
.site-main .card-title { color: var(--ink); font-size: 1em; }
.site-main .card img { object-fit: contain; }
.site-main .btn { font-size: 12px; }
.site-footer { max-width: 1500px; margin: 0 auto; padding: 17px 30px 23px; display: flex; align-items: center; gap: 14px; border-top: 1px solid #dfe4eb; color: var(--muted); font-size: 12px; text-align: left; }
.footer-brand { color: var(--ink); font-weight: 700; }
.footer-description { margin: 0; }
html[data-theme="dark"] { color-scheme: dark; --paper:#111a29; --surface:#1a2638; --ink:#eef2f7; --body-ink:#d7dfeb; --muted:#a8b4c5; }
html[data-theme="dark"] .site-header, html[data-theme="dark"] .masthead { background: #101827; color: #f7f8fb; }
html[data-theme="dark"] .brand-lockup, html[data-theme="dark"] .brand-name { color: #f2f4f8; }
html[data-theme="dark"] .brand-monogram { border: 1px solid rgba(255,255,255,.18); background: #f5f5f2; color: #172235; }
html[data-theme="dark"] .brand-subtitle, html[data-theme="dark"] .reading-controls-value { color: #bdc6d4; }
html[data-theme="dark"] .reading-control-button, html[data-theme="dark"] .theme-toggle { border-color: #35465e; background: #182337; color: #e3eaf4; }
html[data-theme="dark"] .site-main, html[data-theme="dark"] #main-content { color: var(--body-ink); }
html[data-theme="dark"] .site-main .card { border-color: #35445a; background: var(--surface); color: var(--body-ink); }
html[data-theme="dark"] .site-main .card-title, html[data-theme="dark"] .site-main .card a { color: #f0c2b6; }
html[data-theme="dark"] .site-main p, html[data-theme="dark"] .site-main h1, html[data-theme="dark"] .site-main h2, html[data-theme="dark"] .site-main h3, html[data-theme="dark"] .site-main h4, html[data-theme="dark"] .site-main h5, html[data-theme="dark"] .site-main h6, html[data-theme="dark"] .site-main td { color: var(--body-ink); }
html[data-theme="dark"] .site-main table, html[data-theme="dark"] .site-main td, html[data-theme="dark"] .site-main th { border-color: #35445a; background-color: #1a2638; }
html[data-theme="dark"] .site-footer { border-color: #35445a; color: #a8b4c5; }
html[data-theme="dark"] .footer-brand { color: #eef2f7; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .masthead { padding: 14px 20px; flex-wrap: wrap; gap: 12px 18px; }
  .masthead-tools { flex-wrap: wrap; }
  .site-layout { grid-template-columns: 230px minmax(0,1fr); gap: 16px; padding: 18px 14px 32px; }
}
@media (max-width: 640px) {
  .masthead { padding: 12px 15px; }
  .brand-monogram { width: 43px; height: 43px; }
  .brand-name { font-size: 20px; }
  .masthead-tools { width: 100%; justify-content: flex-start; margin-left: 0; }
  .site-search { width: auto; flex: 1 1 100%; }
  .site-layout { display: block; padding: 14px 12px 26px; }
  .site-sidebar { position: static; margin-bottom: 17px; padding: 12px; }
  .sidebar-heading { padding-bottom: 9px; }
  .menu-group { padding-top: 10px; }
  .menu-link { min-height: 35px; padding: 5px 7px; }
  .site-main { overflow-wrap: anywhere; }
  .site-main table { width: 100% !important; }
  .site-main td { max-width: 100%; }
  .site-main img { max-width: 100%; height: auto; }
  .site-footer { padding: 14px; flex-wrap: wrap; gap: 5px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Full-page PDF reading; the document page, not an embedded viewer, owns scrolling. */
.visually-hidden, .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.site-sidebar .book-menu-link::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4b9dff; box-shadow: 0 0 0 0 rgba(75,157,255,.68); animation: book-dot-pulse 1.8s ease-out infinite; }
@keyframes book-dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(75,157,255,.62); } 70% { box-shadow: 0 0 0 6px rgba(75,157,255,0); } 100% { box-shadow: 0 0 0 0 rgba(75,157,255,0); } }
.pdf-reader { width: min(920px, 100%); margin: 0 auto; text-align: left; }
.pdf-reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding: 4px 2px; }
.pdf-book-title { margin: 0; color: var(--ink); font: 700 clamp(22px,3vw,32px)/1.2 'Playfair Display', Georgia, serif; }
.pdf-status { margin: 0 0 12px; color: var(--muted); font-size: 13px; text-align: center; }
.pdf-status:empty { display: none; }
.pdf-document { display: grid; gap: 12px; width: 100%; max-width: 860px; margin: 0 auto; }
.pdf-page { position: relative; width: 100%; background: #fff; border: 1px solid #d9dee7; box-shadow: 0 3px 14px rgba(16,24,39,.14); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-page.is-rendering { background: #fff; }
html[data-theme="dark"] .pdf-book-title { color: #eef2f7; }
html[data-theme="dark"] .pdf-page { border-color: #43546b; }
@media (max-width: 640px) {
  .pdf-reader-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .pdf-document { gap: 8px; }
}
@media (max-height: 760px) and (min-width: 641px) { .site-sidebar { position: static; } }
@media (prefers-reduced-motion: reduce) { .site-sidebar .book-menu-link::before { animation: none; } }

