/* Statystyka w Pracy Magisterskiej: original visual system, October 2026.
   Shared content presentation only. Header, chat, logo and native forms retain their owners. */
main {
  --swpm-surface: #fff;
  --swpm-mint: #e5f2ec;
  --swpm-cream: #f3f3e6;
  --swpm-shadow: 0 18px 50px -30px #123e3540;
  font-weight: 400;
}
main :is(p, li) { text-wrap: pretty; }
main :is(h1,h2,h3,h4) { overflow-wrap: normal; }
main :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid #237a65;
  outline-offset: 5px;
}
main .sm-section-head > .sm-kicker,
main .sl-output-section .sm-kicker,
main .sl-service-index > .sl-eyebrow { letter-spacing: .13em; }
main .sm-section-head h2 { text-wrap: pretty; }
main .sl-page-content > .sm-section { scroll-margin-top: calc(var(--portal-header-height,89px) + 28px); }

/* Content icons are intentionally larger than utility/action icons. */
.swpm-symbol { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border: 1px solid #bed6c9; border-radius: 16px; background: #e5f2ec; color: #126a5a; }
.swpm-symbol > svg { display: block; width: 29px; height: 29px; }
.swpm-symbol--lime { background: #e5f6b9; border-color: #c7dc9a; }
.swpm-symbol--ink { background: #123c32; color: #d9f58e; border-color: #2f5c4b; }

/* Existing catalog: four clear stages and differentiated service symbols. */
main .sl-catalog-index { gap: 13px; }
main .sl-catalog-index > a { border-radius: 17px; border-color: #c7dacf; background: #fff; box-shadow: 0 12px 28px -26px #18463380; }
main .sl-catalog-index > a:hover { background: #e9f3df; border-color: #86ae97; }
main .sl-catalog-stage > header > :is(h2,h3) { text-wrap: pretty; }
main .sl-catalog-stage > header > .sl-eyebrow { display: inline-block; background: #e5eddf; border-radius: 6px; padding: 6px 9px; }
main .sl-catalog-service { border-color: #d1dfd4; border-radius: 20px; background: #fff; box-shadow: var(--swpm-shadow); transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
main .sl-catalog-service:hover { transform: translateY(-3px); border-color: #89b198; box-shadow: 0 18px 40px -25px #126a5a45; }
main .sl-catalog-service > .sl-symbol { width: 52px; height: 52px; border: 1px solid #bed8ca; border-radius: 16px; background: #e5f2ec; color: #126a5a; }
main .sl-catalog-service > .sl-symbol > .portal-icon { width: 29px; height: 29px; }
main .sl-catalog-stage:nth-child(even) .sl-catalog-service > .sl-symbol { background: #eef4d9; border-color: #d0dcaf; }
main .sl-catalog-service__copy > .sl-catalog-result { border-radius: 12px; background: #edf4e7; border-left: 3px solid #a9c784; }
main .sl-research-catalog--home .sl-catalog-stage { padding: 31px; border-radius: 23px; border-color: #cfddce; box-shadow: var(--swpm-shadow); }
main .sl-research-catalog--home .sl-catalog-stage:nth-child(2) { background: #fff; }
main .sl-research-catalog--home .sl-catalog-stage:nth-child(3) { background: #f2f2e3; }
main .sl-research-catalog--home .sl-catalog-stage:nth-child(4) { background: #e2f0e9; }
main .sl-research-catalog--home .sl-catalog-service { box-shadow: none; border-radius: 0; transform: none; }
main .sl-research-catalog--home .sl-catalog-service > .sl-symbol { width: 43px; height: 43px; border-radius: 13px; background: #ffffffb3; }
main .sl-research-catalog--home .sl-catalog-service > .sl-symbol > .portal-icon { width: 25px; height: 25px; }
main .sl-research-catalog--home .sl-catalog-service__copy > .sl-catalog-result { border-left: 0; border-radius: 0; }

/* Existing service templates: stronger results and true deliverable cards. */
main .sl-service-result { background: #e6f1d8; border-color: #bfd5a8; border-radius: 22px; box-shadow: 0 14px 36px -27px #355b2880; }
main .sl-service-result__symbol { width: 43px; height: 43px; background: #ffffff86; border-color: #adc99a; }
main .sl-service-result h2 { font-size: 12px; font-weight: 750; color: #3a5a32; }
main .sl-service-result p { font-size: clamp(21px,1.8vw,26px); line-height: 1.45; }
main .sl-service-index a { border-radius: 8px; padding-inline: 10px; margin-inline: -10px; }
main .sl-service-index a:hover { background: #eaf1e6; }
main .sl-page--service .sl-service-section--cards .sm-grid { gap: 18px; }
main .sl-page--service .sl-service-section--cards .sm-card { border: 1px solid #cfddcf; border-radius: 20px; padding: 27px; background: #fff; box-shadow: var(--swpm-shadow); }
main .sl-page--service .sl-service-section--cards .sm-card:nth-child(2) { background: #e9f2e6; border-color: #c9dcc7; }
main .sl-page--service .sl-service-section--cards .sm-card:nth-child(3) { background: #f2f2e3; border-color: #d9dec3; }
main .sl-page--service .sl-service-section--cards .sm-card h3 { font-size: 23px; line-height: 1.35; }
main .sl-page--service .sl-service-section--cards .sm-card p { font-size: 14px; color: #466051; }
main .sl-page--service .sl-service-section.sm-callout { background: #e7f0e7; border-color: #c8d9ca; }
main .sl-page--service .sl-service-section.sm-section--cta { box-shadow: 0 20px 50px -35px #173e3270; }

/* Native FAQ remains the only source; answer layout stays in its native details. */
main .portal-faq details { border: 1px solid #ceddd1; border-radius: 15px; background: #fff; margin-bottom: 11px; transition: border-color .2s ease,background .2s ease,box-shadow .2s ease; }
main .portal-faq summary { padding: 22px 64px 22px 23px; line-height: 1.65; }
main .portal-faq summary:after { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; top: 22px; right: 19px; border-radius: 50%; background: #eaf2e2; color: #126a5a; font-size: 23px; line-height: 1; }
main .portal-faq details[open] { background: #f9fcf5; border-color: #88b496; box-shadow: 0 15px 30px -25px #126a5a60; }
main .portal-faq details[open] summary { color: #126a5a; }
main .portal-faq-answer { max-width: none; padding: 0 26px 24px; color: #405f4c; }
main .portal-faq-answer > :first-child { margin-top: 0; }
main .portal-faq-answer > :last-child { margin-bottom: 0; }
main .portal-faq-tools { border-radius: 19px; border: 1px solid #c8dccc; background: #e7f1e7; padding: 23px; }
main .portal-faq-tools :is(input,select) { background: #fff; }

/* Covers stay visible; the three-line native excerpt clamp is preserved. */
main .sl-article-grid { gap: 24px; }
main .sl-article-grid > .sl-article-card { border-color: #d0ded2; border-radius: 21px; box-shadow: 0 14px 34px -29px #16473480; transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
main .sl-article-grid > .sl-article-card:hover { transform: translateY(-4px); border-color: #87ac98; box-shadow: 0 20px 44px -27px #16473455; }
main .sl-article-card > .sl-article-card__image { overflow: hidden; }
main .sl-article-card__image img { transition: transform .45s ease; }
main .sl-article-card:hover .sl-article-card__image img { transform: scale(1.035); }
main .sl-article-grid .sl-article-card h3 { font-size: 24px; line-height: 1.34; }
main .sl-article-card h3 a { text-decoration: none; }
main .sl-article-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
main .sl-article-grid .sl-article-card__body { padding: 25px; }
main .sl-article-grid .sl-article-excerpt { font-size: 13px; line-height: 1.8; }
main .sl-article-cover { border: 1px solid #d3ded0; box-shadow: var(--swpm-shadow); }
main .portal-article-content :is(.sm-callout,blockquote) { border-radius: 16px; border-color: #b7cfae; background: #edf4e7; }
main .sl-article-aside .portal-toc { background: #fff; border-color: #c7d9c9; box-shadow: var(--swpm-shadow); }

/* Contact gets visual guidance while all native field semantics and validation remain. */
main .sl-contact-form .portal-lead { border-radius: 22px; border-color: #c5d9cb; box-shadow: 0 22px 55px -38px #16473460; }
main .sl-contact-aside { background: #e5f0e5; border-color: #c7dcca; border-radius: 22px; }
main .sl-contact-next > li { padding-left: 47px; }
main .sl-contact-next > li:before { top: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: #fff; border: 1px solid #c3d8c4; }
main .sl-contact-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { border-color: #b8cdbf; background: #fcfdf9; }
main .sl-contact-form :is(input,select,textarea):focus { background: #fff; border-color: #237a65; }
main .sl-contact-preparation .sm-card { border-radius: 20px; background: #fff; border-color: #d1ded0; }
main .sl-guide-options > a { border-radius: 15px; box-shadow: 0 9px 22px -22px #16473470; }
main .sl-guide-options > a:hover { background: #edf5e4; border-color: #8bb392; }

@media(min-width:1101px) {
  main .sl-research-catalog:not(.sl-research-catalog--home) .sl-catalog-stage > header { position: sticky; top: calc(var(--portal-header-height,89px) + 36px); align-self: start; }
}

@media(max-width:759px) {
  main .sl-research-catalog--home .sl-catalog-stage { padding: 25px; border-radius: 20px; }
  main .sl-catalog-service { padding: 24px; border-radius: 18px; }
  main .sl-catalog-service > .sl-symbol { width: 47px; height: 47px; border-radius: 14px; margin-bottom: 18px; }
  main .sl-catalog-service > .sl-symbol > .portal-icon { width: 27px; height: 27px; }
  main .sl-service-result { border-radius: 18px; }
  main .sl-service-result__symbol { width: 34px; height: 34px; }
  main .sl-service-result p { font-size: 21px; }
  main .sl-page--service .sl-service-section--cards .sm-card { padding: 24px; border-radius: 18px; }
  main .sl-page--service .sl-service-section--cards .sm-card h3 { font-size: 24px; }
  main .portal-faq summary { font-size: 15px; padding: 19px 53px 19px 18px; }
  main .portal-faq summary:after { top: 20px; right: 15px; width: 25px; height: 25px; font-size: 21px; }
  main .portal-faq-answer { padding: 0 19px 21px; font-size: 14px; }
  main .portal-faq-tools { padding: 19px; border-radius: 16px; }
  main .sl-article-grid .sl-article-card h3 { font-size: 24px; }
  main .sl-article-grid .sl-article-card__body { padding: 23px; }
  main .sl-contact-form .portal-lead, main .sl-contact-aside { border-radius: 19px; }
}
@media(prefers-reduced-motion:reduce) {
  main .sl-catalog-service, main .sl-article-grid > .sl-article-card, main .sl-article-card__image img { transition: none; }
  main .sl-catalog-service:hover,main .sl-article-grid > .sl-article-card:hover,main .sl-article-card:hover .sl-article-card__image img { transform: none; }
}

