/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
01. Fonts
02. Custom properties
03. Defaults
04. Layout
05. Header
06. Main content
07. Footer
08. Widgets
09. Columns
10. Cards
11. Alerts
12. Badges
13. Buttons
14. Icons


/*--------------------------------------------------------------
1. Fonts
--------------------------------------------------------------*/


/*--------------------------------------------------------------
2. Custom Properties
--------------------------------------------------------------*/

/** 
 * Typescale
 *  ---------------------------------------
 *   Rem         Px 
 *  ---------------------------------------
 *   0.5          8
 *   0.75        12
 *   0.875       14
 *   1           16
 *   1.125       18
 *   1.25        20
 *   1.5         24
 *   1.75        28
 *   2           32
 *   2.25        36
 *   2.75        44
 *   3           48   
 * */

:root {
	/* font-size */
	--ms-font-size-xxs: 0.5rem;
	--ms-font-size-xs: 0.75rem;
	--ms-font-size-sm: 0.875rem;
	--ms-font-size-base: 1rem;
	--ms-font-size-h5: 1.125rem;
	--ms-font-size-h4: 1.25rem;
	--ms-font-size-h3: 1.5rem;
	--ms-font-size-h2: 1.75rem;
	--ms-font-size-h1: 2.25rem;

	/* border-radius */
	--ms-border-radius-sm: .5rem;
	--ms-border-radius-md: 1rem;
	--ms-border-radius-lg: 2rem;

	/* content-padding */
	--ms-content-padding: 30px;

	/* shadows */
	--ms-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1),	0 1px 2px -1px rgb(0 0 0 / 0.1);
	--ms-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--ms-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),	0 4px 6px -4px rgb(0 0 0 / 0.1);
}
@media (min-width: 769px) {
	:root {
		/* font-size */
		--ms-font-size-base: 1.125rem;
		--ms-font-size-h5: 1.25rem;
		--ms-font-size-h4: 1.25rem;
		--ms-font-size-h3: 1.5rem;
		--ms-font-size-h2: 2rem;
		--ms-font-size-h1: 2.5rem;

		/* content-padding */
		--ms-content-padding: 40px;
	}
}
@media (min-width: 992px) {
	:root {
		/* font-size */
		--ms-font-size-xxs: 0.75rem;
		--ms-font-size-xs: 0.875rem;
		--ms-font-size-sm: 1rem;
		--ms-font-size-base: 1.25rem;
		--ms-font-size-h1: 3rem;
	}
}


/*--------------------------------------------------------------
3. Defaults
--------------------------------------------------------------*/

:root {
	font-size: 100%;
}

::selection {
	background: var(--primary-100);
}

body,
button,
input,
select,
textarea {
	font-family: 'Inter', sans-serif;
	font-size: var(--ms-font-size-base);
	line-height: 1.6;
}
p {
	margin-bottom: 1.5rem;
}
a,
button,
input {
	transition: none;
}

address {
	font-style: normal;
}

b,
strong {
	font-weight: 700;
}

blockquote {
	padding: 0 1rem;
	font-size: var(--ms-font-size-sm);
}

code,
kbd,
tt,
var {
	font-size: var(--ms-font-size-sm);
}

dt {
	font-weight: 700;
}
dd {
	margin: 0;
}

figcaption,
figcaption a {
	color: var(--neutral-400);
	font-size: var(--ms-font-size-xs);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 1rem;
}

h1 {
	font-size: var(--ms-font-size-h1);
	font-weight: 900;
}

h2 {
	font-size: var(--ms-font-size-h2);
	letter-spacing: -1px;
}

h3 {
	font-size: var(--ms-font-size-h3);
	letter-spacing: -1px;
}

h4 {
	font-size: var(--ms-font-size-h4);
}

h5 {
	font-size: var(--ms-font-size-h5);
}

h6 {
	font-size: var(--ms-font-size-base);
}

img,
.wp-block-image {
	border-radius: var(--ms-border-radius-md);
}
small {
	font-size: var(--ms-font-size-sm);
}
table {
	border-radius: var(--ms-border-radius-sm);	
	border-width: 0;
	font-size: var(--ms-font-size-sm);
	overflow: hidden;
}
tr {
	border-bottom: 1px solid var(--neutral-200);
	text-align: left;
}
th {
	border: none;
	border-bottom: 1px solid var(--neutral-300);
}
td {
	border: none;
}
th {
	background-color: var(--neutral-100);
	color: var(--neutral-600);
}

ul,
ol {
	margin: 0 0 1.5em 0;
}
ul {
	padding: 0 0 0 1em;
}
ol {
	padding: 0 0 0 1.2em;
}

/*--------------------------------------------------------------
4. Layout
--------------------------------------------------------------*/

/* Sidebar */
#right-sidebar {
	text-align: center;
}
@media (min-width: 769px) {
    #right-sidebar {
		text-align: left;
        width: 314px;
    }
    body:not(.no-sidebar) #primary {
        width: calc(100% - 314px);
    }
}
.sidebar .widget:last-child {
	margin-bottom: 2rem; 
}
@media (min-width: 1025px) { 
	#right-sidebar {
		align-self: flex-start;
		position: -webkit-sticky;
		position: sticky;
		right: 0;
		top: 3rem;
	}  
}
@media (max-width: 768px) {
    #right-sidebar {
  		order: 1;
    }
    .content-area {
      order: 2;
    }
}

/* Archive Control plugin: text wrapper on archives  */
@media (min-width: 769px) {
	.archive-control-area-inside {
		padding-left: 20px;
		padding-bottom: 20px;
	}
}


/*--------------------------------------------------------------
5. Header 
--------------------------------------------------------------*/

/* Top bar widget area*/
.top-bar .inside-top-bar {
	padding: 0;
}
.top-bar .inside-top-bar .widget {
	margin: 0;
	text-align: center;
	width: 100%;
}
.top-bar .inside-top-bar .widget > p {
	font-size: var(--ms-font-size-sm);
	margin-bottom: 0;
}

/* Branding */
.navigation-branding .main-title {
	font-size: var(--ms-font-size-h2);
	font-weight: 900;
	letter-spacing: -1px;
	line-height: 1.2em;
	word-wrap: break-word;
}
.navigation-branding .main-title span {
	color: var(--primary-400);
	font-size: 2em;
	line-height: 1rem;
}
.site-description {
	font-size: var(--ms-font-size-sm);
}

/* Main nav */
.main-navigation {
	box-shadow: var(--ms-shadow-md);
	position: relative;
	padding: .5rem 0;	
}
.main-navigation a {
	font-size: 1rem;
}
.main-navigation .main-nav ul li a {
	line-height: 60px;
}
.main-navigation .menu-bar-items {
	font-size: var(--ms-font-size-sm);
}
.main-navigation .main-nav ul ul li a {
	font-size: var(--ms-font-size-sm);
}
.menu-toggle {
	font-size: 1rem;
}
.menu-item-has-children .dropdown-menu-toggle {
	display: none;
}
.main-navigation.sub-menu-right ul ul,
.main-navigation.sub-menu-left ul ul {
	border-radius: var(--ms-border-radius-md);
	box-shadow: var(--ms-shadow-md);
}
.main-navigation .sub-menu li, 
.main-navigation .sub-menu li a {
	border-radius: inherit;
}

/* Highlights menu */
.ms-highlights-navigation {
	background-color: #f1feff;
}
.ms-inside-highlights-navigation {
	padding: 1.5em var(--ms-content-padding);
}
@media (max-width: 1200px) {
	.ms-inside-highlights-navigation {
		padding-right: 0;
	}
}
@media (max-width: 1200px) {
	.ms-inside-highlights-navigation {
		padding-right: 0;
	}
}
.ms-highlights-menu {
	display: flex;
	flex-wrap: nowrap;
	gap: .75rem;
	list-style: none;
	margin: 0;
	-ms-overflow-style: none; /* IE, Edge */
	padding: 0;
	overflow-x: scroll;
	scrollbar-width: none; /* Firefox */
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}
.ms-highlights-menu::-webkit-scrollbar {
	display: none;
}
.ms-highlights-menu > li {
	scroll-snap-align: start;
	white-space: nowrap;
}
@media (min-width: 1400px) {
	.ms-highlights-menu {
		justify-content: center;
		overflow-x: visible;
	}
}

/* Page hero */
.ms-page-hero {
	background-image: linear-gradient(to right, #0f2027, #203a43, #2c5364);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	clip-path: ellipse(150% 100% at top left);
	padding-top: 200px;
	padding-bottom: 200px;
	position: relative;
	text-align: center;
}
.ms-page-hero:before {
	background: radial-gradient(circle, transparent 50%, black 100%);
	content: "";
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: -1;
}

/*--------------------------------------------------------------
6. Main Content
--------------------------------------------------------------*/

/* Archives */
.archive .page-header {
	margin-bottom: 1.5em;
}

/* Subtitle */
.ms-subtitle {
	color: var(--neutral-400);
	font-size: var(--ms-font-size-h3);
	letter-spacing: -1px;
}
.entry-header > p:last-of-type {
	margin-bottom: 0;
}

/* Meta */
.entry-meta {
	font-size: var(--ms-font-size-sm);
}

/* Links */
.entry-content a {
	border-bottom: 2px solid;
}
.entry-content a:hover, 
.entry-content a:active {
	background-color: var(--primary-50);
}

.entry-content h1 a,
.entry-content h2 a,
.entry-content h3 a,
.entry-content h4 a,
.entry-content h5 a,
.entry-content h6 a,
.entry-content .ms-card a,
.entry-content .wp-block-button:not(.is-style-outline) a {
	border-bottom: 0;
}
.entry-content .ms-card a:hover {
	background: transparent;
}

/* Captions */
.wp-block-image figcaption {
	font-size: var(--ms-font-size-xs);
	text-align: center;
}
.wp-caption .wp-caption-text {
	font-size: var(--ms-font-size-xs);
}

/* Block styles */
.is-style-lead {
	color: var(--neutral-400);
	font-size: 110%;
}
.is-style-list-unstyled {
	list-style: none;
	padding: 0;
}


/*--------------------------------------------------------------
7. Footer
--------------------------------------------------------------*/

/* Related content widgets */
.ms-related-content-widgets-container {
	padding: var(--ms-content-padding);
	margin-left: auto;
	margin-right: auto;
	max-width: 1400px; 	
}
.ms-related-content-widgets {
	color: #444;
}
.ms-inside-related-content-widgets {
	display: flex;
}
.ms-inside-related-content-widgets > div {
	flex: 1 1 0;
}
/*
.site-footer .ms-related-content-widgets .inner-padding {
	padding: 0 0 0 40px;
}
.site-footer .ms-related-content-widgets .ms-inside-related-content-widgets {
	margin-left: -40px;
}
*/
.ms-related-content-widgets .widget :last-child {
	margin-bottom: 0;
}

/* Breadcrumbs */
.ms-breadcrumbs,
.ms-breadcrumbs a {
	background-color: var(--neutral-600);
	color: #fff;
}
.ms-breadcrumbs a:after{
	color: #ccc;
	content: "/";
	padding: 0 1em;
}
.ms-breadcrumbs-container {
	padding: 20px var(--ms-content-padding);
}


/* Copyright bar */
.site-info {
	font-size: var(--ms-font-size-sm);
}
.copyright-bar {
	display: flex;
	flex-basis: 100%; 
	flex-wrap: wrap;
	row-gap: .5rem;
}
.copyright-bar > div {
		display: flex;
		flex-basis: 100%; 
	}
@media (min-width: 769px) {
	.copyright-bar > div {
		flex-basis: 50%; 
	}
	.copyright-bar > div:first-child {
		justify-content: flex-end;
		order: 2;
	}
	.copyright-bar > div:last-child {
		justify-content: flex-start;
		order: 1;
	}
}

/* Horizontal rule */
.inside-article > .wp-block-separator {
	margin: 2rem 0 !important;
}
.wp-block-separator.is-style-thin {
	border: 0;
}

/* Homepage */
[role="tabpanel"] {
	padding: 1em;
}
.list-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 10px;
}
.list-benefits li>b {
	display: block;
}

/* Map on attractions-posts */
.ms-map-static {
	border-radius: var(--ms-border-radius-md);
}

/*--------------------------------------------------------------
8. Widgets
--------------------------------------------------------------*/

.widget-title {
	margin-bottom: 1rem;
	font-size: var(--ms-font-size-h5);
}

.widget ol,
.widget ul {
	list-style: none;
	padding: 0;
}
.widget ul li {
	margin-bottom: 0;
}


/*--------------------------------------------------------------
9. Columns
--------------------------------------------------------------*/
.ms-columns-container {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch
}

.ms-columns {
	box-sizing: border-box;
}
.ms-columns {
	margin-bottom: 20px;
	padding-left: 20px;
}
.ms-columns .inside-article {
	height: 100%;
	box-sizing: border-box;
}
.ms-columns.ms-grid-20 {
	width: 20%;
}
.ms-columns.ms-grid-25 {
	width: 25%;
}
.ms-columns.ms-grid-33 {
	width: 33.3333%;
}
.ms-columns.ms-grid-50 {
	width: 50%;
}
.ms-columns.ms-grid-60 {
	width: 60%;
}
.ms-columns.ms-grid-66 {
	width: 66.66667%;
}
.ms-columns.ms-grid-100 {
	width: 100%;
}
@media (max-width:767px) {
	.ms-columns-activated .ms-columns-container {
		margin-left: 0;
		margin-right: 0;
	}
	.ms-columns-container .ms-columns,
	.ms-columns-container>* {
		padding-left: 0;
	}
	.ms-columns-container .page-header {
		margin-left: 0;
	}
	.ms-columns.ms-mobile-grid-100 {
		width: 100%;
	}
	.ms-columns-container>.paging-navigation {
		margin-left: 0;
	}
}
@media (min-width:768px) {
	.ms-columns-container {
		margin-left: -20px;
	}
}
@media (min-width:768px) and (max-width:1024px) {
	.ms-columns.ms-tablet-grid-50 {
		width: 50%;
	}
	.ms-columns-container {
		margin-left: -20px;
	}
}

/*--------------------------------------------------------------
10. Cards
--------------------------------------------------------------*/
.ms-card > div {
	border-radius: var(--ms-border-radius-md);
	box-shadow: var(--ms-shadow);
	position: relative;
}
.ms-card > div:hover,
.ms-card > div:focus {
	box-shadow: var(--ms-shadow-lg);
}
.ms-card a:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
}
/* Make sure images keep same aspect ratio: https://ishadeed.com/article/css-aspect-ratio/ */
.ms-card .post-image {
	margin-bottom: 0 !important;
	position: relative;
	--aspect-ratio: 16/9;
	padding-top: calc((1 / (var(--aspect-ratio))) * 100%);
}
@supports (aspect-ratio: 1) {
	.ms-card .post-image {
		aspect-ratio: var(--aspect-ratio);
    	padding-top: initial;
  	}
}
.ms-card img {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-card .entry-header {
	padding: 1rem 1.5rem;
}
.ms-card .entry-title {
	font-size: var(--ms-font-size-h2);
}
.ms-card .entry-summary {
	padding: 0 1.5rem 1.5rem;
}
.ms-card .entry-summary > p,
.ms-card .entry-summary > span {
	color: var(--neutral-400);
	font-size: var(--ms-font-size-sm);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical; 
	overflow: hidden;
}
.ms-card .entry-summary:not(:first-child) {
	margin-top: 0;
}
@media ( min-width:769px ) {
	.ms-card .entry-title {
		font-size: var(--ms-font-size-h4);
	}
}
@media (min-width:1025px) {
	.ms-card .entry-title {
		font-size: var(--ms-font-size-h5);
	}
}


/*--------------------------------------------------------------
11. Alerts
--------------------------------------------------------------*/
[class^="is-style-alert-"] {  
	border-radius: var(--ms-border-radius-md);
	padding: 1rem;
}
[class^="is-style-alert-"] a {
	font-weight: 700;
}
[class^="is-style-alert-"] a:hover,
[class^="is-style-alert-"] a:active {
	background-color: transparent;
	color: currentColor;
}
.is-style-alert-blue {
	background-color: #ebf8ff;
	color: #2b6cb0;
}
.is-style-alert-blue a {
	color: #2b6cb0;
}
.is-style-alert-yellow {
	background-color: #fffaf0;
	color: #c05621;
}
.is-style-alert-yellow a { 
	color: #c05621;
}
.is-style-alert-green {
	background-color: #f0fff4;
	color: #2f855a;
}
.is-style-alert-green a {
	color: #2f855a;
}
.is-style-alert-red {
	background-color: #fff5f5;
	color: #c53030;
}
.is-style-alert-red a {
	color: #c53030;
}

/*--------------------------------------------------------------
12. Badges
--------------------------------------------------------------*/
.ms-badge {
	background-color: var(--neutral-100);
	border-radius: 9999px;
	color: var(--neutral-500);
	display: inline-block;
	font-size: var(--ms-font-size-xs);
	font-weight: 700;
	line-height: 1;
	margin-right: .5rem;
	padding: .25rem .5rem;
	text-transform: lowercase;
}
.ms-badge-tag:before{
	content: "#";
	font-weight: normal;
}

/*--------------------------------------------------------------
13. Buttons
--------------------------------------------------------------*/


/*
Use bootstrap css
WP common block markup/GP buttons
Versions: 
	colors: same as alerts, neutral, primary, accent
	default, outline, round, block,
	small, large, extra large
	grid for sizing?

	TARGET:
	.button,
	.wp-block-button .wp-block-button__link {
		padding: 10px 20px;
		display: inline-block
	}
	
	.wp-block-button .wp-block-button__link {
		font-size: inherit;
		line-height: inherit
	}
*/
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
	background-color: var(--primary-500);
	/*
	background: rgb(44, 177, 188);
	background: linear-gradient(90deg, rgba(44, 177, 188, 1) 0%, rgba(57, 197, 209, 1) 50%);
	*/
	background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-400) 50%);
	border-radius: 9999px;
	color: white;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus,
a.wp-block-button__link:not(.has-background):active,
a.wp-block-button__link:not(.has-background):focus,
a.wp-block-button__link:not(.has-background):hover {
	color: white;
	background-color: var(--primary-700);
}

/* Font sizes (override WP font sizes): https: //github.com/WordPress/gutenberg/issues/38252 */
.has-custom-font-size.has-extra-small-font-size {
	font-size: var(--ms-font-size-xs) !important;
}
.has-custom-font-size.has-small-font-size {
	font-size: var(--ms-font-size-sm) !important;
}
.has-custom-font-size.has-large-font-size {
	font-size: var(--ms-font-size-h5) !important;
}
.has-custom-font-size.has-extra-large-font-size {
	font-size: var(--ms-font-size-h4) !important;
}


.button.button-highlight,
.button.button-highlight:visited,
.button.button-highlight:focus {
	background: var(--primary-50);
	background: linear-gradient(90deg, var(--primary-50) 0%, #cffaff 100%);
	border: 1px solid var(--primary-200);
	color: var(--primary-700);
}
.button.button-highlight:hover,
.button.button-highlight:active {
	background: var(--primary-100);
	box-shadow: var(--ms-shadow-md);
	color: var(--primary-700);
}
.button-uppercase {
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.button-floating-wrapper {
	position: fixed;
	bottom: 30px;
	right: 30px;
}
.button-floating {
	box-shadow: var(--ms-shadow-lg);
	padding: 1.25rem;
	text-align: center;
	width: 100%;
}
.button-floating > span {
	background-color: var(--primary-50);
	border-radius: 9999px;
	color: var(--primary-500);
	margin-right: 1rem;
	padding: 5px 8px;
}


/*--------------------------------------------------------------
14. Icons
--------------------------------------------------------------*/
.ms-icon {
	width: 1em;
	height: 1em;
	fill: currentColor;
	position: relative;
	top: 0.125em;
}
.ms-icon-green, 
ul .ms-icon-check {
	color: green;
}
.ms-icon-red,
ul .ms-icon-xmark {
	color: red;
}
.ms-icon-yellow {
	color: gold;
}