:root {
	--text-color: #454545;
	--background-color: #fefefe;
	--heading-color: #ca2222;

	--header-background: #fff;
	--header-color: #333;
	--header-border: #777;
	--logo-primary: #e2202c;
	--logo-secondary: #eee;

	--table-heading-background: #9be;
	--table-heading-color: var(--text-color);
	--table-data-background: #f0f0ff;
	--table-data-background-even: #f8f8ff;
}

html {
	overflow-y: scroll;
}

body {
	margin: 0;
	padding: 0;
	color: var(--text-color);
	background: var(--background-color);
	display: grid;
	grid-template-areas:
		"header"
		"main"
		"footer";
	grid-template-rows: auto 1fr auto;
	min-height: 100dvh;
	font-family: "Segoe UI", "Helvetica Neue", "Helvetica", Arial, sans-serif;
	font-size: 16px;
}

body>header {
	grid-area: header;
	position: sticky;
	top: 0;
	background: var(--header-background);
	color: var(--header-color);
	font-size: 24px;
	border-bottom: 1px solid var(--header-border);
}

body>header>div {
	display: flex;
	margin: 0 auto;
	padding: 0 16px;
	max-width: 800px;
}

body>header>div>div:first-child {
	flex: 1;
}

body>header #home {
	padding: 2px 4px;
	margin: 4px 0;
}

body>header #home .logo-poradna {
	color: var(--logo-primary);
	/* text-decoration-color: #fbb; */
}

body>header #home .logo-net {
	/* color: #333; */
	color: var(--logo-secondary);
	/* text-decoration-color: #bbb; */
}

body>header .logo-separator {
	color: var(--header-border);
}

body>header #user {
	padding: 0 4px;
	margin: 4px 0;
}

body>header #user img {
	outline: 1px solid var(--header-border);
}


body>header a {
	display: inline-block;
	text-decoration: none;
	color: var(--logo-secondary);
}

body>header a:hover {
	text-decoration: none;
}

body>header a:hover span {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

body>header img,
body>header svg {
	color: var(--logo-secondary);
	vertical-align: middle;
}

body>main {
	grid-area: main;
	overflow: auto;

	line-height: 1.4;
}

body>main>div {
	padding: 8px 16px;
}

body>footer {
	grid-area: footer;
	background: #f8f8f8;
	color: #333;
	border-top: 1px solid #ddd;
	font-size: 14px;
}

body>footer>div {
	padding: 8px 16px;
	text-align: center;
}

body>*>div {
	margin: 0 auto;
	max-width: 800px;
}

h1,
h2 {
	color: var(--heading-color);
	font-weight: normal;
}

dt {
	margin: 4px;
}

dd {
	margin: 4px 4px 16px 4px;
}

dt>b {
	font-weight: normal;
	display: inline-block;
	padding: 0px 8px;
	border-radius: 4px;
	vertical-align: middle;

	color: #ffffff;
	background: #185;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 0px 0px, rgba(0, 0, 0, 0.2) 0px -1px 0px 0px inset;
}

a {
	/* text-decoration: none; */
}

a:hover {
	text-decoration: underline;
}

a[tabindex="-1"] {
	color: var(--text-color);
	text-decoration: none;
}

a[tabindex="-1"]:hover {
	text-decoration: underline;
}

input[type=submit].primary {
	border: 0;
	color: #ffffff;
	background: #185;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 0px 0px, rgba(0, 0, 0, 0.2) 0px -1px 0px 0px inset;
}

input[type=submit].primary:hover {
	background: #2a6;
}

input[type=submit] {
	display: inline-block;
	outline: 0;
	cursor: pointer;
	text-align: center;
	min-height: 36px;
	min-width: 36px;
	padding: 7px 16px;
	margin: 4px;
	border-radius: 4px;
	font-size: 14px;

	border: 1px solid #babfc3;
	color: #202223;
	background: #ffffff;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 0px 0px;
}

input[type=submit]:hover {
	background: #f6f6f7;
	outline: 1px solid transparent;
}


input:not([type]),
input[type=password] {
	display: inline-block;
	font-size: 14px;
	padding: 0 16px 0 12px;
	line-height: 30px;
	height: 32px;
	border: 1px solid #dddbda;
	border-radius: 4px;
	background-color: #fff;
	color: rgb(8, 7, 7);
	transition: border .1s linear, background-color .1s linear;
	outline: none;
}

input:not([type]):focus,
input[type=password]:focus {
	border-color: #185;
	box-shadow: #2a6 0px 0px 3px 0px;
}

ol.table {
	border: 1px solid var(--table-heading-background);
	display: grid;
	grid-template-areas:
		"title category replies last-date"
		"title author   views   last-author";
	grid-auto-flow: dense;

	list-style: none;
	padding: 0;
}

ol.table>li {
	display: contents;
	word-break: break-all;
}

ol.table>li>* {
	padding: 0 3px;
	background-color: var(--table-data-background);
}

ol.table>li:nth-child(even)>* {
	background-color: var(--table-data-background-even);
}

ol.table>li>.title {
	display: grid;
	align-items: center;
	justify-items: left;
	grid-area: title;
	grid-row: span 2;
	font-weight: normal;
}

ol.table>li>.author {
	grid-area: author;
	grid-row: span 1;
	text-align: center;
}

ol.table>li>.category {
	grid-area: category;
	grid-row: span 1;
	text-align: center;
}

ol.table>li>.replies {
	grid-area: replies;
	grid-row: span 1;
	text-align: center;
}

ol.table>li>.views {
	grid-area: views;
	grid-row: span 1;
	text-align: center;
}

ol.table>li>.last-date {
	grid-area: last-date;
	grid-row: span 1;
	text-align: center;
}

ol.table>li>.last-author {
	grid-area: last-author;
	grid-row: span 1;
	text-align: center;
}

ol.table>li[value="0"]>* {
	background-color: var(--table-heading-background);
	color: var(--table-heading-color);
	font-weight: bold;
}

/* Single rule handles all heading levels: */
[id]>a[href^="#"] {
	position: relative;
	visibility: hidden;
	text-decoration: none;
	color: inherit;
}

/* Reveal anchor icon when heading is hovered or focused */
[id]:hover>a[href^="#"],
[id]:focus-within>a[href^="#"] {
	visibility: visible;
}

[id]>a[href^="#"]>svg {
	position: absolute;
	opacity: 0.5;
	left: -20px;
	padding-right: 4px;
	padding-top: 2px;
	height: 100%;
	display: inline-block;
	vertical-align: bottom;
	fill: currentColor;
}

#container {
	min-height: 400px;
}
