/* CV guides (public/guides/). Builds on styles.css + examples.css. */
.gd { padding: 8px 16px 40px; }

/* Each guide has its own colour, used on its hero and its card. */
.tone-sun   { --t-bg: var(--sun);   --t-ink: var(--green); --t-soft: #3c5a4c; }
.tone-green { --t-bg: var(--green); --t-ink: #ffffff;      --t-soft: #cfe3d8; }
.tone-plum  { --t-bg: #f1e4ee;      --t-ink: #5e2453;      --t-soft: #6d4a66; }
.tone-teal  { --t-bg: #dcefeb;      --t-ink: #0d5650;      --t-soft: #3f6662; }

/* ---------- hero ---------- */
.gd-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; overflow: hidden;
  padding: 44px 44px 44px 48px; border-radius: 28px; background: var(--t-bg); color: var(--t-ink); }
.gd-hero h1 { margin: 10px 0 0; font: 800 clamp(36px, 5.6vw, 62px)/1.0 var(--display); letter-spacing: -.04em; color: var(--t-ink); text-wrap: balance; }
.gd-lede { max-width: 62ch; margin: 18px 0 0; font-size: 19px; line-height: 1.55; }
.gd-hero .gd-lede { color: var(--t-soft); }
.gd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.gd-meta span { padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.55); color: var(--t-ink); font-size: 14px; font-weight: 700; }
.tone-green .gd-meta span { background: rgba(255,255,255,.14); }
.gd-hero-cv { align-self: stretch; position: relative; min-height: 260px; }
.gd-hero-cv .cv-frame { position: absolute; top: 6px; right: 0; width: 280px; transform: rotate(4deg); box-shadow: 0 24px 50px rgba(0,0,0,.22); border: 0; }
@media (max-width: 860px) {
  .gd-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 0; }
  .gd-hero-cv { min-height: 170px; margin: 0 -22px; overflow: hidden; }
  .gd-hero-cv .cv-frame { left: 50%; right: auto; top: 22px; width: 250px; transform: translateX(-50%) rotate(3deg); }
}

/* ---------- article layout ---------- */
.gd-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 48px; margin-top: 40px; }
.gd-side { position: relative; }
.gd-toc { position: sticky; top: 20px; }
.gd-toc p { margin: 0 0 10px; font: 800 15px var(--display); color: var(--green); }
.gd-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.gd-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 15px; line-height: 1.35; text-decoration: none; }
.gd-toc a:hover { color: var(--green); border-left-color: var(--green); }
@media (max-width: 860px) { .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; } .gd-side { display: none; } }

.gd-article { font-size: 18px; line-height: 1.65; }
.gd-article section { scroll-margin-top: 20px; }
.gd-article h2 { margin: 44px 0 12px; font: 800 clamp(26px, 3.2vw, 32px)/1.12 var(--display); letter-spacing: -.025em; color: var(--green); text-wrap: balance; }
.gd-article p { margin: 0 0 14px; }
.gd-article ul, .gd-article ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.gd-article em { font-style: normal; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }

/* The short version */
.gd-takeaways { padding: 26px 28px 20px; border-radius: 20px; background: #fff8dc; border: 2px solid var(--sun); }
.gd-takeaways h2 { margin: 0 0 14px; font-size: 22px; }
.gd-ticks { list-style: none; padding-left: 0 !important; }
.gd-ticks li { position: relative; padding-left: 36px; }
.gd-ticks li::before { content: "✓"; position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--green); font-weight: 800; font-size: 14px; }
.gd-takeaways .gd-ticks li::before { background: var(--green); color: var(--sun); }

/* Numbered steps: only used where the content is a real order or sequence. */
.gd-steps { list-style: none; padding-left: 0 !important; counter-reset: step; gap: 12px !important; }
.gd-steps li { position: relative; padding: 14px 16px 14px 62px; border-radius: 14px; background: var(--paper-2); counter-increment: step; }
.gd-steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--green); color: var(--sun); font: 800 16px var(--display); }

/* Before / after */
.gd-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 14px; }
@media (max-width: 640px) { .gd-ba { grid-template-columns: 1fr; } }
.gd-ba > div { padding: 18px 20px; border-radius: 16px; }
.gd-ba span { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.gd-ba p { margin: 0; font-size: 17px; }
.gd-before { background: #f6efef; }
.gd-before span { background: #e9d7d7; color: #7a2e2e; }
.gd-before p { color: #6b5555; }
.gd-after { background: #e6f2ec; border: 2px solid var(--green); }
.gd-after span { background: var(--green); color: var(--sun); }

/* Tables */
.gd-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 6px 0 16px; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gd-table th { text-align: left; padding: 12px 16px; background: var(--green); color: #fff; font-weight: 700; }
.gd-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.gd-table td:first-child { color: var(--ink-2); }
.gd-table td:last-child { font-weight: 600; }
.gd-io td:first-child { color: var(--ink); font-weight: 600; }
.gd-io td:last-child { color: #8a3b3b; font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(138,59,59,.45); }
.gd-io th:last-child { background: #8a3b3b; }

/* Chips */
.gd-chips { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.gd-chips li { padding: 7px 14px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; color: var(--green); }

/* Example email */
.gd-email { margin: 6px 0 14px; padding: 6px 0; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 16px; }
.gd-email p { margin: 0; padding: 12px 20px; }
.gd-email p + p { border-top: 1px solid var(--line); }
.gd-email span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); }

/* Figures: real CV Studio designs */
.gd-figure { margin: 30px 0; padding: 28px; border-radius: 24px; background: var(--paper-2); }
.gd-figure > .cv-frame { max-width: 480px; margin: 0 auto; }
.gd-figure figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink-2); }
.gd-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.gd-pair > div { min-width: 0; }
.gd-pair figcaption { grid-column: 1 / -1; margin-top: 0; }
.gd-tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 99px; background: var(--green); color: var(--sun); font-size: 13px; font-weight: 800; }
@media (max-width: 640px) { .gd-figure { padding: 16px; margin: 24px -4px; } .gd-pair { gap: 10px; } }

/* In-article call to action */
.gd-callout { display: flex; align-items: center; gap: 22px; margin: 30px 0; padding: 24px 26px; border-radius: 20px; background: var(--green); color: #fff; }
.gd-callout h3 { margin: 0 0 4px; font: 800 22px var(--display); letter-spacing: -.02em; color: var(--sun); }
.gd-callout p { margin: 0; color: #dbe9e1; font-size: 16px; line-height: 1.5; }
.gd-callout .btn { flex-shrink: 0; }
@media (max-width: 640px) { .gd-callout { flex-direction: column; align-items: flex-start; } }

/* Bottom CTA */
.gd-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.gd-cta p { margin-bottom: 0; }
.gd-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.gd-btn-line:hover { background: rgba(255,255,255,.1); }

/* Guide cards (hub + related) */
.gd-related { margin-top: 44px; }
.gd-related h2 { margin: 0 0 14px; font: 800 26px var(--display); letter-spacing: -.02em; }
.gd-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gd-cards a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 24px 22px; border-radius: 22px; background: var(--t-bg); color: var(--t-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.gd-cards a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,32,27,.14); }
.gd-cards strong { font: 800 25px/1.08 var(--display); letter-spacing: -.025em; }
.gd-cards span { font-size: 16px; line-height: 1.45; color: var(--t-soft); }
.gd-card-meta { font-size: 13px !important; font-weight: 800; color: var(--t-ink) !important; opacity: .75; }
.gd-card-go { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--t-ink) !important; text-decoration: underline; text-underline-offset: 4px; }
.gd-cards-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .gd-cards-hub { grid-template-columns: minmax(0, 1fr); } }
.gd-cards-hub a { min-height: 250px; }
@media (prefers-reduced-motion: reduce) { .gd-cards a { transition: none; } .gd-cards a:hover { transform: none; } }

.gd-hub-hero { padding: 6px 0 30px; }
.gd-hub-hero h1 { margin: 0; max-width: 18ch; font: 800 clamp(38px, 6vw, 66px)/1.0 var(--display); letter-spacing: -.04em; color: var(--green); text-wrap: balance; }

/* copy-and-paste CV template (free template guide) */
.gd-template { margin: 14px 0 6px; padding: 18px 20px; border-radius: 12px; background: #fbfaf6; border: 1px solid var(--line); font: 14px/1.6 "Courier New", monospace; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
