/* site.css overrides — palette: docs/open/palette.jpg
   teal #6daeab structure · wine #9f2b3a anchors · coral #ed6f6a interaction
   amber #f7a500 highlight · cream #ffebb1 on-dark text · pale mint #e1f2eb page */

body {
	background: #e1f2eb;	/* not the login screen ZZ */
	font-size: 18px;
}

fieldset {
	/* ZZ override border: 5px solid #1F497D; */
	border: 5px solid #ed6f6a;
}

legend {
	/* ZZ override background: #1F497D; */
	background: #ed6f6a;
}

td.head {
	/* ZZ override background-color: #4B6FA4; */
	background-color: #6daeab;
	color: #ffffff;
}

td.headlite {
	background-color: #6daeab;
	color: #ffffff;
}

td.headliteright {
	background-color: #6daeab;
	color: #ffffff;
}

td.headleft {
	background-color: #6daeab;
	color: #ffffff;
}

td.headright {
	background-color: #6daeab;
	color: #ffffff;
}

td.subhead {
	/* ZZ override background-color: #5882C1; */
	background-color: #b3efec;
	color: #0f3d3a;
}

td.subheadleft {
	background-color: #b3efec;
	color: #0f3d3a;
}

td.subheadright {
	background-color: #b3efec;
	color: #0f3d3a;
}

/*
a:hover {
	color: #ffffff;
	text-decoration: none;
}
*/

/*
td {
	text-align: center;
	margin: 0;
	padding: 2px;
	border: 1px solid black;
	color: #ffffff;
	background-color: #16a085;
}
*/

.lo {
	color: #ffffff;
	height: 100%;
	padding: 0px;
	border: 1px solid black;
	background-color: #eeeeee;
}

/* login container pushed down and centered horizontally */
.container {
	max-width: 620px;
	margin: 170px auto;
}

.wrapper{
	width: 100%;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0px 4px 10px 1px rgba(0,0,0,0.1);
}

.wrapper .banner {
	height: 32px;
	/*text-align: left;*/
	vertical-align: middle;
	/* ZZ old background: #16a085; */
	background: #6daeab;
	border-radius: 5px 5px 0 0;
	color: #fff;
	font-family: "Futura Medium", "Futura PT Medium", "Futura", "Futura PT", "Helvetica Neue", Arial, sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
	padding: 12.8px 16px;
}

.wrapper .banner a {
	color: #fff;
	text-decoration: none;
}

.wrapper .banner.module-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.module-banner-title,
.module-banner-actions {
	display: flex;
	align-items: center;
}

.module-banner-title {
	gap: 14.4px;
}

.module-banner-actions {
	gap: 25.6px;
}

.module-banner-actions a:hover {
	text-decoration: underline;
}

.wrapper form{
	padding: 30px 25px 25px 25px;
}

.wrapper form .row{
	height: 45px;
	margin-bottom: 15px;
	position: relative;
	}

.wrapper form .err {
	font-size: 25px;
	color: red;
	padding: 0px 10px 10px 10px;
	text-align: center;
}

.wrapper form .row input{
	height: 100%;
	width: 100%;
	outline: none;
	padding-left: 60px;
	border-radius: 5px;
	border: 1px solid lightgrey;
	font-size: 16px;
}

form .row input:focus{
	border-color: #6daeab;
	box-shadow: inset 0px 0px 2px 2px rgba(109,174,171,0.35);
}

form .row input::placeholder{
	color: #999;
}

.wrapper form .row i{
	position: absolute;
	width: 47px;
	height: 100%;
	color: #fff;
	font-size: 18px;
	background: #6daeab;
	border: 1px solid #6daeab;
	border-radius: 5px 0 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wrapper form .forgot{
	margin: -8px 0 20px 0;
}

.wrapper form .forgot a{
	color: #9f2b3a;
	font-size: 17px;
	text-decoration: none;
}

.wrapper form .forgot a:hover{
	text-decoration: underline;
}

/* style login button */
.wrapper form .login input{
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	padding-left: 0px;
	background: #6daeab;
	border: 1px solid #6daeab;
	cursor: pointer;
}

form .login input:hover{
	background: #558f8c;
}

.wrapper form .signup-link{
	text-align: center;
	margin-top: 20px;
	font-size: 17px;
}

.wrapper form .signup-link a{
	color: #9f2b3a;
	text-decoration: none;
}

/*ZZ form .signup-link a:hover{
	text-decoration: underline;
}*/

/* cards */

.card-container {
	display: grid;
	padding: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-gap: 1rem;
}

.card {
	display: grid;
	text-align: center;
	box-shadow: 0px 1px 5px #555;
	/* ZZ old background-color: #c3ffc2;*/
	background-color: #ffebb1;
	align-self: end;
}

.card h1 {
	/*color: white;*/
}

.card a {
	display:block;
	width: 100%;
	height:100%;
	color: black;
}

.card a:hover {
	text-decoration: none;
}

.card:hover {
	cursor: pointer;
	/* ZZ old background-color: #5ebd59; */
	background-color: #f77d78;
}

/* card_content contains h1 title and some following text */
.card_content {
	padding: 10px;
}

.card_img {
	width: 100%;
}

/* Topic cards on study/index.php use the home-page card layout. */
.study-topic-cards .card-container {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.study-topic-cards .card {
	align-self: stretch;
}

.study-topic-cards .card a {
	display: flex;
	flex-direction: column;
}

.study-topic-cards .card_img {
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
}

.study-topic-cards .card_content {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 4.5rem;
	background: #ffebb1;
}

.study-topic-cards .card_content h1 {
	margin: 0;
	font-size: clamp(1rem, 1.8vw, 1.55rem);
	line-height: 1.15;
}

.study-topic-cards .card:hover .card_content,
.study-topic-cards .card a:focus .card_content {
	background: #f77d78;
}

/* nice buttons */
.openbutton {
	box-shadow:inset 0px 1px 0px 0px #f2a6a2;
	background-color:#ed6f6a;
	border-radius:5px;
	border:1px solid #9f2b3a;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:0px 1px 0px #9f2b3a;
}
.openbutton:hover {
	text-decoration: none;
	background-color:#9f2b3a;
}
.openbutton:active {
	text-decoration: none;
	position:relative;
	top:1px;
}

.study-tools {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.6rem;
	padding: .8rem .8rem .4rem;
}

.study-tools-group {
	display: flex;
	gap: .8rem;
}

.study-tools-right {
	justify-content: flex-end;
	margin-left: auto;
}

.study-tool {
	flex: 0 0 86.4px;
	overflow: hidden;
	background: #ffebb1;
	box-shadow: 0 1px 5px #555;
	text-align: center;
}

.study-tool-link {
	display: block;
	color: #000;
	text-decoration: none;
}

.study-tool-link:hover {
	text-decoration: none;
}

.study-tool-img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.study-tool-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 1.2rem;
	padding: .2rem;
	background: #ffebb1;
	font-family: "Futura Medium", "Futura PT Medium", "Futura", "Futura PT", "Helvetica Neue", Arial, sans-serif;
	font-size: 14.4px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .15s ease;
}

.study-tool-link:hover .study-tool-footer,
.study-tool-link:focus .study-tool-footer {
	background: #f77d78;
}

@media (max-width: 720px) {
	.wrapper .banner {
		height: 20px;
		font-size: 15px;
		padding: 8px 10px;
	}

	.wrapper .banner.module-banner {
		gap: 15px;
	}

	.module-banner-title {
		gap: 9px;
	}

	.module-banner-actions {
		gap: 16px;
	}

	.study-tools {
		flex-wrap: wrap;
		gap: 1rem;
		padding: .5rem .5rem .25rem;
	}

	.study-tools-group {
		flex-wrap: wrap;
		gap: .5rem;
	}

	.study-tool {
		flex-basis: 54px;
	}

	.study-tool-footer {
		min-height: .75rem;
		padding: .125rem;
		font-size: 9px;
	}
}

/* ====================================================================== */
/* palette layer — admin / staff chrome                                    */
/* ====================================================================== */

.whitebig, .whitemed, .title, .navTitle, legend {
	font-family: "Futura", "Futura PT", "Helvetica Neue", Arial, sans-serif;
}

/* ---- staff header band (page_banner_full → table#pagebanner) ---------- */
#pagebanner {
	background: #6daeab;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
#pagebanner td { border: none; background: transparent; }
#pagebanner .layoutleft img, #pagebanner .layoutright img { max-height: 76px; width: auto; }

.whitebig { color: #ffffff; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.whitemed { color: #ffffff; opacity: .92; }

/* "System Administrator [zuev]" strip */
#logindetails {
	background: #9f2b3a;
	color: #ffebb1;
	border: 1px solid #7f2230;
	border-top: none;
	border-radius: 0 0 5px 5px;
	font-size: 11px;
	padding: 2px 10px;
}

/* ---- left navigation pane -------------------------------------------------- */
td.layouttop.leftnavpane { background-color: #6daeab; }
#leftnav                  { background-color: #6daeab; }
#leftnav ul li a,
#leftnav ul li a:visited  { color: #ffffff; }
#leftnav ul li a:hover    { background-color: #558f8c; color: #ffffff; }
#leftnav ul li a.selected,
#leftnav ul li a.selected:hover {
	background-color: #ffebb1;
	color: #9f2b3a;
	font-weight: bold;
}
#leftnav ul li a span {
	color: #9f2b3a;
	background-color: #ffebb1;
}
.navTitle {
	color: #ffebb1;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 2px solid #f7a500;
	margin-bottom: 3px;
}

/* ---- page title bar + content ------------------------------------------- */
#header {
	background-color: #b3efec;
	border-left: 6px solid #9f2b3a;
	border-radius: 5px;
}
.title { color: #9f2b3a; }

#content, #contentall { background-color: #ffffff; }

#footer {
	background-color: #6daeab;
	color: #06322f;
	border-radius: 5px;
}

/* ---- shared widgets --------------------------------------------------------- */
.masq   { background-color: #9f2b3a; border-color: #7f2230; }
.masq a { color: #ffcb04; }

.button       { background: #b3efec; border: 2px solid #6daeab; color: #06322f; text-shadow: none; }
.button:hover { background: #6daeab; color: #ffffff; }

/* ---- study-guide refs box: no pure blue, grey like the topic table --- */
.study-guide-refs {
	background: #eeeeee;
	border: 1px solid #cccccc;
	color: #000000;
}
.study-guide-refs a { color: #000000; }
