/* Poradniki SEO (seo/guides/*.blade.php) — na bazie storage-landing.css (tokeny, nav, btn, cta, foot). */
.gd-body { min-height: 100vh; }
.gd-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--yellow); color: var(--on-yellow); font-weight: 800; }
.gd-skip:focus { left: 12px; }
.gd-main { max-width: 1180px; margin: 0 auto; padding-top: 110px; }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }

.gd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--faint); margin-bottom: 18px; }
.gd-crumbs a { text-decoration: none; color: var(--muted); }
.gd-crumbs a:hover { color: var(--ink); }

.gd-hero { max-width: 820px; margin-bottom: 34px; }
.gd-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin: 8px 0 16px; }
.gd-hero > p, .gd-lead { color: var(--muted); font-size: 19px; line-height: 1.55; margin: 0 0 14px; max-width: 62ch; }
.gd-meta { color: var(--faint); font-size: 14px; font-weight: 700; }

/* Lista poradników */
.gd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.gd-card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.gd-card h2, .gd-card h3 { font-size: 23px; line-height: 1.15; }
.gd-card h2 a, .gd-card h3 a { text-decoration: none; }
.gd-card h2 a:hover, .gd-card h3 a:hover { color: var(--accent-ink); }
.gd-card p { margin: 0; color: var(--muted); flex: 1; }

/* Artykuł */
.gd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.gd-layout:has(> .gd-prose:only-child) { grid-template-columns: minmax(0, 1fr); }
.gd-toc { position: sticky; top: 100px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.gd-toc b { display: block; margin-bottom: 8px; font-family: var(--disp); font-size: 15px; }
.gd-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.gd-toc a { text-decoration: none; }
.gd-toc a:hover { color: var(--ink); text-decoration: underline; }

.gd-prose { max-width: 72ch; font-size: 18px; line-height: 1.7; }
.gd-prose > :first-child { margin-top: 0; }
.gd-prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; margin: 46px 0 14px; scroll-margin-top: 100px; }
.gd-prose h3 { font-size: 22px; margin: 30px 0 10px; }
.gd-prose p { margin: 0 0 16px; }
.gd-prose ul, .gd-prose ol { margin: 0 0 18px; padding-left: 24px; }
.gd-prose li { margin: 6px 0; }
.gd-prose li::marker { color: var(--yellow); font-weight: 800; }
.gd-prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.gd-prose strong { color: var(--ink); }
.gd-prose blockquote { margin: 22px 0; padding: 16px 20px; border-radius: 16px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); }
.gd-prose blockquote p:last-child { margin-bottom: 0; }
.gd-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; }
.gd-prose th, .gd-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gd-prose th { font-family: var(--disp); color: var(--ink); }
.gd-prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); }
.gd-prose img { max-width: 100%; height: auto; border-radius: 16px; }

.gd-inline-cta { margin: 40px 0 0; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); }
.gd-inline-cta b { font-family: var(--disp); font-size: 21px; display: block; }
.gd-inline-cta p { margin: 8px 0 16px; color: var(--muted); font-size: 16px; }

.gd-related { margin-top: 70px; }
.gd-related > h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }

@media (max-width: 900px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gd-toc { position: static; }
  .gd-main { padding-top: 92px; }
  .gd-prose { font-size: 17px; }
}
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; } }

/* Obrazy: okładka, miniatury, zdjęcia i zrzuty w treści */
.gd-cover { margin: 0 0 40px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--surface); }
.gd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-card { padding: 0 0 24px; overflow: hidden; }
.gd-card > :not(.gd-card__img) { margin-left: 24px; margin-right: 24px; }
.gd-card > h2:first-child, .gd-card > h3:first-child { margin-top: 24px; }
.gd-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.gd-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gd-card:hover .gd-card__img img { transform: scale(1.04); }

.gd-fig { margin: 30px 0; }
.gd-fig img { display: block; max-width: 100%; height: auto; }
.gd-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--faint); font-weight: 600; text-align: center; }
.gd-fig.is-photo img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
/* Zrzut z telefonu: ramka jak ekran */
.gd-fig.is-phone { display: flex; flex-direction: column; align-items: center; }
.gd-fig.is-phone img { width: min(100%, 330px); border-radius: 30px; border: 6px solid #05071a; box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow); background: #0d1130; }
.gd-fig.is-phone figcaption { max-width: 330px; }
/* Zrzut z komputera: pasek okna przeglądarki */
.gd-fig.is-desktop img { width: 100%; border-radius: 0 0 16px 16px; }
.gd-fig.is-desktop { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.gd-fig.is-desktop::before { content: ""; display: block; height: 30px; border-radius: 16px 16px 0 0; background: radial-gradient(circle at 18px 15px, #ff5f57 5px, transparent 6px), radial-gradient(circle at 36px 15px, #febc2e 5px, transparent 6px), radial-gradient(circle at 54px 15px, #28c840 5px, transparent 6px), var(--surface-2); }
.gd-fig.is-desktop figcaption { padding: 0 14px 12px; }
/* Dwa zrzuty obok siebie */
.gd-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; align-items: start; }
.gd-shots .gd-fig { margin: 0; }
@media (max-width: 560px) { .gd-shots { grid-template-columns: minmax(0, 1fr); } .gd-cover { border-radius: 20px; margin-bottom: 28px; } }

/* Kontakt (contact/show.blade.php) */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 70px; }
.ct-card { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ct-side { display: grid; gap: 16px; }
.ct-card h2 { font-size: 23px; margin-bottom: 14px; }
.ct-side .ct-card h2 { font-size: 19px; margin-bottom: 8px; }
.ct-card p { margin: 0 0 8px; }
.ct-muted { color: var(--muted); font-size: 15px; }
.ct-card a { color: var(--accent-ink); text-underline-offset: 3px; }
.ct-mail { font: 800 20px var(--disp); letter-spacing: -.02em; }
.ct-form { display: grid; gap: 16px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.ct-field input, .ct-field select, .ct-field textarea { font: 500 16px var(--body); color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; width: 100%; }
.ct-field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.ct-field [aria-invalid="true"] { border-color: var(--red); }
.ct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.ct-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--yellow); flex: none; }
.ct-err { color: var(--red); font-weight: 700; font-size: 13px; }
.ct-form .btn { justify-self: start; }
.ct-ok { margin-bottom: 18px; padding: 16px 18px; border-radius: 16px; background: var(--green-soft); border: 1px solid var(--green); }
.ct-ok p { margin: 6px 0 0; color: var(--ink); font-size: 15px; }
.ct-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ct-row { grid-template-columns: minmax(0, 1fr); } .ct-card { padding: 20px; } }

/* Przyciski w treści artykułu nie dziedziczą koloru linków (.gd-prose a) — żółty z granatowym tekstem */
.gd-prose a.btn { text-decoration: none; }
.gd-prose a.btn--y, .gd-prose a.btn--y:hover, .gd-prose a.btn--y:visited { color: var(--on-yellow, #0c1030); }
.gd-prose a.btn--g { color: var(--ink); }
