/* The original bilingual header, footer and contact link surround the directory. */
.guides {
  --ink: #162f49;
  --blue: #00509d;
  --line: #d9e2e9;
  width: min(1160px, 92%); margin: 0 auto; padding: 38px 0 88px;
  color: var(--ink); font-family: system-ui, "PingFang HK", "Microsoft JhengHei", sans-serif;
}
body:has(.guides) {background: #fbfbfc}
body:has(.guides) .hd .wrap {height: 80px}
.guides *, .guides *::after {box-sizing: border-box}
.guides h1,.guides h2,.guides h3,.guides p {margin: 0; color: inherit}
.guide-intro {border-left: 5px solid var(--blue); padding-left: 20px; margin-bottom: 30px}
.guides h1 {font-size: clamp(1.8rem,4vw,3rem); line-height: 1.15; letter-spacing: -.035em}
.guide-intro p {margin: 10px 0 0; color: #475e71; line-height: 1.65}
.guides h2 {font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -.015em}
.guide-features {display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px}
.guides .guide-card {display: flex; flex-direction: column; overflow: hidden; min-width: 0; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; text-decoration: none}
.guide-card .guide-photo {display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 2.35}
.guide-copy {padding: 19px 21px; text-align: start; min-width: 0}
.guide-meta {display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: .79rem; line-height: 1.5}
.guide-meta span {color: #00509d; font-weight: 750}
.guide-meta time {color: #596a77; font-variant-numeric: tabular-nums}
.guides h3 {font-size: 1.18rem; line-height: 1.43; margin: 7px 0; overflow-wrap: anywhere}
.guide-copy p {font-size: .92rem; line-height: 1.6; color: #496071; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden}
.guides .guide-lead {grid-row: span 2; background: #093d6c; color: #fff; border-color: #093d6c}
.guide-lead .guide-photo {aspect-ratio: 3.05; flex: 1 1 auto; min-height: 0; max-height: 235px}
.guide-lead .guide-copy {padding: 18px 24px 23px}
.guide-lead h3 {font-size: clamp(1.4rem,2.25vw,2rem); line-height: 1.25}
.guide-lead .guide-meta span,.guide-lead .guide-meta time,.guide-lead p {color: #e0edfa}
.guides .guide-side {flex-direction: row; align-items: stretch}
.guide-side .guide-photo {width: 29%; object-position: 37% center; aspect-ratio: auto; min-height: 100%; height: auto; object-fit: cover}
.guide-side .guide-copy {align-self: center; padding: 16px}
.guide-features > :only-child {grid-column: 1/-1}
.guide-list-head {display: flex; align-items: baseline; gap: 14px; margin: 34px 0 12px}
.guide-list-head h2 {font-size: 1.5rem; margin: 0}
.guide-list-head > span {color: #516678; font-size: .9rem}
.guide-filters {display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px}
.guides .guide-filters a {display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; min-height: 44px; background: white; color: #29455e; border: 1px solid var(--line); border-radius: 6px; font-size: .92rem; text-decoration: none}
.guide-filters small {font-variant-numeric: tabular-nums}
.guides .guide-filters [aria-current],.guides .guide-pager [aria-current] {background: var(--blue); border-color: var(--blue); color: white; font-weight: 700}
.guide-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px}
.guides .guide-regular:not(:has(img)) {border-top: 4px solid var(--blue); justify-content: center; background: #f1f5f8}
.guides .guide-card:hover,.guides .guide-card:active {border-color: var(--blue); box-shadow: 0 3px 12px #003f881c}
.guide-card:hover h3,.guide-card:active h3 {text-decoration: underline; text-underline-offset: 4px}
.guides a:focus-visible {outline: 3px solid #1974bb; outline-offset: 3px}
.guide-pager {border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; padding-right: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .94rem}
.guide-pager div {display: flex; gap: 6px; align-items: center; flex-wrap: wrap}
.guides .guide-pager a,.guide-pager .guide-step {display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid #b9c9d5; color: #203f59; border-radius: 6px; min-width: 44px; min-height: 44px; text-decoration: none; font-weight: 600}
.guide-pager .guide-step {gap: 6px; padding: 0 12px}
.guide-pager .guide-step:last-child b {order: 1}
.guide-pager b {font-size: 1.4rem}
.guide-pager .guide-step[aria-disabled] {background: #f4f5f6; color: #687783; border-color: #e0e4e8}
.guides .guide-pager a:hover,.guides .guide-filters a:hover {border-color: var(--blue); text-decoration: underline}
@font-face {font-family: GuideContact; src: url('/wp-content/plugins/wpforms-lite/assets/lib/font-awesome/webfonts/fa-brands-400.woff2') format('woff2'); font-display: block}
body:has(.guides) .wa-float {font-size: 0; display: grid; place-items: center; padding: 0; width: 48px; height: 48px; right: 8px; bottom: 14px}
body:has(.guides) .wa-float::before {content: "\f232"; font: 30px/1 GuideContact}
@media(max-width: 900px) {
  .guide-grid {grid-template-columns: repeat(2,minmax(0,1fr))}
  .guide-features {grid-template-columns: 1.1fr 1fr}
  .guide-side .guide-copy {padding: 12px}
  .guide-pager {flex-wrap: wrap}
}
@media(max-width: 700px) {
  body:has(.guides) .hd .wrap {height: 64px}
  .guides {width: calc(100% - 28px); padding-top: 24px}
  .guide-intro {padding-left: 13px; margin-bottom: 19px}
  .guide-features {grid-template-columns: 1fr; gap: 9px}
  .guides .guide-lead {grid-row: auto}
  .guide-lead .guide-photo {aspect-ratio: 3.4; flex: none}
  .guide-lead .guide-copy {padding: 12px 15px}
  .guide-side .guide-photo {width: 24%; min-height: 0}
  .guide-side h3 {font-size: 1.02rem; margin: 4px 0}
  .guide-side p {font-size: .84rem}
  .guide-pager {display: block; padding-right: 46px}
  .guide-pager div {margin-top: 10px; gap: 4px}
  .guide-pager .guide-step {padding: 0}
  .guide-step span {display: none}
}
@media(max-width: 600px) {
  .guide-grid {grid-template-columns: 1fr}
  .guide-copy {padding: 16px}
  .guide-filters {gap: 6px}
}
