/*
Theme Name: SPHR Twenty Twenty-One
Description: Modernised SPHR theme based on the official Twenty Twenty-One theme.
Author: SPHR
Template: twentytwentyone
Version: 1.0.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sphr-theme
*/

:root {
	--sphr-red: #a4262c;
	--sphr-red-dark: #7f171c;
	--sphr-blue: #005aaa;
	--sphr-heading: #065ba9;
	--sphr-border: #e3e6e8;
	--sphr-muted: #5e6670;
	--sphr-page: 1120px;
}

html { scroll-behavior: smooth; }
body { background: #fff; color: #25282b; font-family: Arial, Helvetica, sans-serif; font-size: 16px; overflow-x: hidden; }
a { color: var(--sphr-blue); }
a:hover, a:focus { color: var(--sphr-red); }
.site { background: #fff; }
.sphr-container { margin: 0 auto; max-width: var(--sphr-page); padding-left: 24px; padding-right: 24px; width: 100%; }
.screen-reader-text:focus { z-index: 100000; }

.sphr-banner { align-items: center; display: flex; justify-content: space-between; min-height: 145px; padding-bottom: 22px; padding-top: 22px; }
.sphr-brand { display: flex; min-width: 0; text-decoration: none; width: 100%; }
.sphr-brand img { display: block; height: auto; max-width: 100%; width: 100%; }
.sphr-brand-text { color: var(--sphr-heading); display: block; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.55rem); font-weight: 700; line-height: 1.1; }

.sphr-navigation { background: var(--sphr-red); color: #fff; }
.sphr-navigation-inner { align-items: stretch; display: flex; justify-content: space-between; }
.sphr-navigation .menu, .sphr-navigation .sub-menu { list-style: none; margin: 0; padding: 0; }
.sphr-navigation .menu { display: flex; flex-wrap: wrap; }
.sphr-navigation .menu-item { margin: 0; position: relative; }
.sphr-navigation a { color: #fff; display: block; font-size: .92rem; font-weight: 700; padding: 14px 12px; text-decoration: none; }
.sphr-navigation a:hover, .sphr-navigation a:focus, .sphr-navigation .current-menu-item > a, .sphr-navigation .current-menu-ancestor > a { background: #fff; color: var(--sphr-red); }
.sphr-navigation .sub-menu { background: var(--sphr-red); box-shadow: 0 8px 18px rgb(0 0 0 / 18%); display: none; left: 0; min-width: 240px; position: absolute; top: 100%; z-index: 50; }
.sphr-navigation .menu-item:hover > .sub-menu, .sphr-navigation .menu-item:focus-within > .sub-menu { display: block; }
.sphr-navigation .sub-menu .sub-menu { left: 100%; top: 0; }
.sphr-header-search { align-items: center; display: flex; margin-left: 20px; min-width: 220px; }
.sphr-header-search label { margin: 0; width: 100%; }
.sphr-header-search input[type="search"] { background: #fff; border: 0; border-radius: 2px; color: #222; font-size: .88rem; margin: 0; padding: 8px 10px; width: 100%; }

.site-content { padding: 34px 0 55px; }
.sphr-layout { display: grid; gap: 42px; grid-template-columns: minmax(0, 1fr) 285px; }
.sphr-layout.sphr-fullwidth { display: block; }
.sphr-content { min-width: 0; }
.sphr-sidebar { border-left: 1px solid var(--sphr-border); min-width: 0; padding-left: 28px; }
.sphr-sidebar .widget { border-bottom: 1px solid var(--sphr-border); margin: 0 0 28px; padding: 0 0 23px; }
.sphr-sidebar .widget-title { color: var(--sphr-red); font-family: Arial, sans-serif; font-size: 1.12rem; margin: 0 0 12px; }
.sphr-sidebar ul { list-style: none; margin: 0; padding: 0; }
.sphr-sidebar li { border-bottom: 1px solid #f0f1f2; margin: 0; padding: 0; }
.sphr-sidebar a { text-decoration: none; }
.sphr-sidebar .menu a { border-left: 3px solid transparent; display: block; padding: 9px 10px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.sphr-sidebar .menu a:hover, .sphr-sidebar .menu a:focus-visible { background: #f8eeee; border-left-color: var(--sphr-red); color: var(--sphr-red); }
.sphr-sidebar .menu .current-menu-item > a, .sphr-sidebar .menu .current_page_item > a { background: #f8eeee; border-left-color: var(--sphr-red); color: var(--sphr-red); font-weight: 700; }
.sphr-sidebar .menu .sub-menu { display: block !important; height: auto !important; margin: 0; max-height: none !important; opacity: 1 !important; position: static !important; transform: none !important; visibility: visible !important; width: auto; }
.sphr-sidebar .menu .sub-menu a { font-size: .95rem; padding-left: 22px; }
.sphr-sidebar .menu .sub-menu .sub-menu a { font-size: .9rem; padding-left: 36px; }

/* Divi stores its generated font URL in cache. Use a site-relative copy so icons
 * remain icons after a domain change and in the local PHP compatibility setup. */
.et-db #et-boc .et-l .et-pb-arrow-prev::before,
.et-db #et-boc .et-l .et-pb-arrow-next::before,
.et-db #et-boc .et-l .et_pb_button::after,
.et-db #et-boc .et-l a.et_pb_button.et_pb_more_button::after,
.et-db #et-boc .et-l .et_overlay::before,
.et-db #et-boc .et-l .et-pb-icon {
	font-family: "SPHR-ETmodules" !important;
}
.et-db #et-boc .et-l a.et_pb_more_button { cursor: pointer; }
.et-db #et-boc .et-l a.et_pb_more_button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.sphr-entry { border: 0; margin: 0 0 34px; padding: 0; }
.sphr-entry-title, .sphr-page-title { color: var(--sphr-heading); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
.sphr-entry-content { max-width: none; overflow-wrap: anywhere; }
.sphr-entry-content > * { max-width: none; }
.sphr-entry-content h2, .sphr-section-title { border-bottom: 1px solid var(--sphr-border); color: var(--sphr-red); font-family: Georgia, serif; font-size: 1.55rem; margin: 34px 0 18px; padding-bottom: 7px; }
.sphr-entry-content h3 { color: var(--sphr-heading); }
.sphr-entry-content img { height: auto; max-width: 100%; }
.sphr-featured-image { margin-bottom: 24px; }
.sphr-meta { background: #f6f7f8; border-left: 4px solid var(--sphr-red); display: grid; gap: 6px 18px; grid-template-columns: max-content 1fr; margin: 0 0 24px; padding: 16px 18px; }
.sphr-meta dt { font-weight: 700; }
.sphr-meta dd { margin: 0; }
.sphr-related-list, .sphr-results { display: grid; gap: 16px; }
.sphr-result { border-bottom: 1px solid var(--sphr-border); padding-bottom: 16px; }
.sphr-result h2, .sphr-result h3 { font-family: Georgia, serif; font-size: 1.25rem; margin: 0 0 6px; }
.sphr-result p { margin-bottom: 0; }
.sphr-back { display: inline-block; margin-bottom: 16px; }

.sphr-news-list { display: grid; gap: 26px; }
.sphr-news-item { border-bottom: 1px solid var(--sphr-border); display: grid; gap: 22px; grid-template-columns: 220px minmax(0, 1fr); margin: 0; padding: 0 0 26px; }
.sphr-news-thumbnail { align-self: start; aspect-ratio: 4 / 3; display: block; overflow: hidden; }
.sphr-news-thumbnail img { display: block; height: 100% !important; object-fit: cover; width: 100% !important; }
.sphr-news-summary h2 { font-family: Georgia, serif; font-size: 1.4rem; line-height: 1.25; margin: 0 0 7px; }
.sphr-news-summary h2 a { text-decoration: none; }
.sphr-news-summary time { color: var(--sphr-muted); display: block; font-size: .88rem; margin-bottom: 11px; }
.sphr-news-summary p { margin: 0 0 12px; }
.sphr-news-more { color: var(--sphr-red); font-weight: 700; }
.sphr-pagination { margin-top: 34px; }
.sphr-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.sphr-pagination a, .sphr-pagination span { border: 1px solid var(--sphr-border); display: block; padding: 7px 11px; text-decoration: none; }
.sphr-pagination .current { background: var(--sphr-red); border-color: var(--sphr-red); color: #fff; }

.sphr-directory-search { background: #f5f6f7; border-top: 4px solid var(--sphr-red); margin: 32px 0; padding: 24px; }
.sphr-directory-search h2 { margin-top: 0; }
.sphr-directory-search form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sphr-directory-search input[type="search"] { grid-column: 1 / -1; }
.sphr-form-control { background: #fff; border: 1px solid #bdc3c8; border-radius: 2px; font: inherit; margin: 0; max-width: none; padding: 10px 12px; width: 100%; }
.sphr-button { background: var(--sphr-red); border: 0; border-radius: 2px; color: #fff; cursor: pointer; font-weight: 700; justify-self: end; padding: 10px 24px; }
.sphr-button:hover, .sphr-button:focus { background: var(--sphr-red-dark); }

.sphr-entry-content .row { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; }
.sphr-entry-content [class*="col-"] { min-width: 0; padding-left: 10px; padding-right: 10px; width: 100%; }
.sphr-entry-content .col-xs-1 { width: 8.333%; }
.sphr-entry-content .col-xs-12 { width: 100%; }
.sphr-entry-content table { border-collapse: collapse; margin: 24px 0; width: 100%; }
.sphr-entry-content th, .sphr-entry-content td { border: 1px solid #d8dcdf; padding: 9px 11px; text-align: left; vertical-align: top; }
.sphr-entry-content thead th { background: #f1f3f4; }
.sphr-entry-content .table-striped tbody tr:nth-child(odd) { background: #f8f9fa; }
.key { filter: sepia(1); min-height: 230px; padding: 10px; transition: filter .2s; }
.key:hover { filter: none; }
.key > a { display: block; height: 100%; text-decoration: none; }
.key > a:focus-visible { outline: 4px solid var(--sphr-red); outline-offset: 3px; }
.key > a > div { align-items: flex-end; background-position: center; background-repeat: no-repeat; background-size: cover; color: #fff; display: flex; font-size: 1.2rem; font-weight: 700; justify-content: flex-end; min-height: 230px; padding: 70px 20px 20px; text-align: right; text-shadow: 0 1px 4px rgb(0 0 0 / 80%); text-transform: uppercase; }
.key1 { background-image: url('assets/images/key1.png'); }.key2 { background-image: url('assets/images/key2.png'); }.key3 { background-image: url('assets/images/key3.png'); }
.key4 { background-image: url('assets/images/key4.png'); }.key5 { background-image: url('assets/images/key5.png'); }.key6 { background-image: url('assets/images/key6.png'); }
.key7 { background-image: url('assets/images/key7.png'); }.key8 { background-image: url('assets/images/key8.png'); }.key9 { background-image: url('assets/images/key9.png'); }
.leg1 { background-image: url('assets/images/legal_instruments.png'); }.leg2 { background-image: url('assets/images/legal_cases.png'); }

.sphr-footer { background: var(--sphr-red); color: #fff; padding: 38px 0 24px; }
.sphr-footer-widgets { display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sphr-footer .widget-title { color: #fff; font-size: 1rem; margin-top: 0; }
.sphr-footer .widget, .sphr-footer .widget p, .sphr-footer .widget li { color: #fff; }
.sphr-footer .widget a, .sphr-footer a { color: #fff !important; text-decoration-color: rgb(255 255 255 / 65%); text-underline-offset: 3px; }
.sphr-footer .widget a:hover, .sphr-footer .widget a:focus, .sphr-footer a:hover, .sphr-footer a:focus { color: #fff !important; text-decoration-color: #fff; }
.sphr-footer-meta { border-top: 1px solid rgb(255 255 255 / 35%); font-size: .82rem; margin-top: 28px; padding-top: 18px; }

@media (max-width: 900px) {
	.sphr-banner { align-items: flex-start; flex-direction: column; }
	.sphr-navigation-inner { display: block; padding-bottom: 12px; }
	.sphr-navigation .menu { display: block; }
	.sphr-navigation .sub-menu { box-shadow: none; display: block; padding-left: 18px; position: static; }
	.sphr-header-search { margin: 8px 12px 0; max-width: 420px; }
	.sphr-layout { display: block; }
	.sphr-sidebar { border-left: 0; border-top: 1px solid var(--sphr-border); margin-top: 36px; padding-left: 0; padding-top: 28px; }
	.sphr-footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 700px) {
	.sphr-entry-content .col-sm-1 { width: 8.333%; }
	.sphr-entry-content .col-sm-2 { width: 16.666%; }
	.sphr-entry-content .col-sm-4 { width: 33.333%; }
	.sphr-entry-content .col-sm-6 { width: 50%; }
	.sphr-entry-content .col-sm-8 { width: 66.666%; }
	.sphr-entry-content .col-sm-10 { width: 83.333%; }
	.sphr-entry-content .col-sm-12 { width: 100%; }
}

@media (min-width: 1100px) {
	.sphr-entry-content .col-lg-1 { width: 8.333%; }
	.sphr-entry-content .col-lg-12 { width: 100%; }
}

@media (max-width: 560px) {
	.sphr-container { padding-left: 18px; padding-right: 18px; }
	.sphr-banner { min-height: 0; }
	.sphr-directory-search form, .sphr-footer-widgets { grid-template-columns: 1fr; }
	.sphr-news-item { grid-template-columns: 1fr; }
}
