/* ------ basis css */
.page-row {
  display: flex;
  gap: var(--spacing-md);
}
.page-row > div {
	flex: 1;
}
.page-row ul {
	margin-left: var(--spacing-md);
}

/* Responsive page layout */
@media (max-width: 768px) {
	.page-row {
		flex-direction: column;
		gap: var(--spacing-sm, 1rem);
	}
	
	.page-row > div {
		flex: none;
		width: 100%;
	}
}

a:hover {
	color: var(--color-accent, #0284c7);
}

.button {
	display: inline-block;
	padding: 15px 30px;
	background-color: #1e3a8a;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	font-size: 1.1rem;
	transition: background-color 0.3s ease;
}

.button:hover {
	background-color: #0284c7;
}

.callout {
	border-left: 4px solid;
	padding: 1rem;
	border-radius: 0 0.375rem 0.375rem 0;
	margin: 1rem 0;
}

.callout[data-intent="info"] {
	border-left-color: #3b82f6;
	background-color: #eff6ff;
	color: #1e3a8a;
}

.callout[data-intent="warning"] {
	border-left-color: #f59e0b;
	background-color: #fffbeb;
	color: #92400e;
}

.callout[data-intent="error"] {
	border-left-color: #ef4444;
	background-color: #fef2f2;
	color: #991b1b;
}

.callout p {
	margin-bottom: 0.5rem;
}

.callout p:last-child {
	margin-bottom: 0;
}

.callout a {
	color: inherit;
	font-weight: 600;
}

.callout a:hover {
	opacity: 0.8;
}

/* ------ element accordion css */
/* Accordion Styles */
.accordion-item {
	margin-bottom: 0;
}

.accordion-header {
	width: 100%;
	text-align: left;
	padding: 15px 20px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-bottom: none;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.2s ease;
}

.accordion-header:hover {
	background: #e8e8e8;
}

.accordion-header:focus {
	outline: 2px solid #007cba;
	outline-offset: -2px;
}

.accordion-icon {
	transition: transform 0.3s ease;
	font-size: 1.2rem;
	font-weight: bold;
}

.accordion-content {
	display: none;
	padding: 20px;
	border: 1px solid #ddd;
	border-top: none;
	background: white;
	animation: slideDown 0.3s ease;
}

.accordion-content.show {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		max-height: 0;
		padding-top: 0;
		padding-bottom: 0;
	}
	to {
		opacity: 1;
		max-height: 1000px;
		padding-top: 20px;
		padding-bottom: 20px;
	}
}

/* Last accordion item styling */
.accordion-item:last-child .accordion-header {
	border-bottom: 1px solid #ddd;
}

.accordion-item:last-child .accordion-content {
	border-bottom: 1px solid #ddd;
}

/* ------ element hero css */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ------ element osm-box css */
.osm-box {
  height: 250px;
  width: 100%;
}

/* ------ layout css */
:root {
	--background-main: #ffffff;
	--background-secondary: #f5f9fa;
	--color-main: #000000;
	--color-secondary: #007178;
	--color-faded: #3e6f76;
	--max-width: 1200px;
	--header-height: 80px;
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	--border-radius: 6px;
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	--shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
	--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--transition: all 0.2s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: var(--background-main);
	color: var(--color-main);
	font-family: var(--font-family);
	line-height: 1.7;
	font-size: 16px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.header {
	background: var(--background-main);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-info-section {
	background: var(--background-secondary);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.85rem;
	/* color: var(--color-faded); */
}

.header-info-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-info-content p {
	margin: 0;
}

.header-content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
}

.logo-section {
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--color-main);
	letter-spacing: -0.02em;
}

.logo-section a {
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
	display: flex;
	gap: var(--spacing-xs);
}

nav li {
  position: relative;
}

/* Hide submenus by default */
nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  min-width: 200px;
}

nav ul ul ul {
  top: 0;
  left: 100%;
}

nav li:hover > ul {
  display: block;
}


/* Subnav specific styling */
nav ul ul a {
  border-top: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.9rem;
}

nav ul ul li.active > a {
  border-left: 3px solid var(--color-secondary);
  border-top: none;
  background: rgba(0, 0, 0, 0.02);
}

nav ul ul a:hover {
  border-top: none;
  background: rgba(0, 0, 0, 0.04);
  transform: none;
}

nav a {
	border-top: 3px solid transparent;
	display: block;
	padding: var(--spacing-sm) var(--spacing-md);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	white-space: nowrap;
	color: var(--color-main);
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

nav li.active > a {
	border-top: 3px solid var(--color-secondary);
	background: rgba(0, 0, 0, 0.02);
}

nav a:hover {
	border-top: 3px solid var(--color-secondary);
	background: rgba(0, 0, 0, 0.04);
}

.main-content {
	flex: 1;
	max-width: var(--max-width);
	margin: 0 auto;
	width: 100%;
	padding: var(--spacing-xl) var(--spacing-md);
	min-height: 60vh;
}

.content-wrapper {
	background: var(--background-main);
	border-radius: var(--border-radius);
}

.footer {
	background: var(--background-secondary);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-top: auto;
}

.footer-content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--spacing-sm);
	text-align: center;
	font-size: 0.9rem;
	color: var(--color-faded);
}

h1, h2, h3, h4, h5, h6 {
	margin-bottom: var(--spacing-sm);
	line-height: 1.3;
	color: var(--color-main);
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: var(--spacing-md);
}

h2 {
	font-size: 2rem;
	margin-bottom: var(--spacing-md);
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: var(--spacing-sm);
}

a {
	color: var(--color-main);
	transition: opacity 0.2s ease;
}

a:hover {
	opacity: 0.8;
}

.mobile-menu-button {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 1.5rem;
	height: 1.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 101;
}

.hamburger-line {
	width: 100%;
	height: 2px;
	background: var(--color-main);
	transition: var(--transition);
	transform-origin: center;
}

.mobile-menu-button.active .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
	opacity: 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-navigation {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: var(--background-main);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-navigation.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu-content {
	padding: 3rem 1rem 1rem;
	height: 100%;
	overflow-y: auto;
}

.mobile-navigation ul {
	flex-direction: column;
	gap: 0;
}

.mobile-navigation li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	position: relative;
}

.mobile-navigation > .mobile-menu-content > ul > li:last-child {
	border-bottom: none;
}

.mobile-navigation a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	border-top: none;
	border-radius: 0;
	font-size: 1.1rem;
}

.mobile-navigation a:hover,
.mobile-navigation li.active > a {
	border-top: none;
	background: rgba(0, 0, 0, 0.05);
}

.mobile-submenu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	margin-left: 0.5rem;
	color: var(--color-main);
	font-size: 1.2rem;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.mobile-submenu-toggle.active {
	transform: rotate(180deg);
}

.mobile-navigation li.has-submenu > a {
	padding-right: 0;
}

/* Submenus */
.mobile-navigation ul ul {
	display: none;
	background: rgba(0, 0, 0, 0.02);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 0;
	padding: 0;
	position: static;
	box-shadow: none;
	border-radius: 0;
	min-width: auto;
}

.mobile-navigation ul ul.show {
	display: block;
}

.mobile-navigation ul ul li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-navigation ul ul li:last-child {
	border-bottom: none;
}

.mobile-navigation ul ul a {
	padding: 0.75rem 0 0.75rem 1.5rem;
	font-size: 1rem;
	color: var(--color-faded, #666);
}

/* Third level submenus */
.mobile-navigation ul ul ul a {
	padding-left: 3rem;
	font-size: 0.9rem;
}

.mobile-navigation ul ul a:hover,
.mobile-navigation ul ul li.active > a {
	background: rgba(0, 0, 0, 0.03);
}

body.mobile-menu-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.header-content {
		padding: var(--spacing-sm);
		gap: var(--spacing-sm);
		min-height: auto;
	}
	
	.desktop-nav {
		display: none;
	}
	
	.mobile-menu-button {
		display: flex;
	}
	
	.mobile-navigation {
		display: block;
	}
	
	.main-content {
		padding: var(--spacing-sm);
	}
	
	.content-wrapper {
		padding: var(--spacing-sm);
	}
	
	.header-info-content {
		padding: var(--spacing-xs) var(--spacing-sm);
	}
	
	h1 {
		font-size: 1.75rem;
	}
	
	h2 {
		font-size: 1.5rem;
	}
	
	h3 {
		font-size: 1.25rem;
	}
	
	/* Reduce spacing variables for mobile */
	:root {
		--spacing-xs: 0.25rem;
		--spacing-sm: 0.75rem;
		--spacing-md: 1rem;
		--spacing-lg: 1.25rem;
		--spacing-xl: 1.5rem;
	}
}

.page-row {
	display: flex;
	gap: var(--spacing-md);
}

.content-wrapper .page-row {
	margin-bottom: var(--spacing-md);
}

.page-row > div {
	flex: 1;
}

.ref {
	margin-top: var(--spacing-sm);
}
.ref a {
	color: #ccc;
	text-decoration: none;
	font-size: 0.8rem;
}

.button {
	display: inline-block;
	padding: 12px 24px;
	background-color: var(--color-secondary);
	color: white;
	text-decoration: none;
	border-radius: var(--border-radius);
	font-weight: 600;
	font-size: 1rem;
	transition: var(--transition);
	box-shadow: var(--shadow);
	border: none;
	cursor: pointer;
}

.button:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-hover);
	opacity: 0.95;
	background-color: var(--color-secondary);
	color: white;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
}

th, td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

tr:nth-child(even) {
  background-color: color-mix(in srgb, #fff, var(--background-secondary));
}

th {
    background-color: var(--background-secondary);
    color: var(--color-secondary);
    font-weight: 600;
}

