/**
 * Twenty Seventeen Legacy UI compatibility styles.
 */

/* Blog/archive title-only mode. */
body.titles-only .site-main > article .entry-content {
display: none;
}

body.titles-only .site-main > article {
padding-bottom: 0;
}

.site-main .page-header .page-title {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1em;
}

.ts-list-toggle {
flex: 0 0 auto;
margin-left: auto;
border: 0;
border-radius: 0;
background: transparent;
color: inherit;
cursor: pointer;
font: inherit;
font-size: 0.875rem;
font-weight: 600;
line-height: 1.4;
padding: 0.15em 0;
text-decoration: none;
}

.ts-list-toggle:hover,
.ts-list-toggle:focus {
text-decoration: underline;
}

.ts-list-toggle:focus {
outline: 1px dotted currentColor;
outline-offset: 0.2em;
}

@media screen and (max-width: 48em) {
.site-main .page-header .page-title {
display: block;
}

.ts-list-toggle {
float: right;
margin-top: -2.4em;
}
}

/* Card image sizing without removing editor inline styles. */
.entry-content img {
max-width: 100%;
height: auto;
}

@media screen and (min-width: 48em) {
.site-main > article .entry-content img {
max-height: 500px;
width: auto;
}
}

.ts-card-image {
display: block;
margin: 0 0 1.5em;
}

/* Old page/single/archive header behavior. */
body.page:not(.twentyseventeen-front-page) .custom-header-media,
body.single .custom-header-media,
body.archive .custom-header-media,
body.page:not(.twentyseventeen-front-page) .custom-header .site-branding,
body.single .custom-header .site-branding,
body.archive .custom-header .site-branding {
display: none;
}

body.archive .custom-header {
margin-bottom: 0;
}

body.page:not(.twentyseventeen-front-page) .entry-header,
body.page:not(.twentyseventeen-front-page) .entry-content {
width: 100%;
}

/* Sidebar widgets hidden by the old single/archive templates. */
body.single .widget_recent_entries,
body.single .widget_search,
body.single [class*="widget_wp_statistics"],
body.archive .widget_recent_entries,
body.archive .widget_search,
body.archive [class*="widget_wp_statistics"] {
display: none;
}

/* Post stats in entry meta. */
.entry-meta .ts-post-stats {
padding-left: 5px;
}

.ts-post-views {
margin-right: 0.5em;
}

/* Pagination page-number jump. */
.navigation.pagination .ts-page-jump {
display: flex;
align-items: center;
justify-content: center;
gap: 0.4em;
margin: 1.5em 0 0;
}

.navigation.pagination .ts-page-input {
width: 5em;
padding: 0.35em 0.45em;
}

.navigation.pagination .ts-page-submit {
padding: 0.35em 0.85em;
}

/* -------------------------------------------------------------------------
 * Legacy latest-posts home.
 *
 * "/"              -> cover/hero only
 * "/?type=list"    -> article list with title/summary toggle
 * ---------------------------------------------------------------------- */
body.ts-cover-home .site-content-contain,
body.ts-cover-home #colophon {
display: none;
}

body.ts-list-home .custom-header {
display: none !important;
}

body.ts-list-home .site-content-contain {
margin-top: 3em;
}

body.ts-list-home .widget_wp_statistics_widget label {
display: inline-block;
color: #8587C6;
font-weight: 100;
margin-right: 0.5em;
}

@media screen and (max-width: 48em) {
body.ts-list-home .site-content-contain {
margin-top: 0.02em;
}
}

@media screen and (min-width: 48em) {
body.ts-cover-home .navigation-top {
top: 10em;
background: none;
border: none;
color: #4F4FA3;
}

body.ts-cover-home .navigation-top nav {
margin-left: 2.2em;
}

body.ts-cover-home #top-menu > li > a {
font-size: 1rem;
}

body.ts-cover-home #top-menu a {
color: #4F4FA3;
}

body.ts-cover-home .custom-header-media:before {
height: 1%;
}

body.ts-cover-home.admin-bar .custom-header-media {
height: calc(100% - 1px);
}

body.ts-cover-home .site-description {
margin-left: 2em;
margin-top: 1em;
margin-bottom: 1em;
}

body.ts-cover-home.admin-bar .site-navigation-fixed.navigation-top {
top: 12em;
}
}

@media screen and (max-width: 48em) {
body.ts-cover-home .custom-header {
display: block;
height: 90vh;
}

body.ts-cover-home .site-content {
display: none;
padding-top: 0;
}

body.ts-cover-home .site-footer .wrap {
padding: 0;
}

body.ts-cover-home .navigation-top {
color: #4F4FA3;
position: fixed;
top: 20%;
left: 5%;
width: 50%;
background: none;
z-index: 1000;
border-bottom: 0;
border-top: 0;
}

body.ts-cover-home #top-menu a {
color: #4F4FA3;
}

body.ts-cover-home .menu-toggle {
display: none;
}

body.ts-cover-home #top-menu {
display: block;
}

body.ts-cover-home .site-description {
margin-left: 8%;
margin-top: 5%;
width: 100%;
}

body.ts-cover-home #colophon {
display: none;
}

body.ts-cover-home .main-navigation > div > ul {
border: 0;
background: none;
}

body.ts-cover-home .main-navigation li {
border: 0;
}

body.ts-cover-home .dropdown-toggle {
right: 4em;
}

body.ts-cover-home .sub-menu .dropdown-toggle {
right: 1em;
}
}
