/*
Theme Name:   Illinois Child fpn
Theme URI:    https://farmpolicynews.illinois.edu
Description:  Child theme for the Illinois theme
Author:       Lee Bynum
Author URI:   https://farmpolicynews.illinois.edu
Template:     uofi-2020
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  illinois-child-fpn
*/


/* Header */

body ilw-header *[slot=site-name] {
    font: 700 normal 36px / 30px var(--il-font-sans);
}

ilw-header *[slot=links] a {
    padding: 2px .25rem;
}

ilw-header *[slot=links] ul {
    padding-top: 4px;
    padding-bottom: 26px;
}


/* Makes the youtube block-columns behave like a responsive grid */
.fd-ytgrid-item { background-color: #f0f0f1 }
.fd-ytgrid-link { text-decoration: none; display:block; }
.fd-ytgrid-thumb { width:100%; height:auto; border-radius:6px; display:block; }
.il-formatted h3.fd-ytgrid-title { line-height:1.2; font-size: 1.4em; }


#primary .gray-border { 
	border: 2px #e8e9eb solid; 
	padding: 1em !important;
}

.wp-block-buttons, .wp-block-uofi-uofi-buttons {
    margin: auto;
}


/* Navigation Menu */

body div.navbar {
	text-transform: capitalize;
}

body ilw-header-menu-section {
	--ilw-header-menu--items--width: 300px !important;
}

body ilw-header-menu-section ilw-header-menu-section
 {
	--ilw-header-menu--items--left: 300px;
}


body ilw-header-menu-section ilw-header-menu-section:has(li:nth-child(11))
{
	--ilw-header-menu--items--width: 600px !important;
}

body ilw-header-menu-section ilw-header-menu-section:has(li:nth-child(11)) ul 
{
	column-count: 2;
	column-gap: 1rem;
}

body ilw-header-menu-section:has(li:nth-child(11)) ul li {
	break-inside: avoid;
}



/* sidebar form */

aside #mlb2-6159979.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody, aside #mlb2-6159979.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
    padding: 0;
}

aside .ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-button-horizontal {
    width: 100%;
}

aside .ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-input-horizontal {
	width: 100%;
	margin-bottom: 1em;
}

aside .ml-form-formContent.horozintalForm .ml-form-horizontalRow .horizontal-fields {
	padding: 0;
}

.il-formatted aside#secondary ul, div#page aside#secondary ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.il-formatted aside#secondary ul li, div#page aside#secondary ul li {
    list-style: none;
}

.il-formatted aside#secondary ul ul, div#page aside#secondary ul ul {
    padding-left: 1em;
}



/* main area subscribe form */

primary #mlb2-6159979.ml-form-embedContainer {
    box-sizing: border-box;
    display: table;
    margin: 0 auto;
    position: static;
    width: calc(100vw - 10vw - (2 * var(--ilw-margin--side))) !important;
}

primary #mlb2-6159979.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button {
	font-size: 19px !important;
    padding: 10px 6px !important;
}



figure {
    margin: 0 0 0 0;
}


/* Home page featured image */

body .pt-cv-thumb-wrapper .pt-cv-href-thumbnail, .pt-cv-thumb-wrapper.pt-cv-href-thumbnail {
    display: flex;
}

body .pt-cv-thumbnail.pull-right {
    margin-left: 0px;
}

@media (max-width: 1024px) {
	#pt-cv-view-bcy2tlzo .pt-cv-thumb-wrapper {
		display: none;
	}
}


/* Misc */

div:hover > .button {
    background-color: var(--il-blue);
    border: solid 2px var(--il-blue);
}



/* formatting classes */

.capitalize {
	text-transform: capitalize;
}




/* Google CSE page */

.il-formatted .gsc-result-info, .il-formatted .gsc-orderby-label {
	padding: 0;
}

.il-formatted table {
	margin: inherit;
}

.il-formatted .gsc-above-wrapper-area {
    padding-top: 0;
}

.il-formatted .gsc-control-cse td
 {
    text-align: inherit;
    vertical-align: inherit;
    padding: 0;
    border: none;
    color: inherit;
}

.il-formatted .gsc-control-cse {
    font-weight: auto;
    font-size: auto;
    line-height: 1.5em;
    font-family: var(--il-font-sans);
    color: var(--il-text-color);
}

.gs-per-result-labels {
    display: none;
}



/*  Staff Card Formatting  */

.staff-card .staff-photo {
    text-align: center;
    margin-bottom: 1rem;
}

.staff-card .staff-photo img {
    display: block;
    margin: 0 auto;
}

.staff-card .staff-info h3 {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.staff-card .staff-position {
    margin-top: 0;
    margin-bottom: 1rem;
}

.staff-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
}

ul:has(> li.staff), #primary .width80 > * {
    width: calc(75% - var(--wp--style--block-gap, .5em) * .25);
    margin: auto;
}

@media (max-width: 800px) {
	ul:has(> li.staff), #primary .width80 > * {
		width: calc(100% - var(--wp--style--block-gap, .5em) * .25);
		margin: auto;
	}
}

/* Author Bio Box (appears at bottom of single posts) */

.fd-author-bio {
    border-top: 2px solid #e8e8e8;
    border-bottom: 2px solid #e8e8e8;
    margin-top: 2.5rem;
	margin-bottom: .5rem;
    padding-top: 1.5rem;
	padding-bottom: .5rem;
	max-width: calc(100vw - 10em - (2 * var(--ilw-margin--side))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.fd-author-bio .staff-card {
    display: flex;
    flex-wrap: wrap;
}

.fd-author-bio .staff-card .staff-photo {
	width: 25%;
}

.fd-author-bio .staff-card .staff-info {
	width: 75%;
}

.fd-author-bio .staff-card h3 {
	margin-top: 0;
}

.fd-author-bio__heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1rem;
}




/* Post Header */

@media screen and (min-width: 1036px) {
    html body.single div#primary_secondary_wrapper article header {
        padding: 0em 3em;
    }
}

/* Single Post - Category Buttons */

/* Keep secondary button sizing compact in this context */
.fd-post-categories .fd-cat-button .wp-block-button__link {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Push category links to the right of the meta line */
.entry-meta .fd-cat-links {
    margin-left: auto;
}

@media screen and (max-width: 800px) {
	.entry-meta .fd-cat-links {
		display: none;
	}
}

.single .entry-meta {
    display: flex;
    align-items: baseline;
	gap: 5px;
	padding-top: .2em;
}


/* Post Body */

body.post-template-default main#primary article .entry-content {
	max-width: calc(100vw - (2 * var(--ilw-margin--side))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Single Post Navigation */


body #primary .il-formatted *:not(.has-link-color, .wp-block-button)>a:not(.il-button, .ilw-button, body .wp-block-file__button), body #primary .nav-links a:not(.il-button, body .ilw-button) {
	text-decoration: none;
}


/* Post Navigation Previous/Next Links */

.post-navigation .nav-links .wp-block-button__link {
    display: inline-block;
}

.post-navigation .nav-links .nav-previous .wp-block-button__link {
    margin-right: 1em;
}

.post-navigation .nav-links .nav-next .wp-block-button__link {
    margin-left: 1em;
}


/*  MailerLite Signup Form  */

body #mlb2-6159979.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody, #mlb2-6159979.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
    padding: 0px;
}

body #mlb2-6159979.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent.horozintalForm {
    padding: 0 0 0px 0;
}

#mlb2-6159979 .form-control {
    height: 42px;
}



/* Homepage Latest Posts Formatting */

body .iscvblock.iscvreal {
    margin: 0px;
}

body .entry-content .pt-cv-view .pt-cv-colwrap {
    margin-bottom: 0px;
}



/* Narrow and thin separators */

.wp-block-separator {
    border: none;
    border-top: 0px solid;
	width: calc(100vw - 10vw - (2 * var(--ilw-margin--side)));
}


/* Wide Columns & elements */

body div.fd-wide-col {
    gap: 20px;
	margin-bottom: 20px;
}

body div.fd-wide-col .wp-block-column {
    padding: 0;
}

div.fd-wide-col .wp-block-embed:not(.alignwide, .alignfull) {
    max-width: none;
    width: 100%;
}

div.fd-wide-col  .wp-block-embed, .wp-block-embed figcaption {
    margin-bottom: 0rem !important;
}



/* Archive page - post card styling */

.archive #primary article {
    background-color: #f4f4f4;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 4px;
}

.archive #primary article .entry-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 0.2rem;
}

.archive #primary article .entry-meta {
    font-size: 13px;
    margin-bottom: 0.5rem;
}

.archive #primary article .entry-content {
    margin: .5rem 0 0 0;
}

.archive #primary article .entry-content p {
    font-size: 15px;
}

.archive #primary article .entry-content p:last-child {
    margin-bottom: 0;
}




/*  Footer  */


ilw-footer p, ilw-footer .il-footer-parent p {
	margin: 0 0 .5em 0;
	padding: 0;
}

.footer-columns {
  display: flow-root; /* clearfix for the floated children */
}

.footer-column {
  width: calc(50% - 10px);
  float: left;
}

@media screen and (max-width: 800px) {
	.footer-column {
		width: 100%;
	}
	.footer-column:not(:last-child) {
		margin-bottom: 2rem;
	}
}

.footer-column--quicklinks {
  margin-right: 20px;
}

.footer-heading {
  font-weight: bold;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 1em;
  font-size: 170%;
  text-align: center;
}

.footer-column-content {
  text-align: center;
}

/* Quicklinks */
.quicklinks-list {
  margin-bottom: 1em;
}

.quicklinks-list li {
  margin-top: 0.25em;
}

.quicklinks-list a {
  width: 100%;
  display: block;
}

/* Sponsors */
.sponsors-row {
  text-align: center;
  display: inline-block;
  float: left;
  width: 100%;
}

.sponsors-item {
  width: calc(50% - 2px);
  display: inline-block;
  margin: 1px;
  border: 3px solid #ffffff;
  float: left;
  background: #ffffff;
}

.sponsors-item-label {
  background: #777777;
  color: #ffffff;
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
  padding: 1px 0;
  width: 100%;
}

.sponsors-cta {
  text-align: center;
}

.sponsors-cta a {
  width: 100%;
  margin-top: 1em;
  font-size: 19px;
}



/* Classic Editor Fixes for migration */

@media screen and (min-width: 1036px) {
    html body.single #primary_secondary_wrapper article .entry-content:not(:has(> p))>*:not(script, style, link, template, meta, .wp-block-media-text, .wp-block-list, .uofi-card-deck, .wp-block-columns, .wp-block-group, .wp-block-cover, h5) {
        display: initial;
        padding-left: initial;
        padding-right: initial;
    }
}

@media screen and (min-width: 1036px) {
    html body.single #primary_secondary_wrapper article .entry-content:not(:has(> p))>figure, html body.single  #primary_secondary_wrapper article .entry-content:not(:has(> p))>h5 {
        padding-top: 1em;
		padding-left: 0;
    }
}