/* Guides: the /guides/ index cards and the guide pages (hero, contents, fact tiles, book cards,
   callouts, pull quotes, map, Books for this, related guides, print). Loaded on /guides/ only.
   Motion: transform + opacity only; everything stops under reduced motion. */

/* ---------- shared bits ---------- */
.gd-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; background: #fffaf1; box-shadow: inset 0 0 0 2px #e9c77d; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.gd-meta { font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.gd-draft { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #2e2a4a; color: #fff; font-weight: 700; font-size: 0.85rem; }
.gd-scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- index ---------- */
.gdi-art { position: relative; width: min(100%, 420px); aspect-ratio: 400 / 300; display: flex; align-items: flex-end; justify-content: center; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #eeeaf8, #fbf4e6 75%); }
.gdi-stack { position: relative; display: flex; gap: 6px; margin-bottom: 14%; margin-right: 6%; }
.gdi-stack .b3d-sm { width: 74px; }
.gdi-sunny { position: relative; width: 44%; height: auto; margin-bottom: 4%; }
.guides-list { padding: 18px 0 64px; }
.gd-feature { margin-bottom: 26px; }
.gd-feature-k { font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; }
.gd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gd-cards > li { display: flex; }

.gd-card {
  position: relative; display: flex; flex-direction: column; width: 100%; border-radius: 28px; overflow: hidden;
  background: #fffaf1; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  outline: none; -webkit-tap-highlight-color: transparent;
}
.gd-card-pic { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 170px; overflow: hidden; background: linear-gradient(180deg, #eeeaf8, #fbf4e6); }
.gd-card-canada .gd-card-pic { background: linear-gradient(180deg, #d3e6f2, #f8fbfd); }
.gd-card-ireland .gd-card-pic { background: linear-gradient(180deg, #e3efe4, #f6faf3); }
.gd-card-art { position: relative; height: 150px; width: auto; max-width: 70%; object-fit: contain; margin-bottom: 4px; }
.gd-card-pic .gd-draft { position: absolute; left: 14px; top: 14px; }
.gd-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 20px; flex: 1; }
.gd-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.gd-card-title { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.gd-card-sum { color: var(--ink-soft); }
.gd-card-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cta); }
.gd-arrow { display: inline-block; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gd-card:hover .gd-card-title, .gd-card:focus-visible .gd-card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gd-card:hover .gd-arrow, .gd-card:focus-visible .gd-arrow, .gd-bf-card:hover .gd-arrow, .gd-bf-card:focus-visible .gd-arrow { transform: translateX(6px); }
.gd-card:focus-visible, .gd-bf-card:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink), var(--shadow); transform: translate3d(0, -6px, 0) rotate(-0.6deg); }
.gd-card:focus-visible .hop, .gd-bf-card:focus-visible .hop { animation: hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1.4); }
.gd-card:active, .gd-bf-card:active { transform: translate3d(0, -2px, 0) scale(0.985); }
@media (min-width: 760px) {
  .gd-card-big { flex-direction: row; min-height: 320px; }
  .gd-card-big .gd-card-pic { width: 46%; height: auto; flex: none; }
  .gd-card-big .gd-card-art { height: 270px; max-width: 80%; }
  .gd-card-big .gd-card-body { padding: 30px 34px; justify-content: center; }
  .gd-card-big .gd-card-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
  .gd-card-big .gd-card-sum { font-size: 1.12rem; }
}

/* ---------- guide hero ---------- */
.gd-hero h1 { max-width: 20ch; }
.gd-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.gd-hero .gd-summary { max-width: 58ch; margin-top: 14px; }
.gd-updated { margin: 10px 0 0; }
.gd-hero-art { position: relative; width: min(100%, 460px); aspect-ratio: 400 / 320; justify-self: center; display: flex; align-items: flex-end; justify-content: center; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #eeeaf8, #fbf4e6 80%); }
.gd-hero-canada .gd-hero-art { background: linear-gradient(180deg, #cfe3f1, #f8fbfd 80%); }
.gd-hero-ireland .gd-hero-art { background: linear-gradient(180deg, #e3efe4, #f6faf3 80%); }
.gd-hero-art .gd-art { position: relative; width: auto; height: 86%; max-width: 76%; object-fit: contain; margin-bottom: 2%; }
@media (max-width: 959px) { .gd-hero-art { width: min(100%, 360px); order: -1; } }

/* ---------- layout + table of contents ---------- */
.gd-layout { display: grid; gap: 0 48px; padding-bottom: 32px; }
.gd-body { min-width: 0; max-width: 46rem; padding: 8px 0 24px; }
.gd-toc { display: none; }
.gd-toc ol, .gd-toc-m ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.gd-toc li, .gd-toc-m li { counter-increment: toc; }
.gd-toc a, .gd-toc-m a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink); line-height: 1.3; }
.gd-toc a::before, .gd-toc-m a::before { content: counter(toc); flex: none; width: 1.6em; height: 1.6em; display: inline-grid; place-items: center; border-radius: 50%; background: var(--honey-soft); font-size: 0.85rem; }
.gd-toc a:hover, .gd-toc-m a:hover { background: rgba(251, 227, 176, 0.6); }
.gd-toc a[aria-current="true"] { background: #fffaf1; box-shadow: inset 3px 0 0 var(--cta); }
.gd-toc-k { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px 10px; }
.gd-toc-m { margin: 6px 0 4px; border-radius: 20px; background: #fffaf1; box-shadow: var(--shadow); }
.gd-toc-m summary { min-height: 52px; display: flex; align-items: center; padding: 0 18px; font-weight: 700; cursor: pointer; list-style: none; }
.gd-toc-m summary::-webkit-details-marker { display: none; }
.gd-toc-m summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.gd-toc-m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.gd-toc-m summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 20px; }
.gd-toc-m nav { padding: 0 8px 12px; }
@media (min-width: 1040px) {
  .gd-layout { grid-template-columns: 250px minmax(0, 46rem); justify-content: center; }
  .gd-toc { display: block; }
  .gd-toc nav { position: sticky; top: 24px; padding: 14px 8px; border-radius: 22px; background: rgba(255, 250, 241, 0.9); box-shadow: var(--shadow); }
  .gd-toc-m { display: none; }
}
.gd-progress { position: fixed; left: 0; right: 0; top: 0; height: 5px; z-index: 60; pointer-events: none; }
.gd-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), var(--cta)); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
html:not(.js) .gd-progress { display: none; }

/* ---------- sections and headers ---------- */
.gd-sec { margin-top: 2.2em; scroll-margin-top: 20px; }
.gd-body .gd-h { display: flex; align-items: center; gap: 14px; margin: 0 0 0.7em; font-size: clamp(1.55rem, 4.6vw, 2rem); }
.gd-h-pic { display: inline-flex; align-items: flex-end; flex: none; }
.gd-h-art { width: auto; height: 72px; }
.gd-h-art + .gd-h-art { margin-left: -10px; }
.gd-ico { width: 56px; height: 56px; flex: none; }
.gd-h-pic .gd-ico + .gd-ico { margin-left: -12px; width: 44px; height: 44px; }
.gd-sec:hover .gd-h .hop { animation: hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1.4); }
/* St. Patrick's tone groups: a soft tinted band behind each header */
.gd-sec[class*="gd-tone-"] > .gd-h { padding: 10px 16px 10px 10px; border-radius: 22px; }
.gd-tone-story > .gd-h { background: linear-gradient(90deg, #dfe8f4, rgba(223, 232, 244, 0)); }
.gd-tone-hills > .gd-h { background: linear-gradient(90deg, #dcebdc, rgba(220, 235, 220, 0)); }
.gd-tone-rainbow > .gd-h { background: linear-gradient(90deg, #fde3cf, rgba(253, 227, 207, 0)); }
.gd-tone-moon > .gd-h { background: linear-gradient(90deg, #e4e0f3, rgba(228, 224, 243, 0)); }

/* ---------- fact tiles ---------- */
.gd-facts { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gd-fact { position: relative; padding: 18px 18px 16px; border-radius: 22px; background: #fffaf1; box-shadow: var(--shadow); }
.gd-fact:nth-child(3n+2) { background: linear-gradient(180deg, #eef4f8, #fffaf1 70%); }
.gd-fact:nth-child(3n) { background: linear-gradient(180deg, #fdf0d6, #fffaf1 70%); }
.gd-fact-n { position: absolute; right: 14px; top: -10px; min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fffaf1; font-weight: 700; font-size: 0.95rem; }
.gd-fact p { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.gd-fact .gd-fact-h { margin: 0 34px 6px 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.25; }
.gd-fact .gd-fact-h strong { font-weight: 600; }

/* ---------- book list cards (typographic title card, no publisher covers) ---------- */
.gd-books { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 14px; }
.gd-book { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 22px; background: #fffaf1; box-shadow: var(--shadow); }
.gd-book-plain { display: block; }
.gd-spine { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: center; min-height: 112px; padding: 10px 6px; border-radius: 6px 12px 12px 6px; color: #fffaf1; box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.14), 0 8px 14px -10px rgba(59, 42, 34, 0.6); overflow: hidden; }
.gd-spine-t { font-family: var(--display); font-weight: 600; font-size: 0.72rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.gd-spine-orn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 250, 241, 0.7); flex: none; }
.gd-spine-0 { background: #2f6b6a; } .gd-spine-1 { background: #8a3b22; } .gd-spine-2 { background: #3e4f86; }
.gd-spine-3 { background: #5b6b2f; } .gd-spine-4 { background: #7a3f6e; } .gd-spine-5 { background: #4b4036; }
.gd-book-body { min-width: 0; }
.gd-body .gd-book-title { margin: 0 0 4px; font-size: 1.22rem; line-height: 1.25; }
.gd-book-extra { font-family: var(--body); font-weight: 400; font-size: 0.95rem; color: var(--ink-soft); }
.gd-book-by { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 6px; font-size: 0.98rem; color: var(--ink-soft); }
.gd-book-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.gd-book-meta li { margin: 0; padding: 2px 10px; border-radius: 999px; background: #f3ead8; font-size: 0.9rem; font-weight: 700; }
.gd-book-desc { margin: 0; font-size: 1.02rem; }
.gd-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; background: #e4e0f3; color: #2e2a4a; font-weight: 700; font-size: 0.9rem; }
.gd-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6a5fb0; }
@media (max-width: 420px) { .gd-book { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; } .gd-spine { min-height: 96px; } .gd-spine-t { font-size: 0.62rem; } }

/* ---------- callouts, pull quotes, quotes ---------- */
.gd-callout { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 0 1.2em; padding: 18px 20px; border-radius: 22px; background: #fdf0d6; box-shadow: inset 0 0 0 2px #e9c77d; }
.gd-callout .gd-ico { width: 44px; height: 44px; }
.gd-callout p:last-child { margin-bottom: 0; }
.gd-callout-t { font-weight: 700; }
.gd-pull { position: relative; margin: 1.4em 0; padding: 22px 24px 20px 64px; border-radius: 26px; background: linear-gradient(135deg, #eeeaf8, #fffaf1); box-shadow: var(--shadow); }
.gd-pull-mark { position: absolute; left: 16px; top: 2px; font-family: var(--display); font-size: 4.4rem; line-height: 1; color: #8c84c4; }
.gd-pull p { margin: 0; font-size: 1.14rem; line-height: 1.6; }
.gd-quote { margin: 1.2em 0; padding: 6px 0 6px 20px; border-left: 5px solid var(--honey); font-size: 1.15rem; }

/* ---------- embeds ---------- */
.gd-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 0 0 1.2em; padding: 14px; border-radius: 26px; background: #fdf0d6; }
.gd-face { width: 72px; height: auto; }
.gd-faces:hover .gd-face:nth-child(odd) { animation: hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1.4); }
.gd-map { margin: 0.4em 0 1.4em; padding: 14px 14px 10px; border-radius: 26px; background: #f8fbfd; box-shadow: var(--shadow); }
.gd-map svg { display: block; width: 100%; height: auto; }
.gd-map text { font-family: var(--display); font-weight: 600; font-size: 38px; fill: #1e4f4c; paint-order: stroke; stroke: #f8fbfd; stroke-width: 8px; stroke-linejoin: round; }
.gd-map figcaption { margin-top: 6px; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
.gd-bedtime { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 1em 0; }
.gd-bt-book, .gd-bt-stamp { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 24px; background: linear-gradient(180deg, #dceaf3, #fffaf1 70%); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); text-align: center; }
.gd-bt-book .b3d { width: 150px; }
.gd-bt-prev { width: 140px; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 10px 18px -12px rgba(59, 42, 34, 0.6); }
.gd-bt-cap { display: grid; gap: 2px; }
.gd-bt-cap span { color: var(--ink-soft); font-size: 0.98rem; }
.gd-bt-book:focus-visible, .gd-bt-stamp:focus-visible { box-shadow: var(--focus); }

/* ---------- Books for this, stamp CTA, related guides ---------- */
.gd-books-for { padding: 40px 0; }
.gd-bf { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.gd-bf > li { display: flex; }
.gd-bf-card { display: flex; gap: 18px; align-items: center; width: 100%; padding: 20px 22px; border-radius: 28px; background: linear-gradient(135deg, #e3eef6, #fffaf1 70%); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); outline: none; }
.gd-bf-card .b3d { width: 120px; flex: none; }
.gd-bf-body { display: flex; flex-direction: column; gap: 4px; }
.gd-bf-k { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.gd-bf-t { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.gd-bf-d { color: var(--ink-soft); font-size: 1rem; }
.gd-stamp { padding: 20px 0 40px; }
.gd-stamp-grid { display: grid; gap: 20px; align-items: center; padding: 24px; border-radius: 30px; background: linear-gradient(135deg, #fde9bd, #fbf0d8); box-shadow: var(--shadow); }
.gd-stamp-prev { width: min(46vw, 200px); height: auto; justify-self: center; border-radius: 12px; background: #fff; box-shadow: 0 14px 24px -16px rgba(59, 42, 34, 0.6); transform: rotate(-3deg); }
.gd-stamp h2 { margin-bottom: 0.3em; }
@media (min-width: 760px) { .gd-stamp-grid { grid-template-columns: 220px minmax(0, 1fr); padding: 28px 36px; } }
.gd-more { padding: 24px 0 64px; }
.gd-cards-sm .gd-card-pic { height: 130px; }
.gd-cards-sm .gd-card-art { height: 116px; }

@media (prefers-reduced-motion: reduce) {
  .gd-arrow, .gd-card, .gd-bf-card { transition: none !important; }
  .gd-card .hop, .gd-bf-card .hop, .gd-sec .hop, .gd-face, .gd-h-art { animation: none !important; }
  .gd-card:focus-visible, .gd-bf-card:focus-visible, .gd-card:active, .gd-bf-card:active { transform: none; }
}

/* ---------- print: a clean article on plain paper ---------- */
@media print {
  .gd-toc, .gd-toc-m, .gd-progress, .gd-more, .gd-stamp, .gd-books-for, .crumbs, .gd-hero-art, .gd-h-pic, .sparkles, .gd-map-pine { display: none !important; }
  .gd-layout { display: block; }
  .gd-body { max-width: none; }
  .gd-hero { padding: 0; }
  .gd-hero h1 { font-size: 22pt; max-width: none; }
  .gd-summary, .gd-fact, .gd-book, .gd-callout, .gd-pull, .gd-map, .gd-faces, .gd-bt-book, .gd-bt-stamp { box-shadow: none !important; background: #fff !important; border: 1px solid #999; break-inside: avoid; }
  .gd-fact-n { background: #fff; color: #000; border: 1px solid #000; }
  .gd-spine { box-shadow: none; border: 1px solid #000; background: #fff !important; color: #000; }
  .gd-badge { background: #fff; border: 1px solid #000; }
  .gd-sec { break-inside: auto; }
  .gd-h { break-after: avoid; }
  .gd-body a[href^="/"]::after { content: " (neverstopsplorin.com" attr(href) ")"; font-size: 0.85em; color: #444; }
}
