/* /dolacz only. Static file, uses the portal's colour tokens so light and dark themes follow site.css. */
.join { overflow-wrap: break-word; --join-accent: var(--green); }
[data-theme="dark"] .join { --join-accent: var(--coral); }
@media (prefers-color-scheme: dark) { [data-theme="system"] .join { --join-accent: var(--coral); } }
.join-wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.join h1, .join h2, .join h3, .join h4 { color: var(--ink); }
.join h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 8px 0 14px; letter-spacing: -.01em; }
.join h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.join .eyebrow { margin: 0; color: var(--coral); }
.join-section { padding-block: clamp(52px, 8vw, 96px); scroll-margin-top: 16px; }
.join-section:focus { outline: none; }
.join-tinted { background: var(--soft); }
.join-section-lead, .join-lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--muted); max-width: 680px; margin: 0 0 32px; }
.join-aside { margin: 32px 0 0; color: var(--muted); }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.join-actions .button { min-height: 50px; }

/* Hero */
.join-hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 80px); }
.join-hero-grid { display: grid; gap: 32px; }
.join-hero h1 { font-size: clamp(38px, 7.2vw, 66px); line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 18px; }
.join-hero h1 em { display: block; color: var(--coral); font-style: italic; }
.join-hero .join-lead { margin-bottom: 24px; }
.join-cta { font-size: 17px; }
.join-reassure { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.join-reassure li { position: relative; padding-left: 26px; line-height: 1.45; }
.join-reassure li::before { content: "✓"; position: absolute; left: 0; color: var(--join-accent); font-weight: 700; }
.join-hero-art { position: relative; margin: 0 0 34px; }
.join-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--soft); }
.join-note { position: absolute; right: 12px; left: 12px; bottom: -28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 3px; box-shadow: 0 10px 28px rgba(16, 39, 29, .16); font-size: 14px; line-height: 1.4; }
.join-note strong { font-family: "Life Serif", Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.25; }
.join-note-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }

/* Benefits */
.join-benefits { display: grid; gap: 14px; margin-top: 28px; }
.join-benefits article, .join-topic, .join-writer, .join-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.join-benefits article { padding: 22px; }
.join-benefits p, .join-topic p, .join-steps p, .join-writer p { margin: 0; color: var(--muted); line-height: 1.55; }
.join-num { display: inline-block; font-family: "Life Serif", Georgia, serif; font-size: 26px; line-height: 1; color: var(--coral); margin-bottom: 10px; }

/* Topics */
.join-topics { display: grid; gap: 14px; }
.join-topic { padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.join-topic h3 { margin: 0; }
.join-topic:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 39, 29, .1); }
.join-topic .join-example { font-size: 14px; }
.join-example span { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.join-example a { color: var(--ink); }
.join-topic-link { margin-top: auto; font-weight: 600; color: var(--join-accent); padding-block: 6px; }
.join-topic-link + .join-topic-link { margin-top: 0; }
.join-topic-own { background: transparent; border-style: dashed; }

/* Steps */
.join-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.join-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.join-steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: "Life Serif", Georgia, serif; font-size: 21px; }
.join-steps h3 { margin-top: 8px; }

/* Writers */
.join-writers { display: grid; gap: 14px; }
.join-writer { padding: 22px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 6px; }
.join-avatar { grid-row: span 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); font-family: "Life Serif", Georgia, serif; font-size: 22px; }
.join-writer h3 { margin: 0; font-size: 19px; }
.join-writer h3 a { color: var(--ink); }
.join-writer p { font-size: 15px; }
.join-writer-text { padding-top: 6px; }
.join-writer-text a { color: var(--ink); font-weight: 600; }

/* Author path */
.join-path { display: grid; gap: 18px; }
.join-path-options { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.join-path-options label { display: block; cursor: pointer; }
.join-path-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.join-path-options span { display: block; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1.35; font-weight: 500; }
.join-path-options label:hover span { border-color: var(--green); }
.join-path-options input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.join-path-options input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.join-path-panel { background: var(--soft); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.join-path-panel[hidden] { display: none; }
.join-path-panel > p { color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.join-path-panel ul { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.join-briefs-label { font-weight: 600; color: var(--ink) !important; margin-bottom: 6px !important; }

/* Idea form */
.join-idea { background: var(--soft); }
.join-idea-grid { display: grid; gap: 24px; }
.join-idea-intro > p { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0; }
.join-idea-more .join-reassure { margin-top: 0; }
.join-idea-more h3 { margin: 26px 0 8px; }
.join-next { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); line-height: 1.5; }
.join-form-card { padding: clamp(18px, 3vw, 32px); scroll-margin-top: 16px; }
.join-form { display: grid; gap: 18px; }
.join-form[hidden] { display: none; }
.join-field { display: grid; gap: 6px; min-width: 0; }
.join-field label { font-weight: 600; color: var(--ink); }
.join-optional { font-weight: 400; color: var(--muted); }
.join-form .join-field input, .join-form .join-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 8px; padding: 13px 14px; min-height: 50px; }
.join-field textarea { resize: vertical; line-height: 1.5; min-height: 132px; }
.join-field input::placeholder, .join-field textarea::placeholder { color: var(--muted); opacity: .85; }
/* The site-wide input rule has a long :not() chain, so match its weight to keep one visible border on all fields. */
.join-form .join-field input:not([type="checkbox"]):not([type="file"]):not([type="radio"]) { border: 1px solid var(--muted); background: var(--paper); }
.join-form .join-field input[aria-invalid="true"]:not([type="checkbox"]):not([type="file"]):not([type="radio"]), .join-form .join-field textarea[aria-invalid="true"] { border: 2px solid var(--coral); }
.join-help, .join-error { margin: 0; font-size: 14px; line-height: 1.4; }
.join-help { color: var(--muted); }
.join-error { color: var(--coral); font-weight: 600; }
.join-error:empty { display: none; }
.join-submit { width: 100%; min-height: 54px; font-size: 17px; justify-content: center; }
.join-submit[disabled] { opacity: .7; cursor: progress; }
.join-privacy { margin: 0; font-size: 14px; line-height: 1.45; }
.join-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
.join-form .notice { margin: 0; }
.join-form .notice[hidden], .join-category-chip[hidden], .join-sticky[hidden], .join-sent[hidden] { display: none; }
.join-category-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; background: var(--soft); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: 14px; }
.join-category-chip button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; }
.join-sent { outline: none; }
.join-sent h3 { font-size: 27px; margin-bottom: 12px; }
.join-sent h4 { font-size: 17px; margin: 20px 0 6px; }
.join-sent p { line-height: 1.55; margin: 0 0 10px; }
.join-sent ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.join-sent-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; margin-bottom: 14px; }

/* Facts in the shortened page */
.join-section.join-facts { padding-block: clamp(32px, 5vw, 56px); background: var(--soft); }
.join-facts h2 { font-size: clamp(25px, 4vw, 32px); margin-top: 0; }
.join-facts-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px 32px; line-height: 1.5; color: var(--muted); }
.join-facts-list strong { color: var(--ink); display: block; }
.join-facts-list a { text-decoration: underline; }
/* Inspiration folded under one heading, so the page stays short */
.join-section.join-inspiration { padding-block: clamp(32px, 5vw, 56px); }
.join-inspiration h2 { font-size: clamp(25px, 4vw, 32px); margin-top: 0; }
.join-more { border-top: 1px solid var(--line); }
.join-more:last-child { border-bottom: 1px solid var(--line); }
.join-more > summary { cursor: pointer; padding: 16px 0; min-height: 24px; font-weight: 600; font-size: 18px; color: var(--ink); }
.join-more > .join-section { padding-block: 8px 28px; background: transparent; }
.join-more .join-wrap { padding-inline: 0; }
.join-more .join-section > .join-wrap > .eyebrow, .join-more .join-section > .join-wrap > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.join-more .join-section h3 { font-size: 19px; }
.join-more .join-section-lead { margin-bottom: 18px; font-size: 16px; }

/* FAQ */
.join-faq-wrap { max-width: 860px; }
.join-faq { margin-top: 24px; border-top: 1px solid var(--line); }
.join-faq details { border-bottom: 1px solid var(--line); }
.join-faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink); list-style: none; position: relative; }
.join-faq summary::-webkit-details-marker { display: none; }
.join-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--coral); }
.join-faq details[open] summary::after { content: "−"; }
.join-faq p { margin: 0 0 20px; line-height: 1.6; color: var(--muted); }

/* Terms and final invitation */
.join-terms { padding-block-start: 0; }
.join-terms h2 { font-size: clamp(25px, 4vw, 32px); }
.join-terms p { line-height: 1.6; margin: 0 0 12px; }
.join-final { background: #244f3e; color: #fff; padding-block: clamp(56px, 9vw, 104px); text-align: center; }
.join-final h2 { color: #fff; max-width: 820px; margin: 0 auto 28px; font-size: clamp(30px, 5.4vw, 50px); }
.join-final .join-actions { justify-content: center; }
.join-final .button.light { background: #fff; color: #244f3e; border-color: #fff; }
.join-outline-light { background: transparent !important; color: #fff !important; border: 1px solid #fff !important; }

/* Sticky button on phones */
.join-sticky { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 39, 29, .1); }
.join-sticky .button { width: 100%; justify-content: center; min-height: 50px; box-sizing: border-box; }

/* Keyboard focus */
.join a:focus-visible, .join button:focus-visible, .join summary:focus-visible, .join-field input:focus-visible, .join-field textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Account page */
.join-account { max-width: 680px; margin-bottom: 28px; }
.join-account .join-lead { margin-bottom: 16px; }
.join-account .join-next { margin-bottom: 14px; }

@media (min-width: 620px) {
  .join-benefits, .join-topics, .join-writers, .join-facts-list { grid-template-columns: repeat(2, 1fr); }
  .join-path-options { grid-template-columns: repeat(2, 1fr); }
  .join-note { left: auto; width: 300px; right: 18px; }
  .join-submit { width: auto; min-width: 260px; }
}
@media (min-width: 900px) {
  .join-sticky { display: none; }
  .join-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .join-hero-art { margin-bottom: 28px; }
  .join-benefits, .join-topics, .join-writers, .join-facts-list { grid-template-columns: repeat(3, 1fr); }
  .join-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .join-steps li { grid-template-columns: 1fr; }
  .join-steps li::before { grid-row: auto; margin-bottom: 10px; }
  .join-path { grid-template-columns: minmax(260px, 340px) 1fr; align-items: start; gap: 28px; }
  .join-path-options { grid-template-columns: 1fr; }
  .join-idea-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; row-gap: 24px; align-items: start; grid-template-rows: auto 1fr; }
  .join-form-card { grid-column: 2; grid-row: 1 / span 2; }
  .join-idea-intro { grid-column: 1; }
  .join-idea-more { grid-column: 1; grid-row: 2; }
}
/* Space for the sticky bar so it never covers the footer. */
@media (max-width: 899px) { body:has([data-join-sticky]:not([hidden])) .site-footer { padding-bottom: 86px; } }
@media (prefers-reduced-motion: reduce) { .join-topic { transition: none; } .join-topic:hover { transform: none; } }
