/*
Theme Name: Fax Authority
Theme URI: https://faxauthority.com/
Author: Fax Authority
Description: A conventional, portable theme preserving the original Fax Authority presentation.
Version: 0.3.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fax-authority
*/

:root {
	--fa-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
	--fa-ink: #444;
	--fa-heading: #21252f;
	--fa-muted: #888;
	--fa-blue: #007acc;
	--fa-brand-blue: #003584;
	--fa-green: #4ea955;
	--fa-rule: #dee2e6;
	--fa-paper: #fff;
	--fa-shell: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body {
	margin: 0;
	background: var(--fa-paper);
	color: var(--fa-ink);
	font-family: var(--fa-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
a { color: var(--fa-blue); text-decoration: none; }
a:hover, a:focus { color: #005b99; text-decoration: underline; }
:focus-visible { outline: 3px solid #e3a91d; outline-offset: 3px; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5rem;
	color: var(--fa-heading);
	font-family: var(--fa-font);
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.2;
}
h1 { font-size: min(2.5rem, calc(1.375rem + 1.5vw)); }
h2 { font-size: min(2rem, calc(1.325rem + 0.9vw)); }
h3 { font-size: min(1.75rem, calc(1.3rem + 0.6vw)); }
h4 { font-size: min(1.5rem, calc(1.275rem + 0.3vw)); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p, ul, ol, dl, blockquote, pre, table { margin: 0 0 1rem; }
ul, ol { padding-left: 2rem; }
ul ul, ul ol, ol ul, ol ol { margin-bottom: 0; }
li + li { margin-top: 0; }
blockquote { padding-left: 1rem; border-left: 3px solid var(--fa-rule); }
hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--fa-rule); }
pre { max-width: 100%; overflow: auto; }
figure { margin: 0 0 1rem; }
figcaption { margin-top: 0.5rem; color: #666; font-size: 0.8rem; line-height: 1.5; }

.fa-container { width: 100%; max-width: var(--fa-shell); margin-inline: auto; padding-inline: 12px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}
.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.65rem 0.9rem;
	clip: auto;
	background: #fff;
	white-space: normal;
}

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid var(--fa-rule); background: #fff; }
.site-identity { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.site-brand {
	display: inline-block;
	flex: 0 0 auto;
	padding-block: 5px;
	color: var(--fa-brand-blue);
	font-family: Helvetica, sans-serif;
	font-size: 1.6rem;
	font-style: italic;
	font-weight: 700;
	line-height: 1.7;
	text-decoration: none;
}
.site-brand:hover, .site-brand:focus { color: var(--fa-brand-blue); text-decoration: none; }
.site-brand__authority { color: var(--fa-green); }
.primary-navigation { min-width: 0; margin-left: auto; }
.primary-navigation .menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.primary-navigation .menu-item { position: relative; margin: 0; }
.primary-navigation a { display: block; padding: 8px; font-size: 1.1rem; font-weight: 300; line-height: 1.7; white-space: nowrap; }
.primary-navigation .menu-item-has-children > a::after {
	display: inline-block;
	margin-left: 0.45em;
	vertical-align: 0.15em;
	border-top: 0.3em solid;
	border-right: 0.3em solid transparent;
	border-left: 0.3em solid transparent;
	content: "";
}
.primary-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 110;
	display: none;
	width: max-content;
	min-width: 14rem;
	max-width: min(22rem, calc(100vw - 24px));
	margin: 0;
	padding: 0.5rem 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	list-style: none;
}
.primary-navigation .sub-menu a { padding: 0.3rem 1rem; font-size: 1rem; line-height: 1.5; white-space: normal; }
.primary-navigation .sub-menu a:hover, .primary-navigation .sub-menu a:focus { background: #f5f5f5; }
.primary-navigation .menu:not(.navigation-enhanced) .menu-item:hover > .sub-menu,
.primary-navigation .menu:not(.navigation-enhanced) .menu-item:focus-within > .sub-menu,
.primary-navigation .menu-item.submenu-open > .sub-menu { display: block; }
.primary-navigation .menu > .menu-item:nth-last-child(-n + 2) > .sub-menu { right: 0; left: auto; }

.site-main { padding-block: 104px 2rem; }
body.home .site-main { padding-top: 112px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.content-layout > * { min-width: 0; padding-inline: 12px; }
.entry-header { margin-bottom: 0.5rem; }
.entry-title { margin-bottom: 0.5rem; }
.entry-meta { margin: 0; color: var(--fa-muted); font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.entry-kicker { margin-bottom: 0.4rem; color: var(--fa-muted); font-size: 0.8rem; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 0 1rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .fa-media:not(.alignleft):not(.alignright) { display: block; margin-inline: auto; }
.fa-figure img { display: block; margin-inline: auto; }
.fa-figure { padding: 0.5rem; border: 1px solid #ddd; background: #fff; }
.fa-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.fa-gallery .fa-figure { margin: 0; }
body.home .entry-content .alignleft {
	display: inline;
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: middle;
}

.sidebar { position: static; font-size: 1rem; line-height: 1.7; }
body.home .sidebar { margin-top: -8px; }
.sidebar-section { margin-bottom: 1rem; }
.sidebar-title, .footer-heading { margin: 0 0 0.5rem; font-size: 1.25rem; line-height: 1.2; }
.sidebar-list, .footer-links { margin: 0; padding: 0; list-style: none; }
.sidebar-list li, .footer-links li { margin: 0; }
.sidebar-list a, .footer-links a { overflow-wrap: anywhere; }
.sidebar-search { margin-top: 1.5rem; }

.fa-disclosure { margin: 1rem 0; border: 1px solid #ddd; border-radius: 3px; }
.fa-disclosure > summary { padding: 0.55rem 0.75rem; background: #f5f5f5; color: var(--fa-blue); cursor: pointer; font-weight: 400; }
.fa-disclosure__content { padding: 0.75rem 0.75rem 0; }
.fa-faq { margin: 1rem 0; }
.fa-faq__item { margin: 0 0 1.5rem; }
.fa-faq__item h3 { font-size: 1.25rem; }
.fa-faq__item p:last-child { margin-bottom: 0; }
.fa-embed { padding: 0.75rem 1rem; border-left: 3px solid #ddd; background: #f8f9fa; }
.fa-rating { display: inline-flex; align-items: baseline; gap: 0.3rem; white-space: nowrap; }
.fa-rating__stars { color: #c47f00; font-size: 1rem; }
.fa-rating__value { color: #777; font-size: 0.8rem; }
.fa-table-scroll { max-width: 100%; margin: 1rem 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: Helvetica, Arial, sans-serif; font-size: 0.9rem; line-height: 1.7; }
caption { padding: 0.5rem 0; color: #777; text-align: left; font-size: 0.8rem; }
th, td { min-width: 7.5rem; padding: 0.5rem; border-bottom: 1px solid #eee; vertical-align: top; }
th { color: var(--fa-heading); font-weight: 700; text-align: left; }
tbody tr:nth-child(odd) { background: #f0f0f0; }
.comparison-table { min-width: 625px; }
.comparison-table-sub-title-row { background: #444 !important; color: #f0f0f0; font-variant: small-caps; }
.fa-migration-note, .fa-contact-boundary, .fa-editorial-notice {
	margin: 1rem 0;
	padding: 0.65rem 0.8rem;
	border-left: 3px solid #b78316;
	background: #faf8f1;
	color: #665d48;
	font-size: 0.8rem;
	line-height: 1.5;
}
.fa-historical-offer { display: inline-block; color: #665d48; font-size: 0.8rem; line-height: 1.4; }
.archive-title, .search-title { margin-bottom: 1rem; }
.post-summary { margin-bottom: 2rem; }
.post-summary .entry-title { font-size: min(2rem, calc(1.325rem + 0.9vw)); }
.post-summary .entry-meta { margin-bottom: 0.75rem; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.page-numbers, .nav-links a { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid #ddd; border-radius: 3px; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.page-links a, .page-links .post-page-numbers { padding: 0.35rem 0.5rem; }

.site-footer { border-top: 1px solid var(--fa-rule); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 24px; padding-block: 1.5rem; }
.footer-brand { padding: 0; }
.footer-bottom { padding-block: 1rem; font-size: 1rem; }
.search-form { display: flex; gap: 0.4rem; }
.search-form label { min-width: 0; flex: 1; }
.search-field { width: 100%; min-width: 0; padding: 0.4rem 0.6rem; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
.search-submit, .fa-contact-form button { padding: 0.4rem 0.75rem; border: 1px solid #007acc; border-radius: 3px; background: #007acc; color: #fff; font-size: 1rem; }
.search-submit:hover, .fa-contact-form button:hover { background: #005b99; }
.fa-contact-form { max-width: 36rem; margin-top: 1rem; }
.fa-contact-form label { display: block; margin-bottom: 0.25rem; }
.fa-contact-form input, .fa-contact-form textarea { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: var(--fa-ink); }
.fa-contact-form textarea { resize: vertical; }
.fa-contact-form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fa-form-notice { max-width: 36rem; padding: 0.65rem 0.8rem; border-left: 3px solid var(--fa-green); background: #f1f7f1; }
.fa-form-notice--error { border-left-color: #b78316; background: #faf8f1; }

@media (min-width: 1400px) { :root { --fa-shell: 1320px; } }
@media (max-width: 1199px) and (min-width: 992px) { :root { --fa-shell: 960px; } }
@media (max-width: 991px) and (min-width: 768px) { :root { --fa-shell: 720px; } }
@media (max-width: 767px) {
	:root { --fa-shell: 540px; }
	.site-header { position: static; }
	.site-identity { flex-wrap: wrap; gap: 0; padding-block: 0.6rem; }
	.primary-navigation { flex: 0 0 100%; margin: 0; }
	.primary-navigation .menu { justify-content: space-between; }
	.primary-navigation a { padding: 0.4rem 0.35rem; font-size: 1rem; }
	.primary-navigation .sub-menu { min-width: 12rem; max-height: 65vh; overflow-y: auto; }
	.site-main, body.home .site-main { padding-top: 1rem; }
	.content-layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar, body.home .sidebar { margin-top: 2rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
	.fa-container { padding-inline: 12px; }
	.content-layout > * { padding-inline: 0; }
	.entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 0.75rem auto; }
	body.home .entry-content .alignleft { display: inline; margin: 0; }
	.footer-grid { gap: 1.5rem 1rem; }
}
@media (max-width: 359px) {
	.primary-navigation a { padding-inline: 0.25rem; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
	.site-header, .sidebar, .site-footer { display: none; }
	.site-main, body.home .site-main { padding: 0; }
	.content-layout { display: block; }
	a { color: inherit; }
	h1, h2, h3, figure, table { break-inside: avoid; }
	details:not([open]) > :not(summary) { display: block; }
}
