/*
Theme Name: eTypesetting
Description: Child theme of Twenty Twenty-Five recreating the look of the original 2011 eTypesetting site (dark header, red accent).
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: etypesetting
*/

/* ---------- Header ---------- */
.et-header {
	background: #1e1e1e url(assets/header.jpg) center bottom / cover no-repeat;
	border-bottom: 4px solid var(--wp--preset--color--accent);
}
.et-header .wp-block-navigation,
.et-header .wp-block-navigation a,
.et-header .wp-block-navigation-submenu__toggle { color: #eee; }
.et-header .wp-block-navigation a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-underline-offset: 6px; }
.et-header .wp-block-navigation__submenu-container { background: #2a2a2a !important; border: 0 !important; }
.et-header .wp-block-navigation__responsive-container.is-menu-open { background: #1e1e1e !important; color: #eee !important; }

.et-hero h1 { color: #eee; text-shadow: 0 3px 2px rgba(0,0,0,.35); }
.et-hero p  { color: #d5d5d5; text-shadow: 0 2px 1px rgba(0,0,0,.3); }

/* ---------- Footer ---------- */
.et-footer { background: #1e1e1e; color: #bbb; }
.et-footer a { color: #eee; }
.et-footer h3 { color: #fff; }

/* ---------- Content helpers carried over from the old theme ---------- */
.epub { color: var(--wp--preset--color--accent-green); font-weight: 600; }

ul.check { list-style: none; padding-left: 0; }
ul.check li { position: relative; padding-left: 1.8em; margin-bottom: .45em; }
ul.check li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	color: var(--wp--preset--color--accent); font-weight: 700;
}

ul.line { list-style: none; padding-left: 0; }
ul.line li { padding: .5em 0; border-bottom: 1px solid #e5e5e5; }

ul.zebra { list-style: none; padding-left: 0; }
ul.zebra li { padding: .6em .8em; }
ul.zebra li:nth-child(odd) { background: #f3f3f3; }

table.zebra { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; }
table.zebra td { padding: .7em 1em; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
table.zebra tr:nth-child(odd) td { background: #f6f6f6; }
table.zebra td:first-child { white-space: nowrap; font-weight: 700; width: 7em; color: var(--wp--preset--color--accent); }

.box-hint {
	background: #fff6f3; border-left: 4px solid var(--wp--preset--color--accent);
	padding: .8em 1em; margin: 1em 0;
}

ul.flags {
	list-style: none; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5em 1em;
}
ul.flags li { display: flex; align-items: center; gap: .5em; }
ul.flags img { width: 24px; height: auto; }

.grid-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5em; margin: 1.5em 0; }
.grid-box > div { display: flow-root; background: #f6f6f6; padding: 1em; border-radius: 4px; height: 100%; box-sizing: border-box; }
.align-left { float: left; margin: 0 1em .5em 0; }
.grid-box .align-left { float: none; display: block; margin: 0 0 .75em; }
.wp-block-post-content img.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-block-post-content img.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.wp-block-post-content::after { content: ""; display: table; clear: both; }
.bfc-o { overflow: hidden; }
.remove-margin { margin-top: 0; }

.et-service img { float: left; margin-right: 1em; }

.et-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1.25em; }
.et-samples br { display: none; }
.et-samples img { width: 100%; height: auto; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.18); border-radius: 6px; }

@media (max-width: 600px) {
	.alignright, .align-left { float: none; display: block; margin: 0 auto 1em; }
	table.zebra td:first-child { width: auto; }
}
