/* .page-topic *******************************/

.page-topic {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 auto;
	margin-top: 40px;
	max-width: 1390px;
	position: relative;

	> .main {

		section {

			.header {
				border-bottom: 1px solid #ccc;
				display: flex;
				flex-direction: column;
				margin-bottom: 20px;
				margin-top: 40px;
				padding-bottom: 10px;

				h3 {
				}

				.nav {

					a, button {
						color: #222;
						text-decoration: none;

						&:hover {
							color: #222;
							text-decoration: underline;
						}
					}

					span {
						margin: 0 10px;
					}
				}
			}
		}
	}

	> .sidebar {
		padding: 0 20px;
	}
}

@media (min-width: 1000px) {

	.page-topic {
		flex-direction: row;

		> .main {
			width: 1069px;

			section {

				.header {
					align-items: flex-end;
					flex-direction: row;
					justify-content: space-between;

					h3 {
					}

					.nav {

						a, button {

							&:hover {
							}
						}

						span {
						}
					}
				}
			}
		}

		> .sidebar {
			border-left: 1px solid #ccc;
			padding: 0;
			padding-left: 20px;
			width: 321px;
		}
	}
}

/* .page-topic section.topics *******************************/

.page-topic section.topics {

	.topic {
		margin-bottom: 80px;
		padding: 0 20px;

		.header {
			border-bottom: 1px solid #ccc;
			display: flex;
			flex-direction: column;
			margin-bottom: 20px;
			padding-bottom: 10px;

			h3 {
				font-family: var(--font-headline);
				font-size: 2.2rem;
				font-weight: 800;
				line-height: 2.5rem;
			}

			.nav {

				a, button {
					color: #222;
					text-decoration: none;

					&:hover {
						color: #222;
						text-decoration: underline;
					}
				}

				span {
					margin: 0 10px;
				}
			}
		}

		.articles {
			display: flex;
			flex-direction: column;
			gap: 40px;
			margin-bottom: 40px;

			.article {
				width: 100%;
			}
		}
	}
}

@media (min-width: 1000px) {

  .page-topic section.topics {
		margin-bottom: 80px;

		.topic {

			.header {
				align-items: flex-end;
				flex-direction: row;
				justify-content: space-between;

				h3 {
				}

				.nav {

					a, button {

						&:hover {
						}
					}

					span {
					}
				}
			}

			.articles {
				flex-direction: row;

				.article {
					width: calc((100% - 80px) / 3);
				}
			}
		}
  }
}

/* .page-topic section.related *******************************/

.page-topic section.related {
	margin-bottom: 40px;
	padding: 0 20px;

	.articles {
		display: flex;
		flex-direction: column;
		gap: 40px;
		margin-bottom: 40px;

		.article {
		}
	}
}

@media (min-width: 1000px) {

	.page-topic section.related {
		padding: 0;

		.articles {
			flex-direction: row;

			.article {
				width: calc((100% - 80px) / 3);
			}
		}
	}
}

/* .page-topic section.widgets *******************************/

.page-topic section.widgets {
	margin-bottom: 80px;
}

@media (min-width: 1000px) {

	.page-topic section.widgets {

	}
}
