/*
Theme Name: Great Wall Guide
Theme URI: https://greatwalltravelguide.com/
Description: Child theme for Great Wall of China Travel Guide, focused on travel guide layouts.
Author: Great Wall Travel Guide
Template: twentytwelve
Version: 1.0.19
Text Domain: greatwall-guide
*/

:root {
  --gwt-bg: #f4f5f2;
  --gwt-surface: #ffffff;
  --gwt-soft: #eef5ee;
  --gwt-border: #dce5db;
  --gwt-text: #263126;
  --gwt-muted: #657268;
  --gwt-green: #28733f;
  --gwt-green-dark: #173822;
  --gwt-link: #126b8e;
  --gwt-gold: #c89b35;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: var(--gwt-bg);
  color: var(--gwt-text);
}

a {
  color: var(--gwt-link);
}

body .site {
  max-width: 1180px;
  box-shadow: 0 10px 34px rgba(30, 42, 34, 0.08);
}

body .site-header {
  padding: 32px 40px 18px;
}

.gwt-mobile-header-row {
  display: none;
}

body .site-title {
  font-size: 30px;
  line-height: 1.15;
}

body .site-title a {
  color: #4b4f4b;
}

body .site-description {
  color: #617067;
  font-size: 14px;
  margin-top: 8px;
}

body .main-navigation {
  border-top: 1px solid #e1e6df;
  border-bottom: 1px solid #e1e6df;
  margin-top: 22px;
}

body .main-navigation li a {
  color: #3d4b42;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 18px;
}

body .main-navigation li a:hover,
body .main-navigation .current-menu-item > a,
body .main-navigation .current-menu-ancestor > a {
  color: var(--gwt-green);
}

body .header-image {
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(27, 42, 32, 0.16);
}

#main.wrapper {
  padding-top: 28px;
}

body.home #main.wrapper {
  padding-top: 24px;
}

.gwt-main {
  width: 100%;
}

.gwt-archive-header {
  background: linear-gradient(135deg, #eef5ee 0%, #fbfcf9 100%);
  border-left: 6px solid var(--gwt-green);
  border-bottom: 1px solid var(--gwt-border);
  margin-bottom: 20px;
  padding: 24px 28px;
}

.gwt-archive-title {
  color: var(--gwt-green-dark);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.gwt-archive-description {
  color: var(--gwt-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 820px;
}

.gwt-archive-list {
  display: grid;
  gap: 6px;
}

.gwt-archive-card {
  background: var(--gwt-surface);
  border: 1px solid var(--gwt-border);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  margin: 0;
  padding: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gwt-archive-card:hover {
  border-color: #c3d6c3;
  box-shadow: 0 8px 24px rgba(30, 42, 34, 0.1);
  transform: translateY(-1px);
}

.gwt-archive-thumb {
  display: block;
}

.gwt-archive-thumb picture,
.gwt-archive-thumb img {
  display: block;
}

.gwt-archive-thumb img {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(30, 42, 34, 0.1);
  height: auto;
  object-fit: cover;
  width: 300px;
}

.gwt-archive-card h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.gwt-archive-card h2 a {
  color: var(--gwt-link);
  text-decoration: none;
}

.gwt-archive-card h2 a:hover {
  text-decoration: underline;
}

.gwt-archive-excerpt {
  font-size: 15px;
  line-height: 1.62;
  margin: 0 0 10px;
}

.gwt-read-more {
  color: var(--gwt-link);
  font-weight: 700;
}

.gwt-pagination {
  align-items: center;
  border-top: 1px solid var(--gwt-border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 22px 0 0;
  padding-top: 20px;
}

.gwt-pagination-status {
  color: var(--gwt-muted);
  font-size: 13px;
}

.gwt-pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.gwt-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gwt-border);
  color: var(--gwt-link);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
  text-decoration: none;
}

.gwt-pagination a.page-numbers:hover,
.gwt-pagination a.page-numbers:focus {
  background: #eff5ee;
  border-color: #c7d8c7;
  color: var(--gwt-green-dark);
}

.gwt-pagination .page-numbers.current {
  background: var(--gwt-green);
  border-color: var(--gwt-green);
  color: #fff;
}

.gwt-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--gwt-muted);
  min-width: auto;
  padding: 0 4px;
}

.gwt-not-found {
  background: #fff;
  border: 1px solid var(--gwt-border);
  padding: 34px;
}

.gwt-not-found h1 {
  color: var(--gwt-green-dark);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.gwt-not-found p {
  color: var(--gwt-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}

.gwt-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.gwt-404-actions a {
  background: var(--gwt-green);
  color: #fff;
  display: inline-block;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
}

.gwt-404-actions a:hover,
.gwt-404-actions a:focus {
  background: var(--gwt-green-dark);
  color: #fff;
}

.gwt-404-search {
  margin-top: 24px;
  max-width: 560px;
}

.gwt-single {
  margin: 0 auto;
  max-width: 860px;
}

.gwt-single-header {
  background: linear-gradient(135deg, #eff5ee 0%, #fbfcf9 100%);
  border-left: 6px solid var(--gwt-green);
  margin: 0 0 30px;
  padding: 30px 34px;
}

.gwt-single-title {
  color: var(--gwt-green-dark);
  font-size: 36px;
  line-height: 1.18;
  margin: 0 0 16px;
}

.gwt-single-meta {
  color: var(--gwt-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px 18px;
  margin: -4px 0 16px;
}

.gwt-single-deck {
  border-left: 0;
  color: #405044;
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

.gwt-single .entry-content {
  font-size: 18px;
  line-height: 1.82;
}

.gwt-toc {
  background: #fff;
  border: 1px solid var(--gwt-border);
  margin: 0 auto 24px;
  max-width: 860px;
}

.gwt-toc strong {
  color: var(--gwt-green-dark);
  display: block;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.gwt-toc {
  padding: 20px 24px;
}

.gwt-toc ol {
  display: grid;
  gap: 8px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 20px;
}

.gwt-toc li {
  color: var(--gwt-green);
  line-height: 1.45;
}

.gwt-toc a {
  font-weight: 700;
  text-decoration: none;
}

.gwt-toc-h3 {
  font-size: 13px;
  margin-left: 14px;
}

.gwt-single .entry-content p {
  line-height: 1.78;
}

.gwt-single .entry-content h2 {
  color: #24372a;
  font-size: 25px;
  line-height: 1.3;
  margin-top: 38px;
}

.gwt-single .entry-content h3 {
  color: #2d3d31;
  margin-top: 28px;
}

.gwt-single .entry-content img {
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(30, 42, 34, 0.1);
}

.gwt-single .entry-content .gwt-related-guides {
  background: #f8faf7 !important;
  border: 1px solid var(--gwt-border) !important;
  border-top: 5px solid var(--gwt-green) !important;
  margin-top: 38px !important;
  padding: 24px 28px !important;
}

.gwt-single .entry-content .gwt-related-guides h2 {
  color: var(--gwt-green-dark) !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  margin: 0 0 16px !important;
}

.gwt-single .entry-content .gwt-related-guides ul {
  display: grid !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gwt-single .entry-content .gwt-related-guides li {
  margin: 0 !important;
  padding: 0 !important;
}

.gwt-single .entry-content .gwt-related-guides a {
  background: #fff;
  border: 1px solid #dce5db;
  color: var(--gwt-link);
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 14px;
  text-decoration: none;
}

.gwt-single .entry-content .gwt-related-guides a:hover {
  background: #eff5ee;
  border-color: #c7d8c7;
  color: var(--gwt-green-dark);
}

.gwt-single-footer {
  border-top: 1px solid var(--gwt-border);
  color: var(--gwt-muted);
  font-size: 13px;
  margin-top: 34px;
  padding-top: 18px;
}

.gwt-post-nav {
  border-top: 1px solid var(--gwt-border);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 36px auto 0;
  max-width: 860px;
  padding-top: 24px;
}

.gwt-post-nav a {
  color: var(--gwt-link);
  font-weight: 700;
}

.gwt-post-nav .next {
  text-align: right;
}

body #colophon {
  border-top: 1px solid #e1e6df;
  color: var(--gwt-muted);
  font-size: 13px;
  margin-top: 18px;
  padding-bottom: 18px;
  padding-top: 16px;
}

body #colophon .site-info {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  text-align: center;
}

.gwt-copyright {
  display: inline-block;
}

.gwt-home {
  color: var(--gwt-text);
  font-family: inherit;
}

.gwt-home * {
  box-sizing: border-box;
}

.home .entry-title {
  display: none;
}

.site-content article {
  border-bottom: 0;
}

body .site-content article.gwt-archive-card,
body .site-content .gwt-home article.gwt-card {
  margin-bottom: 0;
  padding-bottom: 12px;
}

.gwt-hero {
  background: linear-gradient(135deg, #eff5ee 0%, #f8faf6 62%, #e1eee4 100%);
  border-left: 7px solid var(--gwt-green);
  margin: 0 0 34px;
  overflow: hidden;
  padding: 52px 48px;
}

.gwt-hero-visual {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  padding: 42px 44px;
}

.gwt-hero-copy {
  align-self: center;
}

.gwt-hero-media {
  background: #1f3325;
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.gwt-hero-media img {
  display: block;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  width: 100%;
}

.gwt-hero-media figcaption {
  background: rgba(20, 39, 27, 0.82);
  bottom: 0;
  color: #fff;
  font-size: 13px;
  left: 0;
  line-height: 1.45;
  margin: 0;
  padding: 12px 14px;
  position: absolute;
  right: 0;
}

.gwt-kicker {
  color: #58705d;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.gwt-hero h2 {
  color: var(--gwt-green-dark);
  font-size: 36px;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 860px;
}

.gwt-lead {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 24px;
  max-width: 880px;
}

.gwt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gwt-actions br {
  display: none;
}

.gwt-btn {
  border: 1px solid var(--gwt-green);
  background: var(--gwt-green);
  color: #fff;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  text-decoration: none;
}

.gwt-btn,
.gwt-btn.primary {
  background: var(--gwt-green);
  color: #fff;
}

.gwt-btn:hover,
.gwt-btn.primary:hover {
  background: var(--gwt-green-dark);
  color: #fff;
}

.gwt-btn:visited,
.gwt-btn.primary:visited {
  color: #fff;
}

.gwt-home .gwt-actions .gwt-btn,
.gwt-home .gwt-actions .gwt-btn:link,
.gwt-home .gwt-actions .gwt-btn:visited,
.gwt-home .gwt-actions .gwt-btn:hover,
.gwt-home .gwt-actions .gwt-btn:focus {
  color: #fff !important;
}

.gwt-section {
  clear: both;
  margin: 42px 0;
}

.gwt-section h2 {
  color: var(--gwt-green-dark);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 18px;
}

.gwt-grid,
.gwt-plan,
.gwt-featured,
.gwt-faq {
  display: grid;
  gap: 18px;
}

.gwt-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gwt-plan,
.gwt-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gwt-faq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gwt-card,
.gwt-step,
.gwt-mini,
.gwt-faq div {
  background: #fff;
  border: 1px solid var(--gwt-border);
}

.gwt-card {
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gwt-card:hover,
.gwt-mini:hover {
  border-color: #c3d6c3;
  box-shadow: 0 8px 22px rgba(30, 42, 34, 0.1);
  transform: translateY(-1px);
}

.gwt-card a:visited,
.gwt-mini:visited,
.gwt-mini:visited strong,
.gwt-related-guides a:visited,
.gwt-archive-card h2 a:visited,
.gwt-read-more:visited {
  color: var(--gwt-link);
}

.gwt-thumb,
.gwt-mini img {
  aspect-ratio: 4 / 3;
  background: #eef3ee;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gwt-card-body {
  padding: 18px 20px 20px;
}

.gwt-card h3 {
  color: #233629;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.gwt-card p,
.gwt-step p,
.gwt-faq p {
  line-height: 1.65;
}

.gwt-step {
  border-top: 4px solid var(--gwt-green);
  padding: 18px;
}

.gwt-step strong {
  color: var(--gwt-green);
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.gwt-mini {
  color: var(--gwt-text);
  display: block;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gwt-mini strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  padding: 13px 15px 2px;
}

.gwt-mini span {
  color: var(--gwt-muted);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  padding: 0 15px 15px;
}

.gwt-list {
  display: grid;
  gap: 11px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 20px;
}

.gwt-list li {
  line-height: 1.65;
}

.gwt-note {
  background: #fbfaf5;
  border: 1px solid #e6dec8;
  line-height: 1.75;
  padding: 20px;
}

.gwt-faq div {
  border-left: 4px solid var(--gwt-gold);
  padding: 16px;
}

.gwt-faq h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

@media screen and (max-width: 860px) {
  .gwt-hero-visual {
    grid-template-columns: 1fr;
  }

  .gwt-plan,
  .gwt-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 720px) {
  body,
  body * {
    box-sizing: border-box;
  }

  body .site {
    box-shadow: none;
    margin: 0;
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: 100vw;
  }

  body .site-header,
  body #main.wrapper,
  body #colophon {
    padding-left: 24px;
    padding-right: 24px;
  }

  body .site-header {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #dfe6df;
    box-shadow: none;
    margin: 0;
    padding: 12px 24px;
  }

  .gwt-desktop-brand,
  .gwt-desktop-navigation {
    display: none;
  }

  .gwt-mobile-header-row {
    align-items: flex-start;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 66px;
    position: relative;
    width: 100%;
  }

  .gwt-mobile-logo {
    display: block;
    height: 52px;
    width: 52px;
  }

  .gwt-mobile-logo img {
    display: block;
    height: 52px;
    object-fit: contain;
    width: 52px;
  }

  body .site-title,
  body .site-title a {
    display: block;
    font-size: 20px;
    line-height: 1.22;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body .site-description {
    text-align: left;
  }

  body .gwt-mobile-navigation {
    border: 0;
    margin: 6px 0 0;
    padding: 0;
    text-align: right;
  }

  body .menu-toggle {
    background: #0b7f68;
    border: 1px solid #096d59;
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(30, 42, 34, 0.24);
    color: #fff;
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 0 auto;
    padding: 9px 17px;
    text-transform: none;
    width: auto;
  }

  body .menu-toggle:hover,
  body .menu-toggle:focus {
    background: #096d59;
    color: #fff;
  }

  body .gwt-mobile-navigation ul.nav-menu.toggled-on,
  body .gwt-mobile-navigation div.nav-menu > ul.toggled-on {
    background: #fff;
    border: 1px solid #dce5db;
    box-shadow: 0 8px 20px rgba(30, 42, 34, 0.06);
    left: 0;
    margin: 14px 0 0;
    padding: 8px 0;
    position: absolute;
    right: 0;
    text-align: left;
    width: 100%;
    z-index: 20;
  }

  body .gwt-mobile-navigation ul.nav-menu.toggled-on li,
  body .gwt-mobile-navigation div.nav-menu > ul.toggled-on li {
    border-bottom: 1px solid #edf1eb;
    display: block;
    margin: 0;
    text-align: left;
    width: 100%;
  }

  body .gwt-mobile-navigation ul.nav-menu.toggled-on li:last-child,
  body .gwt-mobile-navigation div.nav-menu > ul.toggled-on li:last-child {
    border-bottom: 0;
  }

  body .gwt-mobile-navigation ul.nav-menu.toggled-on li a,
  body .gwt-mobile-navigation div.nav-menu > ul.toggled-on li a {
    color: #263126;
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    padding: 13px 12px;
    text-align: left;
    text-decoration: none;
    width: 100%;
  }

  body .gwt-mobile-navigation ul.nav-menu.toggled-on li a:hover,
  body .gwt-mobile-navigation div.nav-menu > ul.toggled-on li a:hover {
    background: #eff5ee;
    color: var(--gwt-green-dark);
  }

  body .header-image {
    margin: 18px 0 0;
    max-width: 100%;
    width: 100%;
  }

  .gwt-archive-card {
    display: block;
    margin: 0 0 6px !important;
    padding: 10px !important;
    padding-bottom: 10px !important;
  }

  .gwt-archive-header,
  .gwt-single-header {
    background: #fff;
    border-left: 0;
    border-top: 1px solid #e1e6df;
    margin: 0 0 20px;
    padding: 26px 0 20px;
  }

  .gwt-archive-title,
  .gwt-single-title {
    color: #152018;
  }

  .gwt-archive-thumb {
    margin-bottom: 10px;
  }

  .gwt-archive-thumb img {
    width: 100%;
  }

  .gwt-archive-card h2 {
    font-size: 22px;
  }

  .gwt-pagination {
    align-items: stretch;
    display: block;
    margin-top: 16px;
    padding-top: 16px;
  }

  .gwt-pagination-status {
    display: block;
    margin-bottom: 10px;
  }

  .gwt-pagination-links {
    justify-content: flex-start;
  }

  .gwt-pagination .page-numbers {
    min-height: 40px;
    min-width: 40px;
  }

  .gwt-single-title {
    font-size: 28px;
  }

  .gwt-single-meta {
    display: block;
    margin-bottom: 14px;
  }

  .gwt-single-meta span {
    display: block;
    margin-bottom: 4px;
  }

  .gwt-single .entry-content {
    font-size: 17px;
    line-height: 1.78;
  }

  .gwt-toc {
    padding: 18px;
  }

  .gwt-toc ol {
    display: block;
  }

  .gwt-toc li {
    margin-bottom: 8px;
  }

  .gwt-post-nav {
    grid-template-columns: 1fr;
  }

  .gwt-post-nav .next {
    text-align: left;
  }

  .gwt-hero {
    padding: 28px 18px;
  }

  .gwt-hero-visual {
    gap: 22px;
  }

  .gwt-hero h2 {
    font-size: 25px;
    line-height: 1.2;
    max-width: 250px;
  }

  .gwt-kicker {
    font-size: 11px;
  }

  .gwt-lead {
    font-size: 16px;
    line-height: 1.65;
    max-width: 265px;
  }

  .gwt-hero-media img {
    min-height: 190px;
  }

  .gwt-actions,
  .gwt-actions a {
    width: 100%;
  }

  .gwt-actions {
    gap: 12px;
  }

  .gwt-actions a {
    display: block;
    font-size: 13px;
    text-align: center;
    white-space: normal;
  }

  .gwt-grid,
  .gwt-plan,
  .gwt-featured,
  .gwt-faq,
  .gwt-list {
    display: block;
  }

  .gwt-card,
  .gwt-step,
  .gwt-mini,
  .gwt-faq div {
    margin-bottom: 10px;
  }

  body .site-content .gwt-home article.gwt-card {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
  }

  .gwt-section h2 {
    font-size: 22px;
    max-width: 270px;
  }

  body #colophon {
    margin-top: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .gwt-single .entry-content .gwt-related-guides {
    margin-top: 32px !important;
    padding: 20px !important;
  }

  .gwt-single .entry-content .gwt-related-guides h2 {
    font-size: 24px !important;
  }

  .gwt-single .entry-content .gwt-related-guides a {
    font-size: 17px;
    padding: 13px 14px;
  }
}
