/* === Reset (replaces Bootstrap 2 normalize) === */
/**, *::before, *::after {
	box-sizing: border-box;
}*/

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 1.2;
	color: #333;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	border: 0;
}

button, input, select, textarea {
	margin: 0;
	font-family: inherit;
	font-size: 100%;
	vertical-align: middle;
}

/* === Layout grid (replaces Bootstrap 2 grid) === */
.container {
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.row {
	display: flex;
	flex-wrap: wrap;
}

.row::after {
	content: "";
	display: table;
	clear: both;
}

.span1  { flex: 0 0 8.333%;  max-width: 8.333%;  }
.span2  { flex: 0 0 16.667%; max-width: 16.667%; }
.span3  { flex: 0 0 25%;     max-width: 25%;     }
.span4  { flex: 0 0 33.333%; max-width: 33.333%; }
.span5  { flex: 0 0 41.667%; max-width: 41.667%; }
.span6  { flex: 0 0 50%;     max-width: 50%;     }
.span7  { flex: 0 0 58.333%; max-width: 58.333%; }
.span8  { flex: 0 0 66.667%; max-width: 66.667%; }
.span9  { flex: 0 0 75%;     max-width: 75%;     }
.span10 { flex: 0 0 83.333%; max-width: 83.333%; }
.span11 { flex: 0 0 91.667%; max-width: 91.667%; }
.span12 { flex: 0 0 100%;    max-width: 100%;    }

.offset1 { margin-left: 8.333%;  }
.offset2 { margin-left: 16.667%; }
.offset3 { margin-left: 25%;     }

/* Nested span10 = full width of parent (Bootstrap 2 used fixed pixels so nesting didn't shrink) */
[class*="span"] .span10 {
	flex: 0 0 100%;
	max-width: 100%;
}

@media (max-width: 767px) {
	.row {
		flex-direction: column;
	}
	[class*="span"] {
		flex: 0 0 100%;
		max-width: 100%;
	}
	[class*="offset"] {
		margin-left: 0;
	}
}

/* === Button base (replaces Bootstrap .btn) === */
.btn {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 0;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background-color: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
}

.btn:hover {
	background-color: #e6e6e6;
	text-decoration: none;
}

/* === Alert (replaces Bootstrap .alert) === */
.alert {
	padding: 8px 14px;
	margin-bottom: 10px;
	background-color: #fcf8e3;
	border: 1px solid #fbeed5;
	border-radius: 4px;
	color: #c09853;
}

.alert-error {
	background-color: #f2dede;
	border-color: #eed3d7;
	color: #b94a48;
}

/* === Table (replaces Bootstrap .table) === */
.table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.table th,
.table td {
	padding: 8px;
	text-align: left;
	border-top: 1px solid #ddd;
}

.table thead th {
	vertical-align: bottom;
	border-bottom: 2px solid #ddd;
}

.table tbody tr:hover td {
	background-color: #f5f5f5;
}

/* === Site styles === */

body{
	background-color: #fefefe;
	font-size: 14px;
}

#display{
	padding: 10px;
	border: 1px solid #ccc;
	background-color: white;
	font-size: 18pt;
	margin-bottom: 10px;
	position: relative;
}

.border{
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-khtml-border-radius: 5px;
	box-shadow: 0.07em 0.07em 0.07em #eee;
}
.login{
	border: 1px solid #ccc;
	padding: 10px;
}
.removefav{
	height: 25px;
	margin-right: 5px;
	line-height: 15px;
	background-color: #fefefe;
	border-style: none;
	color: #aaa;
}

.decomp-section{
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	clear: both;
	margin-top: 10px;
}

.decomp-row{
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e5e7eb;
}

.decomp-row:last-child{
	border-bottom: none;
}

.decomptitle{
	width: 110px;
	min-width: 110px;
	padding: 10px 12px;
	font-size: 0.95em;
	font-weight: 500;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 8px;
	border-right: 1px solid #e5e7eb;
}

.decomp-level{
	color: #111827;
	font-size: 0.85em;
	font-weight: 600;
	flex-shrink: 0;
}

.decompbox{
	display: flex;
	align-items: center;
	padding: 14px 14px;
	flex: 1;
	min-width: 0;
	gap: 10px;
	flex-wrap: wrap;
}

.decomp-source{
	font-size: 1.2em;
	font-weight: 500;
	color: #111827;
}

.decomp-arrow{
	color: #9ca3af;
	font-size: 1.2em;
	flex-shrink: 0;
}

.decomp-components{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.decomp-tile{
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f9fafb;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	padding: 4px 10px;
	min-width: 36px;
	min-height: 40px;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}

.decomp-tile:hover{
	background: #f3f4f6;
	border-color: #e5e7eb;
}

.decomp-tile-link,
.decomp-tile-link:hover{
	text-decoration: none;
	cursor: pointer;
}

.decomp-tile-link .decomp-tile-char{
	color: #b83746;
}

.decomp-tile a{
	font-size: 1.1em;
	text-decoration: none;
	color: #b83746;
}

.decomp-tile a:hover{
	color: #8c2a35;
}

.decomp-tile-char{
	font-size: 1.1em;
	color: #111827;
}

.decomp-tile-meaning{
	font-size: 0.7em;
	color: #6b7280;
	margin-top: 1px;
	text-align: center;
	word-wrap: break-word;
}

.decomp-tile-missing{
	font-size: 0.7em;
	color: #9ca3af;
	min-height: 40px;
	max-height: 40px;
}
#addfav{
	font-size: 0.66em;
}

.meaning{
	margin-top: 10px;
	font-size: 1em;
}

.meaning-entries{
	background-color: white;
	color: #444;
	padding: 4px 18px;
	border: 1px solid #eee;
	border-radius: 5px;
	line-height: 1.4;
}

.appearsin{
	margin-top: 8px;
	word-wrap:break-word;
}

.appearsinbox{
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.newsbite{
	border: 1px solid #e0c6ca;
	font-size: 0.9em;
	padding: 2px 14px;
	background-color: #fdf5f6;
	border-radius: 20px;
	white-space: nowrap;
}

.manychar{
	height: 100%;
}
.decomp{
	font-size: 0.7em;
	width: 100%;
}
form[name="sumbitchar"] {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
}
#decompose{
	height: 45px;
	flex-shrink: 0;
}
#header{
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #fefefe;
	border-bottom: 1px solid #ddd;
	box-shadow: 0 2px 4px rgba(0,0,0,0.06);
	margin-bottom: 20px;
	width: 100%;
}

.header-inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 20px;
	flex-wrap: wrap;
	gap: 4px 0;
}

.headerleft{
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.header-links{
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Chinese Character Lists dropdown */
.header-dropdown{
	position: relative;
}
.header-dropdown-toggle{
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.95em;
	font-weight: 600;
	color: #b83746;
	cursor: pointer;
	white-space: nowrap;
	padding: 4px 0;
	outline: none;
}
.header-dropdown-caret{
	font-size: 0.7em;
	transition: transform 0.15s ease;
}
.header-dropdown:hover .header-dropdown-caret,
.header-dropdown:focus-within .header-dropdown-caret{
	transform: rotate(180deg);
}
.header-dropdown-menu{
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	min-width: 220px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	z-index: 1100;
}
.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu{
	display: flex;
}
.header-dropdown-menu .header-link{
	padding: 9px 16px;
	white-space: nowrap;
}
.header-dropdown-menu .header-link:hover{
	background: #f6f6f6;
}

/* Hamburger button — hidden on desktop */
#nav-hamburger{
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
}
.hamburger-bar{
	display: block;
	width: 22px;
	height: 3px;
	background: #333;
	border-radius: 2px;
}

/* Drawer overlay */
#nav-drawer-overlay{
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	z-index: 2000;
}
#nav-drawer-overlay.open{
	display: block;
}

/* Drawer panel */
#nav-drawer{
	position: fixed;
	top: 0;
	left: -300px;
	width: 260px;
	height: 100%;
	background: #fff;
	z-index: 2001;
	box-shadow: 2px 0 8px rgba(0,0,0,0.15);
	transition: left 0.25s ease;
	padding: 16px 20px;
	overflow-y: auto;
}
#nav-drawer.open{
	left: 0;
}
#nav-drawer-close{
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #333;
	padding: 0 4px;
	margin-bottom: 16px;
}
.drawer-links{
	display: flex;
	flex-direction: column;
	gap: 0;
}
.drawer-links a{
	padding: 12px 0;
	font-size: 1em;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}
.drawer-links a:hover{
	color: #b83746;
}
.drawer-links .drawer-icon{
	display: inline-block;
	width: 22px;
	margin-right: 8px;
	text-align: center;
	color: #b83746;
}

.header-dot{
	color: #aaa;
}

.header-link{
	font-size: 0.9em;
	white-space: nowrap;
}

.headerclear{
	display: none;
}

#header > .clear{
	display: none;
}


#about p{
	margin-left: 15px;
	font-size: 1.1em;
}

#buytext p{
	font-size: 1.1em;
}
.links{
	font-size: 1em;
	text-align: right;
	white-space: nowrap;
	margin-left: auto;
	flex-shrink: 0;
}

.title{
	flex-shrink: 0;
}

.title h1 {
	padding: 0;
	margin: 0;
	font-size: 2.5em;
}
.examples {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.entry{
	border-bottom: 1px dotted #888;
	margin-bottom: 8px;
	padding-bottom: 8px;
}

ol li{
	font-size: 1em;
	padding: 3px;
}

ul li{
	font-size: 1em;
	padding: 3px;
	list-style-type:square
}

li.list{
	display: inline-block;
}

h1{
	color: #b83746;
	font-size: 3em;
	margin-top: 5px;
}
h1 a:hover{
	text-decoration: none;
}
h2{
	margin: 0px;
}
h3{
	color: #b83746;
	margin: 0px;
	line-height: 1em;
	font-size: 1.2em;
	margin-bottom: 5px;
}
p{
	font-size: 1.2em;
}
#buy p{
	font-size: 0.8em;
}

.list_head{
	height: 75px;
	width: 70px;
	border: 1px solid #aaa;
	font-size: 1.1em;
	background-color: white;
	padding: 8px;
	line-height: 2.5em;
	text-align: center;
	float: left;
}

.list_details{
	line-height: 1.3em;
	font-size: 1.1em;
	height: 75px;
	width: 120px;
	border: 1px solid #aaa;
	padding: 8px;
	float: left;
	margin-right: 2px;
}

/* Defer layout/paint of off-screen phonetic-set items (same LCP win as the
   frequency list). Each item is a floated head + details block (~95px tall);
   the intrinsic size reserves a placeholder until it scrolls into view. */
#phoneticsets .list {
	content-visibility: auto;
	contain-intrinsic-size: auto 95px;
}
.printable-cta {
	text-align: center;
	cursor: pointer;
}
.printable-cta img{
	width: 50%;
	border-radius: 5px;
}

.bigchar{
	/*border-radius: 3px;
	width: 130px;
	border: 1px solid #aaa;
	font-size: 3em;
	background-color: white;
	padding: 9px;
	text-align: center;
	margin-bottom: 5px;
	line-height: 1em;
	display: inline-block;*/
	
	border-radius: 8px;
    /* width: 130px; */
    border: 2px solid #cecece;
    font-size: 3.5em;
    background-color: white;
    padding: 9px;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1em;
    display: inline-block;
    padding: 28px 18px;
    box-shadow: 0px 2px 1px #eee;
}

.mobile-banner {
	width: 280px; 
	/*width:;*/
	right: 0px;
	top: -12px;
	position: absolute;
}

.character-nav {
	font-size: 0.8em;
}

.next-char {
	margin-left: 22px;
}

a{
	color: #b83746;
}
.dashboard{
	height: 100%;
	
}
#favorites{
	width: 105%;
}
#history{
	width: 105%;
}
.smallest-font {
	font-size: 0.6em;
}
.smaller-font {
	font-size: 0.8em;
}
.favblock{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.examples h3,
.examples h4{
	width: 100%;
	margin: 8px 8px 8px 0px;
}
.examples .clear{
	display: none;
}
.wordblock{
	width: 151px;
	margin: 2px;
	border: 1px solid #ccc;
	position: relative;
	border-radius: 8px;
	padding: 4px 8px;
}

.favblockdash{
	padding: 3px;
	width: 145px;
	float: left;
	margin: 2px;
	border: 1px solid #ccc;
}

.hidden {
	display: none;
}

#input{
	/*font-family: chinchar;*/
	height: 40px;
	font-size: 16pt;
	border: 1px solid #ccc;
	display: inline-block;
	border-radius: 5px;
	padding: 2px 10px;
	width: 270px;
	min-width: 0;
}

#info{
	padding: 10px;
	border: 1px solid #ccc;
	background-color: white;
	font-size: 1.1em;
	margin-top: 10px;
	margin-bottom: 10px;
}

#donate {
	padding: 10px;
	border: 1px solid #b83746;
	background-color: white;
	font-size: 1.1em;
	margin-top: 10px;
	margin-bottom: 10px;
}

#characterDisplay{
	float: left;
	font-size: 35pt;
	line-height: 215px;
	padding-left: 50px;
}
#footer{
	color: #aaa;
	font-size: 0.8em;
	float: right;
}
li{
	font-size: 10pt;
}
.left{
	float: left;
}
.right{
	float:right;
}

.clear {
	clear: both;
}

.curve{
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-khtml-border-radius: 5px;
}

.description{
	background-color: white;
	font-size: 11pt;
	border: 1px solid #ccc;
	padding: 10px;
	width: 95%;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-khtml-border-radius: 5px;
	margin-bottom: 10px;
}

.popup{
	display: none;
	position: absolute;
	background-color: white;
	color: #444;
	padding: 8px;
	border: 1px solid #b83746;
	box-shadow: 0 0.09em 0.05em #b83746;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-khtml-border-radius: 5px;
}

.popup-new{
	position: absolute;
	background-color: white;
	color: #444;
	padding: 10px 12px;
	border: 1px solid #b83746;
	box-shadow: 0 2px 8px rgba(184, 55, 70, 0.15);
	border-radius: 5px;
	top: 30px;
	z-index: 10;
	width: 200%;
	word-wrap: break-word;
	font-size: 13px;
	line-height: 1.4;
}
.popup-entry{
	padding: 4px 0;
}
.popup-entry + .popup-entry{
	border-top: 1px solid #eee;
}
.popup-pinyin{
	display: block;
	font-weight: 600;
	color: #b83746;
	margin-bottom: 2px;
}
.popup-pinyin-numbered{
	font-weight: 400;
	color: #999;
	font-size: 12px;
}
.popup-definition{
	display: block;
	color: #444;
}

.word-mobile-overlay{
	display: none;
}

@media(max-width: 767px){
	.word-mobile-overlay{
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0,0,0,0.4);
		z-index: 1000;
	}
	.word-mobile-menu{
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 90%;
		max-width: 400px;
		background: white;
		border-radius: 14px;
		padding: 20px;
		max-height: 70vh;
		overflow-y: auto;
		z-index: 1001;
	}
	.word-mobile-header{
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 12px;
	}
	.word-mobile-chars{
		font-size: 24px;
		color: #b83746;
	}
	.word-mobile-close{
		font-size: 28px;
		color: #999;
		cursor: pointer;
		padding: 0 4px;
		line-height: 1;
	}
	.word-mobile-defs{
		margin-bottom: 16px;
	}
	.word-mobile-def-entry{
		padding: 8px 0;
		border-bottom: 1px solid #eee;
	}
	.word-mobile-def-entry:last-child{
		border-bottom: none;
	}
	.word-mobile-lookup{
		display: block;
		text-align: center;
		padding: 12px;
		background: #f3f4f6;
		border-radius: 8px;
		color: #b83746;
		font-weight: 600;
		text-decoration: none;
		font-size: 15px;
	}
}

.mandarin{
	position: relative;
	float: right;
	margin-bottom: -45px;
	top: -30px;
}

.submit-btn {
	margin-left: 5px;
}

.metainfo li{
	list-style-type: square;
}

.justify {
	text-align: justify;
}

.btn.large-cta {
	height: 100px;
    width: 100%;
    font-size: 2em;
    background: #97d5fd;
    color: white;
    border-color: #47a6de;
    text-shadow: none;
}

.btn.large-cta.donate {
	height: 75px;
}
.btn.small-cta {
    background: #97d5fd;
    color: white;
    border-color: #47a6de;
    text-shadow: none;
    padding: 4px 25px;
}
.emoji-donate {
	font-size: 1.5em;
    position: relative;
    top: 4px;
}
.emoji-newsbite {
	font-size: 1.5em;
	line-height: 1em;
	position: relative;
    top: 3px;
}
#donate {
	text-align: center;
}
.dollar-donation {

}

.chinese-character-list {
	list-style-type: square;
}

/* Lists Page Modern Design */
.lists-page {
	max-width: 800px;
	margin: 0 auto;
}

.lists-header {
	text-align: center;
	margin-bottom: 40px;
}

.lists-header h2 {
	color: #b83746;
	font-size: 2em;
	margin-bottom: 16px;
}

.lists-intro {
	font-size: 1.1em;
	color: #555;
	max-width: 600px;
	margin: 0 auto 12px auto;
}

.lists-contact {
	font-size: 0.95em;
	color: #888;
}

.lists-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lists-grid-2x2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.lists-page .list-card {
	display: flex;
	align-items: center;
	padding: 24px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.lists-page .list-card:hover {
	border-color: #b83746;
	box-shadow: 0 4px 12px rgba(184,55,70,0.12);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.lists-page .list-card-disabled {
	opacity: 0.7;
	cursor: default;
	background: #fafafa;
}

.lists-page .list-card-disabled:hover {
	border-color: #e0e0e0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.04);
	transform: none;
}

.lists-page .list-card-cta {
	background: linear-gradient(135deg, #fff5f6 0%, #fff 100%);
	border-color: #b83746;
	border-width: 2px;
}

.lists-page .list-card-cta:hover {
	background: linear-gradient(135deg, #ffebee 0%, #fff 100%);
}

.list-card-icon {
	font-size: 2.5em;
	margin-right: 20px;
	flex-shrink: 0;
	width: 60px;
	text-align: center;
}

.list-card-content {
	flex: 1;
}

.lists-page .list-card-content h3 {
	color: #333;
	font-size: 1.25em;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.lists-page .list-card:hover .list-card-content h3 {
	color: #b83746;
}

.lists-page .list-card-content p {
	color: #666;
	font-size: 0.95em;
	margin: 0;
	line-height: 1.5;
}

.list-card-badge {
	display: inline-block;
	background: #f0f0f0;
	color: #888;
	font-size: 0.75em;
	padding: 3px 10px;
	border-radius: 12px;
	margin-left: 8px;
	vertical-align: middle;
	position: relative;
	top: -2px;
}

.list-card-arrow {
	font-size: 1.5em;
	color: #ccc;
	margin-left: 16px;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.lists-page .list-card:hover .list-card-arrow {
	color: #b83746;
	transform: translateX(4px);
}

.lists-cta {
	color: #888;
	font-size: 0.95em;
}

.lists-cta a {
	color: #b83746;
	font-weight: 600;
}

.lists-section-title {
	color: #333;
	font-size: 1.4em;
	margin: 36px 0 4px 0;
}

.lists-section-desc {
	color: #888;
	font-size: 0.95em;
	margin: 0 0 16px 0;
}

.hsk-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.hsk-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.hsk-card:hover {
	border-color: #b83746;
	box-shadow: 0 4px 12px rgba(184,55,70,0.12);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.hsk-level {
	font-size: 1.15em;
	font-weight: 700;
	color: #333;
}

.hsk-card:hover .hsk-level {
	color: #b83746;
}

.hsk-desc {
	font-size: 0.85em;
	color: #888;
	margin-top: 4px;
}

@media (max-width: 600px) {
	.lists-header h2 {
		font-size: 1.6em;
	}

	.lists-page .list-card {
		padding: 16px;
	}

	.list-card-icon {
		font-size: 2em;
		width: 45px;
		margin-right: 14px;
	}

	.lists-page .list-card-content h3 {
		font-size: 1.1em;
	}

	.lists-page .list-card-content p {
		font-size: 0.9em;
	}

	.list-card-arrow {
		display: none;
	}

	.lists-grid-2x2 {
		grid-template-columns: 1fr;
	}

	.hsk-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.frequency-list .list {
	border: 1px solid #eee;
	width: 48px;
	text-align: center;
	/* Skip layout/paint of the ~9000 off-screen list items until they scroll
	   near the viewport — keeps initial render (and LCP) cheap. The intrinsic
	   size reserves a placeholder so scroll height stays accurate. Degrades
	   gracefully: unsupported browsers render the full list as before. */
	content-visibility: auto;
	contain-intrinsic-size: auto 50px;
}

.frequency-list .list.list-component {
	width: 70px;
}

.frequency-list .list a {
	font-size: 1.2em;
}

.frequency-list .list span {
	display: block;
}

.input-char-form {
	margin: 0px;
}

.character-tabs ol {
	margin: 0px;
	list-style: none;
	margin-top: 16px;
	padding: 0px;
}

.character-tabs ol li {
	border: 1px solid #ccc;
    width: 19px;
    font-size: 1.2em;
    padding: 16px 8px;
    border-radius: 3px 3px 0px 0px;
    position: relative;
    top: 4px;
    display: inline-block;
}

.top-anchor {
	position: relative;
    top: -40px;
    font-size: 0.7em;
}

.mobile-cta {
	border: 1px solid #c62742;
	border-radius: 3px;
	float: right;
	width: 300px;
}

@media(max-width: 1200px){
	.title h1 {
		font-size: 2.5em;
	}
}
@media(max-width: 979px){
	.mandarin{
		float: left;
		position: initial;
		top: 0px;
		margin-bottom: 0;
	}

	.mobile-banner {
		position: relative;
		margin-bottom: 5px;
	}
}

@media(max-width: 767px){
	.mandarin{
		float: left;
		position: initial;
		top: 0px;
		margin-bottom: 0;
	}

	.mobile-banner {
		position: absolute;
		margin-bottom: 0px;
	}
}

@media(max-width: 710px){
	.mobile-banner {
		position: relative;
		margin-bottom: 5px;
	}
}


@media(max-width: 654px){
	.mandarin{
		float: left;
		position: initial;
		top: 0px;
		margin-bottom: 0;
	}
}

@media(max-width: 767px){
	#header{
		position: static;
	}
	.header-inner{
		padding: 8px 12px;
		flex-wrap: nowrap;
	}
	.headerleft{
		flex-direction: column;
		align-items: flex-start;
		flex-shrink: 1;
		gap: 2px;
		min-width: 0;
	}
	.header-dropdown-toggle{
		font-size: 0.85em;
	}
	.signup-link{
		display: none;
	}
	.title h1 {
		font-size: 1.5em;
	}
	.links{
		font-size: 0.9em;
	}
	.character-actions{
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 6px;
	}
	.status-selector{
		margin-right: 0 !important;
	}
}

@media(max-width: 550px){
	.newsbite {
		/*overflow: hidden;
		text-overflow: ellipsis;*/
		font-size: 0.75em;
	    padding: 2px 8px;
	}
	.headerleft {
		flex-wrap: nowrap;
		min-width: 0;
	}
}

@media (max-width: 480px){
	.title h1 {
		font-size: 1.2em;
	}
	h1{
		font-size: 2em;
		margin-top: 0px;
		margin-bottom: -5px;
	}
	h3{
		font-size: 1.2em;
		margin: 0px;
		padding: 0px;
		line-height: 1.2em;
	}

	.decomp-row{
		flex-direction: column;
		align-items: stretch;
	}
	.decomptitle{
		width: auto;
		min-width: auto;
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
		padding: 8px 12px;
	}
	.decompbox{
		padding: 16px 10px;
	}
	.decomp-source{
		font-size: 1.2em;
	}
	.decomp{
		display: inline-block;
		font-size: 0.65em;
	}

	.links{
		font-size: 1em;
	}
}

@media(max-width: 450px){ 
	.mobile-banner {
		width: 100%;
	}
	.header-link {
		font-size: 0.8em;
	}
}

@media(max-width: 480px) {
	#input {
		width: auto;
		flex: 1 1 0;
	}
}