/*
 * Gutenberg wrappers must not change the legacy pixel grid.
 * Only structural resets live here; the original design is in assets/legacy/styles.
 */
.wp-block-group,
.wp-block-group.has-background {
	margin: 0;
	padding: 0;
}

.wp-block-group > .wp-block-group__inner-container {
	display: contents;
}

.wp-block-group.wrap {
	margin-left: auto;
	margin-right: auto;
	padding: 0;
}

.wp-block-group.is-layout-flow > * + * {
	margin-block-start: 0;
}

#content.wp-block-group {
	overflow: hidden;
	padding: 30px 0 50px 0;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
}

.wp-block-table {
	margin: 0;
	overflow: visible;
}

.wp-block-table table {
	margin: 0;
}

/* Reference list: same rules as the old `table.decorate`, scoped to the block. */
.wp-block-table.decorate table {
	border-collapse: collapse;
	font: 12px/1.5 arial;
	color: #4d4d4d;
	width: 587px;
	background: url('../legacy/styles/img/table_bg.png') no-repeat;
}

.wp-block-table.decorate tr {
	border-bottom: 1px solid #dbdbdb;
}

.wp-block-table.decorate th,
.wp-block-table.decorate tr.th td {
	text-align: left;
	color: white;
	height: 36px;
	padding: 0;
	vertical-align: middle;
	font-weight: bold;
}

.wp-block-table.decorate td {
	padding: 10px;
	vertical-align: top;
}

.wp-block-table.decorate .number {
	padding-left: 15px;
	width: 45px;
}

.wp-block-table.decorate #second_row td {
	padding-top: 30px;
}

/* Contacts table: old cellpadding="5" without a class. */
.wp-block-table.ntc-table {
	width: 600px;
}

.wp-block-table.ntc-table td {
	padding: 5px;
	vertical-align: top;
}

.wp-block-table figcaption {
	font: 12px/1.5 arial;
	color: #838383;
}

/* Some old pages contain plain text with no paragraph margins. */
.ntc-plain {
	margin: 0;
}

/* Content pages: WordPress resets the first paragraph margin, while the old
   template kept the browser default (12px top). Do not zero it. */

/* Object cards: the legacy `clear:left` stacked them one per row because the
   year navigation is a float. A small wrapper restores the two-column grid. */
.objects_grid {
	clear: left;
	overflow: hidden;
}

.objects_grid #content article,
#content .objects_grid article {
	clear: none;
}

/* Old fancybox anchors around images. */
.main_content a.fancybox_img {
	display: inline-block;
}

/* Home: groups replace the old plain wrappers. */
#body #content > .wp-block-group.wrap {
	margin: auto;
	width: 960px;
}

/* Mail page is rendered inside an iframe. */
.ntc-mail-page {
	background: #fff;
}

.ntc-mail-page .message_box {
	font: 24px 'Times New Roman';
	padding: 20px;
}

/* Form errors keep the old red marker. */
#form_block .form .error {
	display: block;
	float: left;
	clear: left;
	color: #d72517;
	font: 12px Arial;
	margin: 5px 0;
}

#form_block .form .success {
	float: left;
	clear: left;
	color: #2e7d32;
	font: 12px Arial;
}

/* Admin preview placeholder */
.ntc-block-preview {
	min-height: 40px;
}
