/* 台羅 needs U+030D (a̍), which neither Open Sans nor Google's Noto Sans subsets carry.
   text= asks for a subset of exactly the 台羅 alphabet and tone marks. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital@0;1&text=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-%CC%80%CC%81%CC%82%CC%84%CC%86%CC%8B%CC%8C%CC%8D&display=swap");

/* Typography */
html {
	hyphens: auto;
}

/* 著重號 for CJK emphasis: no fake oblique, Latin keeps real italics */
em {
	font-synthesis: weight;
	text-emphasis: filled;
	text-emphasis-position: under right;
}

/* 台羅: one font for base and mark, real italics, no 著重號 */
[lang="nan-Latn"] {
	font-family: "Noto Sans", sans-serif;
	text-emphasis: none;
}

/* Room for the dots: below 1.75 they push their line down in Firefox */
.content p,
.content ol,
.content ul {
	line-height: 1.75;
}

/* Tables */
table td,
table thead th {
	padding: 3px 12px;
}

.table-wrapper {
	margin-top: 1em;
	margin-bottom: 1em;
}

/* Cards: dyed stock with the piece in black, the colours of ../tsap-oo/web.
   book.toml turns 紅帥 into <span class='card red'>帥</span>. */
.card {
	display: inline-block;
	min-width: 1.4em;
	margin: 0 1px;
	padding: 0 0.15em;
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 3px;
	color: #1b1b1b;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-emphasis: none;
}

.card.red {
	background: #d9534f;
}

.card.yellow {
	background: #f0c541;
}

.card.green {
	background: #4caf7d;
}

.card.white {
	background: #fdfdf7;
}

/* Links and the sidebar keep the card's own ink */
.content a .card,
.chapter a .card {
	color: #1b1b1b;
}
