/* Redaktion — Kleid fuer den Mandanten akcjopilot (23.09.2026).
   Zieht die Nachrichten-, Wissen- und Depeschenseiten unter /wiadomosci auf
   das Portal-Bild von akcjopilot.pl (Systemschrift, weisser Grund, Navy-Kopf
   mit Goldkante, blaue Links). Alles ist auf body.m-akcjopilot begrenzt —
   die vier anderen Mandanten sehen nichts davon. */
body.m-akcjopilot{
  --navy:#0e2a3b; --navy-light:#16384c; --gold:#d9b877;
  --paper:#f4f6f8; --ink:#16233a; --muted:#5f6b7a; --line:#dfe4ea;
  --ap-accent:#1f5fa8; --ap-accent-light:#e8f0fa; --ap-gold:#b88a3e; --ap-gold-text:#856326;
  --ap-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Inter","Helvetica Neue",Arial,sans-serif;
  font-family:var(--ap-sans); font-size:14.5px; line-height:1.5; background:var(--paper); color:var(--ink);
}
body.m-akcjopilot h1,body.m-akcjopilot h2,body.m-akcjopilot h3,body.m-akcjopilot h4{
  font-family:var(--ap-sans); font-weight:600; color:var(--ink); letter-spacing:-.01em;
}
body.m-akcjopilot a{color:var(--ap-accent)}
body.m-akcjopilot a:hover{color:#17497f}
body.m-akcjopilot .wrap{max-width:1400px}

/* Kopf wie das Portal: Navy, 2px Goldkante, eine Zeile */
body.m-akcjopilot header.site-head{background:var(--navy);border-top:2px solid var(--gold);border-bottom:0}
body.m-akcjopilot header.site-head .wrap{padding:8px 16px;gap:16px}
body.m-akcjopilot .ap-brand{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none}
body.m-akcjopilot .ap-brand svg{width:22px;height:22px;flex:0 0 auto}
body.m-akcjopilot .ap-brand b{font-size:17px;font-weight:700;letter-spacing:-.01em}
body.m-akcjopilot .ap-brand span{font-size:12px;color:#cfdbe4;margin-left:2px}
body.m-akcjopilot nav.site-nav ul{gap:2px;flex-wrap:wrap}
body.m-akcjopilot nav.site-nav a{color:#cfdbe4;text-transform:none;letter-spacing:0;font-family:var(--ap-sans);font-size:13.5px;font-weight:500;padding:6px 10px;border-radius:4px;display:inline-block}
body.m-akcjopilot nav.site-nav a:hover{color:#fff;background:rgba(255,255,255,.1)}
body.m-akcjopilot nav.site-nav a.ap-cta{background:var(--ap-gold);color:#1a1206;font-weight:600;margin-left:6px}
body.m-akcjopilot nav.site-nav a.ap-cta:hover{background:#c9994a;color:#1a1206}

body.m-akcjopilot main{padding:14px 0 24px}

/* Zeitungsseite (news_index_zeitung): Kopf, Reiter, Spalten, Kaesten */
body.m-akcjopilot .zg-kopf h1{font-size:22px;margin:0 0 4px}
body.m-akcjopilot .zg-kopf h1::after{content:"";display:block;width:36px;height:3px;background:var(--ap-gold);margin-top:6px;border-radius:2px}
body.m-akcjopilot .zg-sub{font-family:var(--ap-sans);color:var(--muted);font-size:13.5px}
body.m-akcjopilot .zg-rubriken{border-bottom:1px solid var(--line);margin:10px 0 14px;gap:0}
body.m-akcjopilot .zg-rubriken a{font-family:var(--ap-sans);font-size:13px;font-weight:600;color:var(--muted);padding:7px 11px;border-bottom:2px solid transparent;margin-bottom:-1px;text-transform:none;letter-spacing:0}
body.m-akcjopilot .zg-rubriken a:hover{color:var(--ink)}
body.m-akcjopilot .zg-rubriken a.aktiv{color:var(--ink);border-bottom-color:var(--ap-gold)}
body.m-akcjopilot .zg-rubriken .zg-n{color:#9aa6b2;font-weight:400}
body.m-akcjopilot .zg-block{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px 14px;margin-bottom:10px}
body.m-akcjopilot .zg-block h2{font-size:17px;line-height:1.3;margin:4px 0 6px}
body.m-akcjopilot .zg-block h2 a{color:var(--ink)}
body.m-akcjopilot .zg-block h2 a:hover{color:var(--ap-accent)}
body.m-akcjopilot .zg-block p{font-family:var(--ap-sans);font-size:13.5px;color:#3d4a57;margin:0 0 6px}
body.m-akcjopilot .zg-chip{background:var(--ap-accent-light);color:var(--ap-accent);font-family:var(--ap-sans);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;border-radius:3px;padding:2px 6px}
body.m-akcjopilot .zg-meta{font-family:var(--ap-sans);font-size:12px;color:var(--muted)}
body.m-akcjopilot .zg-bild img{border-radius:4px}
body.m-akcjopilot .zg-liste-titel,body.m-akcjopilot .zg-kasten h4{font-family:var(--ap-sans);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;border-bottom:1px solid var(--line);padding-bottom:6px}
body.m-akcjopilot .zg-kasten h4::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ap-gold);margin-right:7px;vertical-align:1px}
body.m-akcjopilot .zg-tag{font-family:var(--ap-sans);font-size:11.5px;color:var(--muted)}
body.m-akcjopilot .zg-zeile{font-family:var(--ap-sans);font-size:13.5px;border-bottom:1px solid #edf0f3;padding:6px 0}
body.m-akcjopilot .zg-zeile a{color:var(--ink)}
body.m-akcjopilot .zg-zeile a:hover{color:var(--ap-accent)}
body.m-akcjopilot .zg-zeile .zg-res{color:var(--ap-accent);background:var(--ap-accent-light);border-radius:3px;padding:1px 5px}
body.m-akcjopilot .zg-zeile .zg-res.depesza{color:var(--ap-gold-text);background:#f6eedc}
body.m-akcjopilot .zg-kasten{background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px 14px;box-shadow:none}
body.m-akcjopilot .zg-kasten li{font-family:var(--ap-sans);font-size:13px;line-height:1.35;border-bottom:1px solid #edf0f3;padding:6px 0}
body.m-akcjopilot .zg-kasten li a{color:var(--ink)}
body.m-akcjopilot .zg-kasten li a:hover{color:var(--ap-accent)}
body.m-akcjopilot .zg-mehr{font-family:var(--ap-sans);font-size:12.5px;font-weight:600;color:var(--ap-accent)}
body.m-akcjopilot .zg-anzeige,body.m-akcjopilot .randschiene{display:none}

/* Karten/Listen der uebrigen Vorlagen (Wissen, Depesze, Themen) */
body.m-akcjopilot .card{border-radius:6px;border-color:var(--line)}
body.m-akcjopilot .card-body h3{font-size:15px}
body.m-akcjopilot .card-body p,body.m-akcjopilot .card-meta{font-family:var(--ap-sans)}
body.m-akcjopilot .badge{background:var(--ap-accent-light);color:var(--ap-accent);font-family:var(--ap-sans);border-radius:3px;font-weight:700;letter-spacing:.06em}
body.m-akcjopilot .hero{border-bottom:1px solid var(--line);padding:6px 0 10px}
body.m-akcjopilot .hero h1{font-size:22px}
body.m-akcjopilot .hero h1::after{content:"";display:block;width:36px;height:3px;background:var(--ap-gold);margin-top:6px;border-radius:2px}
body.m-akcjopilot .hero p{font-family:var(--ap-sans);font-size:13.5px}
body.m-akcjopilot .pagination a,body.m-akcjopilot .pagination span{border-radius:4px;font-family:var(--ap-sans)}
body.m-akcjopilot .pagination .current{background:var(--ap-accent);border-color:var(--ap-accent)}

/* Artikelseite */
body.m-akcjopilot article.full{background:#fff;border:1px solid var(--line);border-radius:6px;padding:20px 24px}
body.m-akcjopilot article.full h1{font-size:26px;line-height:1.2}
body.m-akcjopilot .article-body{font-family:var(--ap-sans);font-size:15.5px;line-height:1.65;max-width:78ch}
body.m-akcjopilot .article-body h2{font-size:19px;margin-top:22px}
body.m-akcjopilot .article-body h3{font-size:16px}
body.m-akcjopilot .article-meta{font-family:var(--ap-sans)}
body.m-akcjopilot .box{border-radius:6px;border-left-color:var(--ap-gold)}
body.m-akcjopilot .box h2{font-family:var(--ap-sans);color:var(--muted);font-size:11px;letter-spacing:.06em}
body.m-akcjopilot table{font-family:var(--ap-sans);font-size:13px}
body.m-akcjopilot table th{background:#f8fafc;color:var(--muted);text-transform:uppercase;font-size:11px;letter-spacing:.04em;font-weight:600;border-color:var(--line)}
body.m-akcjopilot table td{border-color:#edf0f3}

/* Fuss wie das Portal */
body.m-akcjopilot footer.site-foot{background:var(--navy);border-top:2px solid var(--gold);color:#9fb4c2;font-family:var(--ap-sans);font-size:13px;margin-top:32px;padding:26px 0}
body.m-akcjopilot footer.site-foot a{color:#b9cbd7}
body.m-akcjopilot footer.site-foot a:hover{color:#fff}

@media (max-width:800px){
  /* Kopf auf dem Handy: zwei Zeilen (Marke, darunter die Links). Eine
     wischbare Zeile liess Chrome die Seite auf 597px auflaufen (23.09.). */
  body.m-akcjopilot header.site-head .wrap{flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:6px 10px}
  body.m-akcjopilot nav.site-nav{width:100%}
  body.m-akcjopilot nav.site-nav ul{flex-wrap:wrap;gap:0 2px}
  body.m-akcjopilot nav.site-nav a{white-space:nowrap;padding:5px 7px;font-size:13px}
  body.m-akcjopilot nav.site-nav a.ap-cta{margin-left:0}
  body.m-akcjopilot .zg-kopf h1{font-size:19px}
  body.m-akcjopilot article.full{padding:14px}
}

/* Handy: die Zeitungsvorlage setzt unter 980px grid-template-columns:1fr —
   1fr = minmax(auto,1fr), und "auto" nimmt die natuerliche Bildbreite (790px)
   als Mindestmass. Die Spalte wuchs auf 820px, die Seite scrollte seitlich.
   minmax(0,1fr) + min-width:0 auf den Kindern beheben es (23.09.2026). */
@media (max-width:980px){
  body.m-akcjopilot .zg-spalten{grid-template-columns:minmax(0,1fr)}
  body.m-akcjopilot .zg-spalten>*,body.m-akcjopilot .zg-block,body.m-akcjopilot .zg-text{min-width:0;max-width:100%}
  body.m-akcjopilot .zg-bild,body.m-akcjopilot .zg-bild img{max-width:100%}
  body.m-akcjopilot img{max-width:100%;height:auto}
}
@media (max-width:520px){
  body.m-akcjopilot .ap-brand span{display:none}
}


/* ---- App-Huelle fuers Handy (25.09.2026): Reiterleiste unten wie auf akcjopilot.pl ---- */
body.m-akcjopilot .ap-tabs{display:none}
@media (max-width:820px){
  body.m-akcjopilot{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))}
  body.m-akcjopilot header.site-head{position:sticky;top:0;z-index:120}
  body.m-akcjopilot header.site-head .wrap{min-height:52px;padding:4px 10px}
  body.m-akcjopilot nav.site-nav ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body.m-akcjopilot nav.site-nav ul::-webkit-scrollbar{display:none}
  body.m-akcjopilot nav.site-nav a.ap-cta{display:none}   /* steht unten in der Reiterleiste (Szukaj/Rynki) */
  body.m-akcjopilot .ap-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:150;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -2px 12px rgba(16,35,58,.07)}
  body.m-akcjopilot .ap-tab{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:56px;color:var(--muted);font-size:10.5px;font-weight:600;text-decoration:none;font-family:var(--ap-sans);position:relative}
  body.m-akcjopilot .ap-tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:0 2px}
  body.m-akcjopilot .ap-tab svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  body.m-akcjopilot .ap-tab.aktiv{color:var(--navy)}
  body.m-akcjopilot .ap-tab.aktiv svg{stroke-width:2.1}
  body.m-akcjopilot .ap-tab.aktiv::before{content:"";position:absolute;top:-1px;left:22%;right:22%;height:3px;background:var(--ap-gold);border-radius:0 0 3px 3px}
  body.m-akcjopilot footer{margin-bottom:0}
}
@media (max-width:820px){
  /* Wissen-/News-Raster: die Vorlage setzt feste Spalten (5 x 352px = 1.860px breit); auf dem Handy eine Spalte */
  body.m-akcjopilot .grid{display:grid !important;grid-template-columns:minmax(0,1fr) !important;grid-auto-flow:row !important;gap:12px}
  body.m-akcjopilot .card,body.m-akcjopilot .card-img,body.m-akcjopilot .card-body{max-width:100%;min-width:0}
}
@media (max-width:820px){
  /* wi-spalten (Wissen-Seite): die Spur ist 'auto' und misst sich am 5-Spalten-Raster (1.860px). Spur und Kind auf Bildschirmbreite zwingen. */
  body.m-akcjopilot .wi-spalten{grid-template-columns:minmax(0,1fr) !important}
  body.m-akcjopilot .wi-spalten>*{min-width:0 !important;max-width:100%}
  body.m-akcjopilot .card-img{width:auto !important;max-width:100%}
}
@media (max-width:820px){
  /* Blaetterleiste: 30 Seitenzahlen in einer Flex-Zeile ohne Umbruch machten die Seite 1.117px breit */
  body.m-akcjopilot .pagination{flex-wrap:wrap !important;gap:6px;justify-content:center}
  body.m-akcjopilot .pagination a{margin:0}
}
