/* ═══════════════════════════════════════════════════════════════════
   SmartDental Help — Styles for Joomla / YOOtheme
   Matches smartdental.pl: clean white, minimal, orange accent only
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --sd-orange:       #fb961a;
  --sd-orange-hover: #e88610;
  --sd-orange-pale:  #fff7ed;
  --sd-orange-glow:  rgba(251, 150, 26, 0.06);
  --sd-text:         #444444;
  --sd-text-light:   #888888;
  --sd-text-dark:    #2a2a2a;
  --sd-heading:      #333333;
  --sd-border:       #ebebeb;
  --sd-border-light: #f3f3f3;
  --sd-bg:           #ffffff;
  --sd-bg-subtle:    #fafafa;
  --sd-success:      #16a34a;
  --sd-success-bg:   #f0fdf4;
  --sd-success-border: #bbf7d0;
  --sd-warning:      #ca8a04;
  --sd-warning-bg:   #fefce8;
  --sd-warning-border: #fde68a;
  --sd-danger:       #dc2626;
  --sd-danger-bg:    #fef2f2;
  --sd-danger-border: #fecaca;
  --sd-info:         #2563eb;
  --sd-info-bg:      #eff6ff;
  --sd-info-border:  #bfdbfe;
  --sd-radius:       4px;
  --sd-radius-lg:    8px;
  --sd-transition:   0.2s ease;
}


/* ── Article ── */
.sd-help-article {
  font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--sd-text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.sd-help-layout { display: grid; grid-template-columns: 1fr 190px; gap: 60px; align-items: start; }
@media (max-width: 1024px) { .sd-help-layout { grid-template-columns: 1fr; } .sd-help-toc { display: none; } }


/* ── Breadcrumb ── */
.sd-help-breadcrumb { font-size: 13px; color: var(--sd-text-light); margin-bottom: 4px; }
.sd-help-breadcrumb a { color: var(--sd-orange); text-decoration: none; }
.sd-help-breadcrumb a:hover { text-decoration: underline; }
.sd-sep { margin: 0 6px; color: #ccc; }
.sd-help-title { font-size: 26px; font-weight: 700; color: var(--sd-heading); margin-bottom: 4px; line-height: 1.3; letter-spacing: -0.2px; }
.sd-help-description { color: var(--sd-text-light); font-size: 15px; margin-bottom: 28px; }


.sd-help-article .sd-help-body hr { display: none !important; }

/* ── Typography ── */
.sd-help-body h1 { font-size: 26px; font-weight: 700; color: var(--sd-heading); margin-bottom: 4px; line-height: 1.3; letter-spacing: -0.2px; }
.sd-help-body h2 { font-size: 19px; font-weight: 600; margin-top: 28px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sd-border); color: var(--sd-heading); }
.sd-help-body h3 { font-size: 16px; font-weight: 600; margin-top: 18px; margin-bottom: 6px; color: var(--sd-heading); }
.sd-help-body p { margin-bottom: 10px; color: var(--sd-text); }
.sd-help-body strong { font-weight: 600; color: var(--sd-text-dark); }
.sd-help-body a { color: var(--sd-orange); text-decoration: none; font-weight: 500; }
.sd-help-body a:hover { text-decoration: underline; }
.header-anchor { margin-left: 6px; opacity: 0; font-size: 14px; color: #ccc; text-decoration: none; transition: opacity var(--sd-transition); }
h2:hover .header-anchor, h3:hover .header-anchor { opacity: 0.5; }


/* ── Lists — normal bullets ── */
.sd-help-body ul {
  margin-bottom: 14px;
  padding-left: 20px;
  list-style: disc;
}

.sd-help-body ul > li {
  margin-bottom: 5px;
  color: var(--sd-text);
  padding-left: 4px;
}

.sd-help-body ul > li::marker {
  color: var(--sd-orange);
}

.sd-help-body ol {
  margin-bottom: 14px;
  padding-left: 20px;
  list-style: decimal;
}

.sd-help-body ol > li {
  margin-bottom: 5px;
  color: var(--sd-text);
  padding-left: 4px;
}

.sd-help-body ol > li::marker {
  color: var(--sd-orange);
  font-weight: 600;
}


/* ── Code ── */
.sd-help-body code { font-family: 'JetBrains Mono', 'Menlo', monospace; font-size: 13px; background: var(--sd-bg-subtle); border: 1px solid var(--sd-border); padding: 1px 6px; border-radius: 3px; color: var(--sd-text-dark); }
.sd-help-body pre { background: var(--sd-bg-subtle); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 16px 18px; overflow-x: auto; margin-bottom: 18px; }
.sd-help-body pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.6; }


/* ── Tables ── */
.sd-help-body table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.sd-help-body th { background: var(--sd-bg-subtle); font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--sd-border); color: var(--sd-heading); font-size: 13px; }
.sd-help-body td { padding: 9px 14px; border-bottom: 1px solid var(--sd-border-light); color: var(--sd-text); }
.sd-help-body tr:last-child td { border-bottom: none; }
.sd-help-body tr:hover td { background: var(--sd-orange-glow); }


/* ── Images ── */
.sd-help-body img { max-width: 100%; border: 1px solid var(--sd-border); border-radius: var(--sd-radius); margin: 10px 0 18px; }


/* ═══════════════════════════════════════════
   CALLOUT BOXES — modern card style
   ═══════════════════════════════════════════ */

.sd-help-body blockquote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sd-orange-pale);
  border: 1px solid #fde5c5;
  border-radius: var(--sd-radius-lg);
  padding: 16px 20px;
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.65;
}

.sd-help-body blockquote::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23fb961a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 1px;
}

.sd-help-body blockquote p { margin-bottom: 0; }
.sd-help-body blockquote p:first-child { margin-top: 0; }

/* Individual callout types */
.help-tip,
.help-warning,
.help-important,
.help-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--sd-radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid;
}

.help-tip {
  background: var(--sd-success-bg);
  border-color: var(--sd-success-border);
}

.help-warning {
  background: var(--sd-warning-bg);
  border-color: var(--sd-warning-border);
}

.help-important {
  background: var(--sd-danger-bg);
  border-color: var(--sd-danger-border);
}

.help-info {
  background: var(--sd-info-bg);
  border-color: var(--sd-info-border);
}

.help-tip p:last-child,
.help-warning p:last-child,
.help-important p:last-child,
.help-info p:last-child { margin-bottom: 0; }


/* ── TOC ── */
.sd-help-toc { position: sticky; top: 80px; font-size: 13px; }
.sd-toc-title { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #bbb; margin-bottom: 12px; }
.sd-help-toc ul { list-style: none; padding: 0; margin: 0; }
.sd-help-toc li { margin: 0; }
.sd-help-toc a { display: block; padding: 4px 0 4px 14px; color: var(--sd-text-light); text-decoration: none; border-left: 2px solid var(--sd-border); transition: all var(--sd-transition); font-size: 13px; }
.sd-help-toc a:hover, .sd-help-toc a.active { color: var(--sd-orange); border-left-color: var(--sd-orange); }


/* ── Footer ── */
.sd-help-footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--sd-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.sd-help-feedback span { font-size: 14px; color: var(--sd-text-light); margin-right: 8px; }
.sd-btn-feedback { background: var(--sd-bg); border: 1px solid var(--sd-border); border-radius: var(--sd-radius); padding: 6px 14px; font-size: 13px; font-family: inherit; font-weight: 500; cursor: pointer; color: var(--sd-text); transition: all var(--sd-transition); }
.sd-btn-feedback:hover { border-color: var(--sd-orange); color: var(--sd-orange); }
.sd-help-meta { font-size: 12px; color: #ccc; }


/* ── Nav Sidebar ── */
.sd-help-nav { padding: 20px 0; }
.sd-nav-category { margin-bottom: 22px; }
.sd-nav-cat-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #bbb; padding: 0 20px; margin-bottom: 6px; }
.sd-nav-list { list-style: none; padding: 0; margin: 0; }
.sd-nav-link { display: block; padding: 6px 20px 6px 22px; color: var(--sd-text); text-decoration: none; font-size: 14px; font-weight: 400; border-left: 2px solid transparent; transition: all var(--sd-transition); }
.sd-nav-link:hover { color: var(--sd-orange); }
.sd-nav-link.active { color: var(--sd-orange); border-left-color: var(--sd-orange); font-weight: 600; }


/* ── Index Page ── */
.sd-help-index { }
.sd-help-hero { padding: 48px 24px 36px; }
.sd-hero-inner { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 32px; max-width: 680px; margin: 0 auto; }
.sd-hero-text { flex: 1 1 auto; text-align: center; }
.sd-help-hero h1 { font-size: 28px; font-weight: 700; color: var(--sd-heading); margin-bottom: 8px; }
.sd-help-hero p { color: var(--sd-text-light); font-size: 16px; margin-bottom: 24px; }
.sd-hero-mascot { flex: 0 0 80px; }
.sd-tooth-flat { width: 80px; height: auto; display: block; animation: sd-hero-float 3.5s ease-in-out infinite; filter: drop-shadow(0 8px 20px rgba(251,150,26,0.25)); }
@keyframes sd-hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sd-help-search-wrap { position: relative; max-width: 480px; margin: 0 auto; }
.sd-help-search-input { width: 100%; padding: 12px 16px 12px 44px; font-size: 15px; border: 1px solid var(--sd-border); border-radius: 30px; outline: none; font-family: inherit; color: var(--sd-text); transition: border-color var(--sd-transition); }
.sd-help-search-input::placeholder { color: #ccc; }
.sd-help-search-input:focus { border-color: var(--sd-orange); }
.sd-help-search-wrap::before { content: ''; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cccccc' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E") center/contain no-repeat; pointer-events: none; }
.sd-search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--sd-bg); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg);
  max-height: 420px; overflow-y: auto; display: none; z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.sd-search-dropdown.active { display: block; }

.sd-search-group { padding: 0; }
.sd-search-group-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--sd-text-light); padding: 12px 16px 6px; background: var(--sd-bg-subtle);
  border-bottom: 1px solid var(--sd-border-light); position: sticky; top: 0; z-index: 1;
}

.sd-search-item {
  display: block; padding: 10px 16px; cursor: pointer; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--sd-border-light); transition: background 0.15s;
}
.sd-search-item:last-child { border-bottom: none; }
.sd-search-item:hover, .sd-search-item.sd-search-active { background: var(--sd-orange-pale); }
.sd-search-item-title { font-weight: 600; font-size: 14px; color: var(--sd-text-dark); margin-bottom: 2px; }
.sd-search-item-desc { font-size: 12px; color: var(--sd-text-light); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.sd-search-item mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }

.sd-search-empty { padding: 20px 16px; text-align: center; color: var(--sd-text-light); font-size: 14px; }

.sd-search-footer {
  padding: 8px 16px; text-align: center; font-size: 11px; color: #ccc;
  background: var(--sd-bg-subtle); border-top: 1px solid var(--sd-border-light);
}


/* ── Category Cards ── */
.sd-help-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; padding: 0 24px 40px; }
.sd-help-cat-card { background: var(--sd-bg); border: 1px solid #ebebeb !important; border-radius: var(--sd-radius-lg); padding: 22px; transition: border-color var(--sd-transition), box-shadow var(--sd-transition); }
.sd-help-cat-card:hover { box-shadow: 0 4px 16px rgba(251,150,26,0.18); }
.sd-help-cat-card h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px 0; padding: 0; border: none; color: var(--sd-orange); }
.sd-help-cat-card ul { list-style: none; padding: 0; margin: 0; }
.sd-help-cat-card li { margin-bottom: 5px; }
.sd-help-cat-card a { color: var(--sd-text); text-decoration: none; font-size: 14px; transition: color var(--sd-transition); }
.sd-help-cat-card a:hover { color: var(--sd-orange); }
.sd-help-cat-card a::before { content: '▸ '; color: var(--sd-orange); font-size: 11px; }


/* ── Print ── */
@media print { .sd-help-toc, .sd-help-nav, .sd-help-feedback, .sd-help-search-wrap, .header-anchor { display: none !important; } .sd-help-layout { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════════════
   PRZEWODNIKI - styles for /przewodniki/ section
   ═══════════════════════════════════════════════════════════════════ */

/* ── Index page hero ── */
.sd-guides-index { padding: 32px 24px 60px; font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--sd-text); }
.sd-guides-hero { padding: 60px 0 40px; text-align: center; border-bottom: 1px solid var(--sd-border-light); margin-bottom: 40px; }
.sd-guides-hero h1 { font-size: 36px; font-weight: 700; color: var(--sd-heading); margin-bottom: 12px; letter-spacing: -0.5px; }
.sd-guides-hero p { font-size: 17px; color: var(--sd-text-light); max-width: 680px; margin: 0 auto; line-height: 1.6; }

/* ── Index page categories ── */
.sd-guides-category { margin-bottom: 50px; }
.sd-guides-cat-title { font-size: 14px; font-weight: 700; color: var(--sd-orange); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--sd-border-light); }

/* Siatka kafelkow - styl jak "Powiazane przewodniki": duzy obraz 16:9 + tekst pod spodem */
.sd-guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.sd-guide-card { display: flex; flex-direction: column; background: var(--sd-bg); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--sd-transition), box-shadow var(--sd-transition); }
.sd-guide-card:hover { border-color: var(--sd-orange); box-shadow: 0 4px 16px rgba(251,150,26,0.15); text-decoration: none; }

/* Hero w kafelku - 16:9, wypelnia szerokosc kafelka */
.sd-guide-card-image { aspect-ratio: 16/9; background-color: var(--sd-orange-pale); overflow: hidden; }
.sd-guide-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-guide-card-image-placeholder { background: linear-gradient(135deg, var(--sd-orange-pale) 0%, #fff 100%); }

.sd-guide-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.sd-guide-card-title { font-size: 16px; font-weight: 600; color: var(--sd-heading); margin-bottom: 6px; line-height: 1.35; }
.sd-guide-card-desc { font-size: 13px; color: var(--sd-text-light); line-height: 1.5; flex: 1; margin-bottom: 10px; }
.sd-guide-card-time { font-size: 11px; color: var(--sd-text-light); display: inline-flex; align-items: center; gap: 5px; }
.sd-guide-card-time svg { color: var(--sd-orange); }

.sd-guides-cta-banner { background: var(--sd-orange-pale); border-radius: var(--sd-radius-lg); padding: 28px 32px; text-align: center; margin-top: 20px; }
.sd-guides-cta-banner h3 { font-size: 19px; font-weight: 600; color: var(--sd-heading); margin-bottom: 6px; }
.sd-guides-cta-banner p { color: var(--sd-text); margin: 0; }
.sd-guides-cta-banner a { color: var(--sd-orange); font-weight: 600; text-decoration: none; }
.sd-guides-cta-banner a:hover { text-decoration: underline; }

/* ── Promo strip - 3 wybrane przewodniki nad funkcjami na stronie glownej i w menu Program ── */
.sd-guides-promo { margin: 40px 0; padding: 0 24px; font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--sd-text); }
.sd-guides-promo-header { text-align: center; margin-bottom: 28px; }
.sd-guides-promo-title { font-size: 26px; font-weight: 700; color: var(--sd-heading); margin: 0 0 6px; letter-spacing: -0.3px; }
.sd-guides-promo-subtitle { font-size: 15px; color: var(--sd-text-light); margin: 0; }
.sd-guides-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.sd-guides-promo-footer { text-align: center; }
.sd-guides-promo-link { display: inline-block; color: var(--sd-orange); font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 20px; border: 1px solid var(--sd-orange); border-radius: var(--sd-radius); transition: background var(--sd-transition), color var(--sd-transition); }
.sd-guides-promo-link:hover { background: var(--sd-orange); color: white; text-decoration: none; }
@media (max-width: 880px) {
  .sd-guides-promo-grid { grid-template-columns: 1fr; }
  .sd-guides-promo-title { font-size: 22px; }
}


/* ── Single guide page ── */
.sd-guide { margin: 0 auto; padding: 32px 24px 40px; font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--sd-text); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }

/* Hero - kompaktowy thumbnail po prawej stronie obok opisu (na mobile pod opisem) */
.sd-guide-hero-image { float: right; width: 280px; aspect-ratio: 4/3; background-color: var(--sd-bg); border: 1px solid var(--sd-border-light); border-radius: var(--sd-radius-lg); margin: 0 0 16px 24px; overflow: hidden; }
.sd-guide-hero-image img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; }
@media (max-width: 640px) {
  .sd-guide-hero-image { float: none; width: 100%; max-width: 320px; margin: 0 auto 16px; }
}
.sd-guide-hero-content { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--sd-border-light); overflow: hidden; }
.sd-guide-title { font-size: 32px; font-weight: 700; color: var(--sd-heading); margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.4px; }
.sd-guide-lead { font-size: 18px; color: var(--sd-text); line-height: 1.55; margin: 0 0 12px; }
.sd-guide-meta { font-size: 13px; color: var(--sd-text-light); }
.sd-guide-time { display: inline-flex; align-items: center; gap: 6px; }
.sd-guide-time svg { color: var(--sd-orange); }

/* Body typography (slightly larger than help articles) */
.sd-guide-body h2 { font-size: 22px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; color: var(--sd-heading); letter-spacing: -0.2px; }
.sd-guide-body h3 { font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; color: var(--sd-heading); }
.sd-guide-body p { margin-bottom: 14px; color: var(--sd-text); }
.sd-guide-body strong { font-weight: 600; color: var(--sd-text-dark); }
.sd-guide-body a { color: var(--sd-orange); text-decoration: none; font-weight: 500; }
.sd-guide-body a:hover { text-decoration: underline; }
.sd-guide-body ul, .sd-guide-body ol { margin-bottom: 16px; padding-left: 22px; }
.sd-guide-body ul { list-style: disc; }
.sd-guide-body ol { list-style: decimal; }
.sd-guide-body ul > li, .sd-guide-body ol > li { margin-bottom: 6px; padding-left: 4px; }
.sd-guide-body ul > li::marker { color: var(--sd-orange); }
.sd-guide-body img { max-width: 100%; height: auto; border-radius: var(--sd-radius); margin: 18px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sd-guide-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; table-layout: auto; border: 1px solid var(--sd-border-light); border-radius: var(--sd-radius); overflow: hidden; }
.sd-guide-body th { background: var(--sd-bg-subtle); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--sd-border); color: var(--sd-heading); font-size: 14px; }
.sd-guide-body td { padding: 12px 16px; border-bottom: 1px solid var(--sd-border-light); color: var(--sd-text); vertical-align: top; }
.sd-guide-body tr:last-child td { border-bottom: none; }
.sd-guide-body tr:hover td { background: var(--sd-orange-glow); }

/* Related guides */
.sd-guide-related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--sd-border-light); }
.sd-guide-related h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; color: var(--sd-heading); }
.sd-guide-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sd-guide-related-card { display: flex; flex-direction: column; background: var(--sd-bg); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--sd-transition), box-shadow var(--sd-transition); }
.sd-guide-related-card:hover { border-color: var(--sd-orange); box-shadow: 0 4px 16px rgba(251,150,26,0.15); text-decoration: none; }
.sd-guide-related-image { aspect-ratio: 16/9; background-color: var(--sd-orange-pale); overflow: hidden; }
.sd-guide-related-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-guide-related-text { padding: 14px 16px 16px; }
.sd-guide-related-title { font-size: 15px; font-weight: 600; color: var(--sd-heading); margin-bottom: 4px; line-height: 1.35; }
.sd-guide-related-desc { font-size: 13px; color: var(--sd-text-light); line-height: 1.45; margin-bottom: 8px; }
.sd-guide-related-time { font-size: 11px; color: var(--sd-text-light); }

/* Related help instructions */
.sd-guide-instructions { margin-top: 36px; padding: 22px 26px; background: var(--sd-orange-glow); border-left: 3px solid var(--sd-orange); border-radius: var(--sd-radius); }
.sd-guide-instructions h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--sd-heading); }
.sd-guide-instructions-lead { font-size: 14px; color: var(--sd-text-light); margin-bottom: 10px; }
.sd-guide-instructions-list { list-style: none; padding: 0; margin: 0; }
.sd-guide-instructions-list li { margin-bottom: 4px; }
.sd-guide-instructions-list a { color: var(--sd-orange); font-weight: 500; text-decoration: none; font-size: 14px; }
.sd-guide-instructions-list a:hover { text-decoration: underline; }
.sd-guide-instructions-list a::before { content: '> '; color: var(--sd-orange); }

/* CTA */
.sd-guide-cta { margin-top: 50px; padding: 32px; background: linear-gradient(135deg, var(--sd-orange) 0%, var(--sd-orange-hover) 100%); border-radius: var(--sd-radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: white; }
.sd-guide-cta-text h3 { font-size: 22px; font-weight: 700; color: white; margin: 0 0 6px; }
.sd-guide-cta-text p { color: rgba(255,255,255,0.9); margin: 0; font-size: 15px; }
.sd-guide-cta-button { display: inline-block; background: white; color: var(--sd-orange); padding: 12px 28px; border-radius: var(--sd-radius); font-weight: 600; text-decoration: none; transition: transform var(--sd-transition), box-shadow var(--sd-transition); white-space: nowrap; }
.sd-guide-cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); text-decoration: none; color: var(--sd-orange); }

.sd-guide-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--sd-border-light); font-size: 12px; color: var(--sd-text-light); text-align: center; }


/* ── Podstrona FUNKCJI - krotsza forma niz przewodnik ── */
.sd-feature { padding: 24px 24px 40px; font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--sd-text); line-height: 1.75; font-size: 16px; }
.sd-feature-body h2 { font-size: 22px; font-weight: 700; margin-top: 28px; margin-bottom: 12px; color: var(--sd-heading); letter-spacing: -0.2px; }
.sd-feature-body h2:first-child { margin-top: 0; }
.sd-feature-body h3 { font-size: 17px; font-weight: 600; margin-top: 20px; margin-bottom: 8px; color: var(--sd-heading); }
.sd-feature-body p { margin-bottom: 14px; color: var(--sd-text); }
.sd-feature-body strong { font-weight: 600; color: var(--sd-text-dark); }
.sd-feature-body a { color: var(--sd-orange); text-decoration: none; font-weight: 500; }
.sd-feature-body a:hover { text-decoration: underline; }
.sd-feature-body ul, .sd-feature-body ol { margin-bottom: 16px; padding-left: 22px; }
.sd-feature-body ul { list-style: disc; }
.sd-feature-body ul > li::marker { color: var(--sd-orange); }
.sd-feature-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; border: 1px solid var(--sd-border-light); border-radius: var(--sd-radius); overflow: hidden; }
.sd-feature-body th { background: var(--sd-bg-subtle); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--sd-border); color: var(--sd-heading); font-size: 14px; }
.sd-feature-body td { padding: 12px 16px; border-bottom: 1px solid var(--sd-border-light); color: var(--sd-text); vertical-align: top; }
.sd-feature-body tr:last-child td { border-bottom: none; }

/* Sekcja linkow do przewodnika i pomocy na koncu podstrony funkcji */
.sd-feature-links { margin-top: 40px; }
.sd-feature-cta-guide { margin-bottom: 24px; text-align: center; }
.sd-feature-cta-button { display: inline-block; background: var(--sd-orange); color: white; padding: 12px 28px; border-radius: var(--sd-radius); font-weight: 600; text-decoration: none; transition: transform var(--sd-transition), box-shadow var(--sd-transition); }
.sd-feature-cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(251,150,26,0.3); text-decoration: none; color: white; }
.sd-feature-help { background: var(--sd-orange-glow); border-left: 3px solid var(--sd-orange); border-radius: var(--sd-radius); padding: 18px 22px; }
.sd-feature-help h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--sd-heading); }
.sd-feature-help ul { list-style: none; padding: 0; margin: 0; }
.sd-feature-help li { margin-bottom: 4px; }
.sd-feature-help a { color: var(--sd-orange); font-weight: 500; text-decoration: none; font-size: 14px; }
.sd-feature-help a:hover { text-decoration: underline; }
.sd-feature-help a::before { content: '→ '; color: var(--sd-orange); }

/* Mobile */
@media (max-width: 640px) {
  .sd-guide-title { font-size: 24px; }
  .sd-guide-lead { font-size: 16px; }
  .sd-guide-hero-image { aspect-ratio: 16/9; }
  .sd-guide-cta { flex-direction: column; text-align: center; padding: 24px 20px; }
  .sd-guides-hero h1 { font-size: 28px; }
}