/*
Theme Name: Koalcija Obywatelska Suwałki 
Author: Paweł Strzeszewski
Description: Lekki custom theme dla KO Suwałki — jasny, minimalistyczny i stonowany.
Version: 1.5.2
Text Domain: ko-suwalki-clean
*/

:root{
  --bg:#ffffff;
  --surface:#f7f7f5;
  --surface-2:#f1f3f5;
  --surface-3:#fafafa;
  --text:#1f2933;
  --muted:#667085;
  --border:#e6e8eb;
  --accent:#b4232c;
  --accent-soft:rgba(180,35,44,.08);
  --shadow:0 10px 28px rgba(16,24,40,.05);
  --shadow-soft:0 6px 18px rgba(16,24,40,.035);
  --radius:18px;
  --radius-lg:24px;
  --container:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}
body.nav-open{overflow:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}
.main{flex:1}
.wrap{max-width:var(--container);margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.section.soft{background:linear-gradient(180deg,var(--surface),#fbfbfb);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-head{margin-bottom:26px}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:18px}
.eyebrow::before{content:"";width:34px;height:1px;background:var(--accent);opacity:.7}
h1,h2,h3,h4{margin:0;letter-spacing:-.03em}
h1{font-size:clamp(34px,5vw,56px);line-height:1.08;max-width:760px}
h2{font-size:clamp(28px,3.6vw,38px);line-height:1.12;margin-bottom:12px}
h3{font-size:22px;line-height:1.2}
p{margin:0}
.lead{font-size:18px;color:var(--muted);max-width:720px}
.sublead{margin-top:14px;font-size:15px;color:var(--muted);max-width:680px}
.grid{display:grid;gap:18px}
@media(min-width:760px){.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:980px){.grid-4{grid-template-columns:repeat(4,1fr)}}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-soft);transition:.2s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(16,24,40,.07)}
.card-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:800;margin-bottom:14px}
.card-title{font-size:18px;line-height:1.25;margin-bottom:8px}
.card-text{color:var(--muted);font-size:14px;line-height:1.7}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;font-weight:700;transition:.2s ease;border:1px solid transparent;cursor:pointer}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 8px 18px rgba(180,35,44,.16)}
.btn-primary:hover{transform:translateY(-1px);background:#9d1d26}
.btn-secondary{background:#fff;border-color:var(--border);color:var(--text)}
.btn-secondary:hover{border-color:#d3d6da;background:#fcfcfc}

.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{height:46px;width:auto}
.header-actions{display:flex;align-items:center;gap:14px}
.nav-toggle{display:none;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--text)}
.nav ul{display:flex;align-items:center;gap:8px;list-style:none;margin:0;padding:0}
.nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:999px;font-size:14px;font-weight:700;color:var(--text)}
.nav a:hover,.nav .current-menu-item>a,.nav .current_page_item>a{background:var(--accent-soft);color:var(--accent)}
.nav a.cta{background:var(--accent);color:#fff}
.auth-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:1px solid var(--border);border-radius:999px;font-size:14px;font-weight:700;color:var(--text)}
.nav-backdrop{display:none}

.hero{position:relative;overflow:hidden;padding:96px 0 78px;background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.96)), linear-gradient(120deg, #fafafa 0%, #f5f6f7 100%);border-bottom:1px solid var(--border)}
.hero--ratusz{background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.92)), url('assets/city-ratusz-wide.jpg') center/cover no-repeat;border-bottom:1px solid var(--border)}
.hero-grid{display:grid;gap:28px;align-items:end}
@media(min-width:980px){.hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}}
.hero > .wrap{position:relative;z-index:2}
.mini-list{display:grid;gap:10px;margin-top:24px}
.hero-grid--simple{grid-template-columns:minmax(0,1fr);max-width:760px}
.guide-shortcut{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.mini-item{display:flex;gap:12px;align-items:flex-start;color:var(--text);font-size:14px;line-height:1.55}
.mini-item .dot{width:8px;height:8px;border-radius:999px;margin-top:7px;background:var(--accent);flex:0 0 auto}
.stats{display:grid;gap:12px}.stat{padding:14px;border-radius:16px;background:linear-gradient(180deg,#fff,#fcfcfc);border:1px solid var(--border)}.stat b{display:block;font-size:14px;margin-bottom:4px}.stat span{font-size:13px;color:var(--muted);line-height:1.55}
.role-card{position:relative;padding-top:18px}.role-card::before{content:"";position:absolute;top:0;left:22px;right:22px;height:2px;background:linear-gradient(90deg,var(--accent),rgba(180,35,44,0));border-radius:999px}.role-card ul{margin:14px 0 0;padding-left:18px;color:var(--muted)}.role-card li{margin:6px 0;line-height:1.55}
.person-card .meta{color:var(--muted);font-size:14px;line-height:1.6;margin-top:6px}
.avatar{width:50px;height:50px;border-radius:15px;background:var(--accent-soft);color:var(--accent);border:1px solid rgba(180,35,44,.12);display:grid;place-items:center;font-weight:900;margin-bottom:14px}
.people-group{margin-top:18px}.group-tag{display:inline-flex;padding:7px 12px;border-radius:999px;background:var(--surface-3);border:1px solid var(--border);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}.group-desc{color:var(--muted);max-width:900px;margin-bottom:18px}
.contact-wrap{display:grid;gap:18px;align-items:start}.form-card,.aside-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:22px;box-shadow:var(--shadow)}@media(min-width:900px){.contact-wrap{grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr)}}
label{display:block;font-size:13px;font-weight:700;margin:0 0 8px}.field{margin-bottom:14px}.checkbox-field label{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;line-height:1.5;font-weight:700}.checkbox-field input[type="checkbox"]{width:18px;height:18px;padding:0;flex:0 0 auto;margin:0}input,select,textarea{width:100%;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--text);outline:none;transition:.2s ease}input:focus,select:focus,textarea:focus{border-color:rgba(180,35,44,.35);box-shadow:0 0 0 4px rgba(180,35,44,.08)}textarea{min-height:150px;resize:vertical}.note{color:var(--muted);font-size:13px;line-height:1.65}.form-notice{margin-bottom:16px;padding:14px 16px;border-radius:14px;font-size:14px;font-weight:600}.form-notice.success{background:#eff8f1;border:1px solid #cbe7d0;color:#256339}.form-notice.error{background:#fff5f5;border:1px solid #f1cccc;color:#983131}.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.cta-band{padding:28px;border-radius:24px;background:linear-gradient(135deg,#faf8f8 0%, #f3f4f6 100%);border:1px solid var(--border);box-shadow:var(--shadow)}
.footer{margin-top:40px;padding:0 0 38px;background:#fff}.footer-top{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:34px 0;margin-bottom:28px}.footer-grid{display:grid;gap:18px}@media(min-width:860px){.footer-grid{grid-template-columns:1.2fr .8fr .8fr .8fr}}.footer h3{font-size:16px;margin-bottom:12px}.footer p,.footer li,.footer a{color:var(--muted);font-size:14px;line-height:1.7}.footer ul{list-style:none;margin:0;padding:0}.footer li+li{margin-top:6px}.footer a:hover{color:var(--accent)}.footer-bar{padding-top:18px;border-top:1px solid var(--border);color:var(--muted);font-size:13px}
.page-shell,.archive-shell,.single-shell{padding:56px 0}.content-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:26px;box-shadow:var(--shadow-soft)}.page-title{font-size:clamp(30px,4vw,44px);line-height:1.1;margin-bottom:12px}.post-list{display:grid;gap:16px}.post-item{padding:20px}.post-item h2{font-size:24px;margin-bottom:8px}.post-meta{font-size:14px;color:var(--muted);margin-bottom:12px}.post-content{color:var(--muted)}
.member-hero{padding:84px 0 22px}.member-grid{display:grid;gap:18px}.member-card{display:block}.member-card__meta{margin-top:16px;color:var(--accent);font-weight:700}.member-feed{display:grid;gap:18px;margin-top:18px}@media(min-width:860px){.member-grid{grid-template-columns:repeat(4,1fr)}.member-feed{grid-template-columns:repeat(2,1fr)}}

@media(max-width:900px){
  .nav-toggle{display:inline-flex}
  .nav-backdrop{display:block;position:fixed;inset:0;background:rgba(31,41,51,.35);opacity:0;visibility:hidden;transition:.2s ease;z-index:90}
  .nav{position:fixed;top:0;right:0;width:min(88vw,360px);background:#fff;border-left:1px solid var(--border);padding:4px 20px 24px;transform:translateX(100%);transition:.25s ease;z-index:100;box-shadow:-10px 0 30px rgba(16,24,40,.08)}
  .nav ul{display:grid;gap:8px}
  .nav a{justify-content:flex-start;border-radius:14px;padding:12px 14px}
  body.nav-open .nav{transform:none}
  body.nav-open .nav-backdrop{opacity:1;visibility:visible}
	.site-header{
  padding-bottom:10px;
}
}
@media(max-width:680px){.section{padding:58px 0}.hero{padding:80px 0 62px}.btn{width:100%}.btn-row{display:grid}.brand-title{display:none}.wrap{padding:0 16px}}

/* homepage v2 */
.hero--rich .hero-grid--media{grid-template-columns:minmax(0,1fr);align-items:center}
@media(min-width:980px){.hero--rich .hero-grid--media{grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr)}}
.hero-media{display:grid;gap:16px}
@media(min-width:980px){.hero-media{grid-template-columns:1.1fr .9fr}}
.media-stack{display:grid;gap:16px}
.media-tile{overflow:hidden;border-radius:22px;border:1px solid var(--border);box-shadow:var(--shadow-soft);background:#fff;min-height:180px}
.media-tile img{width:100%;height:100%;object-fit:cover}
.media-tile--large{min-height:420px}
.media-tile--quote{display:flex;flex-direction:column;justify-content:flex-end;padding:24px;background:linear-gradient(145deg,#fff,#f7f7f5)}
.media-tile--quote b{font-size:20px;margin-bottom:8px}.media-tile--quote span{font-size:14px;color:var(--muted);max-width:26ch}
.image-ribbon{display:grid;gap:16px;margin-top:28px}.image-ribbon--three{grid-template-columns:1fr}.image-ribbon--mosaic{grid-template-columns:1fr}
@media(min-width:760px){.image-ribbon--three{grid-template-columns:repeat(3,1fr)}.image-ribbon--mosaic{grid-template-columns:1fr 1fr}.ribbon-card--tall{grid-row:span 2;min-height:100%}}
.ribbon-card{margin:0;border-radius:22px;overflow:hidden;border:1px solid var(--border);background:#fff;box-shadow:var(--shadow-soft);min-height:220px}
.ribbon-card img{width:100%;height:100%;object-fit:cover}.ribbon-card figcaption{padding:12px 14px;font-size:14px;color:var(--muted);border-top:1px solid var(--border);background:#fff}.ribbon-card--tall{min-height:460px}
.guide-shortcut{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:18px}
.guide-shortcut .card-text{max-width:56ch}
.fb-card{display:flex;flex-direction:column;gap:14px}
.section--images{padding-top:12px}

/* about page */
.page-hero--about{padding:74px 0 26px;background:linear-gradient(180deg,#fafafa,#fff);border-bottom:1px solid var(--border)}
.about-shell{display:grid;gap:18px}.about-intro{padding:24px}.about-grid-main{display:grid;gap:18px;align-items:stretch}@media(min-width:980px){.about-grid-main{grid-template-columns:1fr 1fr}}
.about-panel{padding:24px;height:100%;display:flex;flex-direction:column}.panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;margin-bottom:14px;min-height:66px}.about-role{padding:14px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--border);margin-bottom:16px}.about-role b{display:block;margin-bottom:6px}.about-role p{color:var(--muted)}
.person-line{display:flex;gap:14px;align-items:flex-start;padding:14px;border-radius:16px;border:1px solid var(--border);background:#fff}.person-list{display:grid;gap:12px}.nested-panel{background:linear-gradient(180deg,#fff,#fcfcfc)}.person-mini{padding:18px}.compact-facts{margin-top:10px}.name{font-weight:850;line-height:1.3;margin:0 0 4px}.meta{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.facts{display:grid;gap:8px}.fact{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:13px;line-height:1.5}.fact b{color:var(--text)}.fact .icon{width:18px;flex:0 0 18px;opacity:.9}.link{color:var(--accent);font-weight:700;border-bottom:1px solid rgba(180,35,44,.25)}.link:hover{border-bottom-color:rgba(180,35,44,.55)}

@media(max-width:900px){.guide-shortcut{flex-direction:column;align-items:flex-start}.panel-head{grid-template-columns:1fr;min-height:0}}
@media(max-width:680px){.ribbon-card--tall{min-height:300px}.person-line{flex-direction:column}}

.card--simple .card-title{margin-bottom:10px}
.card--simple .card-text{font-size:15px}

/* forum / bbPress */
#bbpress-forums{color:var(--text)}
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies{border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#fff}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer{background:var(--surface);color:var(--text);font-weight:700;border-top:none}
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums .bbp-reply-header,
#bbpress-forums .bbp-reply-content{padding:18px 16px;border-top:1px solid var(--border)}
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink{font-weight:700;color:var(--text)}
#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums .bbp-topic-content p,
#bbpress-forums .bbp-reply-content p,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-reply-post-date{color:var(--muted)}
#bbpress-forums .bbp-template-notice,
#bbpress-forums .bbp-no-topic,
#bbpress-forums .bbp-no-reply,
#bbpress-forums .bbp-no-forum{display:none !important}
#bbpress-forums fieldset.bbp-form{border:1px solid var(--border);border-radius:20px;background:#fff;padding:22px}
#bbpress-forums fieldset.bbp-form legend{padding:0 8px;font-weight:800;color:var(--text)}
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums fieldset.bbp-form input[type=text],
#bbpress-forums fieldset.bbp-form input[type=password],
#bbpress-forums fieldset.bbp-form textarea{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:#fff}
#bbpress-forums div.bbp-submit-wrapper{float:none;margin-top:18px}
#bbpress-forums button.button,
#bbpress-forums input.button,
#bbpress-forums a.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;background:var(--accent);color:#fff;border:none;box-shadow:0 8px 18px rgba(180,35,44,.16)}
#bbpress-forums .bbp-pagination{margin-bottom:16px;color:var(--muted)}
#bbpress-forums .bbp-topic-form label, #bbpress-forums .bbp-reply-form label{display:block;margin-bottom:8px}

@media(min-width:980px){.about-role{min-height:168px}}

.site-header nav a{
  font-size:16px;
  font-weight:800;
}

div.bbp-search-form{
	display:none
}
/* ===== BBPRESS MOBILE – delikatna poprawka ===== */
@media (max-width: 768px){

  /* kontener forum */
  #bbpress-forums{
    width: 100%;
  }

  /* formularz nowego tematu / odpowiedzi */
  #bbpress-forums fieldset.bbp-form{
    padding: 16px;
    border-radius: 18px;
  }

  #bbpress-forums fieldset.bbp-form legend{
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: 26px;
  }

  /* pola formularza */
  #bbpress-forums input[type="text"],
  #bbpress-forums input[type="email"],
  #bbpress-forums input[type="url"],
  #bbpress-forums input[type="password"],
  #bbpress-forums select,
  #bbpress-forums textarea{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* iPhone zoom fix */
  }

  #bbpress-forums textarea,
  #bbpress-forums #bbp_topic_content,
  #bbpress-forums #bbp_reply_content{
    min-height: 220px;
  }

  /* długie teksty */
  #bbpress-forums label,
  #bbpress-forums .bbp-forum-title,
  #bbpress-forums .bbp-topic-permalink,
  #bbpress-forums .bbp-breadcrumb{
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
  }

  /* box z dozwolonym HTML – ukryj */
  #bbpress-forums p.form-allowed-tags{
    display: none;
  }

  /* notice typu "O, nie!..." – ukryj */
  #bbpress-forums .bbp-template-notice{
    display: none;
  }

  /* przycisk wyślij */
  #bbpress-forums div.bbp-submit-wrapper{
    margin-top: 14px;
    float: none;
    text-align: left;
  }

  /* lista forów/tematów – tylko lekko ciaśniej */
  #bbpress-forums li.bbp-body ul.forum,
  #bbpress-forums li.bbp-body ul.topic,
  #bbpress-forums li.bbp-body ul.reply{
    padding: 12px 10px;
  }
}
