/*
Theme Name: Legionowo News
Theme URI: https://informacja-lokalna.pl/legionowo/
Author: Informacja Lokalna
Description: Lokalny motyw newsowy dla subsite Legionowo w multisite Informacja Lokalna.
Version: 1.0.0
Text Domain: legionowo-news
*/
:root {
  --ink: #101418;
  --muted: #68707a;
  --line: #dde2e8;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --brand: #d71920;
  --brand-dark: #a70f17;
  --blue: #0a355f;
  --gold: #f2b705;
  --green: #18785a;
  --max: 1180px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f6f7f9;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.site-top {
  background: #101418;
  color: #fff;
  font-size: 13px;
}
.site-top__inner,
.site-head__inner,
.quick__inner,
.main-wrap,
.site-foot__inner {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}
.site-top__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-top nav,
.quick nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-top a { color: #fff; opacity: .9; }
.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}
.logo-title { display: block; font-size: 33px; line-height: .95; font-weight: 900; letter-spacing: 0; }
.logo-title em { color: var(--brand); font-style: normal; }
.logo-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 7px; }
.head-tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.search-pill,
.mode-pill {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}
.quick {
  background: var(--paper);
  border-bottom: 3px solid var(--brand);
}
.quick__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.quick strong { color: var(--brand); font-size: 13px; letter-spacing: .04em; }
.quick a { font-weight: 700; font-size: 14px; }
.main-wrap { padding: 20px 0 34px; }
.weather-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.25fr repeat(5, 1fr);
  gap: 1px;
  margin-bottom: 20px;
  overflow: hidden;
}
.weather-cell {
  background: #fff;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  min-height: 74px;
}
.weather-cell:last-child { border-right: 0; }
.weather-cell b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.weather-cell span { font-size: 22px; font-weight: 800; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 900;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 28px;
  background: var(--brand);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
}
.lead-card,
.news-card,
.side-box,
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
}
.lead-card { min-height: 410px; display: grid; grid-template-rows: 230px 1fr; }
.thumb {
  background: linear-gradient(135deg, #1c527f, #d71920);
  position: relative;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.38));
}
.lead-body { padding: 18px; }
.meta { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lead-body h1 { font-size: 31px; line-height: 1.08; margin: 8px 0 10px; letter-spacing: 0; }
.lead-body p { color: #444c55; margin: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-card { min-height: 197px; display: grid; grid-template-rows: 92px 1fr; }
.news-card .card-body { padding: 12px; }
.news-card h3 { font-size: 16px; line-height: 1.22; margin: 6px 0 0; }
.list-section { margin: 28px 0; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.news-row {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
}
.news-row .mini-thumb { width: 74px; height: 58px; background: linear-gradient(135deg, var(--blue), var(--brand)); }
.news-row h3 { font-size: 16px; margin: 3px 0 0; line-height: 1.24; }
.category-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.category-block { background: var(--paper); border-top: 4px solid var(--brand); padding: 16px; }
.category-block h2 { margin: 0 0 10px; font-size: 22px; }
.category-block p { margin: -4px 0 12px; color: var(--muted); }
.category-block li { margin: 10px 0; border-top: 1px solid var(--line); padding-top: 10px; }
ul.clean { list-style: none; padding: 0; margin: 0; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.side-box { padding: 16px; }
.side-box h2 { font-size: 20px; margin: 0 0 12px; }
.useful-links a,
.event-card { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.event-date { color: var(--brand); font-weight: 900; font-size: 13px; }
.ad-box {
  min-height: 150px;
  background: repeating-linear-gradient(135deg, #f2f4f7, #f2f4f7 10px, #e9edf2 10px, #e9edf2 20px);
  border: 1px dashed #b7c0cb;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}
.site-foot { background: #101418; color: #d9dee5; padding: 28px 0; margin-top: 16px; }
.site-foot__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.archive-main,
.single-main { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.article-title { font-size: 38px; line-height: 1.08; margin: 8px 0 14px; }
.entry-content { font-size: 18px; }
.entry-content p { margin: 0 0 1em; }
@media (max-width: 940px) {
  .site-head__inner, .layout, .hero-grid { grid-template-columns: 1fr; }
  .weather-strip { grid-template-columns: repeat(2, 1fr); }
  .head-tools { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .logo-title { font-size: 26px; }
  .quick__inner, .site-top__inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .mosaic, .news-list, .category-blocks { grid-template-columns: 1fr; }
  .weather-strip { grid-template-columns: repeat(2, 1fr); }
  .lead-card { grid-template-rows: 190px 1fr; }
  .lead-body h1 { font-size: 25px; }
  .article-title { font-size: 30px; }
}
@media (max-width: 640px) {
  .weather-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .weather-cell {
    min-height: 84px;
    padding: 12px 16px;
  }
  .weather-cell span {
    font-size: 22px;
  }
}

.work-main { padding-top: 22px; }
.work-hero {
  background: linear-gradient(135deg, #0b355f 0%, #113f6f 48%, #d71920 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: end;
  padding: 34px;
  margin-bottom: 18px;
}
.work-kicker { display: inline-block; color: #ffd34d; font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; margin-bottom: 8px; }
.work-hero h1 { font-size: 40px; line-height: 1.04; margin: 0 0 12px; letter-spacing: 0; max-width: 780px; }
.work-hero p { max-width: 720px; margin: 0 0 14px; color: #eef4fa; font-size: 18px; }
.work-source { color: #dfe9f3; font-size: 14px; }
.work-source a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.work-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.work-stats span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); padding: 14px; min-height: 86px; display: flex; flex-direction: column; justify-content: center; }
.work-stats b { font-size: 30px; line-height: 1; display: block; }
.work-search { background: var(--paper); border: 1px solid var(--line); padding: 16px; margin-bottom: 20px; }
.work-search form { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .8fr) minmax(160px, .8fr) auto; gap: 12px; align-items: end; }
.work-search label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.work-search input,
.work-search select { min-height: 44px; border: 1px solid var(--line); padding: 0 12px; font: inherit; background: #fff; color: var(--ink); }
.work-btn { min-height: 44px; border: 0; background: var(--brand); color: #fff; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; cursor: pointer; }
.work-btn:hover { background: var(--brand-dark); color: #fff; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.work-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.work-section-head h2 { margin: 0; font-size: 25px; }
.work-section-head span { color: var(--muted); font-weight: 800; }
.job-card,
.work-panel { background: var(--paper); border: 1px solid var(--line); }
.job-card { padding: 18px; margin-bottom: 12px; }
.job-card__head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.job-chip { background: #eef5f1; color: var(--green); padding: 4px 8px; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.job-card h2 { margin: 10px 0; font-size: 23px; line-height: 1.14; }
.job-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.job-facts span { background: var(--soft); padding: 10px; min-height: 66px; overflow-wrap: anywhere; }
.job-facts b { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.job-card p { margin: 10px 0 0; color: #3d4650; }
.job-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.work-link { font-weight: 900; color: var(--blue); }
.work-empty { background: var(--paper); border: 1px solid var(--line); padding: 18px; }
.work-aside { display: grid; gap: 14px; align-content: start; }
.work-panel { padding: 16px; }
.work-panel h2 { margin: 0 0 12px; font-size: 21px; }
.work-panel > a { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 800; }
.work-event { padding: 12px 0; border-top: 1px solid var(--line); }
.work-event:first-of-type { border-top: 0; padding-top: 0; }
.work-event span { color: var(--brand); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.work-event h3 { margin: 4px 0 5px; font-size: 17px; line-height: 1.2; }
.work-event p { margin: 0 0 6px; color: var(--muted); }
.work-event a { color: var(--blue); font-weight: 900; }
.work-note { border-top: 4px solid var(--gold); }
.single-main .job-facts { font-size: 15px; }
@media (max-width: 940px) {
  .work-hero,
  .work-layout,
  .work-search form { grid-template-columns: 1fr; }
  .work-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .work-hero { padding: 22px; }
  .work-hero h1 { font-size: 30px; }
  .work-stats,
  .job-facts { grid-template-columns: 1fr; }
  .job-card__head { flex-direction: column; }
}

.social-main { padding-top: 22px; }
.local-hero,
.archive-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  padding: 28px;
  margin-bottom: 16px;
}
.archive-hero { display: block; }
.local-hero h1,
.archive-hero h1 {
  font-size: 42px;
  line-height: 1.03;
  margin: 0 0 12px;
  letter-spacing: 0;
  max-width: 880px;
}
.local-hero p,
.archive-hero p {
  margin: 0;
  color: #3d4650;
  font-size: 18px;
  max-width: 800px;
}
.local-hero__actions {
  display: grid;
  gap: 10px;
}
.ghost-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.local-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.local-nav a {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 78px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.local-nav span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.local-nav b {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}
.social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.social-feed {
  display: grid;
  gap: 12px;
}
.social-feed--small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.social-item {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 130px;
}
.social-score {
  border-right: 1px solid var(--line);
  background: #f8fafc;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}
.social-score b {
  font-size: 28px;
  line-height: 1;
}
.social-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.social-score a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}
.social-body {
  padding: 15px 16px;
  min-width: 0;
}
.social-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.social-meta span:first-child {
  color: var(--brand);
}
.social-body h3 {
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}
.social-body p {
  margin: 0 0 10px;
  color: #3d4650;
}
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}
.social-price {
  display: inline-block;
  background: #eef5f1;
  color: var(--green);
  padding: 5px 8px;
  margin: 0 0 10px;
  font-weight: 900;
}
.social-item--compact {
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 98px;
}
.social-item--compact .social-score b { font-size: 22px; }
.social-item--compact .social-score a { width: 28px; height: 28px; font-size: 18px; }
.social-item--compact .social-body { padding: 12px; }
.social-item--compact .social-body h3 { font-size: 17px; }
.social-item--compact .social-actions { font-size: 12px; }
.social-aside {
  display: grid;
  gap: 14px;
}
.panel-note {
  color: var(--muted);
  margin: -4px 0 12px;
}
.local-submit {
  display: grid;
  gap: 10px;
}
.local-submit label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.local-submit input,
.local-submit select,
.local-submit textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px;
}
.local-submit input,
.local-submit select {
  min-height: 42px;
}
.local-submit textarea {
  resize: vertical;
}
.local-submit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.local-alert {
  background: #fff4e5;
  border: 1px solid #ffd99b;
  padding: 10px;
  margin-bottom: 12px;
  font-weight: 800;
}
.local-alert--ok {
  background: #eef8f4;
  border-color: #b7decf;
}
.local-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.local-section,
.work-preview {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.work-preview { margin-top: 18px; }
.local-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.local-section__head h2 {
  margin: 0 0 5px;
  font-size: 24px;
}
.local-section__head p {
  margin: 0;
  color: var(--muted);
}
.local-section__head a {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}
.section-empty {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 14px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.single-local-bar {
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-weight: 900;
}
.single-local-bar span { color: var(--brand); }
.single-local-bar a { color: var(--blue); }
.local-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.local-facts span {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 12px;
}
.local-facts b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.pagination {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
}
.comments-area {
  margin-top: 26px;
  border-top: 4px solid var(--brand);
  padding-top: 16px;
}
.comment-list {
  padding-left: 20px;
}
.comment-respond textarea,
.comment-respond input {
  max-width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
}
@media (max-width: 1080px) {
  .local-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social-feed--small { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .local-hero,
  .social-layout,
  .local-sections {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .local-hero,
  .archive-hero {
    padding: 20px;
  }
  .local-hero h1,
  .archive-hero h1 {
    font-size: 30px;
  }
  .local-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .social-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }
  .social-body h3 {
    font-size: 18px;
  }
  .local-submit__grid,
  .local-facts {
    grid-template-columns: 1fr;
  }
  .local-section__head {
    display: block;
  }
  .local-section__head a {
    display: inline-block;
    margin-top: 10px;
  }
}
