/*
Theme Name: Kemble
Description: Port of the Kemble (Anglo-Saxon Charters) Drupal/Bartik look — original header banner, logo and two-level dropdown menu.
Version: 1.3
Author: Robinson College
Requires PHP: 7.4
*/

* { box-sizing: border-box; }
body {
	margin: 0;
	padding: 0;
	background: #fff;
	color: #222;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1.55;
}
a { color: #0071b3; }
a:hover { color: #018fe2; }
img { max-width: 100%; height: auto; }

.site-wrap { max-width: 960px; margin: 0 auto; }

/* ---- Header: original Bartik banner ---- */
.site-header {
	background: #fff;
}
.site-header .banner {
	position: relative;
	background-image: url('header.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 200px;
	display: flex;
	align-items: center;
	padding: 0 25px;
}
.site-branding { display: flex; align-items: center; gap: 18px; }
.site-branding img.site-logo { width: 49px; height: 76px; }
.site-title {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
}
.site-title a { color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.site-description {
	margin: 4px 0 0;
	color: #fff;
	font-size: 15px;
	font-style: italic;
	text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* ---- Main menu with dropdowns ---- */
.main-nav {
	background: #2d2d2d;
	font-family: "Lucida Grande", Tahoma, Helvetica, Arial, sans-serif;
	font-size: 14px;
}
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav > ul { display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 10px 14px;
	color: #eee;
	text-decoration: none;
	white-space: nowrap;
}
.main-nav li:hover > a, .main-nav a:focus { background: #0071b3; color: #fff; }
.main-nav li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	max-height: 70vh;
	overflow-y: auto;
	background: #3d3d3d;
	z-index: 100;
	box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: block; }
.main-nav li ul li ul { top: 0; left: 100%; }

/* ---- Content: left sidebar + main (as on the Drupal/Bartik site) ---- */
.content-area { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.site-sidebar {
	padding: 24px 20px 40px 25px;
	border-right: 1px solid #e5e7e8;
	font-family: "Lucida Grande", Tahoma, Helvetica, Arial, sans-serif;
	font-size: 13px;
}
.sidebar-block { margin-bottom: 28px; }
.sidebar-block h2 {
	margin: 0 0 8px;
	font-size: 15px;
	border-bottom: 1px solid #d3d7d9;
	padding-bottom: 4px;
}
.sidebar-block ul { margin: 0; padding-left: 18px; }
.sidebar-block li { margin-bottom: 6px; }
.sidebar-login label { display: block; font-weight: bold; margin-bottom: 2px; }
.sidebar-login input[type="text"],
.sidebar-login input[type="password"] { width: 100%; padding: 4px 6px; }
.sidebar-login button {
	background: #2d2d2d;
	color: #fff;
	border: 0;
	padding: 6px 14px;
	cursor: pointer;
}
.sidebar-login button:hover, .sidebar-login button:focus { background: #0071b3; }
.sidebar-login .login-links { list-style: none; padding: 0; }
.sidebar-login .g-recaptcha { transform: scale(0.62); transform-origin: 0 0; }
.sidebar-section-menu ul ul { padding-left: 14px; margin-top: 4px; }
.sidebar-section-menu .current-item > a { font-weight: bold; color: #222; text-decoration: none; }

/* Scrollable clamp for very long table cells (see tablepress_table_output filter) */
.tablepress .cell-clamp {
	max-height: 8em;
	overflow-y: auto;
	min-width: 320px;
	padding-right: 6px;
}

.site-main { padding: 24px 25px 40px; }
.site-main h1.page-title { font-size: 28px; margin-top: 0; }
.entry-content h2 { font-size: 22px; }
.entry-content table { border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 4px 8px; }

/* Bartik-era alignment classes used in migrated content */
.rteleft { text-align: left; }
.rtecenter { text-align: center; }
.rteright { text-align: right; }
.rteindent1 { margin-left: 40px; }
.rteindent2 { margin-left: 80px; }

/* ---- Footer ---- */
.site-footer {
	border-top: 1px solid #d3d7d9;
	padding: 18px 25px 30px;
	font-size: 13px;
	color: #68696b;
	font-family: "Lucida Grande", Tahoma, Helvetica, Arial, sans-serif;
}

@media (max-width: 700px) {
	.site-header .banner { min-height: 120px; }
	.main-nav > ul { flex-direction: column; }
	.main-nav li ul { position: static; box-shadow: none; }
	.content-area { grid-template-columns: 1fr; }
	.site-sidebar { order: 2; border-right: 0; border-top: 1px solid #e5e7e8; }
	.site-main { order: 1; }
}

/* ---- Account links (right-hand end of the main menu) ---- */
.main-nav li.account-link { margin-left: auto; }
