/* Fallback styles for HTML galleys with hardcoded /styles/fulltext.css references */

/* Base text styling */
body {
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	color: #1D3845 !important; /* BDCP Peacock */
	padding: 40px;
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Roboto', sans-serif;
	font-weight: 600;
	color: #1D3845 !important; /* BDCP Peacock */
	margin: 32px 0 16px;
}

h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 20px; line-height: 28px; }
h4 { font-size: 18px; line-height: 26px; }

/* Paragraphs */
p {
	color: #1D3845 !important; /* BDCP Peacock */
	margin: 0 0 16px;
}

/* Lists */
ul, ol {
	margin: 0 0 16px;
	padding-left: 24px;
}

li {
	color: #1D3845 !important; /* BDCP Peacock */
	margin-bottom: 8px;
}

/* Links */
a {
	color: #00A3A6; /* BDCP Aqua */
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover, a:focus {
	color: #007E80; /* BDCP Teal 1 */
}

/* Images - Force to 100% width */
img {
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
	display: block;
	margin: 0 0 24px 0;
}

/* Figures */
figure {
	max-width: 100% !important;
	margin: 24px 0;
}

figure img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

figcaption,
.caption {
	font-size: 14px;
	line-height: 20px;
	color: rgba(29, 56, 69, 0.7); /* Peacock 70% */
	margin-top: 8px;
}

.fig.panel h5.label,
.table-wrap.panel h5.label {
	margin-bottom: 0;
	margin-top: 0;
}

h5.label + .caption {
	margin-top: 0;
}

h5.label + .caption > p{
	font-size: 14px;
}

.caption > p {
	font-size: 14px;
}

/* Tables */
.table-wrap.panel {
	margin: 24px 0;
}

table {
	width: 100%;
	margin: 0 0 0;
	border-collapse: collapse;
	color: #1D3845;
}

table th, table td {
	padding: 12px;
	border: 1px solid rgba(29, 56, 69, 0.2);
	text-align: left;
	color: #1D3845 !important;
}

table th {
	font-weight: 600;
	background: rgba(29, 56, 69, 0.05);
}

/* References section */
.references,
section[id*="ref"],
div[id*="reference"],
.ref-list {
	margin-top: 40px;
	padding-top: 24px;
}

/* References list structure (div-based table layout) */
.ref-list.table {
	display: block;
	margin: 0;
	padding: 0;
}

.ref-list .row {
	display: flex;
	margin-bottom: 20px;
	gap: 4px;
}

.ref-list .ref-label.cell {
	flex-shrink: 0;
}

.ref-list .ref-label p {
	margin: 0;
	font-weight: 300;
	color: #1D3845 !important;
}

.ref-list .ref-label .label {
	color: #1D3845 !important;
	font-weight: 300;
}

.ref-list .ref-content.cell {
	flex: 1;
}

.ref-list .ref-content p.citation {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 300;
	color: #1D3845 !important;
}

.ref-list .ref-content p.citation:last-child {
	margin-bottom: 0;
	display: none;
}

/* Blockquotes */
blockquote {
	margin: 24px 0;
	padding: 16px 24px;
	border-left: 4px solid #00A3A6;
	background: rgba(0, 163, 166, 0.05);
	color: #1D3845 !important;
	font-style: italic;
}

#article-front hr {
	display: none
}

/* Responsive */
@media (max-width: 767px) {
	body {
		padding: 20px;
	}
}
