/*
Theme Name: The Wild East
Description: Restoration of The Wild East Magazine's ColorMag-child design (2016 to 2026 captures). Markup and tokens follow archive/assets/theme/child-style.css.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later
Text Domain: wildeast
*/

/* Tokens recovered from colormag-child/style.css (capture 20251207044855) */
:root {
  --we-blue: #0033ff;
  --we-link: #0000ff;
  --we-navy: #003366;
  --we-dark: #232323;
  --we-ink: #000;
  --we-muted: #888;
  --we-red: #ff0000;
  --we-panel: #f8f8f8;
  --we-line: #eaeaea;
  --we-sans: 'Open Sans', Arial, sans-serif;
  --we-title: Impact, Charcoal, 'Arial Narrow Bold', sans-serif;
  --we-nav: Verdana, Geneva, sans-serif;
  --we-tag: 'Trebuchet MS', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 10px 0; background: #fff; color: var(--we-ink);
  font-family: var(--we-sans); font-size: 16px; line-height: 1.6; word-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 { color: var(--we-ink); font-family: var(--we-nav); font-weight: normal; line-height: 1.2; margin: 0; padding-bottom: 18px; }
h1 { font-size: 42px; } h2 { font-size: 38px; } h3 { font-size: 34px; }
h4 { font-size: 30px; } h5 { font-size: 26px; } h6 { font-size: 22px; }
p { line-height: 1.6; margin: 0 0 15px; font-size: 1.2em; }
a { color: var(--we-link); text-decoration: none; }
a:hover, a:focus { color: var(--we-blue); text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
strong, b { font-weight: 700; } em, i { font-style: italic; }
blockquote { margin: 0 0 20px; padding: 10px 20px; border-left: 4px solid var(--we-navy); background: var(--we-panel); }
blockquote p { font-style: italic; }
pre { overflow: auto; background: var(--we-panel); padding: 12px; }
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--we-line); padding: 6px 10px; text-align: left; }
hr { border: 0; border-top: 1px solid var(--we-line); margin: 25px 0; }
iframe, object, embed, video { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: static !important; width: auto; height: auto; clip: auto; display: inline-block; padding: 8px 12px; background: #fff; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Layout */
#page { width: 97%; max-width: 1200px; margin: 0 auto; }
.wide #page { width: 100%; max-width: 100%; }
.inner-wrap { width: 94%; max-width: 1140px; margin: 0 auto; }
#main { padding: 30px 0 20px; background: #fff; }
#primary { float: left; width: 70.17543859%; }
#secondary { float: right; width: 27.19298245%; }

/* Header */
#header-text-nav-container { background: #fff; }
#header-text-nav-wrap { padding: 20px 0 25px; }
#site-title { font-family: var(--we-title); font-size: 46px; line-height: 1.2; margin: 0; padding: 0; font-weight: normal; }
#site-title a { color: #010607; }
#site-title a:hover { color: var(--we-navy); text-decoration: none; }
#site-description { font-family: var(--we-tag); font-size: 16px; line-height: 24px; color: var(--we-red); padding: 5px 0 5px 5px; margin: 0; }

/* Primary navigation */
#site-navigation { position: relative; background: #fff; border-top: 2px solid var(--we-navy); }
.main-navigation { width: 100%; text-align: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > .inner-wrap > div > ul > li,
.main-navigation .menu > li { display: inline-block; position: relative; }
.main-navigation a {
  display: block; color: #000; font-family: var(--we-nav); font-size: 16px; font-weight: 500;
  padding: 10px 12px; text-transform: uppercase;
}
.main-navigation a:hover, .main-navigation a:focus,
.main-navigation li:hover > a, .main-navigation li:focus-within > a,
.main-navigation .current-menu-item > a, .main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a { background: var(--we-navy); color: #fff; text-decoration: none; }
.main-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 200px; z-index: 100; background: var(--we-dark); text-align: left; }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { display: block; }
.main-navigation .sub-menu a { font-size: 14px; color: #fff; padding: 10px 15px; text-transform: none; }
.menu-toggle { display: none; }

/* Post list and single */
.article-container .post, .article-container .page, #content > article { margin-bottom: 30px; }
.blog #content .post:nth-child(2n), .archive #content .post:nth-child(2n), .search #content .post:nth-child(2n) { float: left; width: 48.7013%; clear: both; }
.blog #content .post:nth-child(2n+1), .archive #content .post:nth-child(2n+1), .search #content .post:nth-child(2n+1) { float: right; width: 48.7013%; }
.blog #content .post:first-child, .archive #content .post:first-child, .search #content .post:first-child { float: none; width: 100%; }
.article-container::after { content: ""; display: table; clear: both; }
.featured-image { text-align: center; }
.featured-image img { display: inline-block; }
#content .article-content { padding: 15px; }
.above-entry-meta .cat-links a {
  display: inline-block; background: #fff; color: var(--we-link); font-size: 12px; padding: 3px 10px 3px 0;
  margin-right: 4px;
}
.entry-title { font-family: var(--we-nav); font-weight: normal; font-size: 34px; line-height: 1.2; padding: 0 0 18px; margin: 0; }
.entry-title a { color: #333; }
.entry-title a:hover { color: var(--we-blue); text-decoration: none; }
.below-entry-meta { padding-bottom: 20px; font-size: 14px; color: var(--we-muted); }
.below-entry-meta > span { display: inline-block; padding-right: 10px; }
.below-entry-meta a { color: var(--we-blue); font-size: 20px; }
.below-entry-meta .posted-on a { font-size: 20px; }
.below-entry-meta .tag-links a { font-size: 20px; }
.below-entry-meta .we-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; fill: #000; }
.below-entry-meta .updated { display: none; }
.entry-content { font-size: 16px; }
.entry-content ul { list-style: square; }
.entry-content ul, .entry-content ol { padding: 0 0 0 35px; margin: 0 0 30px; }
.entry-content li { line-height: 1.3; margin-bottom: 6px; font-size: 1.2em; }
.entry-content li p { font-size: 1em; }
.entry-content h2 { font-size: 30px; } .entry-content h3 { font-size: 26px; } .entry-content h4 { font-size: 22px; }
.more-link { display: inline-block; background: var(--we-blue); border-radius: 3px; margin-top: 5px; }
.more-link span { display: inline-block; font-size: 12px; padding: 5px 10px; color: #fff; }
.more-link:hover { text-decoration: none; background: var(--we-navy); }
.we-embed { position: relative; padding-bottom: 56.25%; height: 0; margin-bottom: 20px; }
.we-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Images and captions (WordPress classes as used in the archived content) */
.alignleft { float: left; margin: 5px 20px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 20px; }
.aligncenter { display: block; margin: 5px auto 15px; text-align: center; }
.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption img { display: block; margin: 0 auto; max-width: 100%; }
.wp-caption-text, .wp-caption .wp-caption-text { font-size: 13px; color: #555; margin: .8rem 0; text-align: left; font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.gallery .gallery-item { margin: 0; } .gallery img { width: 100%; }

/* Page headers on archives */
.page-header .page-title { border-bottom: 2px solid var(--we-blue); font-size: 18px; margin: 0 0 15px; padding: 0; font-family: var(--we-sans); }
.page-header .page-title span { background: var(--we-blue); color: #fff; padding: 6px 12px; display: inline-block; }
.taxonomy-description, .archive-description { margin-bottom: 20px; }

/* Previous / next */
.default-wp-page { list-style: none; margin: 0; padding: 0; clear: both; font-size: 16px; }
.default-wp-page .previous { float: left; padding: 30px 0; max-width: 48%; }
.default-wp-page .next { float: right; padding: 30px 0; max-width: 48%; text-align: right; }

/* Comments */
#comments { border-top: 1px solid var(--we-panel); padding-top: 15px; clear: both; }
.comments-title { font-size: 22px; margin-bottom: 10px; }
.comment-list, .comment-list .children { list-style: none; margin: 0 0 25px; padding: 0; }
.comment-list .children { margin-left: 20px; }
.comment-list article { margin-bottom: 20px; }
.comment-meta { margin-bottom: 8px; font-size: 13px; }
.comment-author-link { font-weight: 700; color: #000; }
.comment-author-link a { color: #999; }
.comment-date-time { color: var(--we-muted); }
.comment-content { padding: 15px 15px 10px; background: var(--we-panel); border: 1px solid var(--we-line); border-radius: 2px; }
.comment-content p { font-size: 14px; }
.no-comments { color: var(--we-muted); }

/* Sidebar widgets */
#secondary .widget { margin-bottom: 35px; font-size: 14px; }
#secondary .widget-title { border-bottom: 2px solid #000; font-size: 22px; margin: 0 0 15px; padding: 0; font-family: var(--we-sans); }
#secondary .widget-title span { background: #fff; color: #000; padding: 6px 0; display: inline-block; }
#secondary .widget ul { list-style: none; margin: 0; padding: 0; }
#secondary .widget li { padding: 5px 0; border-bottom: 1px solid var(--we-panel); line-height: 1.4; }
#secondary .widget select { width: 100%; padding: 6px; }
.search-form { display: flex; gap: 6px; }
.search-form .search-field { flex: 1; min-width: 0; padding: 8px; border: 1px solid #ccc; font-size: 14px; }
.search-form .search-submit, .we-button { background: var(--we-blue); color: #fff; border: 0; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.search-form .search-submit:hover, .we-button:hover { background: var(--we-navy); }

/* Footer */
#colophon { clear: both; font-size: 14px; line-height: 1.4; }
.footer-socket-wrapper { padding: 20px 0 50px; background: #fff; border-top: 1px solid var(--we-line); }
.copyright { color: #000; text-align: center; font-size: 14px; }
.copyright a { color: var(--we-link); border-bottom: 1px solid #5a5d62; }
.copyright a:hover { color: var(--we-blue); text-decoration: none; }

/* Responsive: ColorMag breakpoints 768 / 600 / 420 */
@media (max-width: 768px) {
  .blog #content .post, .archive #content .post, .search #content .post { float: none !important; width: 100% !important; }
  #primary, #secondary { float: none; width: 100%; }
  #secondary { margin-top: 30px; }
  #header-text-nav-wrap { padding: 15px 0; text-align: center; }
  #header-left-section, #header-text { float: none; padding: 0; }
  .menu-toggle {
    display: block; width: 100%; background: var(--we-navy); color: #fff; border: 0; padding: 10px 12px;
    font-family: var(--we-nav); font-size: 16px; text-transform: uppercase; cursor: pointer; text-align: left;
  }
  .menu-toggle::before { content: "\2630"; margin-right: 10px; }
  .main-navigation .menu-primary-container { display: none; }
  .main-navigation.toggled .menu-primary-container { display: block; }
  .main-navigation .menu > li, .main-navigation > .inner-wrap > div > ul > li { display: block; text-align: left; border-top: 1px solid var(--we-line); }
  .main-navigation .sub-menu { display: block; position: static; width: auto; background: none; }
  .main-navigation .sub-menu a { color: #000; padding-left: 30px; }
  .main-navigation .sub-menu a:hover { color: #fff; }
}
@media (max-width: 600px) {
  #site-title { font-size: 36px; }
  .entry-title { font-size: 26px; }
  .below-entry-meta a, .below-entry-meta .posted-on a, .below-entry-meta .tag-links a { font-size: 16px; }
  .alignleft, .alignright { float: none; margin: 10px auto; display: block; }
  .wp-caption.alignleft, .wp-caption.alignright { width: auto !important; }
  .default-wp-page .previous, .default-wp-page .next { float: none; max-width: 100%; text-align: left; padding: 10px 0; }
}
@media (max-width: 420px) {
  #site-title { font-size: 30px; }
  #site-description { font-size: 14px; }
  p { font-size: 1.1em; }
}

/* Contact form (replaces contact-form-plugin on /contact-us/) */
.we-contact input[type=text], .we-contact input[type=email], .we-contact textarea { width: 100%; max-width: 460px; padding: 8px; border: 1px solid #ccc; font: inherit; }
.we-contact label { font-weight: 600; }
.we-contact .required { color: var(--we-red); }
.we-hp { position: absolute; left: -9999px; }
.we-notice { padding: 10px 14px; background: #eef3ff; border-left: 4px solid var(--we-blue); }
.we-error { background: #fff0f0; border-left-color: var(--we-red); }

/* [clean-my-archives] on /archives/ */
.clean-my-archives h2.month-year { font-size: 22px; margin: 25px 0 10px; }
.clean-my-archives ul { list-style: none; padding-left: 0; }
.clean-my-archives .day { color: var(--we-muted); }
.clean-my-archives .comments-number { color: var(--we-muted); font-size: .9em; }

.featured-caption { text-align: center; font-size: 12px; margin: 6px 15px 0; }
