/*
Theme Name: MEChA Nationals Astra Child
Description: PHP restoration of the archived MEChA National website.
Template: astra
Version: 1.0.10
Text Domain: mecha
*/

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; padding: 0 40px 40px; color: #222; background: #999; font: 12px "Droid Sans", Arial, sans-serif; }
body .site, body .site-content, body .ast-container, body #primary, body .content-area, body .entry-content { width: 100%; max-width: none; margin: 0; padding: 0; }
a { color: #c70000; text-decoration: none; }
a:visited { color: #888; }
a:hover { color: #9600ff; text-decoration: underline; }
img { max-width: 100%; height: auto; }

.meca-site { width: 1100px; max-width: 100%; margin: auto; background: #fff; box-shadow: 0 0 40px rgba(0,0,0,.15); }
.meca-brand { display: flex; min-height: 255px; align-items: center; justify-content: center; gap: 30px; padding: 25px 55px 10px; background: #fff; }
.meca-brand__wordmark { display: block; color: #000 !important; text-align: center; text-decoration: none !important; }
.meca-brand__wordmark strong { display: block; border-bottom: 8px solid #000; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(65px, 10vw, 128px); font-weight: 900; letter-spacing: .02em; line-height: .9; }
.meca-brand__wordmark span { display: block; margin-top: 9px; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(17px, 2.3vw, 29px); letter-spacing: .04em; text-transform: uppercase; }
.meca-brand__eagle img { display: block; width: 210px; filter: invert(1); }
.meca-nav { padding: 0 70px 28px; background: #fff; text-align: center; }
.meca-nav ul { display: flex; flex-wrap: nowrap; justify-content: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.meca-nav li { flex: 1 1 auto; }
.meca-nav a { display: block; padding: 7px 12px; background: #000; color: #fff !important; font-size: 14px; font-weight: 700; white-space: nowrap; text-transform: uppercase; }
.meca-nav a:hover, .meca-nav a.is-active { background: #c70000; }

.meca-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; padding: 0 70px 50px; background: #fff; }
.meca-main { min-width: 0; padding-right: 24px; border-right: 1px solid #e00000; }
.meca-date { display: block; width: 100%; margin: 0 0 30px; padding: 17px 10px; background: #e9e9e9; font-size: 11px; font-weight: 700; text-align: center; }
.meca-post { margin-bottom: 38px; }
.meca-post h1, .meca-post h2 { margin: 0 0 24px; font-size: 20px; font-weight: 700; line-height: 1.25; text-align: center; }
.meca-post h1 a, .meca-post h2 a { color: #222; }
.meca-post__body { font-size: 14px; line-height: 1.55; text-align: center; }
.meca-post__body p { margin: 0 0 14px; }
.meca-post__body img { display: block; margin: 15px auto; }
.meca-post__body ul { margin: 10px 0 18px 25px; }
.meca-post__footer { margin-top: 16px; padding: 8px 12px; background: #f9f9f9; box-shadow: 0 1px 1px rgba(0,0,0,.12); color: #666; font-size: 11px; }
.meca-older-posts { margin: 25px 0; text-align: right; }
.meca-archive-post { padding-bottom: 25px; border-bottom: 1px solid #eee; }
.meca-archive-post img { width: 220px; margin: 10px 20px 10px 0; }

.meca-sidebar { align-self: stretch; padding: 20px 18px 35px; background: #e7e7e7; text-align: center; }
.meca-sidebar section { margin-bottom: 31px; }
.meca-sidebar h2 { margin: 0 0 11px; color: #000; font-size: 10px; font-weight: 700; }
.meca-sidebar p, .meca-sidebar li { font-size: 11px; line-height: 1.4; }
.meca-sidebar ul { margin: 0; padding: 0; list-style: none; }
.meca-sidebar li { padding: 4px 0; border: 0; }
.meca-sidebar img { display: block; width: 100%; max-width: 160px; margin: 8px auto; }
.meca-facebook { display: grid; width: 72px; height: 72px; place-items: end center; margin: 8px auto; border-radius: 4px; overflow: hidden; background: #4267a9; color: #fff !important; font: 700 70px/1 Arial, sans-serif; text-decoration: none !important; }
.meca-archive-list { text-align: left; }
.meca-archive-list li::before { content: "▶"; margin-right: 7px; color: #d00000; font-size: 9px; }

.meca-page { padding: 35px 45px 60px; background: #fff; }
.meca-layout .meca-page { padding: 0 24px 50px 0; }
.meca-page h1 { margin: 0 0 28px; font-size: 28px; font-weight: 400; }
.meca-page h2 { margin: 30px 0 12px; font-size: 22px; }
.meca-page h3 { margin: 24px 0 10px; font-size: 18px; }
.meca-page__body { font-size: 14px; line-height: 1.65; }
.meca-page__body p { margin: 0 0 16px; }
.meca-page__body ul { margin: 10px 0 20px 28px; }
.meca-page__body blockquote { margin: 22px 30px; padding: 15px 20px; border-left: 4px solid #c70000; background: #f5f5f5; font-style: italic; }
.meca-page__body > img, .meca-wide-image { display: block; margin: 18px auto; }
.meca-caption { margin: -8px 0 20px; color: #666; font-size: 11px; text-align: center; }
.meca-two-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.meca-campaigns > h1 { display: none; }
.meca-campaign { display: flex; flex-direction: column; align-items: center; max-width: 650px; margin: 0 auto 34px; padding: 0 0 34px; border-bottom: 1px solid #d44; text-align: center; }
.meca-campaign img { order: 1; display: block; width: auto; max-width: 190px; max-height: 145px; margin: 0 auto 15px; object-fit: contain; }
.meca-campaign > div { order: 2; }
.meca-campaign h2 { margin: 0 0 16px; color: #c70000; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.meca-campaign p { margin: 0; font-size: 11px; line-height: 1.45; text-align: center; }
.meca-campaign:last-child { border-bottom: 0; }
.meca-documents { margin: 0; padding: 0; list-style: none; }
.meca-documents li { padding: 12px 0; border-bottom: 1px solid #eee; font-size: 15px; }

.meca-conference { padding-top: 25px !important; }
.meca-conference__lead { max-width: 620px; margin: 0 auto 18px !important; text-align: center; }
.meca-conference__more { margin-bottom: 20px !important; text-align: center; }
.meca-conference .meca-wide-image { width: 100%; margin: 18px auto 28px; }
.meca-conference__intro { text-align: center; }
.meca-conference-video { display: grid; width: 100%; aspect-ratio: 16 / 8.6; place-items: center; margin: 28px 0 35px; background: #000; color: #fff !important; text-decoration: none !important; }
.meca-conference-video span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 7px; background: linear-gradient(#444, #111); font-size: 22px; }
.meca-conference h2 { margin: 0 0 18px; color: #d00000; font-size: 18px; text-align: center; text-transform: uppercase; }
.meca-conference-list { margin: 0 0 35px 25px; padding: 0; font-size: 12px; line-height: 1.65; }

.meca-footer { padding: 30px 40px; border-top: 1px solid #eee; background: #fff; color: #777; text-align: center; }
.meca-footer p { margin: 0; }
.meca-footer-menu { margin-bottom: 18px; }
.meca-footer-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.meca-footer-menu a { color: #c70000; font-size: 13px; font-weight: 700; text-transform: uppercase; }

.meca-blog-title { margin: 0 0 30px; font-size: 28px; font-weight: 400; }
.meca-wp-post { padding-bottom: 30px; border-bottom: 1px solid #eee; }
.meca-wp-post__image img, .meca-single-post__image img { display: block; width: 100%; height: auto; margin: 15px 0; }
.meca-read-more { display: inline-block; margin-top: 10px; font-weight: 700; }
.meca-post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid #eee; }
.navigation.pagination { margin-top: 35px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a, .nav-links .current { padding: 5px 8px; border: 1px solid #ddd; }

@media (max-width: 850px) {
    body { padding: 0; }
    .meca-brand { min-height: 220px; padding-right: 25px; padding-left: 25px; }
    .meca-brand__eagle img { width: 150px; }
    .meca-nav { padding-right: 20px; padding-left: 20px; }
    .meca-nav ul { flex-wrap: wrap; }
    .meca-layout { grid-template-columns: 1fr; padding: 25px 22px; }
    .meca-sidebar { border-top: 1px solid #ddd; padding-top: 30px; }
    .meca-page { padding: 30px 22px; }
}

@media (max-width: 560px) {
    .meca-brand { flex-direction: column; }
    .meca-brand__eagle img { width: 130px; }
    .meca-nav a { padding: 5px 10px; font-size: 12px; }
    .meca-campaign, .meca-two-images { grid-template-columns: 1fr; }
}
