/* ###
# COMMON
### */

body {
	font-size: 18px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p, ul, ol, form, table { margin: 0 0 1.6em 0; }
h1, h2, h3 { margin: 0 0 0.5em; }
h1 { font-size: 1.6em; line-height: 1.4; }
ol, ul { padding: 0 0 0 1em; }
ol { list-style: decimal inside; }
ul { list-style: disc inside; }
ol li, ul li { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid #f4f5f6; margin: 1.6em 0; }

/* ###
# HEADER
### */

header {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 1rem 0 2rem 0;
}

header img {
	width: 60px;
	transform: rotate(20deg);
	transition: transform .8s ease-in-out;
}

header img:hover {
	transform: rotate(360deg);
}

header a {
	margin-left: 1rem;
	font-size: 2rem;
	font-weight: bold;
	color: #CA602D;
	text-decoration: none;
}

@media (min-width: 45rem) {
	header img { width: 100px; }
	header a { font-size: 4rem; }
}

/* ###
# CARDS
### */

.cards {
	margin-bottom: 2em;
}

.cards .card {
	box-shadow: 0 1px 2px 0 rgba(0,0,0,.12), 0 2px 10px 0 rgba(0,0,0,.1);
	border-radius: 2px;
	padding: 15px;
	margin-bottom: 1em;
	overflow: hidden;
}

@media (min-width: 45rem) {
	.cards.two {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		flex: 1;
	}

	.cards.two .card {
		width: calc(50% - 20px);
		margin: 10px;
	}
}

/* celeb */
.cards.celeb p {
	margin: 0;
}

.cards.celeb .face {
	float: left;
	max-width: 100px;
	max-height: 100px;
	border-radius: 100%;
	margin: 0 10px 0 0;
}

/* ###
# CONTAINER
### */

.container {
	margin: 0 auto;
	max-width: 720px;
	padding: 0 1.6rem;
	position: relative;
	width: 100%;
}

/* ###
# IMAGES
### */

.img {
	display: block;
	max-width: 100%;
	margin: 0 0 2rem 0;
}

@media (min-width: 45rem) {
	.img.right {
		float: right;
		margin: 0 0 1.6em 1.6em;
		max-width: 400px;
	}
}

/* ###
# TABLE
### */

table {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	display: table;
	border: 1px solid #ccc;
}

table tr {
	border-bottom: 1px solid #ddd;
}

table th:first-child, table td:first-child {
	padding-left: 16px;
}

table td, table th {
	padding: 8px 8px;
	display: table-cell;
	text-align: left;
	vertical-align: top;
}

table th {
	background-color: #4CAF50;
	color: #fff;
}

table tr:nth-child(odd) {
	background-color: #f9f9f9;
}

/* ###
# GRID
### */

.row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
}

.row .col {
	display: block;
	margin-left: 0;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

@media (min-width: 880px) {
	.row {
		flex-direction: row;
		margin-left: -1.0rem;
		width: calc(100% + 2.0rem);
	}

	.row .col {
		flex: 1;
		width: 0;
		margin-bottom: inherit;
		padding: 0 1.0rem;
	}
}

/* ###
# FOOTER
### */

footer {
	overflow: hidden;
	background-color: #fdfbfb;
	padding: 10px 10px 50px 10px;
	margin: 60px 0 0 0;
	color: #565656;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
}

footer ul, footer ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* breadcrumb */
.breadcrumb {
	list-style: none;
	display: inline-block;
	margin: 0;
	padding: 0;
}

.breadcrumb li {
	float: left;
	margin: 0;
}

.breadcrumb li::after {
	content: "› ";
	white-space: pre;
}

.breadcrumb li:last-child:after {
	content: "";
}

/* ###
# FLYER
### */

.flyer {
	margin: .2em auto 2em auto;
	min-height: 280px;
	max-width: 1080px;
	text-align: center;
	width: 100%;
	background: radial-gradient(circle, #fff 0%, #fff0e4 100%);
}

@media (max-width: 400px) {
	.flyer { min-height: 325px; }
}

/* ###
# NEW
### */

.intro {
	font-size: 1.1em;
	max-width: 750px;
	margin: 1rem auto 2rem auto;
	text-align: center;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.card {
	display: block;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card h3 {
	margin-top: 0;
	color: #0056b3;
}

.card span {
	display: inline-block;
	margin-top: 1rem;
	font-weight: bold;
	color: #0056b3;
}

/* Secondary Tools Section */

.category-grid-secondary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.card-secondary {
	border: 1px solid #e9e9e9;
	padding: 1.5rem;
	border-radius: 8px;
}

.card-secondary h4 {
	margin-top: 0;
}

.card-secondary a {
	font-weight: bold;
}

.chart-subheader {
	background-color: #f4f4f4;
	text-align: center;
}

iframe {
	border: none !important;
}