/* ============================================================
   M J Thacker & Co — site-wide design layer (loads after main.css)
   Readability: near-black text, normal weight.
   Brand accents: deep blue #1d4e8f, tip green #1da851, note amber.
   ============================================================ */

/* ---- 1) Readable text: darker + normal weight ---- */
body, input, select, textarea {
	color: #24292f;
	font-weight: 400;
}
#main p, #main li {
	color: #24292f;
}
#main strong, #main b {
	color: #101828;
}

/* ---- 2) Headings: near-black with blue accents, normal case ---- */
#main .inner h1 {
	color: #14233c;
}
#main .inner h2, #main .inner h3, #main .inner h4, #footer h2, #footer h3 {
	text-transform: none;
	letter-spacing: 0.01em;
	font-weight: 700;
}
#main .inner h2 {
	color: #16304f;
	font-size: 1.5em;
	margin: 0 0 0.8em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid #dce7f5;
}
#main .inner h3 {
	color: #1d4e8f;
	font-size: 1.15em;
	margin: 0 0 0.7em;
}
#footer h2 {
	color: #16304f;
	font-size: 1.25em;
}
/* homepage tiles keep their original uppercase overlay style */
#main .tiles h2 {
	font-size: 1.1em !important;
	text-transform: uppercase !important;
	letter-spacing: 0.35em !important;
}

/* tiles keep their white overlay text (must beat the rules above) */
#main .tiles h2, #main .tiles a, #main .tiles a h2 {
	color: #ffffff !important;
	border-bottom: none !important;
}

/* ---- 3) Links & buttons: brand blue ---- */
#main .inner a:not(.button),
#footer a:not(.button):not(.icon) {
	color: #1d4e8f;
	border-bottom-color: rgba(29, 78, 143, 0.35);
}
#main .inner a:not(.button):hover,
#footer a:not(.button):not(.icon):hover {
	color: #2a6cc4;
	border-bottom-color: rgba(42, 108, 196, 0.6);
}
.button.primary, input[type="submit"].primary {
	background-color: #1d4e8f !important;
	color: #ffffff !important;
}
.button.primary:hover, input[type="submit"].primary:hover {
	background-color: #163e72 !important;
}

/* ---- 4) Callout boxes (reusable) ---- */
.tldr, .callout-tip {
	background: #f2fcf5;
	border: 1px solid #bce4ce;
	border-left: 4px solid #1da851;
	border-radius: 6px;
	padding: 1.2em 1.5em;
	margin: 1.5em 0;
}
.tldr strong, .callout-tip strong {
	color: #178a44;
}
.note-box, .callout-note {
	background: #fff8e6;
	border: 1px solid #f0e0b0;
	border-left: 4px solid #e0a800;
	border-radius: 6px;
	padding: 1em 1.3em;
	margin: 1.5em 0;
	font-size: 0.9em;
}
.callout-info {
	background: #eef4fb;
	border: 1px solid #c9ddf2;
	border-left: 4px solid #1d4e8f;
	border-radius: 6px;
	padding: 1em 1.3em;
	margin: 1.5em 0;
}

/* ---- 5) Service-note intro lines -> blue accent panel ---- */
#main .service-note {
	background: #f3f7fc;
	border-left: 4px solid #1d4e8f;
	border-radius: 0 6px 6px 0;
	padding: 1em 1.3em;
	margin: 1.5em 0;
}
#main .service-note strong {
	color: #16304f;
}

/* ---- 6) FAQ sections ---- */
#main .faq h3 {
	color: #1d4e8f;
	margin-top: 1.3em;
	padding-left: 0.85em;
	border-left: 3px solid #1d4e8f;
}
#main .seo-panel h3 {
	color: #1d4e8f;
}

/* ---- 7) Tables: branded header row, zebra body ---- */
#main table thead th {
	background-color: #1d4e8f;
	color: #ffffff;
	border-bottom: none;
	padding: 0.6em 0.75em;
}
#main table tbody tr:nth-child(even) {
	background-color: #f4f7fb;
}
.guide-table th, .guide-table td {
	font-size: 0.9em;
}

/* ---- 8) Small touches ---- */
#main .inner ol > li::marker, #main .inner ul > li::marker {
	color: #1d4e8f;
	font-weight: 600;
}
.byline {
	color: #5b6472;
	font-size: 0.9em;
}
#main hr {
	border-bottom-color: #e3e8ef;
}
blockquote {
	border-left: 4px solid #1d4e8f;
	background: #f6f9fd;
	padding: 0.75em 1.25em;
	border-radius: 0 6px 6px 0;
}

/* ---- 9) Header consultation CTA (pinned to the right corner) ---- */
#header { position: relative !important; }
#header nav .header-cta {
	position: absolute;
	right: 1.5em;
	top: 50%;
	transform: translateY(-50%);
	list-style: none;
	margin: 0;
	padding: 0;
}
#header nav .header-cta a {
	background: #1d4e8f;
	color: #ffffff !important;
	border-radius: 4px;
	padding: 0.35em 1em;
	border-bottom: none;
	font-weight: 600;
	white-space: nowrap;
}
#header nav .header-cta a:hover {
	background: #163e72;
}
@media screen and (max-width: 980px) {
	#header nav .header-cta { display: none; }
}

/* ---- 9b) Homepage hero title: brand font, not bold ---- */
#main .inner h1.hero-title {
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 400 !important;
	font-size: 2.1em;
	letter-spacing: 0.01em;
	color: #14233c;
}

/* ---- 9c) Stats band ---- */
.stats-band {
	display: flex;
	flex-wrap: wrap;
	border-top: 1px solid #e3eaf4;
	border-bottom: 1px solid #e3eaf4;
	margin: 0 0 2.2em;
}
.stats-band .stat {
	flex: 1;
	min-width: 140px;
	text-align: center;
	padding: 1em 0.5em;
}
.stats-band .stat + .stat {
	border-left: 1px solid #e3eaf4;
}
.stats-band .num {
	display: block;
	font-size: 1.45em;
	font-weight: 700;
	color: #1d4e8f;
	line-height: 1.2;
}
.stats-band .lbl {
	display: block;
	font-size: 0.76em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
	margin-top: 2px;
}
@media screen and (max-width: 736px) {
	.stats-band .stat { min-width: 50%; }
	.stats-band .stat:nth-child(3) { border-left: none; border-top: 1px solid #e3eaf4; }
	.stats-band .stat:nth-child(4) { border-top: 1px solid #e3eaf4; }
}

/* ---- 13) Team profile cards (About page) ---- */
.team-member.with-photo {
	display: flex;
	gap: 1.6em;
	align-items: flex-start;
	margin-bottom: 1.8em;
}
.team-member .profile-photo {
	width: 160px;
	min-width: 160px;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(20, 35, 60, 0.15);
	display: block;
}
.team-member.with-photo h3 { margin-top: 0; }
@media screen and (max-width: 600px) {
	.team-member.with-photo { flex-direction: column; gap: 1em; }
	.team-member .profile-photo { width: 140px; min-width: 140px; }
}

/* ---- 10) Visible breadcrumbs ---- */
.breadcrumbs {
	font-size: 0.8em;
	margin: 0 0 1.4em;
	color: #8a93a2;
}
.breadcrumbs a {
	color: #1d4e8f;
	border-bottom: none;
}
.breadcrumbs span {
	color: #6b7280;
}

/* ---- 11) Updates subscription box ---- */
.subscribe-box {
	background: #eef4fb;
	border: 1px solid #c9ddf2;
	border-left: 4px solid #1d4e8f;
	border-radius: 6px;
	padding: 1.3em 1.5em;
	margin: 2em 0;
}
.subscribe-box h3 {
	margin: 0 0 0.4em;
	border: none;
	padding: 0;
}
.subscribe-box p {
	margin: 0 0 0.8em;
	font-size: 0.9em;
}
.subscribe-box form.sub-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.subscribe-box input[type="email"] {
	flex: 1;
	min-width: 220px;
	height: 2.75em;
	padding: 0 1em;
	border: 1px solid #c1cedd;
	border-radius: 4px;
	background: #fff;
}
.subscribe-box .sub-alt {
	font-size: 0.85em;
	margin: 0.8em 0 0;
	color: #5b6472;
}

/* ---- 12) Calculator shells (shared by tool pages) ---- */
.calc-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 1.5em 1.75em; margin-bottom: 1.5em; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.calc-card h3 { font-size: 1.05em; letter-spacing: 0.02em; text-transform: none; border-bottom: 1px solid #eee; padding-bottom: 0.6em; margin-bottom: 1em; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.field-grid label { font-size: 0.8em; font-weight: 700; display: block; margin-bottom: 5px; color: #333; }
.field-grid .hint { font-weight: 400; color: #999; }
.calc-card input[type="number"], .calc-card input[type="date"], .calc-card select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1em; background: #fff; }
.result-card { background: #f2fcf5; border: 1px solid #bce4ce; border-left: 4px solid #1da851; border-radius: 6px; padding: 1.2em 1.5em; margin: 1.5em 0; }
.result-card .data-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 0.9em; }
.result-card .data-row.tot { border-top: 1px solid #cde7d6; margin-top: 8px; padding-top: 8px; font-weight: 700; font-size: 1.05em; }
@media screen and (max-width: 736px) { .field-grid { grid-template-columns: 1fr; } }
