+/* tables */
+
+table {
+ border-collapse: collapse;
+}
+th, td {
+ border-color: #778;
+ border: 1px solid #888;
+ background: #DDD;
+}
+thead th, td {
+ text-align: center;
+}
+
+/* character table */
+
+.glyphs thead th, .glyphs td {
+ width: 1.6em; /* regular interval */
+}
+.glyphs tbody td {
+ font-size: 112%;
+}
+.glyphs.big tbody td {
+ font-size: 200%;
+}
+.glyphs .glyphs {
+ margin: 0.5ex 0;
+}
+.glyphs .glyphs td {
+ font-size: 100%;
+}
+
+/* table headers */
+
+th,
+thead td {
+ border: 0;
+ background: transparent !important;
+}
+.glyphs thead td {
+ width: auto; /* no glyph cells in header */
+}
+th {
+ padding: 0 0.2em;
+}
+.diinfo th {
+ font-size: 50%; /* mostly insignificant here */
+ font-weight: normal;
+}
+.diinfo tbody th {
+ text-align: right; /* variable width so keep near cells */
+ padding: 0 0.5em;
+}
+
+/* digraphs map */
+
+table.dimap {
+ table-layout: fixed; /* prevent resizing, notably in msie6 */
+}
+.dimap thead th, .dimap td {
+ /* below-maximum size (but still average enough to be regular) so we can fit more */
+ width: 1.2em; /* msie only looks at the first row */
+ min-width: 1em; /* prevents gecko from restricting to page width */
+}
+.dimap th {
+ text-align: center; /* row headers are also glyph-sized */
+}
+
+.mapped tbody, .mapped colgroup,
+.dimap tbody, .dimap colgroup {
+ border: 2px double #888; /* major character group grid */
+}
+.mapped tbody,
+.dimap tbody {
+ border-width: 2px 0; /* horizontal group dividers */
+}
+.mapped colgroup,
+.dimap colgroup {
+ border-width: 0 2px; /* vertical divides */
+}
+
+/* digraph selection */
+
+.diinfo {
+ -moz-column-width: 24em;
+}
+.diinfo > div {
+ overflow: hidden;
+}
+
+/* glyph cell overlay (digraph labels) */
+
+.glyphs.dilabel td {
+ padding: 0;
+ padding-bottom: 1.1ex; /* reserve space for label */
+ vertical-align: bottom;
+}
+.glyphs small {
+ font-size: 50%;
+ display: block;
+ margin-top: 0.2ex;
+ margin-bottom: -2.2ex; /* take cell padding */
+}
+.glyphs small.digraph {
+ background: #000;
+ color: #FFF;
+ opacity: 0.3;
+}
+.glyphs small.value {
+ background: #600;
+ color: #FFF;
+ opacity: 0.3;
+}
+
+/* character properties */
+
+.X {background: #FFF} /* unidentified */
+#digraphs .Xa {color: #0A0} /* ascii */
+#digraphs .Xl {color: #070} /* latin1 */
+#digraphs .Xz {color: #D00} /* proposed */
+
+.Lm, .Mc, .Me, .Zl, .Zp {background: #F00} /* unstyled */
+
+/* letter scripts */
+.Armenian,
+.Greek {background: #FFE8CF}
+.Cyrillic {background: #FFDDA8}
+.Latin {background: #FFB}
+.Aramaic,
+.Hebrew {background: #FFD}
+.Arabic {background: #EFE}
+.African {background: #DED}
+.Brahmic {background: #FBB} /* same as number */
+.Khmer {background: #FBA}
+.Hangul,
+.Syllabic {background: #DEA}
+.Katakana {background: #DFA}
+.Hiragana {background: #DFC}
+.Bopomofo {background: #BFC}
+.Han {background: #CFD}
+.Alpha {background: #ADA} /* other scripts */
+
+/* other categories */
+.Nd, .Nl, .No {background: #FDD} /* number */
+.Sc {background: #FCD} /* currency */
+.Sm {background: #ECE} /* math */
+.So {background: #DCF} /* symbol */
+.Pd, .Po, .Pc {background: #CDF} /* punctuation */
+.Ps, .Pe, .Pi, .Pf {background: #BEF} /* quote */
+.Lm, .Sk {background: #CEE} /* spacing modifier */
+.Mn {background: #ACC} /* modifier */
+.Cc, .Cf {color: #666; background: #BBB} /* control */
+.Zs {background: #ACB} /* space */
+.Zs span {background: #EEE}
+.Co {background: #DCC} /* private */
+.Xi, .Cs {background: #CCC} /* invalid */
+.Xd {color: #844} /* deprecated */
+.Xr {color: #888} /* reserved (digraph reverse or proposal) */
+.dimap .Xr {background: #EEE} /* reversed digraph */
+.ccmap .Xr {opacity:.4}
+
+/* support levels */
+.l1 {background: #FDD} /* no, unsupported, other */
+.l2 {background: #FED} /* partial, restricted, unofficial */
+ /* default u-prop, u-bmp */
+.l3 {background: #FFD} /* almost, imperfect, common */
+ /* default u-di, u-lat1 */
+.l4 {background: #EFD} /* yes, supported, ubiquitous, native */
+ /* default u-ascii */
+.l5 {background: #DFD} /* complete, perfect */
+.l0 {background: #EEE} /* unknown, omitted */
+.ex { color: #888} /* experimental, disfavoured */
+.u-invalid {background: #BBB} /* invalid, impossible */
+
+.p0 {opacity: .6}
+.p0.p {opacity: 1}
+.p::after {content: '!'; color: #F00}
+.p4::after {color: #C00}
+.p3::after {color: #A00}
+.p2::after {color: #800}
+.p1::after,
+.p0::after {color: #000}
+.p09::after {opacity: .9}
+.p08::after {opacity: .8}
+.p07::after {opacity: .7}
+.p06::after {opacity: .6}
+.p05::after {opacity: .5}
+.p04::after {opacity: .4}
+.p03::after {opacity: .3}
+.p02::after {opacity: .2}
+.p01::after {opacity: .1}
+.p00::after {display: none}
+
+/* code syntax */
+.sy-comment { color: #888 }
+.sy-constant { color: #008 }
+.sy-type,
+.sy-identifier { color: #804 }
+.sy-statement { }
+.sy-preProc { }
+.sy-special { color: #408 }
+.sy-error { font-weight: bold; background-color: #F00; color: #FFF }
+.sy-todo { background-color: #FF0 }
+
+/* hover effects */
+.u-di,
+.X:hover {cursor: help}
+.Greek:hover, .Armenian:hover {background: #FA8}
+.Cyrillic:hover {background: #FB7}
+.Latin:hover {background: #EE4}
+.Hebrew:hover, .Aramaic:hover {background: #FFA}
+.Arabic:hover {background: #CFD}
+.African:hover {background: #BDB}
+.Syllabic:hover, .Hangul:hover {background: #CE6}
+.Katakana:hover {background: #BF7}
+.Hiragana:hover {background: #AF8}
+.Bopomofo:hover {background: #8FA}
+.Brahmic:hover {background: #F77}
+.Khmer:hover {background: #F87}
+.Han:hover {background: #5EB}
+.Alpha:hover {background: #5C5}
+.Nd:hover, .Nl:hover, .No:hover {background: #F99} /* number */
+.Sc:hover {background: #F8C} /* currency */
+.Sm:hover {background: #F8F} /* math */
+.So:hover {background: #A8F} /* symbol */
+.Pd:hover, .Po:hover, .Pc:hover {background: #8AF} /* punctuation */
+.Ps:hover, .Pe:hover, .Pi:hover, .Pf:hover {background: #8DF} /* quote */
+.Lm:hover, .Sk:hover {background: #BFF} /* spacing modifier */
+.Mn:hover {background: #CDE} /* modifier */
+.Zs:hover {background: #CED} /* space */
+.Cc:hover, .Cf:hover {background: #DDD} /* control */
+.Co:hover {background: #A77} /* private */
+.Xr:hover {background: #FFF} /* reserved */
+.Xa:hover {outline: 1px solid #0F0} /* ascii */
+.Xl:hover {outline: 1px solid #0C0} /* latin1 */
+.Xz:hover {outline: 1px solid #F00} /* proposed */
+.l0:hover {background: #888}
+.l1:hover {background: #F88}
+.l2:hover {background: #FC8}
+.l3:hover {background: #FF8}
+.l4:hover {background: #CF8}
+.l5:hover {background: #8F8}
+