/* AtenaSzkoly.pl — modern agora editorial skin */
:root {
  --kc-navy: #111827;
  --kc-navy-2: #0b1220;
  --kc-coral: #e96b4c;
  --kc-coral-dark: #c95035;
  --kc-teal: #1746a2;
  --kc-ink: #111827;
  --kc-muted: #68707d;
  --kc-line: #d8cfbf;
  --kc-surface: #fffdf8;
  --kc-warm: #f6f0e4;
  --kc-radius-sm: 2px;
  --kc-radius: 3px;
  --kc-radius-lg: 4px;
  --kc-shadow: 0 18px 50px rgba(17, 24, 39, .12);
  --kc-container: 1280px;
}

body { background: var(--kc-warm); }
h1, h2, h3, h4 { color: var(--kc-navy); font-weight: 800; letter-spacing: -.035em; }
a:hover { color: var(--kc-coral-dark); }
.site-header { background: rgba(255,253,248,.96); border-color: #e0d7c8; }
.header-inner { width: min(calc(100% - 40px), 1460px); min-height: 96px; }
.site-branding img, .custom-logo { max-width: 275px; max-height: 68px; }
.primary-nav a { color: var(--kc-navy); font-size: .82rem; letter-spacing: .015em; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--kc-coral); }
.header-cta { display: inline-flex; color: #fff; background: var(--kc-coral); border-color: var(--kc-coral); border-radius: 2px; }
.header-cta:hover { background: var(--kc-coral-dark); border-color: var(--kc-coral-dark); }
.icon-button, .menu-toggle { color: var(--kc-navy); }
.icon-button:hover, .menu-toggle:hover { background: #eee6d8; }
.search-panel { background: #fffdf8; border-color: var(--kc-line); }

.as-agora { display: grid; width: min(calc(100% - 40px), 1460px); min-height: 610px; margin: 28px auto 0; grid-template-columns: 290px minmax(0, 1.45fr) minmax(330px, .78fr); background: #fffdf8; border: 1px solid var(--kc-line); }
.as-topic-rail { position: relative; display: grid; padding: 32px 28px; color: #fff; background: var(--kc-teal); grid-template-columns: 52px 1fr; overflow: hidden; }
.as-topic-rail::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: repeating-linear-gradient(0deg, #f6f0e4 0 2px, transparent 2px 9px); opacity: .7; }
.as-key { grid-column: 1 / 3; height: 35px; color: #f6d5ca; font-size: 1.4rem; letter-spacing: -.28em; }
.as-topic-rail > strong { align-self: center; color: #fff; font-size: clamp(1.7rem, 2.2vw, 2.8rem); line-height: .95; writing-mode: vertical-rl; transform: rotate(180deg); }
.as-topic-rail nav { display: flex; flex-direction: column; justify-content: center; }
.as-topic-rail nav a { display: flex; min-height: 66px; padding: 16px 0; align-items: center; gap: 12px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.32); font-size: .9rem; font-weight: 700; }
.as-topic-rail nav a:hover { color: #f6d5ca; }
.as-topic-rail nav span { color: #f6d5ca; font-size: 1.2rem; }

.as-lead { position: relative; min-width: 0; overflow: hidden; background: #27364b; }
.as-lead article { min-height: 100%; }
.as-lead-media { position: absolute; inset: 0; }
.as-lead-media img, .as-lead-media .placeholder-image { width: 100%; height: 100%; min-height: 610px; object-fit: cover; }
.as-lead-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,16,27,.58), transparent 58%); }
.as-lead-copy { position: absolute; z-index: 2; right: 34px; bottom: 0; left: 34px; max-width: 570px; padding: clamp(26px, 3.5vw, 48px); color: #fff; background: rgba(233,107,76,.95); }
.as-lead-copy .category-pill { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.65); }
.as-lead-copy h1 { margin: 5px 0 13px; color: #fff; font-size: clamp(2.15rem, 3.8vw, 4.4rem); line-height: .98; }
.as-lead-copy h1 a:hover { color: #fff; }
.as-lead-copy p { margin-bottom: 14px; color: #fff7f3; }
.as-lead-copy .post-meta { color: #fff; }

.as-briefs { padding: 34px 30px; background: #fffdf8; }
.as-briefs h2 { display: flex; margin-bottom: 22px; align-items: center; justify-content: space-between; font-size: 1.7rem; }
.as-briefs h2 span { color: var(--kc-coral); }
.as-briefs ol { padding: 0; margin: 0; list-style: none; }
.as-briefs li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--kc-line); }
.as-briefs li > span { color: var(--kc-coral); font-family: Georgia, "Times New Roman", serif; font-size: 2.7rem; line-height: .9; }
.as-briefs li div { display: flex; flex-direction: column; gap: 5px; }
.as-briefs small { color: var(--kc-teal); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.as-briefs li a { font-weight: 750; line-height: 1.24; }

.as-daily { padding-block: 78px; }
.as-section-head { display: flex; margin-bottom: 30px; align-items: end; justify-content: space-between; gap: 20px; }
.as-section-head h2 { display: flex; margin: 0; align-items: center; gap: 12px; font-size: clamp(2rem, 4vw, 3.8rem); }
.as-section-head h2 span { color: var(--kc-coral); }
.as-section-head > a { color: var(--kc-teal); font-weight: 800; }
.as-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 245px; gap: 16px; }
.as-mosaic-card { position: relative; min-width: 0; overflow: hidden; background: #fffdf8; border: 1px solid var(--kc-line); }
.as-mosaic-card:first-child { grid-column: span 2; grid-row: span 2; }
.as-mosaic-card:nth-child(2), .as-mosaic-card:nth-child(3) { grid-row: span 2; }
.as-mosaic-media { position: absolute; inset: 0; }
.as-mosaic-media img, .as-mosaic-media .placeholder-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.as-mosaic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgba(9,16,27,.9)); pointer-events: none; }
.as-mosaic-card:hover img { transform: scale(1.035); }
.as-mosaic-card > div { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 22px; color: #fff; }
.as-mosaic-card h3 { margin: 7px 0 8px; color: #fff; font-size: clamp(1.15rem, 1.7vw, 1.65rem); }
.as-mosaic-card > div > span { color: #ebe6dc; font-size: .75rem; }
.as-mosaic-card .card-category { padding: 4px 8px; color: #fff; background: var(--kc-coral); }
.as-mosaic-card:first-child h3 { max-width: 20ch; font-size: clamp(1.8rem, 3vw, 3rem); }

.as-category-band { padding: 32px 0; background: #9db7a5; border-block: 1px solid #849d8c; }
.as-category-band .kc-container { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.as-category-band a { display: flex; min-height: 58px; padding: 12px 18px; align-items: center; justify-content: space-between; border-right: 1px solid rgba(17,24,39,.24); font-weight: 800; }
.as-category-band a:nth-child(5n) { border-right: 0; }
.as-category-band span { color: var(--kc-teal); }

.as-publish { padding: 58px 0; color: #fff; background: var(--kc-teal); }
.as-publish .kc-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.as-publish span { color: #cddcff; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.as-publish h2 { max-width: 18ch; margin: 6px 0 0; color: #fff; font-size: clamp(2rem, 4vw, 3.8rem); }
.as-publish .button { color: #fff; background: var(--kc-coral); border-color: var(--kc-coral); }

.page-header, .single-hero { background: #fffdf8; border-color: var(--kc-line); }
.post-card, .compact-card, .focus-story-inner, .no-results, .page-numbers, .content-area, .sidebar .widget, .comments-area { background: #fffdf8; border-color: var(--kc-line); border-radius: 2px; }
.category-pill, .eyebrow { background: var(--kc-teal); border-radius: 1px; }
.card-category { color: var(--kc-teal); }
.single-featured { border-radius: 2px; }
.site-footer { color: #c8d1df; background: var(--kc-navy-2); }
.footer-title, .footer-menu a { color: #fff; }

@media (max-width: 1180px) {
  .as-agora { grid-template-columns: 220px minmax(0, 1fr) 340px; }
  .as-topic-rail { padding-inline: 18px; }
  .as-topic-rail nav a { font-size: .78rem; }
  .as-mosaic { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .as-mosaic-card:nth-child(3) { grid-row: auto; }
  .header-cta { display: inline-flex; }
}
@media (max-width: 980px) {
  .as-agora { grid-template-columns: 180px minmax(0,1fr); }
  .as-briefs { grid-column: 1 / 3; }
  .as-briefs ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
  .as-category-band .kc-container { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .as-category-band a:nth-child(5n) { border-right: 1px solid rgba(17,24,39,.24); }
  .as-category-band a:nth-child(3n) { border-right: 0; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 76px; }
  .as-agora { width: 100%; margin-top: 0; grid-template-columns: 1fr; border-inline: 0; }
  .as-topic-rail { display: block; padding: 18px 20px; }
  .as-topic-rail > strong { display: block; margin-bottom: 15px; font-size: 1.55rem; writing-mode: initial; transform: none; }
  .as-topic-rail nav { display: flex; padding-bottom: 4px; flex-direction: row; gap: 8px; overflow-x: auto; }
  .as-topic-rail nav a { min-height: 38px; padding: 8px 12px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.32); }
  .as-topic-rail nav span, .as-key { display: none; }
  .as-lead { min-height: 570px; }
  .as-lead-media img, .as-lead-media .placeholder-image { min-height: 570px; }
  .as-lead-copy { right: 18px; left: 18px; padding: 25px; }
  .as-briefs { grid-column: 1; }
  .as-briefs ol { display: block; }
  .as-mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 260px; }
  .as-mosaic-card:first-child { grid-column: span 2; }
  .as-mosaic-card:nth-child(2) { grid-row: auto; }
  .as-publish .kc-container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .kc-container { width: min(calc(100% - 24px), var(--kc-container)); }
  .site-branding img, .custom-logo { max-width: 145px; }
  .header-cta { min-height: 38px; padding: 7px 10px; font-size: .64rem; }
  .search-toggle { display: none; }
  .as-lead { min-height: 520px; }
  .as-lead-copy h1 { font-size: 2.25rem; }
  .as-daily { padding-block: 52px; }
  .as-section-head { align-items: flex-start; flex-direction: column; }
  .as-mosaic { grid-template-columns: 1fr; }
  .as-mosaic-card:first-child { grid-column: 1; grid-row: span 2; }
  .as-category-band .kc-container { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .as-category-band a:nth-child(3n) { border-right: 1px solid rgba(17,24,39,.24); }
  .as-category-band a:nth-child(2n) { border-right: 0; }
}
