@charset "utf-8";
/* CellBasics website - styling mirrored from the Wayfarer site */

body, html{
	width: 100%;
	min-width: 1075px;
	height: 100%;
	margin: 0;
	padding: 0;

	scroll-behavior: smooth;
}

body{
	color: black;
	font-family: 'Noto Sans', NotoWeb, Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 175%;
}

#content{
	padding-top: 62px;
}

#content p, #content h5, #content h4, #content h3, #content h2, #content h1, .section p, .section h5, .section h4, .section h3, .section h2, .section h1 {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

#content ul, .section ul{
	max-width: 950px; /* minus padding-left */
	margin-left: auto;
	margin-right: auto;
}

#footer {
	width: 100%;
	display: block;
	color: rgba(0,0,0,0.6);
	font-size: 80%;
	text-align: center;
	padding: 40px 0px 50px;
}

/* Navigation */

ul#navigation {
	display: block;
	height: 62px;
	width: 100%;
	min-width: 1024px;

	position: fixed !important;
	top: 0px;
	left: 0px;
	z-index: 100;

	padding: 0px;
	margin: 0px;
	text-align: right;
	list-style: none;

	border-bottom: 1px solid rgba(0,0,0,0.18);
	box-shadow: 0px 3px 3px 1px rgba(0,0,0,0.05), 4px 5px 15px 1px rgba(0,0,0,0.1), 0px 0px 2px 1px rgba(0,0,0,0.1);

	background-color: rgba(255,255,255,0.90);
	background-image: linear-gradient(to bottom, rgba(0,0,0,0.08) 5%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0) 80%);

	transition: 0.5s ease-in-out;
}

ul#navigation:hover{
	background-color: rgba(255,255,255,1);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)){
  ul#navigation {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	border-bottom: 1px solid rgba(255,255,255,0.6);
	background-color: rgba(255,255,255,0.15);
	background-image: linear-gradient(to top, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.4) 80%);
  }
}

@-moz-document url-prefix() {
  ul#navigation {
	background-color: rgba(255,255,255,0.90) !important;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0.08) 5%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0) 80%) !important;
  }
}

ul#navigation li{
	display: inline-block;
	padding: 0px;
}

#navigation a {
	line-height: 60px;
	padding: 22px 25px 23px 25px;

	color: black;
	font-size: 15px;
	font-weight:lighter;
	text-shadow: 0px 1px 0px rgba(255,255,255,0.5);
	letter-spacing: 0px;
	text-decoration:none;
	text-transform:uppercase;

	border-left: 1px solid rgba(0,0,0,0);
	border-right: 1px solid rgba(0,0,0,0);
	white-space:nowrap;

	transition: box-shadow 0.3s ease-in-out;
}

#navigation a:hover, .navbar a:active {
	background: rgba(0,0,0,0.02);
	border-left: 1px solid rgba(0,0,0,0.15);
	border-right: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.09) inset;
	outline: none;
}

#wordmark {
	float: left;
	position: absolute;
	left: 24px;
	line-height: 62px;
	font-size: 22px;
	font-weight: 300;
	letter-spacing: 0.5px;
	color: #217346; /* spreadsheet green */
	text-shadow: 0px 1px 0px rgba(255,255,255,0.6);
}

/* Splash - CSS spreadsheet grid motif */

#homeSplash{
	position: relative;
	width: 100%;
	height: 340px;
	overflow: hidden;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	margin-bottom: -15px;

	background-color: #fbfdfb;
	background-image:
		linear-gradient(rgba(33,115,70,0.10) 1px, transparent 1px),
		linear-gradient(90deg, rgba(33,115,70,0.10) 1px, transparent 1px);
	background-size: 46px 34px;
	background-position: center center;
}

#homeSplash::after{
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(251,253,251,0) 30%, rgba(251,253,251,0.95) 78%);
}

#homeSplash .splashTitle{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 2;
	text-align: center;
	width: 100%;
}

#homeSplash .splashTitle h1{
	font-size: 64px;
	font-weight: 200;
	color: #1a1a1a;
	margin: 0;
	text-transform: none;
	letter-spacing: -0.5px;
}

#homeSplash .splashTitle h1 b{
	font-weight: 400;
	color: #217346;
}

#homeSplash .splashTitle p{
	font-size: 18px;
	font-weight: 300;
	color: rgba(0,0,0,0.6);
	margin: 8px 0 0;
}

#homeSplash .splashTitle .cellref{
	display: inline-block;
	margin-bottom: 18px;
	padding: 3px 14px;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	color: #217346;
	background: rgba(255,255,255,0.85);
	border: 1px solid rgba(33,115,70,0.4);
	box-shadow: 0px 0px 0px 2px rgba(33,115,70,0.12);
}

/* Sections */

.section a, p a{
	color: black !important;
	border-bottom: 1px solid #3ec46f;
	font-size: 95%;
}

.section a:hover, p a:hover{
	color: #217346 !important;
}

#features{
	border-top: 1px solid rgba(0,0,0,0.1);
	margin-top: 60px;
}

.download{
	background: rgba(0,0,0,0.02);
	border-top: 1px solid rgba(0,0,0,0.1);
	border-bottom: 1px solid rgba(0,0,0,0.1);
	margin-top: 70px;
}

a#download {
	font-size: 120%;
	line-height: 20px;
	min-width: 120px;
	display: inline-block;
	border: 1px solid rgba(33,115,70,0.5);
	padding: 12px 25px;
	text-align: right;
	border-radius: 3px;
	transition: all 0.5s;
	background-image: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%);
	color: black !important;
	border-bottom: 1px solid rgba(33,115,70,0.5) !important;
}

a#download:hover {
	background-image: linear-gradient(to bottom, rgba(52,168,102,1) 0%, rgba(33,115,70,1) 100%);
	color: white !important;
}

a#download span{
	color: rgba(0,0,0,0.55);
	font-size: 70%;
	transition: all 0.5s;
}

a#download:hover span{
	color: rgba(255,255,255,0.75);
}

hr{
	margin-top: 60px;
	color: rgba(0,0,0,0);
	border-top: 1px solid rgba(0,0,0,0.1);
}

/* Generic */

h1 {
	font-size: 22px;
	text-align: center;
	font-weight:normal;
	font-family: inherit;
	text-transform:uppercase;
}

h3 {
	color: #217346;
	font-size: 22px;
	font-weight: 300;
	line-height: 30px;

	margin-top: 60px;
	display: block;
}

h4 {
	color: #217346;
	font-size: 18px;
	font-weight: 300;
	margin-top: 50px;
}

a, a:visited {	text-decoration: none; }
a:active {	color: black; outline: none; }

li {
	padding: 5px 0px;
	padding-left: 30px;
	padding-right: 70px;
	break-inside: avoid-column;
}

ul{
	padding-left: 50px;
	box-sizing: border-box;
}

/* Helper classes */

.tc {text-align: center !important;}
.tr {text-align: right !important;}

.dualcolumns{
	vertical-align: top;
	column-count: 2;
	column-gap: 60px;
	-webkit-column-count: 2;
	-webkit-column-gap: 60px;
}

/* ---- Function reference (help page) ---- */

#help p, #help h2, #help h3, #help h4, #help ul, #help .toolbar, #help .catnav, #help .fngroup {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

#help h2{
	color: #217346;
	font-size: 26px;
	font-weight: 300;
	margin-top: 60px;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	padding-bottom: 10px;
}

#help code{
	font-family: 'Courier New', monospace;
	font-size: 90%;
	background: rgba(33,115,70,0.07);
	border: 1px solid rgba(33,115,70,0.15);
	border-radius: 3px;
	padding: 1px 5px;
}

/* Sticky search toolbar */
.toolbar{
	position: sticky;
	top: 62px;
	z-index: 50;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 16px 0;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	margin-bottom: 10px;
}

#fnsearch{
	width: 100%;
	box-sizing: border-box;
	font-size: 17px;
	font-family: inherit;
	padding: 12px 16px;
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#fnsearch:focus{
	border-color: #217346;
	box-shadow: 0 0 0 3px rgba(33,115,70,0.12);
}

#searchmeta{
	font-size: 13px;
	color: rgba(0,0,0,0.5);
	margin-top: 8px;
	min-height: 16px;
}

/* Category quick-nav chips */
.catnav{
	margin: 18px auto 40px;
	line-height: 2.4;
}

.catnav a{
	display: inline-block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #217346 !important;
	border: 1px solid rgba(33,115,70,0.35) !important;
	border-radius: 20px;
	padding: 4px 14px;
	margin-right: 8px;
	white-space: nowrap;
}

.catnav a:hover{
	background: #217346;
	color: white !important;
}

/* Function grid */
.fngroup{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 40px;
	margin-bottom: 30px;
}

@media (max-width: 720px){
	.fngroup{ grid-template-columns: 1fr; }
}

.fn{
	padding: 16px 0;
	border-bottom: 1px solid rgba(0,0,0,0.07);
}

.fn h3{
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 500;
	color: #1a1a1a;
	letter-spacing: 0.3px;
}

.fn .syntax{
	margin: 0 0 8px;
}

.fn .syntax code{
	background: none;
	border: none;
	padding: 0;
	color: #217346;
	font-size: 13px;
}

.fn .desc{
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 155%;
	color: rgba(0,0,0,0.8);
}

.fn .ex{
	margin: 0;
	font-size: 13px;
	color: rgba(0,0,0,0.6);
}

.fn .ex code{
	background: rgba(0,0,0,0.04);
	border-color: rgba(0,0,0,0.08);
}

.fn .note{
	margin: 6px 0 0;
	font-size: 12.5px;
	color: #9a6a00;
	background: rgba(240,180,0,0.08);
	border-left: 2px solid rgba(240,180,0,0.5);
	padding: 4px 10px;
}

.fn.hidden{ display: none; }

.catheading.hidden{ display: none; }

#noresults{
	display: none;
	text-align: center;
	color: rgba(0,0,0,0.5);
	padding: 60px 0;
}
