code:
App.Encyclopedia.addArticle("Facilities Overview", function() {
	const basic = [App.Encyclopedia.link("Arcade"), App.Encyclopedia.link("Brothel"), App.Encyclopedia.link("Club"), App.Encyclopedia.link("Dairy"), App.Encyclopedia.link("Servants' Quarters")];
	const unique = [App.Encyclopedia.link("Head Girl Suite"), App.Encyclopedia.link("Master Suite"), App.Encyclopedia.link("Farmyard"), App.Encyclopedia.link("Incubation Facility", "The Incubation Facility"), App.Encyclopedia.link("Pit")];
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The arcology can be upgraded with a variety of facilities for slaves to live and work from. Each of the facilities is associated with an assignment. Sending a slave to a facility removes her from the main menu, removes her from the end of week report, and automates most management of her. Her clothes, drugs, rules, and other management tools are automatically run by the facility. However, her impact on your affairs will be substantially the same as if she were assigned to the corresponding assignment outside the facility. This means that things like", App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"), "effects, future society developments, and branding are all still active.");
	r.toParagraph();

	r.push("Use facilities sparingly until you're familiar with what assignments do so you don't miss important information. When you're confident enough to ignore a slave for long periods, sending her to a facility becomes a good option. Sending a slave to a facility heavily reduces the player's interaction with her, keeps the main menu and end week report manageable, and prevents most events from featuring her, which can be useful when she's so well trained that events aren't as beneficial for her. Also, many facilities have leadership positions that can apply powerful multipliers to a slave's performance.");
	r.toParagraph();

	r.push("The", App.UI.DOM.toSentence(basic), "all correspond to basic productive assignments.");
	r.push("The",  App.UI.DOM.toSentence([App.Encyclopedia.link("Spa"), App.Encyclopedia.link("Cellblock"), App.Encyclopedia.link("Schoolroom")]), "are a little different in that they focus on improving their occupants rather than producing something useful, since they correspond to the rest, confinement, and class assignments.");
	r.push("As such, only slaves that can benefit from these facilities' services can be sent to them. When slaves in these facilities have received all the benefits they can from the facility, they will be automatically ejected, assigned to rest, and returned to the main menu.");
	r.push("The", App.UI.DOM.toSentence(unique), "are all completely unique.");
	r.toParagraph();
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Arcade", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("It is every slave's final duty to go into the arcade, and to become one with all the arcology.");
	r.toNode("div", ["note"]);
	App.Events.addNode(f, ["— Anonymous slaveowner", "note"], "div", ["indent"]);

	r.push(`The arcade (sometimes colloquially referred to as "the wallbutts") is an excellent example of one of the many ideas that was confined to the realm of erotic fantasy until modern slavery began to take shape. It has rapidly turned from an imaginary fetishistic construction into a common sight in the more 'industrial' slaveowning arcologies. Most arcades are built to do one thing: derive profit from the holes of low-value slaves.`);
	r.toNode("p", ["note"]);

	r.push("Upon entering an arcade, one is typically presented with a clean, utilitarian wall like in a well-kept public restroom. Some have stalls, but many do not. In either case, at intervals along this wall, slaves' naked hindquarters protrude through. They are completely restrained on the inside of the wall, and available for use. Usually, the wall has an opposite side on which the slaves' throats may be accessed. The slaves' holes are cleaned either by mechanisms that withdraw them into the wall for the purpose, shields which extend between uses, or rarely, by attendants.");
	r.toNode("p", ["note"]);

	r.push("Arcades have become so common that most arcade owners attempt to differentiate themselves with something special. Some arcades have only a low wall so that conversations may be had between persons using either end of a slave; business meetings are an advertised possibility. Many specialize in a specific genital arrangement; others shield the pubic area so as to completely disguise it, reducing the slaves' identities to an anus and a throat only. Some attempt to improve patrons' experiences by using slaves who retain enough competence to do more than simply accept penetration, while others pursue the same goal by applying muscular electrostimulus for a tightening effect.");
	r.toNode("p", ["note"]);

	App.Encyclopedia.addArticleSource(r.container(), "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	r.push("The", App.UI.DOM.makeElement("span", "Arcade", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Glory hole"), " facility."));
	r.push("Extracts", App.Encyclopedia.link("money", "Money", "yellowgreen"), "from slaves; has extremely deleterious mental and physical effects.");
	r.push("Arcades can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a tiny amount of future society progress for each customer who visits.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Brothel", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Brothel", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Whoring"), "facility."));
	r.push("Slaves will make", App.Encyclopedia.link("money", "Money", "yellowgreen"), "based on beauty and skills.");
	r.push("Brothels can be the subject of an", App.Encyclopedia.link("ad campaign.", "Advertising"));
	r.push("Brothels can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a tiny amount of future society progress for each customer who visits.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Cellblock", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Cellblock", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Confinement"), "facility."));
	r.push("Will break slaves and return them to the main menu after they are obedient.");
	r.push("The Cellblock can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves incarcerated there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Clinic", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Clinic", ["bold"]), "is one of two", noteFacilityName(App.Encyclopedia.link("Rest"), "facilities,"), "it focuses on slaves' health.");
	r.push("The Clinic will treat slaves until they are", App.Encyclopedia.link("Healthy", "Health"), ",", "and will cure both injuries and illness.");
	r.push("The Clinic can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves getting treatment there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Club", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Club", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Public Service"), "facility."));
	r.push("Slaves will generate", App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"), "based on beauty and skills.");
	r.push("Clubs can be the subject of an", App.Encyclopedia.link("ad campaign.", "Advertising"));
	r.push("Clubs can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a tiny amount of future society progress for each citizen who visits.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Dairy", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("This is the very first", App.UI.DOM.makeElement("span", "Free Cities Husbandry Weekly", ["note"]), "ever.");
	r.push("I'm Val Banaszewski, and I'm the FCHW staff writer for dairy and dairy-related subjects. So, why do I do this, and why should you? Human breast milk is never going to be as", App.Encyclopedia.link("cheap", "Money", "yellowgreen"), "and common as normal milk. Why bother?");
	r.toNode("div", ["note"]);

	r.push("First, it's really tasty! If you've never tried it, put FCHW no. 1 down now and go try it. Buy it bottled if you have to, but make an effort to take your first drink right from the teat. You'll only ever take your first sip of mother's milk once, and it should really be special. Everyone describes it a little differently, but I'd say it's a warm, rich and comforting milk with vanilla and nutty flavors.");
	r.toNode("p", ["note"]);

	r.push("Second, it's sexy! Decadence is in, folks. Many people move to the Free Cities to get away from the old world, but some come here to experience real freedom. The experience of drinking a woman's milk before, during, and after you use her just isn't something you pass up. Try it today.");
	r.toNode("p", ["note"]);

	App.Encyclopedia.addArticleSource(r.container(), "Free Cities Husbandry Weekly, February 2, 2032", "Banaszewski, Valerie P.");

	r.push("The", App.UI.DOM.makeElement("span", "Dairy", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Milking"), "facility."));
	r.push(`Only lactating ${V.seeDicks > 0 ? '' : 'or semen producing'} slaves can be assigned; will use drugs to increase natural breast size${V.seeDicks > 0 ? ' and ball size, if present' : ''}.`);
	r.push("All Dairy upgrades have three settings, once installed: Inactive, Active, and Industrial. Inactive and Active are self-explanatory. Industrial settings require that the restraint upgrade be installed and maximized, and that extreme content be enabled. They massively improve production, but will produce severe mental and physical damage. Younger slaves will be able to survive more intense industrial output, but drug side effects will eventually force an increasingly large fraction of drug focus towards curing the slave's ills, reducing production. Dairies can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a tiny amount of future society progress for each unit of fluid produced.");
	r.toParagraph();
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Head Girl Suite", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Head Girl Suite"), "is a", App.UI.DOM.makeElement("span", "unique facility.", ["note"]));
	r.push("Only a single slave can be assigned, and this slave will be subject to the", App.Encyclopedia.link("Head Girl"), "'s decisions rather than the player's.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Master Suite", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Master Suite", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Fucktoy"), "facility."));
	r.push("Slaves will generate", App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"), "but at a lower efficiency than on the club. The Suite can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves serving there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Pit", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Pit", ["bold"]), "is a", App.UI.DOM.makeElement("span", "unique facility.", ["note"]));
	r.push("Unique in that slaves can perform standard duties in addition to being scheduled for fights in this facility.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Schoolroom", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Schoolroom", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Learning", "Attending Classes"), "facility."));
	r.push("Will educate slaves and return them to the penthouse after they are educated. The Schoolroom can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves studying there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Servants' Quarters", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Servants' Quarters", ["bold"]), "is the", noteFacilityName(App.Encyclopedia.link("Servitude"), "facility."));
	r.push("Reduces weekly upkeep according to servants' obedience. Accepts most slaves and is insensitive to beauty and skills. The Quarters can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves serving there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Spa", function() {
	const spaConditions = [App.Encyclopedia.link("Healthy", "Health"), "happy", App.Encyclopedia.link("free of flaws.", "Flaws")];
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Spa", ["bold"]), "is one of two", noteFacilityName(App.Encyclopedia.link("Rest"), "facilities;"), "it focuses on slaves' mental well-being.");
	r.push("The Spa will heal, rest, and reassure slaves until they are at least reasonably", App.UI.DOM.toSentence(spaConditions), "The Spa can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so will add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves resting there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Nursery", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Nursery", ["bold"]), "is used to raise children from birth naturally. Once a spot is reserved for the child, they will be placed in the Nursery upon birth and ejected once they are old enough. The Nursery can be furnished according to", App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so can add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves working there.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Farmyard", function() {
	// TODO: this will need more information
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("The", App.UI.DOM.makeElement("span", "Farmyard", ["bold"]), "is where the majority of the", App.Encyclopedia.link("food"), `in your arcology is grown, once it is built. It also allows you to house animals${V.seeBestiality === 1 ? ', which you can have interact with your slaves' : ''}. The Farmyard can be furnished according to`, App.Encyclopedia.link("future society", "Future Societies"), "styles, and doing so can add a slight", App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "hotpink"), "boost to slaves working there."); // TODO: this may need to be changed
	r.toNode("div");

	r.push("This entry still needs work and will be updated with more information as it matures. If this message is still here, remind one of the devs to remove it.");
	r.toNode("div", ["note"]);
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Advertising", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Ad campaigns", ["bold"]), "can be run for both the", App.Encyclopedia.link("Brothel"), "and the", App.Encyclopedia.link("Club.", "Club"));
	r.push("Naturally, these advertisements will feature lots of naked girls, providing the opportunity to give either facility a cachet for offering a specific kind of girl.");
	r.push("Under the default, nonspecific settings, all slaves in the facilities will receive minor bonuses to performance.");
	r.push("If specific body types are advertised, slaves that match the advertisements will receive an enhanced bonus, while slaves that do not will get a small penalty.");
	r.push("However, instituting a specific ad campaign will prevent slaves in that facility from getting", App.Encyclopedia.link("Variety"), "bonuses.");
	r.toNode("div");
	return f;
}, "facilities");

App.Encyclopedia.addArticle("Variety", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Variety", ["bold"]), "bonuses are available for slaves in the", App.Encyclopedia.link("Brothel"), "and the", App.Encyclopedia.link("Club.", "Club"));
	r.push("Offering a variety of slaves will provide a small bonus to performance for everyone in the facility, regardless of which qualities they possess:");
	r.toNode("div");

	App.Events.addNode(f, ["Slim vs. Stacked"], "div", ["indent"]);
	App.Events.addNode(f, ["Modded (heavily pierced and tattooed) vs. Unmodded"], "div", ["indent"]);
	App.Events.addNode(f, ["Natural Assets vs. Implants"], "div", ["indent"]);
	App.Events.addNode(f, [`Young vs. Old${V.seeDicks !== 0 ? '- Pussies and Dicks' : ''}`], "div", ["indent"]);

	r.push("Variety bonuses, if any, will be called out in the facility report at the end of the week.", App.Encyclopedia.link("Advertising"), "that the facility specializes in any of these areas will supersede variety bonuses for the related qualities. Staffing a facility to appeal to all tastes can be more challenging than building a homogeneous stable and advertising it, but is both powerful and free.");
	r.toParagraph();
	return f;
}, "facilities");

App.Encyclopedia.addCategory("facilities", function() {
	const f = new DocumentFragment();
	let r = [];
	r.push(App.Encyclopedia.link("Overview", "Facilities Overview"));
	r.push(App.Encyclopedia.link("Arcade"));
	r.push(App.Encyclopedia.link("Brothel"));
	r.push(App.Encyclopedia.link("Cellblock"));
	r.push(App.Encyclopedia.link("Clinic"));
	r.push(App.Encyclopedia.link("Club"));
	r.push(App.Encyclopedia.link("Dairy"));
	r.push(App.Encyclopedia.link("Head Girl Suite"));
	r.push(App.Encyclopedia.link("Master Suite"));
	r.push(App.Encyclopedia.link("Pit"));
	r.push(App.Encyclopedia.link("Schoolroom"));
	r.push(App.Encyclopedia.link("Servants' Quarters"));
	r.push(App.Encyclopedia.link("Spa"));
	r.push(App.Encyclopedia.link("Nursery"));
	r.push(App.Encyclopedia.link("Farmyard"));
	r.push(App.Encyclopedia.link("The Incubation Facility"));
	App.Events.addNode(f, ["Arcology Facilities:", App.UI.DOM.generateLinksStrip(r)], "div");

	r = [];
	r.push(App.Encyclopedia.link("Advertising"));
	r.push(App.Encyclopedia.link("Variety"));
	App.Events.addNode(f, ["Facility Bonuses:", App.UI.DOM.generateLinksStrip(r)], "div", ["note"]);
	return f;
});

function noteFacilityName(...text) {
	const f = new DocumentFragment();
	App.Events.addNode(f, text, "span", ["note"]);
	return f;
}


code:
App.Encyclopedia.addArticle("Fetishes", function() {
	const r = new SpacedTextAccumulator();
	// Future room for lore text

	r.push("Choose a more particular entry below:");

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Boob Fetishists", function() {
	const r = new SpacedTextAccumulator();
	r.push("Boob Fetishists like breasts.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, and being milked.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("and being milked.");
	r.toParagraph();

	r.push("The fetish will increase XX attraction. Boob Fetishists enjoy cowbell collars, breast surgery, and being milked. Milkmaids can become boob fetishists naturally.");
	r.toParagraph();

	r.push("Boob fetishists may become", App.Encyclopedia.link("obsessed with breast expansion", "Breast Obsession"), "as their breasts grow.");
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Buttsluts", function() {
	const r = new SpacedTextAccumulator();
	r.push("Buttsluts fetishize anal sex — mostly on the receiving end, though they'll enjoy other anal play.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, anally-focused fucktoy service, service in a", App.Encyclopedia.link("Dairy", "Dairy"), "upgraded with reciprocating dildos, the dildo drug dispenser upgrade, anal accessories, and being a painal queen.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("the dildo drug dispenser upgrade, and being a painal queen.");
	r.toParagraph();

	r.push("Buttsluttery will soften the", App.Encyclopedia.link("hates anal", "Hates anal"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("painal queen", "Painal Queen"), ","),
		"the", App.Encyclopedia.link("hates penetration"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("strugglefuck queen", "Strugglefuck Queen"), ","),
		"and the", App.Encyclopedia.link("repressed", "Repressed"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("perverted", "Perverted"), ","),
		"or remove these flaws if a quirk is already present. Buttsluts with vaginas enjoy wearing chastity belts, and all buttsluts enjoy buttock enhancement and anal rejuvenation surgeries. Buttsluts do not mind a lack of hormonal feminization. The fetish will increase XY attraction.");
	r.toParagraph();

	r.push("Buttsluts whose only available hole for receptive intercourse is the anus may become", App.UI.DOM.combineNodes(App.Encyclopedia.link("anal addicts", "Anal Addicts"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Cumsluts", function() {
	const r = new SpacedTextAccumulator();
	r.push("Cumsluts fetishize oral sex and ejaculate.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("the phallic food dispenser upgrade, cum diets, and being a gagfuck queen.");
	r.toParagraph();

	r.push("Cumsluttery will soften the", App.Encyclopedia.link("hates oral", "Hates oral"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("gagfuck queen", "Gagfuck Queen"), ","),
		"the", App.Encyclopedia.link("hates women", "Hates women"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("adores men", "Adores men"), ","),
		"and the", App.Encyclopedia.link("repressed", "Repressed"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("perverted", "Perverted"), ","),
		"or remove these flaws if a quirk is already present. Cumsluts enjoy cum diets. The fetish will increase XY attraction.");
	r.toParagraph();

	r.push("Cumsluts who eat out of phallic feeders or are fed cum may become", App.UI.DOM.combineNodes(App.Encyclopedia.link("cum addicts", "Cum Addicts"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Doms", function() {
	const r = new SpacedTextAccumulator();
	r.push("Doms fetishize dominance.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, unfocused fucktoy service, and being confident or cutting.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("being confident, and being cutting.");
	r.toParagraph();

	r.push("Dominance will remove the", App.Encyclopedia.link("apathetic", "Apathetic"), "flaw if a quirk is already present. Doms do not mind a lack of hormonal feminization. The fetish will increase XX attraction. Stewardesses do better when either dominant or",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("nymphomaniacal", "Nymphomania"), ". The"),
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Head Girl", "Head Girl"), ","),
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Madam", "Madam"), ","),
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Schoolteacher", "Schoolteacher"), ","),
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Stewardess", "Stewardess"), ", and"),
		App.Encyclopedia.link("Nurse", "Nurse"), "can become Doms naturally.");
	r.toParagraph();

	r.push("Doms serving as Head Girls may become", App.Encyclopedia.link("abusive", "Abusiveness"), "if allowed to punish slaves by molesting them.");
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Humiliation Fetishists", function() {
	const r = new SpacedTextAccumulator();
	r.push("Humiliation Fetishists like exhibitionism.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, or being sinful, a tease, or perverted.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("being sinful, being a tease, and being perverted.");
	r.toParagraph();

	r.push("A humiliation fetish will soften the, ", App.Encyclopedia.link("bitchy", "Bitchy"), "flaw into", App.Encyclopedia.link("cutting", "Cutting"),
		"and the", App.Encyclopedia.link("shamefast", "Shamefast"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("tease", "Tease"), ","),
		"or remove these flaws if a quirk is already present. The fetish will increase XY attraction. Humiliation fetishists enjoy nudity, and like revealing clothing at a lower");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"),
		"than other slaves. DJs can become humiliation fetishists naturally.");
	r.toParagraph();

	r.push("Humiliation fetishists on public sexual assignments may become", App.UI.DOM.combineNodes(App.Encyclopedia.link("attention whores", "Attention Whores"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Masochists", function() {
	const r = new SpacedTextAccumulator();
	r.push("Masochists fetishize abuse and pain aimed at themselves.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, uncomfortable clothing, being", App.Encyclopedia.link("funny", "Funny"), "and being a", App.UI.DOM.combineNodes(App.Encyclopedia.link("strugglefuck queen", "Strugglefuck Queen"), "."));
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("being", App.Encyclopedia.link("funny", "Funny"), "and being a", App.UI.DOM.combineNodes(App.Encyclopedia.link("strugglefuck queen", "Strugglefuck Queen"), "."));
	r.toParagraph();

	r.push("Masochism will soften the", App.Encyclopedia.link("liberated", "Liberated"), "flaw into", App.Encyclopedia.link("advocate", "Advocate"), "or remove this flaw if a quirk is already present. Masochists can be abused without causing deleterious flaws.");
	r.toParagraph();

	r.push("Masochists serving in an industrialized dairy, in an arcade, or in a glory hole have a chance to become", App.UI.DOM.combineNodes(App.Encyclopedia.link("self hating", "Self Hatred"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Pregnancy Fetishists", function() {
	const r = new SpacedTextAccumulator();
	r.push("Pregnancy Fetishists like being impregnated, sex with pregnant slaves, and getting others pregnant. (It is not necessary that the slave actually be able to do any of these things; such is life.)");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, having sex while pregnant, adoring men, being a tease, and being romantic.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("adoring men, being a tease, and being romantic.");
	r.toParagraph();

	r.push("The fetish will increase XY attraction. Pregnancy fetishists greatly enjoy all kinds of impregnation, and love or hate fertility surgeries depending on what's being changed.");
	r.toParagraph();

	r.push("Pregnancy Fetishists who are repeatedly bred or are serving in an industrialized Dairy may develop", App.UI.DOM.combineNodes(App.Encyclopedia.link("breeding obsessions", "Breeding Obsession"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Sadists", function() {
	const r = new SpacedTextAccumulator();
	r.push("Sadists fetishize abuse and pain aimed at others.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, and relationships.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, and high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), "."), ["trust", "careful"]));
	r.toParagraph();

	r.push("Sadists do not mind a lack of hormonal feminization. The fetish will increase XX attraction. Wardenesses do better when sadistic, and can become sadists naturally.");
	r.toParagraph();

	r.push("Sadists serving as Wardeness may become", App.UI.DOM.combineNodes(App.Encyclopedia.link("sexually malicious", "Maliciousness"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addArticle("Submissives", function() {
	const r = new SpacedTextAccumulator();
	r.push("Submissives fetishize submission.");
	r.toParagraph();

	r.push("The fetish can be created by appropriate smart clit piercing settings, serving the Head Girl, relationships, unfocused fucktoy service, crawling due to damaged tendons, being caring, being an advocate, and being insecure.");
	r.toParagraph();

	r.push("It can be advanced by appropriate smart clit piercing settings, high");
	r.push(App.Encyclopedia.link("devotion", "From Rebellious to Devoted", "devotion accept"), "and");
	r.push(App.UI.DOM.makeElement("span", App.UI.DOM.combineNodes(App.Encyclopedia.link("trust", "Trust"), ","), ["trust", "careful"]));
	r.push("being caring, being an advocate, and being insecure.");
	r.toParagraph();

	r.push("Submissiveness will soften the", App.Encyclopedia.link("arrogant", "Arrogant"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("confident", "Confident"), ","),
		"the", App.Encyclopedia.link("apathetic", "Apathetic"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("caring", "Caring"), ","),
		"and the", App.Encyclopedia.link("idealistic", "Idealistic"), "flaw into", App.UI.DOM.combineNodes(App.Encyclopedia.link("romantic", "Romantic"), ","),
		"or remove these flaws if a quirk is already present. The fetish will increase XY attraction. It improves performance at the servant assignment and working in the Servants' Quarters. Attendants do better when submissive, and can become submissives naturally.");
	r.toParagraph();

	r.push("Submissives serving on public sexual assignment may become", App.UI.DOM.combineNodes(App.Encyclopedia.link("sexually self neglectful", "Self Neglect"), "."));
	r.toParagraph();

	return r.container();
}, "fetish");

App.Encyclopedia.addCategory("fetish", function() {
	const links = [];
	links.push(App.Encyclopedia.link("Boob Fetishists"));
	links.push(App.Encyclopedia.link("Buttsluts"));
	links.push(App.Encyclopedia.link("Cumsluts"));
	links.push(App.Encyclopedia.link("Doms"));
	links.push(App.Encyclopedia.link("Humiliation Fetishists"));
	links.push(App.Encyclopedia.link("Masochists"));
	links.push(App.Encyclopedia.link("Pregnancy Fetishists"));
	links.push(App.Encyclopedia.link("Sadists"));
	links.push(App.Encyclopedia.link("Submissives"));
	links.push(App.Encyclopedia.link("Paraphilias Overview"));
	return App.UI.DOM.generateLinksStrip(links);
});

repo_name: Arkerthan/fc

license: mit


code:
App.Encyclopedia.addArticle("Future Societies", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["The evolution of society has never been linear.",
		"Times of unrest and upheaval produce rapid change, followed by long periods of stasis in the absence of the necessary ingredients for further change.",
		"The world is undoubtedly in the midst of a time of great change: society is certainly evolving. But into what?"], "div", ["note"]);

	App.Events.addNode(t, ["Not since antiquity have single persons held as much practical power over the direction of society as Free Cities arcology owners now have.",
		"Naturally, different Free Cities notables are going different ways with their great power.",
		"Many are building new societies as different from each other as they are from the old world."], "div", ["note"]);

	App.Events.addNode(t, ["One arcology might hold a society that is moving towards a fundamentalist interpretation of an old slaveholding religious tradition.",
		"Another might pay homage to historical racially segregated societies.",
		"A third might see intentional manipulation of gender roles that have held since the start of recorded history.",
		"And these three arcologies might well be each other's neighbors."], "div", ["note"]);

	App.Encyclopedia.addArticleSource(t, "Guide to Modern Slavery, Online Edition. Accessed April 2, 2032", "Lawrence, W. G.");

	App.Events.addNode(t, [
		App.UI.DOM.makeElement("span", "Future Society Models", ["bold"]), `are societal goals the player can select and pursue for the arcology.",
		"It is possible to maintain four future society goals at once.",
		"The first is unlocked after week 5 for players with greater than rumored/${num(3000)}`,
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"or at game start with the Social Engineering character option; the rest unlock as the player achieves higher",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"), "levels."], "p");

	App.Events.addNode(t, ["All societies approve of specific things, usually slaves with specific characteristics; some societies also have dislikes.",
		"All societies are advanced by the things they approve of and slowed by the things they disapprove of, and all societies give and take",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"), "when approving and disapproving.",
		"All societies unlock unique events, arcology upgrades, and slave behaviors; some even unlock special clothing."], "p");

	App.Events.addNode(t, [App.Encyclopedia.link("Money", "Money", "yellowgreen"),
		"can be expended to directly advance future societies; the spending level can be set from the future society submenu of the arcology management menu.",
		"These funds are automatically spent each week.",
		"Once a future society is fully adopted (as noted on the future society submenu), this spending does not advance the society further.",
		"However, it can provide a guarantee against loss of progress should the player do something the society strongly disapproves of.",
		"Also, the spending is applied equally to all active future society models, meaning that there is no loss of efficiency in spending if the player has two maximized models and one still under development."], "p");
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Ethnic Supremacy", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Ethnic Supremacy", ["bold"]),
		"is a future society model which approves of",
		"slaves not of the chosen race and disapproves of slaves of the chosen race."], "div");
	App.Events.addNode(t, ["Improves the perceived beauty of racially superior slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Drastically lowers the desire of racially superior slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to affect the ethnic balance and economics seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for slaves of inferior races from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Ethnic Subjugationism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Ethnic Subjugationism", ["bold"]),
		"is a future society model which approves of slaves of the chosen race."], "div");
	App.Events.addNode(t, ["Reduces the perceived beauty of racially inferior slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Drastically increases the desire to use racially inferior slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for slaves of the disfavored race from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Gender Radicalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Gender Radicalism", ["bold"]),
		"is a future society model which approves of",
		"hormonal and surgical feminization and slaves with dicks."], "div");
	App.Events.addNode(t, ["Improves the value of slaves with dicks and slaves with balls."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to affect the biology seen in the slave market, and subtly influence arcology society."], "div", ["indent"]);
	App.Events.addNode(t, [`Provides demand for; slaves with dicks, hormonally treated slaves and futanari${V.seeDicks !== 0 ? ' and ballsless bitches' : ''} from`,
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Gender Fundamentalism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Gender Fundamentalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Gender Fundamentalism", ["bold"]),
		"is a future society model which approves of",
		"pregnancy and fertility and disapproves of slaves who retain testicles."], "div");
	App.Events.addNode(t, ["Reduces the slave value penalty due to pregnancy and reduces the beauty of slaves with dicks, though gelding can ameliorate this."], "div", ["indent"]);
	App.Events.addNode(t, ["Like Gender Radicalism, can be developed to affect the biology seen in the slave market, and subtly influence arcology society."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for naturally female slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Gender Radicalism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Paternalism", function() {
	const t = new DocumentFragment();
	const devotion = (text = "devotion", colour = "hotpink") => App.Encyclopedia.link(text, "From Rebellious to Devoted", colour);
	const PaternalismApproval = [devotion(), "slaves choosing their own assignments", "good education",
		"mental health treatment", App.Encyclopedia.link("high health", "Health")];

	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Paternalism", ["bold"]),
		"is a future society model which approves of", App.UI.DOM.toSentence(PaternalismApproval),
		"while stupidity and undereducation is disapproved."], "div");
	App.Events.addNode(t, ["Applies a small", devotion(),
		"boost to all slaves and increases fines paid by citizens who injure whores and public servants."], "div", ["indent"]);
	App.Events.addNode(t, ["Increases the", App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"penalty for operating an arcade."], "div", ["indent"]);
	App.Events.addNode(t, ["Slows increases in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to build a",
		App.Encyclopedia.link("trusting", "Trust", "mediumaquamarine"),
		"society that welcomes new slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for careful slave breaking and gentle cosmetic surgeries from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Degradationism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Degradationism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Degradationism", ["bold"]),
		"is a future society model which approves of",
		"frightened or mindbroken slaves, glory holes, the arcade, and heavy tattoos and piercings;",
		"it disapproves of", App.Encyclopedia.link("trusting", "Trust", "mediumaquamarine"),
		"(except for the Head Girl and Recruiter) and slaves choosing their own assignments."], "div");
	App.Events.addNode(t, ["Makes intelligent slaves less attractive and stupid slaves more attractive."], "div", ["indent"]);
	App.Events.addNode(t, ["Can apply unique names to slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Drives an increase in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Eliminates the", App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"penalty for operating an arcade along with fining citizens who injure whores and public servants."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to increase demand for glory holes and arcades."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for: brutal slave breaking, stupid slaves and cruelly altered slaves from the",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Paternalism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Body Purism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Body Purism", ["bold"]),
		"is a future society model which approves of",
		"unimplanted slaves and no heavy tattoos or piercings; disapproves of implants."], "div");
	App.Events.addNode(t, ["Improves value of slaves without implants."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to affect goods seen in the slave market and work towards a solution to the long term effects of drug use."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for slaves without implants from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Transformation Fetishism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Transformation Fetishism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Transformation Fetishism", ["bold"]),
		"is a future society model which approves of",
		"implants and extreme surgery; disapproves of slaves without implants."], "div");
	App.Events.addNode(t, ["Reduces value of slaves without implants."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for slaves with implants from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Body Purism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Maturity Preferentialism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Maturity Preferentialism", ["bold"]),
		"is a future society model which approves of older slaves."], "div");
	App.Events.addNode(t, ["Improves value of older slaves, but reduces value of young slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Will not entirely eliminate the usual preference for younger slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to make it easier for older player characters to maintain",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"and advance the arcology's prosperity."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for older slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Youth Preferentialism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Youth Preferentialism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Youth Preferentialism", ["bold"]),
		"is a future society model which approves of younger slaves."], "div");
	App.Events.addNode(t, ["Improves value of younger slaves, but reduces value of old slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to make it easier for younger player characters to maintain",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"and advance the arcology's prosperity."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for young slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Maturity Preferentialism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Slimness Enthusiasm", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Slimness Enthusiasm", ["bold"]),
		"is a future society model which approves of",
		"slaves with girlish figures; disapproves of slaves with stacked figures."], "div");
	App.Events.addNode(t, ["Improves value of slim slaves, but reduces value of stacked slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to affect goods seen in the slave market and improve slave health."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for unexpanded slaves at a healthy weight from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Asset Expansionism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Asset Expansionism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Asset Expansionism", ["bold"]),
		"is a future society model which approves of slaves with very large body parts."], "div");
	App.Events.addNode(t, ["Improves value of stacked slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for asset expansion from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Slimness Enthusiasm"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Pastoralism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Pastoralism", ["bold"]),
		"is a future society model which approves of lactation, cockmilking, and the dairy."], "div");
	App.Events.addNode(t, ["Improves value of milk and semen."], "div", ["indent"]);
	App.Events.addNode(t, ["Drives an increase in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to massively improve value of milk and semen."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for production focused asset expansion from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Physical Idealism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Physical Idealism", ["bold"]),
		"is a future society model which approves of musculature, height, and health."], "div");
	App.Events.addNode(t, ["Improves value of slaves with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("muscles", "Musculature"), ".")]);
	App.Events.addNode(t, ["Can be developed to affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for muscular slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Hedonistic Decadence"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Chattel Religionism", function() {
	const t = new DocumentFragment();
	const devotion = (text = "devotion") => App.Encyclopedia.link(text, "From Rebellious to Devoted", "hotpink");
	const chattelReligionism = ["appropriate clothing", devotion("high devotion"),
		App.Encyclopedia.link("slave marriages", "Slave marriages")];

	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Chattel Religionism", ["bold"]),
		"is a future society model which approves of", App.UI.DOM.toSentence(chattelReligionism),
		"while disapproving of slutty clothing."], "div");
	App.Events.addNode(t, ["Applies a small", devotion(), "boost to all slaves, and can remove the weekly", devotion(),
		"gain cap."], "div", ["indent"]);
	App.Events.addNode(t, ["Drives an increase in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to permanently boost",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"and quicken slaves' mental conditioning."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to prefer nudity over conservative clothing."]);
	App.Events.addNode(t, ["Provides demand for sexual training from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Multiculturalism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Multiculturalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Multiculturalism", ["bold"]),
		"is a future society model which advances differently than other models: it is improved by the investment of more future society model slots, which can be withdrawn individually if desired.",
		"No other advancement occurs and all benefits at each level are available instantly."], "div");
	App.Events.addNode(t, ["Each week provides free",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"and increases arcology prosperity."], "div", ["indent"]);
	App.Events.addNode(t, ["Helps prevent citizens from falling into slavery, slowing population drift towards slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Chattel Religionism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Roman Revivalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Roman Revivalism", ["bold"]),
		"is a future society model which approves of",
		"good leadership qualities like wealth and strong defense; disapproves of debt."], "div");
	App.Events.addNode(t, ["Improves rate of prosperity gain and at high levels will drive down all slave prices."], "div", ["indent"]);
	App.Events.addNode(t, ["Can apply unique names to slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Slows increases in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to greatly improve the arcology's resistance to insurrection."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for basic educations from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with the other Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Egyptian Revivalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Egyptian Revivalism", ["bold"]),
		"is a future society model which approves of",
		"keeping a large harem, slave incest, and having a wide racial variety of public slaves."], "div");
	App.Events.addNode(t, ["Improves value of slaves in incestuous relationships and efficiency of fucktoys in improving",
		App.Encyclopedia.link("reputation.", "Arcologies and Reputation", "green")]);
	App.Events.addNode(t, ["Can apply unique names to slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Slows increases in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to improve the Head Girl position, with an additional bonus for Head Girls married to the Concubine, and a massive bonus if the Head Girl is also related to the Concubine."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for exotic accents from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with the other Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Edo Revivalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Edo Revivalism", ["bold"]),
		"is a future society model which approves of",
		"provision for the arcology's cultural development by providing a large number of public servants or club girls, which increases with",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"and disapproves of failure to do so."], "div");
	App.Events.addNode(t, ["Improves efficiency of public servants and club girls."], "div", ["indent"]);
	App.Events.addNode(t, ["Greatly improves beauty of Japanese slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to greatly improve the efficiency of direct spending on future societies."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for unaccented slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with the other Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Arabian Revivalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Arabian Revivalism", ["bold"]),
		"is a future society model which approves of",
		"keeping a large number of fucktoys and slaves in the master suite, which increases with",
		App.Encyclopedia.link("reputation", "Arcologies and Reputation", "green"),
		"and disapproves of failure to do so."], "div");
	App.Events.addNode(t, ["Grants a bonus to the price received when selling slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to improve the efficiency of direct spending on future societies and moderately increase rents."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for more",
		App.Encyclopedia.link("devoted", "From Rebellious to Devoted", "hotpink"), "slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with the other Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Chinese Revivalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Chinese Revivalism", ["bold"]),
		"is a future society model which approves of",
		"maintaining a solid imperial administration by keeping a Head Girl, a Recruiter, and a Bodyguard; disapproves of failure to do so."], "div");
	App.Events.addNode(t, ["Increases prosperity growth when all three of these positions are staffed."], "div", ["indent"]);
	App.Events.addNode(t, ["Greatly improves beauty of Chinese slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to permit the Head Girl to see to an additional slave each week."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for", App.UI.DOM.makeElement("span", "intelligence", ["cyan"]), "from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with the other Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Repopulationism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Repopulation Focus", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, ["Approves of pregnant slaves and slaves that have given birth."], "div", ["indent"]);
	App.Events.addNode(t, ["Improves value and beauty of pregnant slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for lactating slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Provides demand for young slaves from the corporation."], "div", ["indent"]);
	App.Events.addNode(t, ["Is mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Eugenics", "Eugenics Focus"), ".")]);
	App.Events.addNode(t, ["Repopulationism is a difficult Future Society and not recommended for beginners.",
		"Try to keep as many slaves as possible visibly pregnant; if they're pregnant but not showing yet, Pregnancy Biometrics Collars can help."], "p", ["note",
		"yellow"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Eugenics Focus", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Eugenics", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, ["Disapproves of slave reproduction."], "div", ["indent"]);
	App.Events.addNode(t, ["Drastically reduces value and beauty of pregnant slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Opens benefits exclusive to the connections made by the powerful individuals attracted to the arcology."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for; gelded, skilled and smart slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Is mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Repopulation Focus", "Repopulationism"), ".")]);
	App.Events.addNode(t, ["It is made up of four to five social classes: Slaves, low class citizens, chosen slaves, elite citizens, and the Societal Elite: a group of individuals with vast connections and wealth attracted by the promises of a society built around them. Low class citizens are encouraged to face testing and join the ranks of the elite, though the cost of failing the test is sterilization; a detail that is not revealed until after the test is complete."], "div", ["indent"]);
	App.Events.addNode(t, ["Eugenics is a difficult Future Society and not recommended for beginners.",
		"For a more complete guide to playing with a Eugenics arcology, see the",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Guide to Eugenics"), ".")], "p", ["note", "yellow"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Slave Professionalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Slave Professionalism", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, ["Approves of intelligent, well-trained slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Improves value and beauty of smart slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Dislikes slaves ruled by their libido."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to radically affect goods seen in the slave market"], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for; smart, educated and trained",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Is mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Intellectual Dependency"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Intellectual Dependency", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Intellectual Dependency", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, ["Approves of horny, vapid slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Improves value and beauty of moronic slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to adore bimbo bodies or radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Allows for", App.Encyclopedia.link("the Schoolroom", "Schoolroom"),
		"to be radically redesigned."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for; idiotic, young and uneducated slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Is mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Slave Professionalism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Petite Admiration", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Petite Admiration", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, [`Approves of slaves shorter than ${lengthToEitherUnit(160)}.`]);
	App.Events.addNode(t, ["Improves value and beauty of sufficiently short slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to accept relative shortness or radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for shorter slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Is mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Statuesque Glorification"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Statuesque Glorification", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Statuesque Glorification", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, [`Approves of slaves taller than ${lengthToEitherUnit(170)}.`]);
	App.Events.addNode(t, ["Improves value and beauty of sufficiently tall slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to accept relative tallness or radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for taller slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Is mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Petite Admiration"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Hedonistic Decadence", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Hedonistic Decadence", ["bold"]),
		"is a future society model. It:"], "div");
	App.Events.addNode(t, ["Approves of overindulgence and luxury."], "div", ["indent"]);
	App.Events.addNode(t, ["Improves value and beauty of heavyset slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to radically affect goods seen in the slave market."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for pampered and skilled slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("Physical Idealism"), ".")]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Aztec Revivalism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Aztec Revivalism", ["bold"]),
		"is a future society model which approves of",
		"qualities like good military education and an older leader."], "div");
	App.Events.addNode(t, ["Improves all military acquisitions of slaves and allows for the sacrifice of slaves for",
		App.Encyclopedia.link("reputation.", "Arcologies and Reputation", "green")]);
	App.Events.addNode(t, ["Can apply unique names to slaves."], "div", ["indent"]);
	App.Events.addNode(t, ["Slows increases in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to greatly rely on the Head Girl position as an advisor and assistant."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for menial slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with the other Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Neo-Imperialism", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, [App.UI.DOM.makeElement("span", "Neo-Imperialism", ["bold"]),
		"is a future society model which approves of",
		"high wealth, prosperity, and personal combat skills and disapproves of weakness and poverty in leaders."], "div");
	App.Events.addNode(t, ["Improves rate of prosperity gain and can be developed to increase rents via Imperial Barons."], "div", ["indent"]);
	App.Events.addNode(t, ["Slows increases in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to improve the Arcology's combat prowess and resistance to insurrection via Imperial Knights."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for healthy slaves from",
		App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with all Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Antebellum Revivalism", function() {
	const t = new DocumentFragment();
	const r = new SpacedTextAccumulator(t);
	r.push(App.UI.DOM.makeElement("span", "Antebellum Revivalism", ["bold"]), "is a future society model which approves of");
	r.push("maintaining honor and integrity, keeping a large number of slaves and servants, and having skill at breaking slaves.");
	r.toNode("div");
	App.Events.addNode(t, ["Increases prosperity for the upper echelons of society."], "div", ["indent"]);
	App.Events.addNode(t, ["Slows increases in the ratio of slaves to citizens."], "div", ["indent"]);
	App.Events.addNode(t, ["Can be developed to improve the Arcology's defensive capabilities."], "div", ["indent"]);
	App.Events.addNode(t, ["Provides demand for entertaining slaves from", App.UI.DOM.combineNodes(App.Encyclopedia.link("The Corporation"), ".")]);
	App.Events.addNode(t, ["Mutually exclusive with all Revivalist models."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Gender Radicalism Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Advanced Gender Radicalist societies can fund research to produce modified uteri and ovaries designed to be implanted into male slaves to grant them the ability to become pregnant, thus leaving no gender specific traits remaining."], "div");
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Slave Professionalism Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Advanced Slave Professionalism societies can fund efforts to synthesize a compound capable of improving mental capacities."], "div");
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Transformation Fetishism Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Advanced Transformation Fetishist societies can fund research to produce implants capable of reaching previously undocumented sizes."], "div");
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Asset Expansionist Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Advanced Asset Expansionist societies can fund research to produce extremely powerful growth drugs capable of growing body parts to previously undocumented sizes.",
		"Drugs are also standardized in slave diets to prevent loss of asset size.",
		"Due to the rapid growth in said assets, and the strength of the drug cocktails, slaves are more likely to develop side effects of excessive drug use."], "div");
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Slimness Enthusiast Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Advanced Slimness Enthusiast societies can fund research into several drugs designed to slim slaves down."], "div");
	App.Events.addNode(t, ["They include:"], "div");
	App.Events.addNode(t, ["Appetite suppressants to make dieting easier."], "div", ["indent"]);
	App.Events.addNode(t, ["Redistributors to draw fat from oversized assets and settle them around the slave's core for easy removal."], "div", ["indent"]);
	App.Events.addNode(t, ["Atrophiers to shrink non-fat based assets."], "div", ["indent"]);
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Youth Preferentialism Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Specialized creams built off of stem cells and several ingredients known for reducing the ravages of age.",
		"Steady use leaves a slave looking younger, though the effects are literally skin deep; several gossip pieces have run about celebrities bedding youthful slaves just to accidentally find their efforts resulting in a broken hip."], "div");
	return t;
}, "FutureSocities");

App.Encyclopedia.addArticle("Hedonistic Decadence Research", function() {
	const t = new DocumentFragment();
	App.Events.addNode(t, ["Advanced Hedonistic Decadence societies can purchase plans for specialized slave food.",
		"Said food is shaped to resemble actual food and flavored accordingly, however, its texture can only be described as gooey or gummy.",
		"A plus if that is how the food should be, but a shocker otherwise, given how tantalizing that steak looks after nothing but liquid slave food for so long.",
		"Since the food is essentially compacted liquid slave food, it is highly addictive thanks to the, typically, low presence of aphrodisiacs and can easily lead to excessive",
		App.Encyclopedia.link("weight gain", "Weight"), "as slaves are driven to gorge themselves on it.",
		"They'll be happy, at least, as they steadily outgrow their clothes.",
		"Alterations to the recipe exist to prevent", App.Encyclopedia.link("weight gain", "Weight"),
		"for Slimness Enthusiast societies and to cause gastric distress in Degradationist societies."], "div");
	return t;
}, "FutureSocities");

App.Encyclopedia.addCategory("FutureSocities", function(currentArticle) {
	const t = new DocumentFragment();
	const vanilla = [];
	const modded = [];
	const research = [];

	vanilla.push(App.Encyclopedia.link("Ethnic Supremacy"));
	vanilla.push(App.Encyclopedia.link("Ethnic Subjugationism"));
	vanilla.push(App.Encyclopedia.link("Gender Radicalism"));
	vanilla.push(App.Encyclopedia.link("Gender Fundamentalism"));
	vanilla.push(App.Encyclopedia.link("Paternalism"));
	vanilla.push(App.Encyclopedia.link("Degradationism"));
	vanilla.push(App.Encyclopedia.link("Body Purism"));
	vanilla.push(App.Encyclopedia.link("Transformation Fetishism"));
	vanilla.push(App.Encyclopedia.link("Maturity Preferentialism"));
	vanilla.push(App.Encyclopedia.link("Youth Preferentialism"));
	vanilla.push(App.Encyclopedia.link("Slimness Enthusiasm"));
	vanilla.push(App.Encyclopedia.link("Asset Expansionism"));
	vanilla.push(App.Encyclopedia.link("Pastoralism"));
	vanilla.push(App.Encyclopedia.link("Physical Idealism"));
	vanilla.push(App.Encyclopedia.link("Chattel Religionism"));
	vanilla.push(App.Encyclopedia.link("Multiculturalism"));
	vanilla.push(App.Encyclopedia.link("Roman Revivalism"));
	vanilla.push(App.Encyclopedia.link("Egyptian Revivalism"));
	vanilla.push(App.Encyclopedia.link("Edo Revivalism"));
	vanilla.push(App.Encyclopedia.link("Arabian Revivalism"));
	vanilla.push(App.Encyclopedia.link("Chinese Revivalism"));

	modded.push(App.Encyclopedia.link("Repopulationism"));
	modded.push(App.Encyclopedia.link("Eugenics Focus"));
	modded.push(App.Encyclopedia.link("Slave Professionalism"));
	modded.push(App.Encyclopedia.link("Intellectual Dependency"));
	modded.push(App.Encyclopedia.link("Petite Admiration"));
	modded.push(App.Encyclopedia.link("Statuesque Glorification"));
	modded.push(App.Encyclopedia.link("Hedonistic Decadence"));
	modded.push(App.Encyclopedia.link("Aztec Revivalism"));
	modded.push(App.Encyclopedia.link("Neo-Imperialism"));
	modded.push(App.Encyclopedia.link("Antebellum Revivalism"));

	research.push(App.Encyclopedia.link("Gender Radicalism Research"));
	research.push(App.Encyclopedia.link("Slave Professionalism Research"));
	research.push(App.Encyclopedia.link("Transformation Fetishism Research"));
	research.push(App.Encyclopedia.link("Asset Expansionist Research"));
	research.push(App.Encyclopedia.link("Slimness Enthusiast Research"));
	research.push(App.Encyclopedia.link("Youth Preferentialism Research"));
	research.push(App.Encyclopedia.link("Hedonistic Decadence Research"));

	if (currentArticle !== "Future Societies") {
		App.Events.addNode(t, ["Future Societies"], "div");
	}
	App.Events.addNode(t, ["Vanilla Future Societies:", App.UI.DOM.generateLinksStrip(vanilla)], "div");
	App.Events.addNode(t, ["Modded Future Societies:", App.UI.DOM.generateLinksStrip(modded)], "div");
	App.Events.addNode(t, ["Research:", App.UI.DOM.generateLinksStrip(research)], "div");
	return t;
});


code:
App.Encyclopedia.addArticle("Obtaining Slaves", function() {
	const f = new DocumentFragment();
	App.UI.DOM.appendNewElement("p", f, "Future room for lore text", ["note"]);
	App.UI.DOM.appendNewElement("p", f, "Choose a more particular entry below:");
	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Kidnapped Slaves", function() {
	const f = new DocumentFragment();

	App.Events.addParagraph(f, ["Slavers, from disreputable to noble, visit the Free Cities in droves. Their merchandise is, as a rule, offered as-is and no questions asked. This usually means that their charges have been forcibly kidnapped. These slaves are generally rebellious, often unhealthy, and always cheap."]);

	App.Encyclopedia.addArticleSource(f, "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Slave Schools", function() {
	const f = new DocumentFragment();
	let r;

	r = [];
	if (V.minimumSlaveAge < 16) {
		r.push("The Free Cities host what are referred to as 'orphanages,' but are in fact slave schools.");
	} else {
		r.push("It is not legal to own children in the Free Cities. It is however legal to hold an interest in future ownership of a child once they reach their 16th birthday. The Free Cities host what are referred to as 'orphanages,' but are in fact slave schools. Of course, instruction cannot include sexual training, so it instead focuses on obedience and fitness.");
	}
	App.Events.addParagraph(f, r);

	App.Events.addParagraph(f, ["The standard slave school produces merchandise to a strict mold. Their stock is guaranteed to be robustly healthy, at a sleek weight, body modification free, 16 to 19 years of age, very obedient, and 100% virgin. A few schools specialize in slaves with non-standard organs or in modified slaves, but most protect brand identity by confining themselves to natural females."]);

	App.Events.addParagraph(f, ["It has recently become common practice to begin treating such trainees with drugs years before sale. Not all orphanages engage in this questionable practice, usually justified as 'seeing to orphans' medical welfare,' but you will occasionally see fresh slaves sold with breasts and asses unusually well-developed for their age. These are very rare, as the newness of slavery means that few slaves have been so from a young age. Presumably, slaves treated in this way will become more common as the Free Cities mature."]);

	App.Encyclopedia.addArticleSource(f, "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Stables", function() {
	const f = new DocumentFragment();

	App.Events.addParagraph(f, ["At any given time, many hundreds of new slaves are listed for sale in the Free City. Since these slaves have come through a training stable, they will tend to be fairly obedient, reasonably healthy, and have basic sexual skill, but will never be virgins."]);

	App.Encyclopedia.addArticleSource(f, "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Household Liquidations", function() {
	const f = new DocumentFragment();

	App.Events.addParagraph(f, ["It is natural that where there is a demand for slaves who are related to one another, supply should arise."]);

	App.Events.addParagraph(f, ["Suppliers of slaves from the outside world are well aware that paired slaves, whether mothers and daughters or sisters, command a premium. This special merchandise is best found at dealers that specialize in it. After all, the demand is strong enough that only experienced dealers have the skill and equipment to defeat all the tricks suppliers are willing to use to pass slaves off as relatives."]);

	App.Events.addParagraph(f, ["Nature has contrived that the demand for twin slaves should far outstrip the supply. Since slavery is new, a majority of those now enslaved were born free, so this is difficult for slave trainers to address. However, the coming decades should see a great increase in the number of slave twins as breeders improve fertility treatments."]);

	App.Encyclopedia.addArticleSource(f, "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Direct Sales", function() {
	const f = new DocumentFragment();

	App.Events.addParagraph(f, ["On occasion, an established slaveowner will sell a trained and modified slave due to financial need, because he is bored of her, or because he trains unique slaves as a hobby."]);

	App.Events.addParagraph(f, ["Some of the most powerful persons in the Free Cities also maneuver their enemies into selling a favorite slave as a way of bloodlessly showing dominance. The truly powerful occasionally feel the need to show that they can obtain any slave, at any time, regardless of her owners' wishes."]);

	App.Encyclopedia.addArticleSource(f, "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Pre-Owned Slaves", function() {
	const f = new DocumentFragment();

	App.Events.addParagraph(f, ["The slaves left behind by the previous owner of your arcology are from a catalog of slaves that can also be accessed through the pre-owned slave vendor."]);

	// TODO: update link
	App.Events.addParagraph(f, ["Most of these slaves were submitted to the game by anons on /d/. If you'd like to submit a slave for addition to the game, you can do so at the GitGud development site."]);

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Discarded Slaves", function() {
	const f = new DocumentFragment();
	let r;

	App.Events.addParagraph(f, ["Slaves don't last forever in the Free Cities. Many don't even last until retirement, with broken minds and abused or over-used bodies."]);

	r = [];
	r.push("These slaves which have lost their value are often simply culled from the owners' herds, but may also be sold through");
	r.push(App.Encyclopedia.link("the Flesh Heap"));
	r.push("as discount merchandise for new or cash-strapped slaveowners who can wring some final use out of them. Their new owners may end up using them as discount whores,");
	r.push(App.UI.DOM.combineNodes(App.Encyclopedia.link("living sex toys", "Fuckdolls"), ","));
	r.push("or for medical testing.");
	App.Events.addParagraph(f, r);

	r = [];
	r.push("Some discarded slaves are also");
	r.push(App.Encyclopedia.topic("rescued"));
	r.push("by the so-called Slave Shelters. These charities place the discarded slaves with well-off slaveowners who are willing to invest the time and effort into caring for them, whether to restore them to serviceable condition or simply for humanitarian reasons. Abuse and resale of placed shelter slaves is generally prohibited, and most shelters attempt to enforce these terms with regular inspections.");
	App.Events.addParagraph(f, r);

	App.Encyclopedia.addArticleSource(f, "Guide to Modern Slavery, 2037 Edition", "Lawrence, W. G.");

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("The Flesh Heap", function() {
	const f = new DocumentFragment();
	let r;

	r = [];
	r.push("More of a trash heap than a slave market, the");
	r.push(App.Encyclopedia.topic("Flesh Heap"));
	r.push("is a dumping ground for thoroughly broken slaves. Relatively healthy bodies are usually scooped up for medical testing or other purposes; several that one wouldn't want to waste a valuable slave on. Anything with some sort of life in it is up for sale, usually at extremely low prices, though one gets what they pay for; most slaves are nothing more than vegetables. One would have to place a reserve should they want a mindless, healthy slave for whatever they seek.");
	App.Events.addParagraph(f, r);

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("The Job Fulfillment Center", function() {
	const f = new DocumentFragment();
	let r;

	r = [];
	r.push("If you are looking for a slave qualified for a specific role, look no further than the Traders Union that makes up the Job Fulfillment Center. Leave the job description and a list of desired traits and before long a suitable slave will be delivered to your doorstep and ready to serve you. Due to the nature of the business, these slaves are not");
	r.push(App.Encyclopedia.link("cheap", "Money", "cash"));
	r.push("and usually not perfect, but they always fulfill their job adequately and obediently.");
	App.Events.addParagraph(f, r);

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addArticle("Wetware CPUs", function() {
	const f = new DocumentFragment();

	App.Events.addParagraph(f, ["Slaves stripped of all unneeded parts, attached to a VR world, and honed to near perfection. Their minds are peerless, but their bodies are broken; if one is able to overcome such an obstacle, a valuable slave awaits."]);

	return f;
}, "obtainingSlaves");

App.Encyclopedia.addCategory("obtainingSlaves", function() {
	const r = [];
	r.push(App.Encyclopedia.link("Kidnapped Slaves"));
	r.push(App.Encyclopedia.link("Slave Schools"));
	r.push(App.Encyclopedia.link("Stables"));
	r.push(App.Encyclopedia.link("Household Liquidations"));
	r.push(App.Encyclopedia.link("Direct Sales"));
	r.push(App.Encyclopedia.link("Pre-Owned Slaves"));
	r.push(App.Encyclopedia.link("Random Events"));
	r.push(App.Encyclopedia.link("Discarded Slaves"));
	r.push(App.Encyclopedia.link("The Flesh Heap"));
	r.push(App.Encyclopedia.link("The Job Fulfillment Center"));
	r.push(App.Encyclopedia.link("Wetware CPUs"));
	r.push(App.Encyclopedia.link("The Corporation"));
	return App.UI.DOM.generateLinksStrip(r);
});


code:
App.Encyclopedia.addArticle("Paraphilias Overview", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Paraphilias", ["bold"]), "are intense forms of sexual", App.Encyclopedia.link("flaws", "Flaws"), "that cannot be softened.");
	r.push("Slaves with a paraphilia excel at certain jobs, but may suffer penalties at others.");
	r.toParagraph();

	App.Events.addNode(f, ["Choose a more particular entry below:"], "div");
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Abusiveness", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Abusiveness", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaw", "Flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Doms"), "serving as", App.Encyclopedia.link("Head Girls"));
	r.push("may become abusive if allowed to punish slaves by molesting them. They can be satisfied by work as the Head Girl or", App.Encyclopedia.link("Wardeness"), ". Abusive Head Girls are more effective when allowed or encouraged to punish slaves severely.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Anal Addicts", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Anal addiction", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaw", "Flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Buttsluts"), "whose only available hole for receptive intercourse is the anus may become anal addicts. They can be satisfied by huge buttplugs, the sodomizing drug applicator kitchen upgrade, or by work that involves frequent anal sex. Anal addicts perform well on assignments involving anal sex.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Attention Whores", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Attention Whores", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaw", "Flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Humiliation Fetishists"), "on public sexual assignments may become Attention Whores. They can be satisfied by total nudity or by work that involves frequent public sex. Attention whores do very well at");
	r.push(App.Encyclopedia.link("public service", "Public Service"));
	r.addToLast(".");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Breast Obsession", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Pectomania,", ["bold"]), "also known as breast growth obsession, is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaw", "Flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Boob fetishists", "Boob Fetishists"), "may become obsessed with breast expansion as their breasts grow. They can be satisfied by breast injections or work as a cow, and will temporarily accept getting neither if their health is low.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Breeding Obsession", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Breeding obsession", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Pregnancy Fetishists"), "who are repeatedly bred or are serving in an industrialized");
	r.push(App.Encyclopedia.link("Dairy"), "may develop breeding obsessions. They can be satisfied by pregnancy, or constant vaginal sex with their owner. Slaves with breeding obsessions will not suffer negative mental effects from serving in an industrialized dairy that keeps them pregnant.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Cum Addicts", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "Cum addiction", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Cumsluts"), "who eat out of phallic feeders or are fed cum may become cum addicts. They can be satisfied by cum diets, the phallic feeder kitchen upgrade, or by sex work that involves frequent fellatio. Cum addicts will perform well on assignments involving oral sex.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Maliciousness", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("Sexual", App.UI.DOM.makeElement("span", "maliciousness", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Sadists"), "serving as", App.Encyclopedia.link("Wardeness"), "may become sexually malicious.");
	r.push("They can be satisfied by work as the", App.Encyclopedia.link("Head Girl"), "or", App.Encyclopedia.link("Wardeness.", "Wardeness"));
	r.push("Sexually malicious Wardenesses break slaves very quickly but damage their sex drives doing so.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Self Hatred", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push(App.UI.DOM.makeElement("span", "self hatred", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push("Self hating slaves can be satisfied by work in an industrialized dairy, in an arcade, or in a glory hole, and will not suffer negative mental effects for doing so.");
	r.push(App.Encyclopedia.link("Masochists"), "serving in those places have a chance to become self hating, and even extremely low");
	r.push(App.Encyclopedia.link("trust", "Trust", "mediumaquamarine"), "may cause the paraphilia.");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addArticle("Self Neglect", function() {
	const f = new DocumentFragment();
	const r = new SpacedTextAccumulator(f);
	r.push("Sexual", App.UI.DOM.makeElement("span", "self neglect", ["bold"]), "is a paraphilia, an intense form of sexual", App.Encyclopedia.link("flaws"), "that cannot be softened.");
	r.toParagraph();

	r.push(App.Encyclopedia.link("Submissives"), "serving on public sexual assignment may become sexually self neglectful.");
	r.push("Such slaves can be satisfied by most kinds of sex work.");
	r.push("Slaves willing to neglect their own pleasure do very well at", App.Encyclopedia.link("whoring", "Whoring"));
	r.addToLast(".");
	r.toParagraph();
	return f;
}, "Paraphilias");

App.Encyclopedia.addCategory("Paraphilias", function() {
	const r = [];
	r.push(App.Encyclopedia.link("Paraphilias Overview"));
	r.push(App.Encyclopedia.link("Abusiveness"));
	r.push(App.Encyclopedia.link("Anal Addicts"));
	r.push(App.Encyclopedia.link("Attention Whores"));
	r.push(App.Encyclopedia.link("Breast Obsession"));
	r.push(App.Encyclopedia.link("Breeding Obsession"));
	r.push(App.Encyclopedia.link("Cum Addicts"));
	r.push(App.Encyclopedia.link("Maliciousness"));
	r.push(App.Encyclopedia.link("Self Hatred"));
	r.push(App.Encyclopedia.link("Self Neglect"));
	r.push(App.Encyclopedia.link("Fetishes"));
	return App.UI.DOM.generateLinksStrip(r);
});