/* v0.3.8 — keep the current submenu page readable in GeneratePress. */
.main-navigation .main-nav ul ul li.current-menu-item > a,
.main-navigation .main-nav ul ul li.current_page_item > a,
.main-navigation .main-nav ul ul li.current-menu-item > a:hover,
.main-navigation .main-nav ul ul li.current_page_item > a:hover,
.main-navigation .main-nav ul ul li.current-menu-item > a:focus,
.main-navigation .main-nav ul ul li.current_page_item > a:focus {
  color: #ffffff !important;
}

/*
 * Give the complete desktop header enough real width for both languages.
 * Keep every normal menu label on one line and preserve the flag group at the
 * end instead of asking GeneratePress to shrink or clip individual items.
 */
@media (min-width: 769px) {
  .site-header .inside-header {
    width: calc(100% - 32px);
    max-width: 1240px;
    box-sizing: border-box;
    overflow: visible;
  }

  .main-navigation,
  .main-navigation .main-nav {
    min-width: 0;
    overflow: visible;
  }

  .main-navigation .main-nav > ul {
    display: flex;
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
    align-items: center;
  }

  .main-navigation .main-nav > ul > li {
    flex: 0 0 auto;
  }

  .main-navigation .main-nav > ul > li:not(.ctst-language-switch) > a {
    padding-right: 14px;
    padding-left: 14px;
    white-space: nowrap;
  }

  /*
   * Give long English and Spanish desktop submenu titles room to breathe.
   * Mobile keeps GeneratePress's native full-width menu behaviour.
   */
  .main-navigation .main-nav ul ul {
    width: 360px;
    max-width: calc(100vw - 32px);
  }

  .main-navigation .main-nav ul ul li > a {
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.45;
    overflow-wrap: break-word;
  }
}

/* Two clear 30px language choices at the end of the primary menu. */
.main-navigation .main-nav > ul > li.ctst-language-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: 6px;
  white-space: nowrap;
}

.ctst-language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.main-navigation .main-nav > ul > li.ctst-language-switch .ctst-language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 44px;
  padding: 0;
  line-height: normal;
  background: transparent !important;
}

.ctst-language-option .ctst-language-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  transition: transform 160ms ease, outline-color 160ms ease;
}

.ctst-language-option-current .ctst-language-icon {
  outline: 2px solid #127a82;
  outline-offset: 2px;
}

.ctst-language-option:hover .ctst-language-icon {
  transform: scale(1.06);
}

.ctst-language-option:focus-visible {
  outline: 3px solid #127a82;
  outline-offset: 1px;
}

@media (max-width: 768px) {
  .main-navigation.toggled .main-nav > ul > li.ctst-language-switch {
    display: flex;
    margin-left: 0;
    border-top: 0;
    box-shadow: none;
  }

  .main-navigation.toggled .ctst-language-switcher {
    gap: 6px;
    min-height: 58px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .main-navigation.toggled .main-nav > ul > li.ctst-language-switch .ctst-language-option {
    width: 44px;
    min-width: 44px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctst-language-option .ctst-language-icon {
    transition: none;
  }

  .ctst-language-option:hover .ctst-language-icon {
    transform: none;
  }
}

/* Compact, transparent publication and Country Watch review dates. */
.ctst-guide-date-original,
.ctst-guide-date-reviewed {
  font-size: 0.84em;
  line-height: 1.45;
}

.ctst-guide-date-reviewed {
  color: #526b78;
}

/* Give the longer Spanish footer headings a little more breathing room. */
.ctst-spanish .footer-widgets .widget-title,
.ctst-spanish .site-footer .widget-title {
  line-height: 1.45;
  margin-bottom: 28px;
}

/* Centre the four footer widgets as one balanced group on wide screens. */
@media (min-width: 1200px) {
  .inside-footer-widgets {
    display: grid;
    width: calc(100% - 48px);
    max-width: 1450px;
    margin-right: auto;
    margin-left: auto;
    transform: translateX(-8px);
    grid-template-columns:
      minmax(220px, 280px)
      minmax(300px, 400px)
      minmax(280px, 330px)
      minmax(150px, 190px);
    column-gap: 48px;
    justify-content: center;
  }

  .inside-footer-widgets > div {
    width: auto !important;
    min-width: 0;
  }
}

/* Give both long Spanish guide headings a full line on very wide screens. */
@media (min-width: 1440px) {
  .ctst-spanish .inside-footer-widgets {
    grid-template-columns:
      minmax(220px, 250px)
      minmax(350px, 370px)
      minmax(410px, 430px)
      minmax(160px, 180px);
    column-gap: 40px;
  }

  .ctst-spanish .footer-widget-2 .widget-title,
  .ctst-spanish .footer-widget-3 .widget-title {
    white-space: nowrap;
  }
}

/* ChipTrace desktop sidebar search and related-article spacing. */
@media (min-width: 769px) {
  #right-sidebar .widget_search,
  #right-sidebar .wp-block-search,
  .widget-area .widget_search,
  .widget-area .wp-block-search {
    margin-bottom: 18px !important;
  }

  #right-sidebar .widget_ctst_related_articles,
  .widget-area .widget_ctst_related_articles,
  #right-sidebar [id*="ctst_related_articles"],
  .widget-area [id*="ctst_related_articles"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #right-sidebar .widget_search .widget-title,
  #right-sidebar .wp-block-search__label,
  .widget-area .widget_search .widget-title,
  .widget-area .wp-block-search__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  #right-sidebar .widget_search .search-form,
  #right-sidebar .wp-block-search__inside-wrapper,
  .widget-area .widget_search .search-form,
  .widget-area .wp-block-search__inside-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 56px !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #right-sidebar .widget_search .search-form label,
  .widget-area .widget_search .search-form label {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  #right-sidebar .widget_search .search-field,
  #right-sidebar .widget_search input[type="search"],
  #right-sidebar .wp-block-search__input,
  .widget-area .widget_search .search-field,
  .widget-area .widget_search input[type="search"],
  .widget-area .wp-block-search__input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 56px;
    box-sizing: border-box;
    margin: 0 !important;
  }

  #right-sidebar .widget_search .search-submit,
  #right-sidebar .widget_search button,
  #right-sidebar .wp-block-search__button,
  .widget-area .widget_search .search-submit,
  .widget-area .widget_search button,
  .widget-area .wp-block-search__button {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    text-indent: -9999px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
  }

  #right-sidebar .widget_search .search-submit::before,
  #right-sidebar .widget_search button::before,
  #right-sidebar .wp-block-search__button::before,
  .widget-area .widget_search .search-submit::before,
  .widget-area .widget_search button::before,
  .widget-area .wp-block-search__button::before {
    content: none !important;
    display: none !important;
  }
}

/* Dynamic ChipTrace article grid. */
.ct-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 30px;
  width: 100%;
  margin: 0;
}

.ct-article-card {
  min-width: 0;
  margin: 0;
}

.ct-article-image-link {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #f3f9fb;
  text-decoration: none;
}

.ct-article-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 180ms ease;
}

.ct-article-image-placeholder {
  background:
    linear-gradient(135deg, rgba(18, 122, 130, 0.08), rgba(18, 122, 130, 0.02)),
    #f3f9fb;
}

.ct-article-image-link:hover .ct-article-image,
.ct-article-image-link:focus-visible .ct-article-image {
  transform: scale(1.015);
}

.ct-article-content {
  padding: 0 4px;
}

.ct-article-title {
  margin: 0 0 10px;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

/* Compact titles on the English and Spanish article-guide index pages. */
.ctst-article-grid-index .ct-article-title {
  font-size: 18px;
}

/* Keep excerpt starts aligned while allowing the complete titles to remain visible. */
@media (min-width: 681px) {
  .ctst-article-grid-index:not(.ctst-spanish) .ct-article-title {
    min-height: 3.9em;
  }

  .ctst-article-grid-index.ctst-spanish .ct-article-title {
    min-height: 5.2em;
  }
}

.ct-article-title a {
  color: #10232d;
  text-decoration: none;
}

.ct-article-title a:hover {
  color: #127a82;
}

.ct-article-excerpt {
  margin: 0;
  color: #42525e;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Give every guide-index excerpt the same five-line visual footprint. */
.ctst-article-grid-index .ct-article-excerpt {
  display: -webkit-box;
  height: 7.75em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.ct-article-image-link:focus-visible,
.ct-article-title a:focus-visible {
  outline: 3px solid #127a82;
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .ct-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ct-article-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ct-article-image {
    transition: none;
  }

  .ct-article-image-link:hover .ct-article-image,
  .ct-article-image-link:focus-visible .ct-article-image {
    transform: none;
  }
}

/* v0.3.3 — place the single featured image below the title without duplicating it. */
.single-post .inside-article {
  display: flex;
  flex-direction: column;
}

.single-post .inside-article > .entry-header {
  order: 1;
}

.single-post .inside-article > .featured-image,
.single-post .inside-article > .post-image,
.single-post .inside-article > .page-header-image-single {
  order: 2;
  margin-top: 28px;
  margin-bottom: 28px;
}

.single-post .inside-article > .entry-content {
  order: 3;
}

.single-post .inside-article > .entry-meta,
.single-post .inside-article > footer.entry-meta {
  order: 4;
}

@media (max-width: 768px) {
  .single-post .inside-article > .featured-image,
  .single-post .inside-article > .post-image,
  .single-post .inside-article > .page-header-image-single {
    margin-top: 22px;
    margin-bottom: 24px;
  }
}

/* ==========================================================
   v0.4.0 — Draft Pet Microchip Guides hub
   Only pages containing [ct_guides_hub_draft] receive this UI.
   ========================================================== */

.ctst-guides-hub-page .site-content {
  display: block;
}

.ctst-guides-hub-page .content-area {
  width: 100%;
}

.ctst-guides-hub-page .site-main,
.ctst-guides-hub-page .inside-article,
.ctst-guides-hub-page .entry-content {
  width: 100%;
  max-width: none;
}

.ctst-guides-hub-page .entry-header {
  display: none;
}

.ctst-guides-hub-page .entry-content {
  margin-top: 0;
}

.ct-guides-hub {
  --ct-teal: #127a82;
  --ct-teal-dark: #0f7078;
  --ct-ink: #10232d;
  --ct-text: #42525e;
  --ct-soft: #f3f9fb;
  --ct-soft-blue: #d7eef7;
  --ct-border: #d8e8ef;
  width: min(100%, 1220px);
  margin: 0 auto;
  color: var(--ct-ink);
  font-family: "Inter", Helvetica, Arial, sans-serif;
}

.ct-guides-hub *,
.ct-guides-hub *::before,
.ct-guides-hub *::after {
  box-sizing: border-box;
}

.ct-guides-hub-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.ct-guides-hub-heading h1 {
  margin: 0 0 7px;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ct-ink);
}

.ct-guides-hub-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--ct-text);
  font-size: 18px;
  line-height: 1.5;
}

.ct-guides-hub-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  min-height: 52px;
}

.ct-guides-hub-search input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--ct-border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: var(--ct-ink);
  font: inherit;
}

.ct-guides-hub-search button {
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--ct-teal);
  color: #fff;
  cursor: pointer;
}

.ct-guides-hub-search button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-guides-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.ct-guides-feature-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ct-guides-feature-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 210px;
  border-radius: 18px;
  background-color: #dcebed;
  background-position: center;
  background-size: cover;
}

.ct-guides-feature-main {
  min-height: 430px;
}

.ct-guides-feature-link {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: end;
  color: #fff;
  text-decoration: none;
}

.ct-guides-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 27, 0.04) 20%, rgba(6, 21, 27, 0.82) 100%);
}

.ct-guides-feature-main .ct-guides-feature-overlay {
  background: linear-gradient(180deg, rgba(6, 21, 27, 0.03) 25%, rgba(6, 21, 27, 0.88) 100%);
}

.ct-guides-feature-content {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 26px;
}

.ct-guides-feature-main .ct-guides-feature-content {
  padding: 34px 36px;
}

.ct-guides-topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ct-teal);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.ct-guides-feature-title {
  display: block;
  max-width: 720px;
  margin-bottom: 7px;
  font-size: 23px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}

.ct-guides-feature-main .ct-guides-feature-title {
  font-size: clamp(31px, 3.2vw, 45px);
}

.ct-guides-feature-excerpt {
  display: block;
  max-width: 650px;
  margin-top: 6px;
  color: rgba(255,255,255,0.96);
  font-size: 15px;
  line-height: 1.45;
}

.ct-guides-feature-main .ct-guides-feature-excerpt {
  font-size: 17px;
}

.ct-guides-feature-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 17px;
  border-radius: 999px;
  background: #fff;
  color: var(--ct-ink);
  font-size: 14px;
  font-weight: 700;
}

.ct-guides-feature-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ct-ink);
  font-size: 20px;
  font-weight: 700;
}

.ct-guides-feature-link:hover .ct-guides-feature-button,
.ct-guides-feature-link:hover .ct-guides-feature-arrow {
  transform: translateX(2px);
}

.ct-guides-feature-link:focus-visible,
.ct-guides-standard-image-link:focus-visible,
.ct-guides-standard-title a:focus-visible,
.ct-guides-hub-sidebar a:focus-visible,
.ct-guides-hub-cta a:focus-visible,
.ct-guides-hub-search input:focus-visible,
.ct-guides-hub-search button:focus-visible {
  outline: 3px solid var(--ct-teal);
  outline-offset: 4px;
}

.ct-guides-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.ct-guides-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 0 0 20px;
  padding-top: 4px;
  border-top: 1px solid #e4ecef;
}

.ct-guides-section-heading > div {
  padding-top: 16px;
}

.ct-guides-section-heading h2,
.ct-guides-hub-sidebar h2 {
  margin: 0 0 4px;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  color: var(--ct-ink);
  font-weight: 800;
}

.ct-guides-section-heading h2 {
  font-size: 30px;
  line-height: 1.15;
}

.ct-guides-section-heading p {
  margin: 0;
  color: var(--ct-text);
  font-size: 16px;
}

.ct-guides-section-heading > a,
.ct-guides-recent-more {
  flex: 0 0 auto;
  color: var(--ct-teal-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-guides-standard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ct-guides-standard-card {
  overflow: hidden;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  background: #fff;
}

.ct-guides-standard-image-link {
  display: block;
  overflow: hidden;
  background: var(--ct-soft);
}

.ct-guides-standard-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  height: auto;
  object-fit: cover;
}

.ct-guides-standard-placeholder {
  min-height: 180px;
  background: linear-gradient(135deg, var(--ct-soft-blue), var(--ct-soft));
}

.ct-guides-standard-content {
  padding: 13px 16px 17px;
}

.ct-guides-topic-pill-light {
  margin: -27px 0 9px;
  position: relative;
  z-index: 2;
  background: #e7f6f7;
  color: var(--ct-teal-dark);
}

.ct-guides-standard-title {
  margin: 0 0 7px;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.ct-guides-standard-title a {
  color: var(--ct-ink);
  text-decoration: none;
}

.ct-guides-standard-title a:hover {
  color: var(--ct-teal-dark);
}

.ct-guides-standard-excerpt {
  margin: 0;
  color: var(--ct-text);
  font-size: 15px;
  line-height: 1.48;
}

.ct-guides-hub-sidebar {
  display: grid;
  gap: 18px;
}

.ct-guides-topics-panel,
.ct-guides-recent-panel {
  padding: 16px;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  background: #fff;
}

.ct-guides-hub-sidebar h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ct-guides-topics-panel ul,
.ct-guides-recent-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-guides-topics-panel li + li {
  margin-top: 7px;
}

.ct-guides-topics-panel a {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--ct-soft);
  color: var(--ct-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ct-guides-topics-panel a:hover {
  background: #e8f5f7;
}

.ct-guides-topic-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ct-teal);
  border-radius: 50%;
}

.ct-guides-topic-arrow {
  color: var(--ct-teal);
  font-size: 20px;
  line-height: 1;
}

.ct-guides-recent-item + .ct-guides-recent-item {
  margin-top: 10px;
}

.ct-guides-recent-item > a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ct-ink);
  text-decoration: none;
}

.ct-guides-recent-thumb {
  overflow: hidden;
  width: 54px;
  height: 46px;
  border-radius: 8px;
  background: var(--ct-soft);
}

.ct-guides-recent-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-guides-recent-copy {
  min-width: 0;
}

.ct-guides-recent-title {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.ct-guides-recent-copy time {
  display: block;
  margin-top: 3px;
  color: #6b7d89;
  font-size: 11px;
}

.ct-guides-recent-more {
  display: inline-block;
  margin-top: 13px;
}

.ct-guides-hub-cta {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eaf7fa 0%, #d7eef7 100%);
}

.ct-guides-cta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ct-teal);
  color: #fff;
}

.ct-guides-hub-cta p {
  margin: 0;
  color: var(--ct-teal-dark);
  font-size: 15px;
  font-weight: 700;
}

.ct-guides-cta-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.ct-guides-hub-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ct-guides-cta-primary {
  background: var(--ct-teal);
  color: #fff;
}

.ct-guides-cta-secondary {
  border: 1px solid #8cc4ca;
  background: #fff;
  color: var(--ct-teal-dark);
}

@media (max-width: 980px) {
  .ct-guides-hub-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ct-guides-hub-search {
    max-width: 430px;
  }

  .ct-guides-feature-layout {
    grid-template-columns: 1fr;
  }

  .ct-guides-feature-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .ct-guides-content-layout {
    grid-template-columns: 1fr;
  }

  .ct-guides-hub-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ct-guides-hub-heading h1 {
    font-size: 36px;
  }

  .ct-guides-feature-main {
    min-height: 390px;
  }

  .ct-guides-feature-side {
    grid-template-columns: 1fr;
  }

  .ct-guides-feature-small {
    min-height: 230px;
  }

  .ct-guides-standard-grid,
  .ct-guides-hub-sidebar {
    grid-template-columns: 1fr;
  }

  .ct-guides-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .ct-guides-hub-cta {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ct-guides-cta-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
  }

  .ct-guides-hub-cta a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-guides-feature-button,
  .ct-guides-feature-arrow {
    transition: none;
  }
}

/* v0.4.4 — consistent spacing and excerpt depth on the existing article grid. */
.ct-article-card {
  display: flex;
  flex-direction: column;
}

.ct-article-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px 4px 0;
}

.ct-article-title {
  margin: 0 0 10px;
}

.ct-article-excerpt {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  min-height: calc(1.55em * 4);
}

@media (max-width: 680px) {
  .ct-article-content {
    padding-top: 12px;
  }

  .ct-article-excerpt {
    min-height: 0;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}

/* v0.4.6 — ChipTrace guide tag archive. */
.ctst-tag-archive-page .site-content {
  display: block;
}

.ctst-tag-archive-page .ct-tag-archive-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 60px;
}

.ct-tag-archive {
  --ct-teal: #127a82;
  --ct-teal-dark: #0f7078;
  --ct-ink: #10232d;
  --ct-text: #42525e;
  --ct-border: #d8e8ef;
  width: 100%;
}

/* v0.5.19 — Guide sharing, with no external widgets or tracking scripts. */
.ctst-share-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 0 18px; }
.ctst-share-row > .ctst-share-date { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.5; }
.ctst-share-row .ctst-share-date p { margin: 0; }
.ctst-share-row > details.ctst-share { flex: 0 0 auto; width: auto; max-width: none; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; }
.ctst-share-row > .ctst-share > summary { box-sizing: border-box; width: auto; min-height: 44px; padding: 6px 10px; font-size: 14px; }
.single-post.ctst-has-guide-sharing .inside-article > .entry-content { margin-top: 0; }
.single-post.ctst-country-guide-post.ctst-has-guide-sharing .inside-article > .entry-content { margin-top: 14px; }
.single-post.ctst-has-guide-sharing .inside-article > .featured-image,
.single-post.ctst-has-guide-sharing .inside-article > .post-image,
.single-post.ctst-has-guide-sharing .inside-article > .page-header-image-single { margin-bottom: 14px; }
.ctst-share { position: relative; margin: 0; font: 15px/1.4 Helvetica, Arial, sans-serif; color: #10232d; }
.ctst-share > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #c9dfe3; border-radius: 10px; background: #fff; color: #127a82; font-weight: 700; cursor: pointer; list-style: none; }
.ctst-share > summary::-webkit-details-marker { display: none; }
.ctst-share > summary::marker { content: ''; }
.ctst-share[open] > summary, .ctst-share > summary:hover { background: #edf7f8; }
.ctst-share-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; max-width: calc(100vw - 40px); padding: 8px; box-sizing: border-box; z-index: 30; border: 1px solid #d8e8ef; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(16,35,45,.14); }
.ctst-share-panel ul { list-style: none; padding: 0; margin: 0; }
.ctst-share-panel li { padding: 0; margin: 0; }
.ctst-share-panel a, .ctst-share-panel button { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 44px; padding: 9px 10px; margin: 0; border: 0; border-radius: 6px; background: transparent; color: #10232d; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ctst-share-panel a:hover, .ctst-share-panel button:hover { background: #edf7f8; color: #10232d; }
.ctst-share svg { flex: 0 0 20px; }
.ctst-share-whatsapp svg { color: #008f61; }
.ctst-share-facebook svg { color: #1877f2; }
.ctst-share-bluesky svg { color: #0085ff; }
.ctst-share-linkedin svg { color: #0a66c2; }
.ctst-share :focus-visible { outline: 3px solid #127a82; outline-offset: 2px; }
.ctst-share [hidden] { display: none !important; }
.ctst-share-status { margin: 0; padding: 0 10px; font-size: 13px; }
.ctst-share-status:not(:empty) { padding-top: 8px; padding-bottom: 8px; }
.ctst-share-manual { width: 100%; min-width: 0; box-sizing: border-box; font-size: 14px; }

/* v0.5.17 — Shared visible breadcrumbs. */
.ctst-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 22px;
  color: #607482;
  font-size: 14px;
  line-height: 1.5;
}

.ctst-breadcrumbs a {
  color: #0f7078;
  text-decoration: none;
}

.ctst-breadcrumbs a:hover,
.ctst-breadcrumbs a:focus-visible {
  color: #0b5960;
  text-decoration: underline;
}

.ctst-breadcrumb-separator {
  color: #8aa0ad;
}

.ct-tag-header {
  margin-bottom: 18px;
}

.ct-tag-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: #607482;
  font-size: 14px;
}

.ct-tag-breadcrumbs a {
  color: #0f7078;
  text-decoration: none;
}

.ct-tag-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #d9e8ea;
  border-radius: 24px;
  background: linear-gradient(125deg, #fff 0%, #fff 56%, #eff9fa 100%);
}

.ct-tag-hero-copy {
  padding: 38px 42px;
}

.ct-tag-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5f5f6;
  color: #0f7078;
  font-size: 13px;
  font-weight: 700;
}

.ct-tag-hero h1 {
  margin: 0;
  color: #11232e;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ct-tag-hero-copy > p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #526777;
  font-size: 17px;
  line-height: 1.65;
}

.ct-tag-hero-mark {
  display: flex;
  min-height: 190px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 80% 18%, rgba(18,122,130,.12), transparent 32%),
    linear-gradient(145deg, #edf8f9, #dff2f4);
  color: #127a82;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.ct-tag-hero-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}

.ct-tag-hero-svg {
  display: block;
  width: 72px;
  height: 72px;
}

.ct-tag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
  padding: 13px;
  border: 1px solid #dcebed;
  border-radius: 16px;
  background: #f8fbfc;
}

.ct-tag-tab {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 14px;
  align-items: center;
  border: 1px solid #d8e7e9;
  border-radius: 999px;
  background: #fff;
  color: #42525e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ct-tag-tab:hover,
.ct-tag-tab:focus-visible,
.ct-tag-tab.is-current {
  border-color: #127a82;
  background: #127a82;
  color: #fff;
}

.ct-tag-tab-all {
  border-color: #bedbdd;
}

.ct-tag-results-heading {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
}

.ct-tag-results-heading h2 {
  margin: 0;
  color: #11232e;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 24px;
}

.ct-tag-results-heading > span {
  flex: 0 0 auto;
  color: #71828e;
  font-size: 13px;
  font-weight: 700;
}

.ct-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ct-tag-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 212px;
  overflow: hidden;
  border: 1px solid #d9e7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(26, 64, 72, .045);
}

.ct-tag-card-image-link {
  display: block;
  min-width: 0;
  background: #edf4f5;
}

.ct-tag-card-image,
.ct-tag-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 212px;
  object-fit: cover;
}

.ct-tag-card-placeholder {
  background: linear-gradient(145deg, #edf6f7, #dceff1);
}

.ct-tag-card-body {
  display: flex;
  min-width: 0;
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
}

.ct-tag-card-pill {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e5f5f6;
  color: #0f7078;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.ct-tag-card h2 {
  margin: 0;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

.ct-tag-card h2 a {
  color: #11232e;
  text-decoration: none;
}

.ct-tag-card h2 a:hover {
  color: #0f7078;
}

.ct-tag-card-body > p {
  margin: 9px 0 13px;
  color: #526777;
  font-size: 14px;
  line-height: 1.5;
}

.ct-tag-card-read {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  color: #0f7078;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ct-tag-card-read:hover {
  text-decoration: underline;
}

.ct-tag-pagination {
  margin-top: 32px;
}

.ct-tag-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ct-tag-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2e3e5;
  border-radius: 10px;
  background: #fff;
  color: #0f7078;
  text-decoration: none;
}

.ct-tag-pagination .page-numbers.current {
  border-color: #127a82;
  background: #127a82;
  color: #fff;
}

.ct-tag-empty {
  padding: 36px;
  border: 1px solid #dcebed;
  border-radius: 18px;
  background: #f8fbfc;
  text-align: center;
}

@media (max-width: 980px) {
  .ct-tag-hero {
    grid-template-columns: 1fr;
  }

  .ct-tag-hero-mark {
    min-height: 130px;
  }

  .ct-tag-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ctst-tag-archive-page .ct-tag-archive-wrap {
    padding: 28px 16px 44px;
  }

  .ct-tag-hero {
    border-radius: 18px;
  }

  .ct-tag-hero-copy {
    padding: 28px 22px;
  }

  .ct-tag-hero-copy > p {
    font-size: 16px;
  }

  .ct-tag-hero-mark {
    display: none;
  }

  .ct-tag-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
  }

  .ct-tag-tab {
    flex: 0 0 auto;
  }

  .ct-tag-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ct-tag-card {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 205px;
  }

  .ct-tag-card-image,
  .ct-tag-card-placeholder {
    min-height: 205px;
  }

  .ct-tag-card-body {
    padding: 14px;
  }

  .ct-tag-card h2 {
    font-size: 17px;
  }

  .ct-tag-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .ct-tag-card {
    grid-template-columns: 1fr;
  }

  .ct-tag-card-image,
  .ct-tag-card-placeholder {
    height: 190px;
    min-height: 190px;
  }
}

/* v0.4.8 — Country Guides landing page. */
.ct-country-guides {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.ct-country-guides-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  gap: 28px;
  align-items: stretch;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid #d9e8ea;
  border-radius: 24px;
  background: linear-gradient(125deg, #fff 0%, #fff 56%, #eff9fa 100%);
}

.ct-country-guides-copy { padding: 38px 42px; }

.ct-country-guides-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5f5f6;
  color: #0f7078;
  font-size: 13px;
  font-weight: 700;
}

.ct-country-guides h1 {
  margin: 0;
  color: #11232e;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ct-country-guides-copy p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #526777;
  font-size: 17px;
  line-height: 1.65;
}

.ct-country-guides-mark {
  display: flex;
  min-height: 190px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, #edf8f9, #dff2f4);
  color: #127a82;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.ct-country-guides-mark svg { width: 72px; height: 72px; }

.ct-country-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ct-country-guide-card {
  overflow: hidden;
  border: 1px solid #d9e7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(26,64,72,.045);
}

.ct-country-guide-image-link { display: block; background: #edf4f5; }
.ct-country-guide-image,
.ct-country-guide-placeholder {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
}
.ct-country-guide-placeholder { background: linear-gradient(145deg, #edf6f7, #dceff1); }

.ct-country-guide-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 17px;
}

.ct-country-guide-card h2 {
  margin: 0 0 3px;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}
.ct-country-guide-card h2 a { color: #11232e; text-decoration: none; }
.ct-country-guide-card h2 a:hover { color: #0f7078; }
.ct-country-guide-card-body span { color: #71828e; font-size: 13px; }

.ct-country-guide-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #127a82;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
}
.ct-country-guide-arrow:hover { background: #0f7078; color: #fff; transform: translateX(2px); }

@media (max-width: 980px) {
  .ct-country-guides-hero { grid-template-columns: 1fr; }
  .ct-country-guides-mark { min-height: 130px; }
  .ct-country-guides-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .ct-country-guides-hero { border-radius: 18px; }
  .ct-country-guides-copy { padding: 28px 22px; }
  .ct-country-guides-mark { display: none; }
  .ct-country-guides-grid { grid-template-columns: 1fr; }
  .ct-country-guide-image,
  .ct-country-guide-placeholder { height: 190px; }
}



/* v0.4.9 — Country Guides visuals + sidebar. */
.ct-country-guides-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.ct-country-guides-main {
  min-width: 0;
}

.ct-country-guides-layout .ct-country-guides-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-country-guide-image-link {
  position: relative;
  overflow: hidden;
}

.ct-country-guide-flag {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 12px rgba(17,35,46,.13);
  font-size: 22px;
  line-height: 1;
}

.ct-country-guide-image {
  transition: transform .22s ease;
}

.ct-country-guide-card:hover .ct-country-guide-image {
  transform: scale(1.025);
}

.ct-country-guides-search {
  display: flex;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #d9e8ea;
  border-radius: 15px;
  background: #fff;
}

.ct-country-guides-search input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #42525e;
}

.ct-country-guides-search input:focus {
  outline: none;
}

.ct-country-guides-search button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #127a82;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.ct-country-guides-sidebar {
  position: sticky;
  top: 28px;
}

@media (max-width: 980px) {
  .ct-country-guides-layout {
    grid-template-columns: 1fr;
  }

  .ct-country-guides-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .ct-country-guides-sidebar .ct-country-guides-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .ct-country-guides-layout .ct-country-guides-grid {
    grid-template-columns: 1fr;
  }

  .ct-country-guides-sidebar {
    display: block;
  }

  .ct-country-guides-sidebar > * + * {
    margin-top: 16px;
  }
}
