/* Custom Beer CSS theme overrides for myTrainingForecast */

body {
	overflow-y: scroll !important;
}

:root,
body.light,
body.dark {
	/* Colours from https://picocss.com/docs/colors */
	--slate-50: #eff1f4;
	--slate-75: #E7EAEE;
	--slate-100: #dfe3eb;
	--slate-125: #D9DEE7;
	--slate-150: #cfd5e2;
	--slate-200: #bfc7d9;
	--slate-250: #b0b9d0;
	--slate-300: #a0acc7;
	--slate-350: #909ebe;
	--slate-400: #8191b5;
	--slate-450: #7385a9;
	--slate-500: #687899;
	--slate-550: #5d6b89;
	--slate-600: #525f7a;
	--slate-650: #48536b;
	--slate-700: #3d475c;
	--slate-750: #333c4e;
	--slate-800: #2a3140;
	--slate-850: #202632;
	--slate-900: #181c25;
	--slate-950: #0e1118;

	--deep-orange1: #fbe9e7;
	--deep-orange2: #ffccbc;
	--deep-orange3: #ffab91;
	--deep-orange4: #ff8a65;
	--deep-orange5: #ff7043;
	--deep-orange6: #ff5722;
	--deep-orange7: #f4511e;
	--deep-orange8: #e64a19;
	--deep-orange9: #d84315;
	--deep-orange10: #bf360c;
	
	--myTF-dark: var(--slate-850);
	--myTF-light: var(--slate-50);
	--myTF-primary-light: var(--deep-orange3);
	--premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	
	--on-light-surface: var(--myTF-dark);
	--on-dark-surface: var(--myTF-light);
	
	--myTF-radius: .5rem;
	max-width: 1000px;
	margin: auto;
	
	/* zone colours (e.g. planner, chart) */
	--myTF-light-purple: #ab92db;
	--myTF-purple: #9370DB;
	--myTF-light-blue: #82afc3;
	--myTF-blue: #2196F3;
	--myTF-light-green: #A3D1A3;
	--myTF-green: #4CAF50;
	--myTF-light-orange: #FFD9B3;
	--myTF-orange: #FF9800;
	--myTF-light-red: #FFC9C9;
	--myTF-red: #F44336;
	--myTF-darkgrey: #444444;

	/* TODO: remove legacy vars */
	--tlrAccentColor: var(--deep-orange7);
	--tlrGreen: var(--myTF-green);
	--tlrRed: var(--myTF-red);
	--tlrOrange: var(--myTF-orange);
	--tlrBlue: var(--myTF-blue);
	--tlrPurple: var(--myTF-purple);
	--tlrDarkGrey: var(--myTF-darkgrey);
}

:root,
body.light {
	--myTF-primary: var(--deep-orange8);
	--primary: var(--myTF-primary);
	--on-primary: var(--myTF-light);
	--primary-container: var(--deep-orange4);
	--on-primary-container: white;
	--secondary: var(--slate-600);
	--on-secondary: white;
	--secondary-container: var(--myTF-primary-light);
	--on-secondary-container: var(--deep-orange10);
	--tertiary: var(--deep-orange1);
	--on-tertiary: var(--myTF-primary);
	--tertiary-container: var(--myTF-primary);
	--on-tertiary-container:  white;
	/* --error: var(--red2);
	--on-error: #99030a;
	--error-container: var(--red2);
	--on-error-container: var(--slate-950); */
	--background: var(--slate-75);
	--on-background: var(--on-light-surface);
	--surface: var(--slate-75);
	--on-surface: var(--on-light-surface);
	--surface-variant: var(--slate-100);
	--on-surface-variant: var(--slate-500);
	--outline: var(--secondary);
	--outline-variant: #cac4cf;
	--shadow: #000000;
	--scrim: #000000;
	--inverse-surface: #313033;
	--inverse-on-surface: #f4eff4;
	--inverse-primary: #cfbcff;
	--surface-dim: #dddddd;
	--surface-bright: #fdf8fd;
	--surface-container-lowest: white;
	--surface-container-low: var(--myTF-light);
	--surface-container: var(--slate-75);
	--surface-container-high: var(--slate-100);
	--surface-container-highest: var(--slate-125);
}

body.dark {
	--myTF-primary: var(--deep-orange6);
	--primary: var(--myTF-primary);
	--on-primary: var(--myTF-light);
	--primary-container: var(--myTF-primary);
	--on-primary-container: white;
	--secondary: var(--slate-300);
	--on-secondary: var(--myTF-dark);
	--secondary-container: var(--myTF-primary);
	--on-secondary-container: var(--deep-orange10);
	--tertiary: var(--slate-700);
	--on-tertiary: white;
	--tertiary-container: var(--myTF-primary);
	--on-tertiary-container:  white;
	/* --error: var(--red8);
	--on-error: #99030a;
	--error-container: var(--red8);
	--on-error-container: var(--myTF-light); */
	--background: var(--slate-950);
	--on-background: var(--on-dark-surface);
	--surface: var(--slate-950);
	--on-surface: var(--on-dark-surface);
	--surface-variant: var(--slate-700);
	--on-surface-variant: var(--slate-100);
	--outline: var(--secondary);
	--outline-variant: #49454e;
	--shadow: #000000;
	--scrim: #000000;
	--inverse-surface: #e6e1e6;
	--inverse-on-surface: #313033;
	--inverse-primary: #6750a4;
	--surface-dim: #222222;
	--surface-bright: #3a383c;
	--surface-container-lowest: var(--slate-900);
	--surface-container-low: var(--myTF-dark);
	--surface-container: var(--slate-800);
	--surface-container-high: var(--slate-750);
	--surface-container-highest: var(--slate-700);
}

.premium:after {
	content: '+';
	margin-left: 0.2rem;
	color: var(--myTF-primary);
	vertical-align: super;
	font-size: 80%;
	font-weight: bold;
}

.gradient {
	background: linear-gradient(135deg, var(--surface-container) 0%, var(--surface-container-high) 50%, var(--surface-container-highest) 100%);
}

.premium-gradient {
	background: var(--premium-gradient);
	color: white;
	/* border: 1px solid rgba(255, 255, 255, 0.2); */
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

mark {
	background: var(--premium-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	vertical-align: baseline;
}

:is(h1, h2, h3, h4, h5, h6) mark, :is(h1, h2, h3, h4, h5, h6) i {
	vertical-align: text-top;
}

a.external {
    background: url(../media/Icon_External_Link.svg) center right no-repeat;
	color: var(--myTF-primary);
	padding-right: 20px;
}

/* .error-container a.link {
	font-weight: bold;
	color: var(--on-error) !important;
} */

/* menus & nav */
body > header {
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.logo-nav, .logo-nav * {
	height: 40px;
	max-width: 240px;
}

a.current-page {
	color: var(--myTF-primary);
	font-weight: bold;
	text-decoration: underline;
}

.side-menu > li > a {
	justify-content: left;
}

.side-menu > li {
	width: 100%;
	border-radius: var(--myTF-radius);
}

.side-menu .current-page:hover,
.side-menu > li:hover {
	background-color: var(--primary);
	color: white;
}

.tabs > a {
	border-radius: var(--myTF-radius) var(--myTF-radius) 0 0;
}

.tabs > a.active {
	background: rgb(from var(--primary) r g b / 10%);
}

/* main */
main article {
	border-radius: var(--myTF-radius);
	box-shadow: none!important
}

article header {
	border-radius: var(--myTF-radius) var(--myTF-radius) 0 0;
}

article .footer {
	font-size: smaller;
	background-color: var(--surface-container-lowest);
	border-radius: 0 0 var(--myTF-radius) var(--myTF-radius);
}

blockquote cite {
	color: var(--secondary);
}

article h5 {
	font-size: 1.2rem;
}

.small-text {
	font-size: 0.62rem;
}

ul.box {
	list-style-type: '▢  ';
	margin-top: 0;
}

ul.faq > li summary:hover {
	font-variation-settings: "FILL" 1;
	color: var(--myTF-primary);
	background: linear-gradient(to right, rgb(from var(--myTF-primary) r g b / 5%), rgb(from var(--myTF-primary) r g b / 10%));
}

ul.faq > li > details:open summary {
	color: var(--myTF-primary);
}

.diagonal-border {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #000 5px, transparent 5px) border-box;
  border: 5px solid transparent;
  background-clip: padding-box, border-box;
}

.faq-icon-svg {
	width: 24px;
	height: 24px;
}

/* dialogs */

/* set the radius, except on id dialog-menu */
dialog {
	border-radius: var(--myTF-radius);
}

#dialog-menu {
	border-radius: 0 !important;
	border: none !important;
	outline: none !important;
}

/* buttons */
button, a.button {
	border-radius: var(--myTF-radius);
}

/* Air quality card */
.air-quality-gradient {
	/* updated client side from airQuality.card */
	background-color: var(--airQualityColor);
	color: var(--airQualityText);
}

/* Planner */
.planner {
	width: 100%;
}

.planner > table {
	width: 100%;
	table-layout: fixed;
	margin: auto;
	text-transform: uppercase;
	font-size: 0.8rem;
	line-height: 0.8rem;
	border-spacing: 5px;
}

.planner > table td,
table input {
	width: 100%;
	padding: 0;
	min-height: 25px;
	text-align: center;
	font-size: 0.8rem;
	border: none;
	border-radius: 4px;
}

.planner table input {
	border: 1px solid var(--outline-variant);
}

.planner table input:focus {
	outline: 2px solid var(--myTF-primary);
}


.planner > table th {
	padding: 0;
	width: 100%;
	min-width: 45px;
	height: 20px;
	font-weight: 400;
}

.planner > table thead th {
	text-align: center;
	vertical-align: top;
	border: none;
}

.planner > table thead tr th:first-child,
.planner > table tbody tr th:first-child {
	text-align: right;
	width: 55px;
	min-width: 55px;
	max-width: 55px;
}

/* footer */
body > footer a {
	color: var(--secondary);
	font-size: 1rem;
	padding: .1rem 1rem .1rem 0;
}

body > footer a:hover {
	color: var(--myTF-primary);
	text-decoration: underline;
}

body > footer * {
	font-size: 1rem;
}

body > footer h6 {
	color: var(--primary);
	border-bottom: 1px solid var(--outline);
}

/* vendor assets */
.powered-by-logos img {
	display: block;
	max-width: 150px;
	max-height: 50px;
	margin-top: 4px;
	margin-left: -8px;
}

.powered-by-logos p {
	font-size: 0.9rem;
	margin-top: 0.2rem;
	line-height: normal;
}