/*
Theme Name: WeiGoes Travel
Theme URI: https://weigoes.com/
Author: WeiGoes
Description: A travel blog theme with manually curated popular posts, country/region/city taxonomies, article directories, SEO fallback, and responsive layouts.
Version: 1.6.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: weigoes-travel
Tags: blog, travel, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --wg-bg: #f6f3ee;
  --wg-paper: #ffffff;
  --wg-ink: #292824;
  --wg-muted: #77736c;
  --wg-line: #e8e2d9;
  --wg-brand: #2f6f5e;
  --wg-brand-soft: #e8f1ed;
  --wg-accent: #c47742;
  --wg-shadow: 0 16px 40px rgba(57, 48, 38, .10);
  --wg-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wg-bg);
  color: var(--wg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto;
  background: #fff; color: #111; padding: 12px; z-index: 100000;
}

.wg-page {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto;
  background: var(--wg-paper);
  border: 1px solid rgba(224, 217, 207, .9);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--wg-shadow);
}
.wg-topbar {
  display: flex; align-items: center; justify-content: flex-start; gap: 24px;
  padding: 18px 6%; border-bottom: 1px solid var(--wg-line);
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
}
.wg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wg-brand .custom-logo-link { display: flex; align-items: center; }
.wg-brand .custom-logo { max-height: 42px; width: auto; }
.wg-site-title {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 23px; font-weight: 900; letter-spacing: .1em; text-decoration: none;
  white-space: nowrap;
}
.wg-site-title em { color: var(--wg-brand); font-style: normal; }
.wg-navigation { display: flex; align-items: center; gap: 20px; margin-left: 2px; }
.wg-navigation > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.wg-navigation a { text-decoration: none; color: #5d5952; font-size: 14px; transition: .2s; }
.wg-navigation a:hover, .wg-navigation .current-menu-item > a { color: var(--wg-brand); }
.wg-menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font-size: 25px; padding: 5px; color: var(--wg-ink); }

.wg-county-menu {
  position: relative;
}
.wg-county-menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 2px;
  border: 0;
  background: transparent;
  color: #5d5952;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .18s ease;
}
.wg-county-menu-toggle::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 1px;
  background: var(--wg-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.wg-county-menu-toggle:hover,
.wg-county-menu-toggle:focus-visible,
.wg-county-menu.is-open .wg-county-menu-toggle {
  color: var(--wg-ink);
}
.wg-county-menu-toggle:hover::after,
.wg-county-menu-toggle:focus-visible::after,
.wg-county-menu.is-open .wg-county-menu-toggle::after {
  transform: scaleX(1);
}
.wg-county-menu-icon {
  display: block;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.wg-county-menu.is-open .wg-county-menu-icon {
  transform: rotate(180deg);
}
.wg-county-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: min(380px, calc(100vw - 48px));
  padding: 14px 8px 8px;
  border: 1px solid var(--wg-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(45, 39, 32, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.wg-county-menu.is-open .wg-county-menu-panel,
.wg-county-menu:focus-within .wg-county-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.wg-county-menu-label {
  margin: 0 0 8px;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--wg-line);
  color: var(--wg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}
.wg-county-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch !important;
  gap: 2px !important;
}
.wg-county-menu-list li {
  margin: 0;
}
.wg-county-menu-list a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #514d47;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.wg-county-menu-list a:hover,
.wg-county-menu-list a:focus-visible {
  background: var(--wg-brand-soft);
  color: var(--wg-brand);
}
.wg-county-menu-list small {
  color: #a8a29a;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.wg-county-menu-list a:hover small,
.wg-county-menu-list a:focus-visible small {
  color: var(--wg-brand);
}

.wg-breadcrumbs {
  padding: 18px 8% 0;
  color: #817b73;
  font-size: 12px;
  background: #fff;
}
.wg-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wg-breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.wg-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 7px; color: #b0aaa2; }
.wg-breadcrumbs a { color: inherit; text-decoration: none; }
.wg-breadcrumbs a:hover { color: var(--wg-brand); }
.wg-breadcrumbs [aria-current="page"] {
  display: block;
  max-width: min(58vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #57534d;
}

.wg-single-hero { padding: 64px 8% 34px; text-align: center; }
.wg-category-pill {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px;
  background: var(--wg-brand-soft); color: var(--wg-brand); font-size: 12px; font-weight: 900; letter-spacing: .08em;
  text-decoration: none;
}
.wg-single-title {
  width: min(900px, 100%); margin: 22px auto 16px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.3; letter-spacing: -.025em;
  text-align: justify;
}
.wg-single-subtitle { width: min(760px, 100%); margin: 0 auto; color: var(--wg-muted); line-height: 1.8; font-size: 17px; text-align: justify; }
.wg-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: #8c877f; font-size: 13px; }
.wg-avatar, .wg-author-photo {
  display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--wg-brand), #90b6aa); color: #fff; font-weight: 900;
}
.wg-avatar { width: 30px; height: 30px; overflow: hidden; }
.wg-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.wg-cover-section { padding: 0 6%; }
.wg-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 20px; display: block; }
.wg-cover-placeholder {
  width: 100%; aspect-ratio: 16 / 7; border-radius: 20px;
  display: grid; place-items: center; padding: 30px; text-align: center;
  color: #fff; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(28px, 4vw, 52px); font-weight: 800;
  background: linear-gradient(135deg, #345e52, #9db4a8 55%, #d0a17d);
}

.wg-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 54px; padding: 50px 8% 74px; }
.wg-article { min-width: 0; }
.wg-lead { margin: 0 0 30px; padding-left: 20px; border-left: 4px solid var(--wg-accent); color: #514e49; font-size: 19px; line-height: 1.95; }
.wg-article-toc { margin: 0 0 38px; padding: 24px 26px; border: 1px solid var(--wg-line); border-radius: 16px; background: #faf8f4; }
.wg-article-toc h2 { margin: 0 0 14px; font-size: 19px; font-family: inherit; }
.wg-article-toc ol { list-style: none; counter-reset: wg-toc; margin: 0; padding-left: 4px; display: grid; gap: 9px; color: #5f5b54; line-height: 1.7; }
.wg-article-toc li:not(.wg-toc-h3) { counter-increment: wg-toc; }
.wg-article-toc li:not(.wg-toc-h3) > a::before { content: counter(wg-toc) ". "; color: #8c877f; }
.wg-article-toc li.wg-toc-h3 { margin-left: 22px; font-size: .94em; }
.wg-article-toc li.wg-toc-h3 > a::before { content: "‧ "; color: #8c877f; }
.wg-article-toc a { text-decoration: none; }
.wg-article-toc a:hover { color: var(--wg-brand); }
.wg-entry-content {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 18px; line-height: 2; color: #3f3c37;
  overflow-wrap: anywhere;
}
.wg-entry-content > *:first-child { margin-top: 0; }
.wg-entry-content h2 { scroll-margin-top: 95px; margin: 44px 0 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif; font-size: 28px; line-height: 1.45; color: #25231f; }
.wg-entry-content h3 { scroll-margin-top: 95px; margin: 32px 0 13px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif; font-size: 21px; color: #2d2b27; }
.wg-entry-content p { margin: 0 0 24px; }
.wg-entry-content blockquote { margin: 30px 0; padding: 22px 24px; background: #f7f2ea; border-radius: 14px; color: #5a5248; font-style: italic; }
.wg-entry-content blockquote p:last-child { margin-bottom: 0; }
.wg-entry-content ul, .wg-entry-content ol { margin: 0 0 24px; padding-left: 26px; }
.wg-entry-content li { margin: 6px 0; }
.wg-entry-content img { border-radius: 16px; }
.wg-entry-content figure { margin: 28px 0; }
.wg-entry-content figcaption { margin-top: 10px; color: #918b82; text-align: left; font-size: 14.5px; line-height: 1.7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif; }
.wg-entry-content a { color: var(--wg-brand); text-underline-offset: 3px; }
.wg-entry-content pre { overflow: auto; padding: 18px; border-radius: 12px; background: #242924; color: #edf3ef; font-size: 14px; line-height: 1.7; }
.wg-entry-content table { width: 100%; border-collapse: collapse; margin: 25px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; }
.wg-entry-content th, .wg-entry-content td { padding: 12px; border: 1px solid var(--wg-line); text-align: left; }
.wg-entry-content th { background: #f7f4ef; }
.wg-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.wg-tag { padding: 7px 11px; border-radius: 999px; background: #f1eee9; color: #68635c; font-size: 12px; text-decoration: none; }
.wg-share { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--wg-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wg-share-buttons { display: flex; gap: 8px; }
.wg-share-buttons a, .wg-share-buttons button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--wg-line); background: #fff; color: #5f5b54; font-weight: 900; text-decoration: none; cursor: pointer; }

.wg-sidebar { min-width: 0; }
.wg-sidebar-card { padding: 19px; margin-bottom: 18px; border: 1px solid var(--wg-line); border-radius: 16px; background: #fff; }
.wg-sidebar-card h2, .wg-sidebar-card h3 { margin: 0 0 14px; font-size: 16px; }
.wg-sidebar-related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wg-sidebar-related-list a { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.wg-sidebar-related-thumb { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: #ece5d8; }
.wg-sidebar-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-sidebar-related-text { min-width: 0; }
.wg-sidebar-related-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.55; color: #37342f; transition: color .15s ease; }
.wg-sidebar-related-list a:hover .wg-sidebar-related-title { color: var(--wg-brand); }
.wg-sidebar-related-meta { display: block; margin-top: 4px; font-size: 11px; color: #a39d94; }
.wg-spot-info dl { margin: 0; display: grid; gap: 13px; text-align: left; }
.wg-spot-info dt { margin: 0 0 3px; font-size: 12.5px; font-weight: 700; color: #292824; }
.wg-spot-info dd { margin: 0; font-size: 12.5px; line-height: 1.75; color: #5f5b54; }
.wg-spot-stars { color: #d9a441; font-size: 15px; letter-spacing: 2px; }
.wg-spot-stars-off { color: #ddd6cb; }
.wg-spot-info dd a { color: var(--wg-brand); text-decoration: underline; text-underline-offset: 3px; }
.wg-spot-info dd a:hover { color: #24564a; }
.wg-spot-info--mobile { display: none; margin-bottom: 26px; }
.wg-author-card { text-align: center; }
.wg-author-photo { width: 78px; height: 78px; margin: 0 auto 13px; font-size: 28px; overflow: hidden; }
.wg-author-photo img { width: 100%; height: 100%; object-fit: cover; }
.wg-author-card p { margin: 0; color: var(--wg-muted); font-size: 13px; line-height: 1.75; text-align: justify; }
.wg-author-card a { color: var(--wg-brand); text-decoration: none; }


.wg-browse-carousel {
  padding: 54px 8% 66px;
  border-top: 1px solid var(--wg-line);
  background: #f7f4ef;
}
.wg-browse-carousel-head {
  align-items: flex-end;
}
.wg-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.wg-carousel-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wg-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wg-brand);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.wg-carousel-button:hover:not(:disabled),
.wg-carousel-button:focus-visible:not(:disabled) {
  border-color: #b7cec6;
  background: var(--wg-brand-soft);
}
.wg-carousel-button:disabled {
  opacity: .32;
  cursor: default;
}
.wg-carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.wg-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.wg-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
}
.wg-carousel-track .wg-card {
  width: clamp(260px, 27vw, 340px);
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.wg-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.wg-section-head h2 { margin: 0; font-size: 28px; }
.wg-section-head p { margin: 7px 0 0; color: var(--wg-muted); font-size: 14px; }
.wg-more { color: var(--wg-brand); font-weight: 800; font-size: 13px; white-space: nowrap; text-decoration: none; }
.wg-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.wg-card { overflow: hidden; background: #fff; border: 1px solid var(--wg-line); border-radius: 16px; transition: .2s; }
.wg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(55,47,39,.10); }
.wg-card-thumbnail { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #dce5df, #e8d7c8); }
.wg-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.wg-card:hover .wg-card-thumbnail img { transform: scale(1.035); }
.wg-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; padding: 20px; text-align: center; background: linear-gradient(135deg, #486e63, #c59472); }
.wg-card-body { padding: 16px; }
.wg-card-category { color: var(--wg-brand); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.wg-card h3 { margin: 8px 0; font-size: 17px; line-height: 1.5; }
.wg-card h3 a { text-decoration: none; }
.wg-card p { margin: 0; color: var(--wg-muted); font-size: 13px; line-height: 1.7; }

.wg-listing-hero { padding: 62px 8% 38px; text-align: center; background: linear-gradient(180deg, #fbfaf7, #fff); }
.wg-listing-hero h1 { margin: 0 0 12px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(36px, 5vw, 58px); }
.wg-listing-hero p { margin: 0 auto; max-width: 700px; color: var(--wg-muted); line-height: 1.8; }
.wg-listing { padding: 42px 8% 72px; }
.wg-listing .wg-cards { grid-template-columns: repeat(3, 1fr); }
.wg-pagination { margin-top: 34px; }
.wg-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wg-pagination a, .wg-pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--wg-line); border-radius: 9px; text-decoration: none; }
.wg-pagination .current { background: var(--wg-brand); color: #fff; border-color: var(--wg-brand); }
.wg-empty { text-align: center; padding: 60px 20px; color: var(--wg-muted); }

.wg-page-content { padding: 60px 10% 80px; }
.wg-page-title { font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(36px, 5vw, 58px); margin: 0 0 30px; }
.wg-search-form { display: flex; gap: 8px; max-width: 520px; margin: 25px auto 0; }
.wg-search-form input { flex: 1; min-width: 0; border: 1px solid var(--wg-line); border-radius: 10px; padding: 11px 12px; }
.wg-search-form button { border: 0; border-radius: 10px; background: var(--wg-brand); color: #fff; font-weight: 800; padding: 0 18px; }

.wg-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 8%; background: #24342f; color: #dfe9e5; }
.wg-footer .wg-site-title { color: #fff; }
.wg-footer small { color: #aebfba; }
.wg-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.wg-footer-nav a { color: #c4d1cd; text-decoration: none; font-size: 13px; }
.wg-back-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wg-brand); color: #fff; font-size: 18px; box-shadow: 0 10px 20px rgba(47,111,94,.28); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; cursor: pointer; z-index: 50; }
.wg-back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.alignwide { margin-left: -5%; width: 110%; max-width: 110%; }
.alignfull { margin-left: calc(50% - 50vw); width: 100vw; max-width: 100vw; }

@media (max-width: 960px) {
  .wg-content-layout { grid-template-columns: 1fr; gap: 30px; }
  .wg-sidebar-related { display: none; }
  .wg-spot-info--mobile { display: block; }
  .wg-sidebar-card.wg-spot-info--mobile { margin: 0 0 26px; }
  .wg-spot-info--desktop { display: none; }
  .wg-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .wg-sidebar-card { margin: 0; }
  .wg-cards, .wg-listing .wg-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wg-page { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .wg-topbar { padding: 14px 18px; flex-wrap: wrap; }
  .wg-menu-toggle { display: block; margin-left: auto; }
  .wg-navigation {
    width: 100%;
    display: none;
    align-items: stretch;
    padding: 8px 0 4px;
  }
  .wg-navigation.is-open {
    display: flex;
    flex-direction: column;
  }
  .wg-navigation > ul {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .wg-navigation > ul > li {
    width: 100%;
    border-top: 1px solid var(--wg-line);
  }
  .wg-navigation > ul > li > a {
    display: block;
    padding: 12px 4px;
  }
  .wg-county-menu {
    width: 100%;
    order: -1;
    position: relative;
    border-top: 1px solid var(--wg-line);
  }
  .wg-county-menu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
  }
  .wg-county-menu-panel {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 4px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
    transition: max-height .35s ease, padding .25s ease;
  }
  .wg-county-menu:hover .wg-county-menu-panel,
  .wg-county-menu:focus-within .wg-county-menu-panel {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }
  .wg-county-menu.is-open .wg-county-menu-panel {
    max-height: 1400px;
    padding-top: 8px;
    padding-bottom: 16px;
    pointer-events: auto;
  }
  .wg-county-menu-toggle::after {
    display: none;
  }
  .wg-county-menu-label {
    margin-bottom: 4px;
    padding: 0 4px 8px;
  }
  .wg-county-menu-list {
    gap: 0 !important;
  }
  .wg-county-menu-list a {
    min-height: 44px;
  }
  .wg-breadcrumbs {
  padding: 18px 8% 0;
  color: #817b73;
  font-size: 12px;
  background: #fff;
}
.wg-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wg-breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.wg-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 7px; color: #b0aaa2; }
.wg-breadcrumbs a { color: inherit; text-decoration: none; }
.wg-breadcrumbs a:hover { color: var(--wg-brand); }
.wg-breadcrumbs [aria-current="page"] {
  display: block;
  max-width: min(58vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #57534d;
}

.wg-single-hero { padding: 44px 7% 28px; }
  .wg-single-subtitle { font-size: 15px; }
  .wg-cover-section { padding: 0 16px; }
  .wg-cover, .wg-cover-placeholder { aspect-ratio: 4 / 3; border-radius: 14px; }
  .wg-content-layout { padding: 38px 7% 54px; }
  .wg-lead { font-size: 17px; }
  .wg-entry-content { font-size: 17px; }
  .wg-sidebar { grid-template-columns: 1fr; }
  .wg-share { align-items: flex-start; flex-direction: column; }
  .wg-browse-more {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 7%;
  }
  .wg-browse-more-list {
    grid-template-columns: 1fr;
  }
  .wg-browse-more-list a {
    min-height: 62px;
  }
  .wg-recommended { padding: 44px 7% 54px; }
  .wg-section-head { align-items: flex-start; }
  .wg-cards, .wg-listing .wg-cards { grid-template-columns: 1fr; }
  .wg-footer { align-items: flex-start; flex-direction: column; }
  .wg-footer-nav ul { flex-direction: column; }
  .wg-page-content { padding: 45px 7% 60px; }
  .alignwide, .alignfull { margin-left: 0; width: 100%; max-width: 100%; }
}

/* County-first navigation and magazine homepage — v1.2.0 */
.wg-county-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 6%;
  border-bottom: 1px solid var(--wg-line);
  background: #fbfaf7;
}
.wg-county-strip-label {
  flex: 0 0 auto;
  color: var(--wg-brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.wg-county-strip-scroll {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: 3px 0;
}
.wg-county-link {
  flex: 0 0 auto;
  color: #68635c;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.wg-county-link:hover,
.wg-county-link.is-active { color: var(--wg-brand); font-weight: 800; }

.wg-home-intro {
  padding: 68px 8% 42px;
  background:
    radial-gradient(circle at 88% 8%, rgba(196,119,66,.13), transparent 25%),
    radial-gradient(circle at 10% 22%, rgba(47,111,94,.12), transparent 28%),
    linear-gradient(180deg, #fbfaf6, #fff);
  text-align: center;
}
.wg-home-kicker,
.wg-section-eyebrow {
  display: inline-block;
  color: var(--wg-brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.wg-home-intro h1 {
  width: min(900px, 100%);
  margin: 16px auto 15px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.17;
  letter-spacing: -.04em;
}
.wg-home-intro > p {
  width: min(720px, 100%);
  margin: 0 auto;
  color: var(--wg-muted);
  font-size: 17px;
  line-height: 1.85;
}
.wg-discovery-search {
  width: min(880px, 100%);
  margin: 32px auto 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 2.2fr auto;
  gap: 10px;
  border: 1px solid var(--wg-line);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(63,53,43,.09);
  text-align: left;
}
.wg-discovery-search label { min-width: 0; }
.wg-discovery-search label > span {
  display: block;
  margin: 0 0 6px 3px;
  color: #8a847c;
  font-size: 11px;
  font-weight: 800;
}
.wg-discovery-search select,
.wg-discovery-search input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #e2ddd5;
  border-radius: 10px;
  background: #fff;
  color: var(--wg-ink);
  outline: none;
}
.wg-discovery-search select:focus,
.wg-discovery-search input:focus {
  border-color: #8ab2a5;
  box-shadow: 0 0 0 3px rgba(47,111,94,.09);
}
.wg-discovery-search button {
  align-self: end;
  height: 45px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: var(--wg-brand);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.wg-home-section,
.wg-county-explorer,
.wg-topic-section { padding: 58px 8% 70px; }
.wg-featured-section { background: #fff; }
.wg-section-head .wg-section-eyebrow { margin-bottom: 8px; }
.wg-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 18px;
}
.wg-feature-main,
.wg-feature-side { min-width: 0; }
.wg-feature-side {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 14px;
}
.wg-feature-card {
  position: relative;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #345e52;
  isolation: isolate;
}
.wg-feature-card--main { min-height: 538px; }
.wg-feature-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--wg-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.wg-feature-row:hover {
  box-shadow: 0 10px 24px rgba(45, 39, 32, .08);
  transform: translateY(-1px);
}
.wg-feature-row-thumb {
  flex: 0 0 132px;
  display: block;
  background: #ece5d8;
}
.wg-feature-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wg-feature-row-body {
  min-width: 0;
  padding: 12px 16px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.wg-feature-row-meta {
  font-size: 11px;
  font-weight: 600;
  color: #8f9e93;
  letter-spacing: .04em;
}
.wg-feature-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wg-feature-row h3 a {
  color: #2d2b27;
  text-decoration: none;
  transition: color .15s ease;
}
.wg-feature-row h3 a:hover { color: var(--wg-brand); }
.wg-feature-card--secondary { min-height: 260px; }
.wg-feature-image,
.wg-feature-image img,
.wg-feature-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.wg-feature-image img { object-fit: cover; transition: transform .45s ease; }
.wg-feature-placeholder {
  background:
    linear-gradient(135deg, rgba(47,111,94,.86), rgba(196,119,66,.66)),
    radial-gradient(circle at 70% 20%, #9ab7ad, transparent 35%);
}
.wg-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,22,19,.04) 25%, rgba(15,22,19,.86) 100%);
  pointer-events: none;
}
.wg-feature-card:hover .wg-feature-image img { transform: scale(1.035); }
.wg-feature-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
}
.wg-feature-card--secondary .wg-feature-content { padding: 18px; }
.wg-feature-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.wg-feature-badges a {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.wg-feature-content h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -.02em;
}
.wg-feature-card--secondary h2 { font-size: 17px; line-height: 1.48; }
.wg-feature-content h2 a { color: inherit; text-decoration: none; }
.wg-feature-content p {
  max-width: 670px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  font-size: 14px;
}

.wg-county-explorer { background: #f5f2ec; }
.wg-region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.wg-region-card {
  padding: 20px;
  border: 1px solid #e3ddd4;
  border-radius: 17px;
  background: rgba(255,255,255,.88);
}
.wg-region-card h3 {
  margin: 0 0 13px;
  color: var(--wg-brand);
  font-size: 15px;
}
.wg-region-links { display: grid; gap: 6px; }
.wg-region-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  color: #4f4b45;
  text-decoration: none;
  transition: .18s;
}
.wg-region-links a:hover { background: var(--wg-brand-soft); color: var(--wg-brand); }
.wg-region-links small { color: #aaa39a; white-space: nowrap; }

.wg-latest-section {
  background: #f8f6f1;
}
.wg-latest-list {
  border-top: 1px solid var(--wg-line);
}
.wg-latest-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--wg-line);
}
.wg-latest-item-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  border-radius: 15px;
  background: #e7e2da;
  text-decoration: none;
}
.wg-latest-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.wg-latest-item:hover .wg-latest-item-image img {
  transform: scale(1.035);
}
.wg-latest-item-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  font-family: Georgia, "Noto Serif TC", serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--wg-brand), #9eb8ae);
}
.wg-latest-item-content {
  min-width: 0;
}
.wg-latest-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: #8d877f;
  font-size: 11px;
  font-weight: 800;
}
.wg-latest-item-meta a {
  color: var(--wg-brand);
  text-decoration: none;
}
.wg-latest-item-meta > * + *::before {
  content: "·";
  margin-right: 7px;
  color: #b9b2a9;
}
.wg-latest-item h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.45;
}
.wg-latest-item h3 a {
  color: var(--wg-ink);
  text-decoration: none;
}
.wg-latest-item h3 a:hover {
  color: var(--wg-brand);
}
.wg-latest-item p {
  margin: 9px 0 11px;
  color: var(--wg-muted);
  font-size: 14px;
  line-height: 1.75;
}
.wg-latest-item-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wg-brand);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.wg-latest-item-more span {
  transition: transform .2s ease;
}
.wg-latest-item-more:hover span {
  transform: translateX(4px);
}

.wg-card-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wg-card-location,
.wg-card-category {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.wg-card-location--country { color: #7657a8; }
.wg-card-location--region { color: var(--wg-accent); }
.wg-card-location--locality { color: #9a6a32; }
.wg-card-category { color: var(--wg-brand); }
.wg-card-badges > a + a::before {
  content: "·";
  margin-right: 7px;
  color: #bcb5ac;
}

.wg-topic-section { background: #24342f; color: #fff; }
.wg-topic-section .wg-section-head p { color: #aebfba; }
.wg-topic-section .wg-section-eyebrow { color: #91c3b4; }
.wg-topic-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.wg-topic-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: #fff;
  text-decoration: none;
}
.wg-topic-links a:hover { background: rgba(255,255,255,.1); }
.wg-topic-links span { color: #aebfba; font-size: 12px; }


.wg-single-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wg-country-pill {
  background: #f1ebfa;
  color: #6c4a9b;
}
.wg-region-pill {
  background: #eef5f1;
  color: var(--wg-brand);
}
.wg-county-pill {
  background: #fff0e5;
  color: #a95e2e;
}

.wg-county-archive-hero {
  padding: 66px 8% 46px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 15%, rgba(196,119,66,.12), transparent 25%),
    linear-gradient(180deg, #fbfaf6, #fff);
}
.wg-county-archive-hero h1 {
  margin: 13px 0 12px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(40px, 6vw, 68px);
}
.wg-county-archive-hero > p,
.wg-county-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--wg-muted);
  line-height: 1.8;
}
.wg-county-description p:last-child { margin-bottom: 0; }
.wg-county-listing { padding-top: 30px; }

@media (max-width: 1100px) {
  .wg-discovery-search {
    grid-template-columns: 1fr 1fr;
  }
  .wg-discovery-search .wg-search-keyword {
    grid-column: 1 / -1;
  }
  .wg-discovery-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .wg-feature-grid { grid-template-columns: 1fr; }
  .wg-feature-card--main { min-height: 470px; }
  .wg-region-grid { grid-template-columns: repeat(3, 1fr); }
  .wg-topic-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .wg-county-strip { padding: 9px 18px; gap: 12px; }
  .wg-county-strip-label { display: none; }
  .wg-county-strip-scroll { gap: 13px; }
  .wg-home-intro { padding: 46px 7% 34px; }
  .wg-home-intro > p { font-size: 15px; }
  .wg-discovery-search { grid-template-columns: 1fr; padding: 12px; }
  .wg-discovery-search button { width: 100%; }
  .wg-home-section,
  .wg-county-explorer,
  .wg-topic-section { padding: 44px 7% 54px; }
  .wg-feature-card--main { min-height: 440px; }
  .wg-feature-card--secondary { min-height: 255px; }
  .wg-feature-content { padding: 22px; }
  .wg-feature-content h2 { font-size: 28px; }
  .wg-feature-card--secondary h2 { font-size: 20px; }
  .wg-latest-item {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 0;
  }
  .wg-latest-item-image {
    border-radius: 11px;
  }
  .wg-latest-item-meta {
    margin-bottom: 6px;
  }
  .wg-latest-item h3 {
    font-size: 17px;
    line-height: 1.45;
  }
  .wg-latest-item p,
  .wg-latest-item-more {
    display: none;
  }
  .wg-region-grid { grid-template-columns: 1fr; }
  .wg-topic-links { grid-template-columns: 1fr; }
  .wg-county-archive-hero { padding: 48px 7% 34px; }
}

@media (max-width: 430px) {
  .wg-latest-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}


/* WeiGoes 1.3.3 responsive overrides */
@media (max-width: 1100px) {
  .wg-discovery-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wg-navigation {
    margin-left: 0;
  }

  .wg-county-menu-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px !important;
  }

  .wg-county-menu-list a {
    min-height: 44px;
    padding: 10px;
  }

  .wg-browse-carousel {
    padding: 44px 7% 54px;
  }

  .wg-browse-carousel-head {
    align-items: flex-start;
  }

  .wg-carousel-track .wg-card {
    width: min(78vw, 300px);
  }
}

@media (max-width: 430px) {
  .wg-county-menu-list {
    grid-template-columns: 1fr;
  }
}
