/*
Theme Name: LTLP
Theme URI: https://lepszytorunlepszapolska.pl/
Author: Lepszy Toruń lepsza Polska
Author URI: https://lepszytorunlepszapolska.pl/
Description: Odświeżony motyw serwisu informacyjno-reportażowego "Lepszy Toruń lepsza Polska". Czysty własny CSS i vanilla JS. W pełni kompatybilny migracyjnie z motywem newspaperss (te same obszary widżetów, widżety, menu i ustawienia).
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ltpl
Tags: news, blog, two-columns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, grid-layout
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  --ltpl-teal: #00859b;
  --ltpl-teal-dark: #006a7c;
  --ltpl-teal-light: #2fc2e3;
  --ltpl-magenta: #ad1aac;
  --ltpl-magenta-dark: #8a1489;
  --ltpl-ink: #1e2327;
  --ltpl-ink-soft: #3d454d;
  --ltpl-muted: #6b7280;
  --ltpl-line: #e5e9ee;
  --ltpl-bg: #ffffff;
  --ltpl-bg-soft: #f6f8fa;
  --ltpl-bg-dark: #171a1f;
  --ltpl-shadow-sm: 0 1px 3px rgba(16, 24, 40, .08);
  --ltpl-shadow: 0 6px 18px rgba(16, 24, 40, .10);
  --ltpl-shadow-lg: 0 14px 34px rgba(16, 24, 40, .16);
  --ltpl-radius: 10px;
  --ltpl-radius-sm: 6px;
  --ltpl-gradient: linear-gradient(100deg, var(--ltpl-teal) 0%, var(--ltpl-teal-light) 55%, var(--ltpl-magenta) 130%);
  --ltpl-gradient-accent: linear-gradient(90deg, var(--ltpl-teal) 0%, var(--ltpl-magenta) 100%);
  --ltpl-container: 75rem;
  --ltpl-gutter: 1.25rem;
  --ltpl-font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --ltpl-font-head: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --ltpl-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--ltpl-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ltpl-ink);
  background: var(--ltpl-bg);
  /* clip (not hidden) — hidden would create a scroll container and
     break position:sticky/fixed-based sticky nav */
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--ltpl-teal);
  text-decoration: none;
  transition: color .25s var(--ltpl-ease);
}

a:hover,
a:focus {
  color: var(--ltpl-magenta);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ltpl-font-head);
  line-height: 1.25;
  color: var(--ltpl-ink);
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; }

input, select, textarea, button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius-sm);
  background: #fff;
  transition: border-color .25s var(--ltpl-ease), box-shadow .25s var(--ltpl-ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ltpl-teal);
  box-shadow: 0 0 0 3px rgba(0, 133, 155, .15);
}

button,
input[type="submit"],
.button {
  cursor: pointer;
}

.screen-reader-text,
.is-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--ltpl-teal);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 var(--ltpl-radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

a:focus {
  outline: 2px dotted var(--ltpl-teal);
  outline-offset: 2px;
}

::selection {
  background: var(--ltpl-teal);
  color: #fff;
}

/* ==========================================================================
   3. Grid shim (Foundation XY-compatible class names)
   ========================================================================== */

#wrapper {
  overflow: hidden;
  width: 100%;
}

.grid-container {
  max-width: var(--ltpl-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: .9375rem;
  padding-right: .9375rem;
  width: 100%;
}

.grid-container.full {
  max-width: 100%;
}

.grid-container.no-padding {
  padding-left: 0;
  padding-right: 0;
}

.grid-x {
  display: flex;
  flex-flow: row wrap;
}

.grid-y {
  display: flex;
  flex-flow: column nowrap;
}

.cell {
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.cell.auto,
.cell.large-auto {
  flex: 1 1 0;
  width: auto;
}

.cell.shrink {
  flex: 0 0 auto;
  width: auto;
}

.grid-padding-x { margin-left: -.625rem; margin-right: -.625rem; }
.grid-padding-x > .cell { padding-left: .625rem; padding-right: .625rem; }
.grid-padding-y > .cell { padding-top: .625rem; padding-bottom: .625rem; }

.grid-margin-x { margin-left: -.625rem; margin-right: -.625rem; }
.grid-margin-x > .cell { margin-left: .625rem; margin-right: .625rem; width: calc(100% - 1.25rem); }
.grid-margin-y > .cell { margin-top: .625rem; margin-bottom: .625rem; }

/* Widths — mobile first (small-*) */
.grid-x > .small-1  { width: 8.3333%; }
.grid-x > .small-2  { width: 16.6667%; }
.grid-x > .small-3  { width: 25%; }
.grid-x > .small-4  { width: 33.3333%; }
.grid-x > .small-5  { width: 41.6667%; }
.grid-x > .small-6  { width: 50%; }
.grid-x > .small-7  { width: 58.3333%; }
.grid-x > .small-8  { width: 66.6667%; }
.grid-x > .small-9  { width: 75%; }
.grid-x > .small-10 { width: 83.3333%; }
.grid-x > .small-11 { width: 91.6667%; }
.grid-x > .small-12 { width: 100%; }
.grid-x > .small-auto { flex: 1 1 0; width: auto; }

.grid-margin-x > .small-1  { width: calc(8.3333% - 1.25rem); }
.grid-margin-x > .small-2  { width: calc(16.6667% - 1.25rem); }
.grid-margin-x > .small-3  { width: calc(25% - 1.25rem); }
.grid-margin-x > .small-4  { width: calc(33.3333% - 1.25rem); }
.grid-margin-x > .small-5  { width: calc(41.6667% - 1.25rem); }
.grid-margin-x > .small-6  { width: calc(50% - 1.25rem); }
.grid-margin-x > .small-7  { width: calc(58.3333% - 1.25rem); }
.grid-margin-x > .small-8  { width: calc(66.6667% - 1.25rem); }
.grid-margin-x > .small-9  { width: calc(75% - 1.25rem); }
.grid-margin-x > .small-10 { width: calc(83.3333% - 1.25rem); }
.grid-margin-x > .small-11 { width: calc(91.6667% - 1.25rem); }
.grid-margin-x > .small-12 { width: calc(100% - 1.25rem); }

@media (min-width: 40em) {
  .grid-x > .medium-1  { width: 8.3333%; }
  .grid-x > .medium-2  { width: 16.6667%; }
  .grid-x > .medium-3  { width: 25%; }
  .grid-x > .medium-4  { width: 33.3333%; }
  .grid-x > .medium-5  { width: 41.6667%; }
  .grid-x > .medium-6  { width: 50%; }
  .grid-x > .medium-7  { width: 58.3333%; }
  .grid-x > .medium-8  { width: 66.6667%; }
  .grid-x > .medium-9  { width: 75%; }
  .grid-x > .medium-10 { width: 83.3333%; }
  .grid-x > .medium-11 { width: 91.6667%; }
  .grid-x > .medium-12 { width: 100%; }
  .grid-x > .medium-auto { flex: 1 1 0; width: auto; }

  .grid-margin-x > .medium-1  { width: calc(8.3333% - 1.25rem); }
  .grid-margin-x > .medium-2  { width: calc(16.6667% - 1.25rem); }
  .grid-margin-x > .medium-3  { width: calc(25% - 1.25rem); }
  .grid-margin-x > .medium-4  { width: calc(33.3333% - 1.25rem); }
  .grid-margin-x > .medium-5  { width: calc(41.6667% - 1.25rem); }
  .grid-margin-x > .medium-6  { width: calc(50% - 1.25rem); }
  .grid-margin-x > .medium-7  { width: calc(58.3333% - 1.25rem); }
  .grid-margin-x > .medium-8  { width: calc(66.6667% - 1.25rem); }
  .grid-margin-x > .medium-9  { width: calc(75% - 1.25rem); }
  .grid-margin-x > .medium-10 { width: calc(83.3333% - 1.25rem); }
  .grid-margin-x > .medium-11 { width: calc(91.6667% - 1.25rem); }
  .grid-margin-x > .medium-12 { width: calc(100% - 1.25rem); }

  .medium-order-1 { order: 1; }
  .medium-order-2 { order: 2; }
  .medium-text-left { text-align: left; }
}

@media (min-width: 64em) {
  .grid-x > .large-1  { width: 8.3333%; }
  .grid-x > .large-2  { width: 16.6667%; }
  .grid-x > .large-3  { width: 25%; }
  .grid-x > .large-4  { width: 33.3333%; }
  .grid-x > .large-5  { width: 41.6667%; }
  .grid-x > .large-6  { width: 50%; }
  .grid-x > .large-7  { width: 58.3333%; }
  .grid-x > .large-8  { width: 66.6667%; }
  .grid-x > .large-9  { width: 75%; }
  .grid-x > .large-10 { width: 83.3333%; }
  .grid-x > .large-11 { width: 91.6667%; }
  .grid-x > .large-12 { width: 100%; }
  .grid-x > .large-auto { flex: 1 1 0; width: auto; }

  .grid-margin-x > .large-1  { width: calc(8.3333% - 1.25rem); }
  .grid-margin-x > .large-2  { width: calc(16.6667% - 1.25rem); }
  .grid-margin-x > .large-3  { width: calc(25% - 1.25rem); }
  .grid-margin-x > .large-4  { width: calc(33.3333% - 1.25rem); }
  .grid-margin-x > .large-5  { width: calc(41.6667% - 1.25rem); }
  .grid-margin-x > .large-6  { width: calc(50% - 1.25rem); }
  .grid-margin-x > .large-7  { width: calc(58.3333% - 1.25rem); }
  .grid-margin-x > .large-8  { width: calc(66.6667% - 1.25rem); }
  .grid-margin-x > .large-9  { width: calc(75% - 1.25rem); }
  .grid-margin-x > .large-10 { width: calc(83.3333% - 1.25rem); }
  .grid-margin-x > .large-11 { width: calc(91.6667% - 1.25rem); }
  .grid-margin-x > .large-12 { width: calc(100% - 1.25rem); }

  .large-order-1 { order: 1; }
  .large-order-2 { order: 2; }
  .large-text-left { text-align: left; }
  .large-text-right { text-align: right; }
}

/* Alignment helpers */
.align-center   { justify-content: center; }
.align-justify  { justify-content: space-between; }
.align-right    { justify-content: flex-end; }
.align-top      { align-items: flex-start; }
.align-middle   { align-items: center; }
.align-bottom   { align-items: flex-end; }
.align-stretch  { align-items: stretch; }
.align-self-middle { align-self: center; }
.align-self-top    { align-self: flex-start; }
.align-self-bottom { align-self: flex-end; }
.align-self-stretch { align-self: stretch; }

.medium-margin-collapse { margin-left: 0; margin-right: 0; }
.medium-margin-collapse > .cell { margin-left: 0; margin-right: 0; }

/* Spacing helpers */
.no-padding { padding: 0; }
.nopadding-left { padding-left: 0; }
.no-left-padding { padding-left: 0; }
.margin-vertical-1 { margin-top: 1rem; margin-bottom: 1rem; }
.margin-vertical-3 { margin-top: 3rem; margin-bottom: 3rem; }
.margin-horizontal { margin-left: 0; margin-right: 0; }
.margin-right-post { margin-right: 0; }
.margin-no { margin: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-40 { margin-bottom: 40px; }

/* Text / floats */
.text-center { text-align: center; }
.text-right { text-align: right; }
.float-center { display: block; margin-left: auto; margin-right: auto; }
.hide { display: none !important; }
.is-absolute { position: absolute; }
.clearfix::after { content: ""; display: table; clear: both; }
.display-inline { display: inline; }
.border-none { border: none; }

@media (min-width: 64em) {
  .hide-for-large { display: none !important; }
}
@media (max-width: 63.98em) {
  .show-for-large { display: none !important; }
}

.z-depth-2 { box-shadow: 0 4px 14px rgba(0, 0, 0, .10); }

/* ==========================================================================
   4. Top bar
   ========================================================================== */

#topmenu {
  background: var(--ltpl-bg-dark);
  color: #cfd4da;
  font-size: .8125rem;
  position: relative;
  z-index: 30;
}

#topmenu .grid-container {
  max-width: var(--ltpl-container);
}

#topmenu .top-bar,
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 2.5rem;
}

#topmenu .top-bar-left .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}

#topmenu .top-bar-left .menu a {
  display: inline-block;
  padding: .55rem 0;
  color: #cfd4da;
  font-size: .78rem;
  letter-spacing: .02em;
  position: relative;
}

#topmenu .top-bar-left .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .3rem;
  width: 100%;
  height: 2px;
  background: var(--ltpl-gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ltpl-ease);
}

#topmenu .top-bar-left .menu a:hover::after,
#topmenu .top-bar-left .menu a:focus::after {
  transform: scaleX(1);
}

#topmenu .top-bar-left .menu a:hover {
  color: #fff;
}

/* Social buttons */
.social-btns {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.social-btns .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  font-size: .9rem;
  transition: transform .25s var(--ltpl-ease), background .25s var(--ltpl-ease), box-shadow .25s var(--ltpl-ease);
}

.social-btns .btn:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: var(--ltpl-shadow);
}

.social-btns .btn.facebook:hover  { background: #1877f2; }
.social-btns .btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btns .btn.youtube:hover   { background: #ff0000; }
.social-btns .btn.twitter:hover,
.social-btns .btn.x:hover         { background: #14171a; }
.social-btns .btn.tiktok:hover    { background: #000; }

/* ==========================================================================
   5. Header — branding
   ========================================================================== */

#header-top {
  position: relative;
  background: #fff;
}

.head-top-area {
  padding: 1.1rem 0;
  background: #fff;
  border-bottom: 1px solid var(--ltpl-line);
}

#main-header .custom-logo {
  max-height: 92px;
  width: auto;
  display: block;
}

#site-title .site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

#site-title .site-title a {
  color: var(--ltpl-ink);
}

#site-title .site-title a:hover {
  color: var(--ltpl-teal);
}

#site-title .site-description {
  margin: .15rem 0 0;
  font-size: .82rem;
  color: var(--ltpl-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.logo-center { text-align: center; }
.logo-center .custom-logo { margin: 0 auto; }

/* Header ad area */
#header-top .widget_media_image img,
.float-center .widget_media_image img {
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   6. Main navigation (sticky)
   ========================================================================== */

#header-bottom,
.head-bottom-area {
  background: var(--ltpl-bg-dark);
  position: relative;
  z-index: 60;
  width: 100%;
}

/* The nav is the last child of a short #header-top, so pure position:sticky
   can never engage — JS adds .is-stuck for fixed positioning + spacer. */
#header-bottom.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: var(--ltpl-container);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

#wrapper.full #header-bottom.is-stuck { max-width: none; }

.ltpl-nav-spacer { display: block; }

#the-menu {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 3.4rem;
}

.menu-position {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.menu-position.right { justify-content: flex-end; }
.menu-position.center { justify-content: center; }

.desktop-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.desktop-menu li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.desktop-menu li a {
  display: flex;
  align-items: center;
  padding: .95rem .95rem;
  color: #eef1f4;
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
  white-space: nowrap;
}

.desktop-menu > li > a::before {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: .55rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ltpl-gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ltpl-ease);
}

.desktop-menu > li > a:hover::before,
.desktop-menu > li > a:focus::before,
.desktop-menu > li.current-menu-item > a::before,
.desktop-menu > li.current_page_item > a::before {
  transform: scaleX(1);
}

.desktop-menu a:hover,
.desktop-menu a:focus,
.desktop-menu .current-menu-item > a,
.desktop-menu .current_page_item > a {
  color: var(--ltpl-teal-light);
}

/* Dropdowns */
.desktop-menu .sub-menu,
.desktop-menu .menu .menu {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  background: #fff;
  border-radius: 0 0 var(--ltpl-radius-sm) var(--ltpl-radius-sm);
  box-shadow: var(--ltpl-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ltpl-ease), transform .22s var(--ltpl-ease), visibility .22s;
  z-index: 80;
}

.desktop-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-radius: var(--ltpl-radius-sm);
}

.desktop-menu li:hover > .sub-menu,
.desktop-menu li:focus-within > .sub-menu,
.desktop-menu li.ltpl-menu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-menu .sub-menu li a {
  padding: .6rem 1.1rem;
  color: var(--ltpl-ink-soft);
  text-transform: none;
  font-weight: 400;
  font-size: .9rem;
  white-space: normal;
}

.desktop-menu .sub-menu li a:hover {
  color: var(--ltpl-magenta);
  background: var(--ltpl-bg-soft);
  padding-left: 1.3rem;
}

.desktop-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: .45rem;
  border-style: solid;
  border-width: 0 1.6px 1.6px 0;
  padding: 2.4px;
  transform: rotate(45deg) translateY(-2px);
  border-color: currentColor;
}

#add-menu a { color: #fff; }

/* Header search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.search-wrap .fa-search,
.search-wrap .ltpl-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  align-self: stretch;
  color: #fff;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color .25s var(--ltpl-ease), background .25s var(--ltpl-ease);
}

.search-wrap .fa-search:hover,
.search-wrap .ltpl-search-toggle:hover {
  color: var(--ltpl-teal-light);
  background: rgba(255, 255, 255, .06);
}

.search-wrap form {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(21rem, 90vw);
  padding: .7rem;
  background: #fff;
  box-shadow: var(--ltpl-shadow-lg);
  border-radius: 0 0 var(--ltpl-radius-sm) var(--ltpl-radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ltpl-ease), transform .22s var(--ltpl-ease), visibility .22s;
  z-index: 90;
  display: flex;
  gap: .5rem;
}

.search-wrap.ltpl-search-open form {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-wrap form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
}

.search-wrap form .is-search-submit,
.search-wrap form [type="submit"] {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--ltpl-radius-sm);
  padding: 0 1rem;
  background: var(--ltpl-teal);
  color: #fff;
  transition: background .25s var(--ltpl-ease);
}

.search-wrap form .is-search-submit:hover,
.search-wrap form [type="submit"]:hover {
  background: var(--ltpl-magenta);
}

.search-wrap .eks { display: none; }

/* ==========================================================================
   7. Mobile header / off-canvas drawer
   ========================================================================== */

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: var(--ltpl-bg-dark);
  color: #fff;
  padding: .55rem .9375rem;
  min-height: 3.6rem;
}

.title-bar .custom-logo {
  max-height: 44px;
  width: auto;
}

.title-bar .site-title {
  font-size: 1.05rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-bar .site-title a { color: #fff; }

.title-bar .site-description {
  font-size: .68rem;
  margin: 0;
  color: #aeb6bf;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.title-bar-left { flex: 0 1 auto; min-width: 0; }
.title-bar-title { display: flex; flex-direction: column; }

.title-bar .top-bar-right { flex: 0 0 auto; margin-left: auto; }
.title-bar .top-bar-right .nav-bar { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }

.offcanvas-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--ltpl-radius-sm);
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ltpl-ease), border-color .25s;
}

.offcanvas-trigger:hover,
.offcanvas-trigger:focus-visible {
  background: #222;
  border-color: rgba(255, 255, 255, .35);
}

/* Namespaced classes — generic .hamburger/.line collide with plugin styles */
.ltpl-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  flex: 0 0 auto;
}

.ltpl-burger .ltpl-burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ltpl-ease), opacity .2s;
}

/* Drawer */
.ltpl-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(21rem, 88vw);
  background: var(--ltpl-bg-dark);
  color: #eef1f4;
  z-index: 200;
  transform: translateX(105%);
  transition: transform .38s var(--ltpl-ease);
  overflow-y: auto;
  box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
}

.ltpl-drawer.is-open {
  transform: translateX(0);
}

.ltpl-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--ltpl-line);
}

.ltpl-drawer-head .custom-logo { max-height: 38px; width: auto; }

.ltpl-drawer-close {
  background: transparent;
  border: 0;
  color: var(--ltpl-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .3rem .5rem;
  transition: color .25s;
}

.ltpl-drawer-close:hover { color: var(--ltpl-magenta); }

.ltpl-drawer .menu,
.ltpl-drawer .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ltpl-drawer .menu li {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.ltpl-drawer .menu a {
  display: block;
  padding: .85rem 1.2rem;
  color: #eef1f4;
  font-size: .95rem;
  font-weight: 500;
}

.ltpl-drawer .menu a:hover,
.ltpl-drawer .menu a:focus {
  color: var(--ltpl-teal-light);
  background: rgba(255, 255, 255, .05);
}

.ltpl-drawer .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  background: rgba(0, 0, 0, .22);
  display: none;
}

.ltpl-drawer li.ltpl-menu-open > .sub-menu { display: block; }

/* Top-bar menu items appended at the end of the drawer list —
   styled identically so they read as part of the main menu. */

.ltpl-drawer .menu-item-has-children > a { position: relative; }

.ltpl-drawer .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  padding: 3px;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}

.ltpl-drawer li.ltpl-menu-open > a::after {
  transform: translateY(-30%) rotate(-135deg);
}

.ltpl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, .55);
  backdrop-filter: blur(2px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ltpl-ease), visibility .3s;
}

.ltpl-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 64em) {
  .mobile-menu,
  .ltpl-drawer,
  .ltpl-overlay { display: none; }
}

@media (max-width: 63.98em) {
  /* Desktop branding + sticky nav hidden on mobile — .mobile-menu
     renders the logo and header banner instead (same as Newspaperss). */
  #header-bottom,
  .head-top-area { display: none; }

  /* Top bar: links move into the drawer, social icons stay centered */
  #topmenu .top-bar { justify-content: center; padding: .15rem 0; }
  #topmenu .top-bar-left { display: none; }
}

/* ==========================================================================
   8. Block titles / widget titles
   ========================================================================== */

.block-title,
.widget-title {
  position: relative;
  margin-bottom: 1.1rem;
}

.block-title h3,
.block-title .blog-title,
.widget-title h3,
h3.blog-title {
  display: inline-block;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ltpl-ink);
  position: relative;
  padding-bottom: .55rem;
}

.block-title h3::after,
.widget-title h3::after,
h3.blog-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: var(--ltpl-gradient-accent);
  background-size: 200% 100%;
  animation: ltplBarSlide 6s linear infinite;
}

.block-title::after,
.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--ltpl-line);
}

@keyframes ltplBarSlide {
  0%   { background-position: 0% 0; }
  50%  { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

.block-header-wrap .block-header-inner { display: block; }
.block-content-wrap { display: block; }

/* Header row with "category posts" button on the right */
.block-header-inner.ltpl-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.ltpl-header-row .block-title { margin-bottom: 0; }
.ltpl-header-row { margin-bottom: 1.1rem; }

.ltpl-viewall-btn {
  display: inline-block;
  padding: .4rem .95rem;
  background: var(--ltpl-teal);
  color: #fff;
  border-radius: var(--ltpl-radius-sm);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .25s var(--ltpl-ease), transform .25s var(--ltpl-ease), box-shadow .25s var(--ltpl-ease);
}

.ltpl-viewall-btn:hover,
.ltpl-viewall-btn:focus {
  background: var(--ltpl-magenta);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(173, 26, 172, .3);
}

/* ==========================================================================
   9. Widgets — common
   ========================================================================== */

.widget {
  margin-bottom: 1.6rem;
}

.sidebar-inner .widget,
.sidebar-item .widget_wrap,
.widget.sidebar-item {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--ltpl-shadow-sm);
}

#news-latest-post .widget {
  margin-bottom: 1.75rem;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: .45rem 0;
  border-bottom: 1px dashed var(--ltpl-line);
}

.widget ul li:last-child { border-bottom: 0; }

.widget ul li a { color: var(--ltpl-ink-soft); }
.widget ul li a:hover { color: var(--ltpl-magenta); }

.widget select { max-width: 100%; }

.widget_media_image img { border-radius: var(--ltpl-radius-sm); }

.tagcloud a,
.widget_tag_cloud a {
  display: inline-block;
  margin: 0 .3rem .45rem 0;
  padding: .3rem .75rem;
  border: 1px solid var(--ltpl-line);
  border-radius: 999px;
  font-size: .8rem !important;
  color: var(--ltpl-ink-soft);
  background: var(--ltpl-bg-soft);
  transition: all .25s var(--ltpl-ease);
}

.tagcloud a:hover,
.widget_tag_cloud a:hover {
  background: var(--ltpl-teal);
  border-color: var(--ltpl-teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Search widget */
.widget_search form,
.search-form {
  display: flex;
  gap: .5rem;
}

.widget_search input[type="search"],
.search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
}

.widget_search .search-submit,
.search-form .search-submit,
.search-form button[type="submit"] {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--ltpl-radius-sm);
  padding: 0 1.1rem;
  background: var(--ltpl-teal);
  color: #fff;
  font-weight: 700;
  transition: background .25s var(--ltpl-ease), transform .25s var(--ltpl-ease);
}

.widget_search .search-submit:hover,
.search-form button[type="submit"]:hover {
  background: var(--ltpl-magenta);
  transform: translateY(-1px);
}

/* Calendar widget */
.widget_calendar table { width: 100%; border-collapse: collapse; }
.widget_calendar caption { font-weight: 700; padding-bottom: .4rem; }
.widget_calendar th, .widget_calendar td { padding: .35rem; text-align: center; font-size: .85rem; }
.widget_calendar #today { background: var(--ltpl-teal); color: #fff; border-radius: var(--ltpl-radius-sm); }
.widget_calendar #today a { color: #fff; }

/* ==========================================================================
   10. Post blocks — news widgets & lists
   ========================================================================== */

.lates-post-warp,
.lates-post-blog,
.lates-post-blogbig {
  display: block;
}

/* Big featured post inside latest-post-news widget */
.post-wrap-big {
  position: relative;
  border-radius: var(--ltpl-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--ltpl-shadow-sm);
  aspect-ratio: 16 / 10;
  min-height: 13rem;
  display: flex;
  align-items: flex-end;
}

.post-wrap-big .post-thumb-outer { position: absolute; inset: 0; }

.post-wrap-big .post-thumb,
.post-wrap-big .post-thumb a,
.post-wrap-big .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-wrap-big .post-thumb img {
  transition: transform .6s var(--ltpl-ease);
}

.post-wrap-big:hover .post-thumb img {
  transform: scale(1.05);
}

.post-wrap-big .post-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0) 35%, rgba(10, 15, 20, .5) 100%);
  z-index: 1;
}

/* Gradient lives on the header block itself, so the title stays readable
   on the photo no matter how many lines it takes. */
.post-wrap-big .post-header-outer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.6rem 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0) 0%, rgba(10, 15, 20, .88) 45%);
}

.post-wrap-big .post-title,
.post-wrap-big .post-title a {
  color: #fff;
  margin: .5rem 0 .4rem;
}

.post-wrap-big .post-title {
  line-height: 1.35;
  overflow-wrap: break-word;
}

.post-title.is-size-3.is-size-3 {
  font-size: 16px;
  font-weight: 600;
}

.post-wrap-big .post-title a:hover { color: var(--ltpl-teal-light); }

/* Smaller thumb-carded wraps (slider-right, related) */
.post-wrap {
  position: relative;
  border-radius: var(--ltpl-radius-sm);
  overflow: hidden;
}

.post-wrap .post-image-warp { position: relative; }

.post-wrap .post-image-warp a,
.post-wrap .thumbnail-post,
.post-wrap .thumbnail-post a {
  display: block;
  width: 100%;
}

.post-wrap .post-image-warp img,
.post-wrap .thumbnail-post img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s var(--ltpl-ease);
}

.post-wrap:hover .post-image-warp img { transform: scale(1.06); }

.post-wrap .post-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0) 40%, rgba(10, 15, 20, .45) 100%);
}

.post-wrap .post-header-outer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 1rem 1rem;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0) 0%, rgba(10, 15, 20, .85) 45%);
}

.post-wrap .post-title {
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.post-wrap .post-title,
.post-wrap .post-title a { color: #fff; margin: .35rem 0; }
.post-wrap .post-title a:hover { color: var(--ltpl-teal-light); }

/* Category badge */
.post-cat-info {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .3rem;
}

.cat-info-el {
  display: inline-block;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: var(--ltpl-teal);
  color: #fff !important;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.5;
  transition: background .25s var(--ltpl-ease), transform .25s var(--ltpl-ease), box-shadow .25s var(--ltpl-ease);
}

.cat-info-el:hover {
  background: var(--ltpl-magenta);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(173, 26, 172, .35);
}

/* Meta info */
.post-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .9rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .85);
}

.post-meta-info .meta-info-el a { color: inherit; }
.post-meta-info .meta-info-el a:hover { color: var(--ltpl-teal-light); }

.meta-info-el .fa { margin-right: .3rem; }

/* Compact list items — thumbnail on the right, date pinned to the bottom */
.post-list {
  display: flex;
  gap: .85rem;
  align-items: stretch;
  padding: .7rem 0;
  border-bottom: 1px solid var(--ltpl-line);
}

.post-list:last-child { border-bottom: 0; }

.post-list .post-thumb-outer {
  order: 2;
  flex: 0 0 110px;
  max-width: 110px;
  align-self: flex-start;
  aspect-ratio: 4 / 3;
  border-radius: var(--ltpl-radius-sm);
  overflow: hidden;
}

.post-list .post-thumb-outer a {
  display: block;
  width: 100%;
  height: 100%;
}

.post-list .post-thumb-outer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ltpl-ease);
}

.post-list:hover .post-thumb-outer img { transform: scale(1.08); }

.post-list .post-body {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.post-list .post-title {
  margin: 0 0 .3rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.post-list .post-title a { color: var(--ltpl-ink); }
.post-list .post-title a:hover { color: var(--ltpl-magenta); }

.post-list .post-meta-info {
  margin-top: auto;
  padding-top: .35rem;
  color: var(--ltpl-muted);
  font-size: .74rem;
}
.post-list .post-meta-info a { color: var(--ltpl-muted); }

/* Light text variant on images */
.post-meta-info .is-lite,
.is-lite { color: rgba(255, 255, 255, .9); }
.is-lite a { color: rgba(255, 255, 255, .9) !important; }

/* View all button — animated gradient, centered */
.viewall-text {
  margin-top: 1rem;
  text-align: center;
}

.bubbly-button,
.viewall-text button {
  display: inline-block;
  border: 0;
  padding: .55rem 1.5rem;
  border-radius: 999px;
  background: var(--ltpl-gradient-accent);
  background-size: 160% 100%;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 133, 155, .30);
  transition: background-position .5s var(--ltpl-ease), box-shadow .3s var(--ltpl-ease), transform .3s var(--ltpl-ease);
}

.bubbly-button:hover,
.viewall-text button:hover {
  background-position: 90% 0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(173, 26, 172, .35);
}

/* Font-size helpers kept from old theme */
.is-size-2 { font-size: 1.5rem; }
.is-size-3 { font-size: 1.3rem; }
.is-size-4 { font-size: 1.05rem; }
.is-size-5 { font-size: .95rem; }

@media (max-width: 40em) {
  .is-size-2 { font-size: 1.2rem; }
  .is-size-3 { font-size: 1.05rem; }
}

/* ==========================================================================
   11. Cards — blog grid (layout3-post) & classic list (post-wrap-blog)
   ========================================================================== */

#blog-content { padding: .5rem 0 2rem; }

.card {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  overflow: hidden;
  box-shadow: var(--ltpl-shadow-sm);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 1.5rem);
  transition: transform .35s var(--ltpl-ease), box-shadow .35s var(--ltpl-ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ltpl-shadow-lg);
}

.card .thumbnail-resize {
  position: relative;
  overflow: hidden;
  display: block;
}

.card .thumbnail-resize a { display: block; }

.card .thumbnail-resize img,
.card .card-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ltpl-ease);
}

.card:hover .thumbnail-resize img { transform: scale(1.07); }

.card .thumbnail-resize .post-cat-info {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  margin: 0;
  z-index: 2;
}

.card-section {
  padding: 1rem 1.1rem .6rem;
  flex: 1 1 auto;
}

.card-section .post-title {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.card-section .post-title a { color: var(--ltpl-ink); }
.card-section .post-title a:hover { color: var(--ltpl-magenta); }

.card-section > .post-cat-info { margin-bottom: .5rem; }

.card-section p {
  font-size: .9rem;
  color: var(--ltpl-ink-soft);
  margin-bottom: .6rem;
}

.card-divider {
  padding: .6rem 1.1rem;
  border-top: 1px solid var(--ltpl-line);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .76rem;
  color: var(--ltpl-muted);
  margin-top: auto;
}

.card-divider a { color: var(--ltpl-muted); }
.card-divider a:hover { color: var(--ltpl-magenta); }

/* Classic list layout (content1 / latest-post-blog-big) */
.post-wrap-blog {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  overflow: hidden;
  box-shadow: var(--ltpl-shadow-sm);
  margin-bottom: 1.5rem;
  transition: box-shadow .3s var(--ltpl-ease);
}

.post-wrap-blog:hover { box-shadow: var(--ltpl-shadow); }

.post-wrap-blog .thumbnail-resize a,
.post-wrap-blog .thumbnail-resize {
  display: block;
}

.post-wrap-blog .thumbnail-resize img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 26rem;
  object-fit: cover;
}

.post-wrap-blog .post-body { padding: 1.3rem 1.4rem 1.4rem; }
.post-wrap-blog .post-body.post-body-noimg { padding-top: 1.3rem; }

.post-wrap-blog .post-title {
  margin: .4rem 0 .6rem;
  overflow-wrap: break-word;
}
.post-wrap-blog .post-title a { color: var(--ltpl-ink); }
.post-wrap-blog .post-title a:hover { color: var(--ltpl-magenta); }

.post-excerpt { color: var(--ltpl-ink-soft); font-size: .94rem; }

.post-wrap-blog .post-meta-info { color: var(--ltpl-muted); }
.post-wrap-blog .post-meta-info a { color: var(--ltpl-muted); }
.post-wrap-blog .post-meta-info a:hover { color: var(--ltpl-magenta); }

/* List style widget (list-post-blog) rows inside .post-wrap-blog handled above */

/* ==========================================================================
   12. Pagination
   ========================================================================== */

.navigation.pagination {
  margin: 1.6rem 0 .5rem;
  text-align: center;
}

.nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .7rem;
  border-radius: var(--ltpl-radius-sm);
  border: 1px solid var(--ltpl-line);
  background: #fff;
  color: var(--ltpl-ink-soft);
  font-size: .9rem;
  font-weight: 700;
  transition: all .25s var(--ltpl-ease);
}

.page-numbers:hover {
  border-color: var(--ltpl-teal);
  color: var(--ltpl-teal);
  transform: translateY(-2px);
  box-shadow: var(--ltpl-shadow-sm);
}

.page-numbers.current {
  background: var(--ltpl-gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 133, 155, .35);
}

.page-numbers.dots { border: 0; background: transparent; }

.page-numbers.next,
.page-numbers.prev {
  padding: 0 1.1rem;
}

/* pjax swap of the homepage posts grid — dim while the next page loads */
#ltpl-latest-posts {
  transition: opacity .2s ease;
}

#ltpl-latest-posts.ltpl-pjax-loading {
  opacity: .45;
  pointer-events: none;
}

/* ==========================================================================
   13. Sidebar & home widget area
   ========================================================================== */

#news-latest-post { padding-top: 1.2rem; }

.home-sidebar,
#sidebar {
  display: block;
}

.home-sidebar .widget {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--ltpl-shadow-sm);
}

/* Embedded plugin content inside widgets keeps its own styling —
   provide only sane spacing/responsiveness */
.widget iframe { max-width: 100%; }
.textwidget > *:last-child { margin-bottom: 0; }

/* ==========================================================================
   14. Single post
   ========================================================================== */

.single-post-feat-bg-outer { position: relative; }

.single-post-thumb-outer .post-thumb img,
.object-fit-img {
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

.single-wrap { padding-top: 1.4rem; }

.single-post-wrap {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--ltpl-shadow-sm);
}

@media (max-width: 40em) {
  .single-post-wrap { padding: 1.1rem; }
}

.single-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .78rem;
  color: var(--ltpl-muted);
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: .35rem;
  color: #b6bec7;
}

.breadcrumbs a { color: var(--ltpl-teal); }
.breadcrumbs a:hover { color: var(--ltpl-magenta); }
.breadcrumbs .bread-current,
.breadcrumbs .current { color: var(--ltpl-ink-soft); }

.single-title .entry-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: .6rem 0 .9rem;
  letter-spacing: -.01em;
}

@media (max-width: 40em) {
  .single-title .entry-title { font-size: 1.45rem; }
}

.single-post-header .post-meta-info {
  color: var(--ltpl-muted);
  font-size: .85rem;
  gap: .5rem 1.4rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ltpl-line);
}

.single-post-header .post-meta-info a { color: var(--ltpl-muted); }
.single-post-header .post-meta-info a:hover { color: var(--ltpl-magenta); }
.single-post-header .avatar { border-radius: 50%; vertical-align: middle; margin-right: .35rem; }

.single-post-header .post-cat-info { margin-bottom: .4rem; }

.single-entry { font-size: 1.02rem; }
.single-entry img { border-radius: var(--ltpl-radius-sm); }
.single-entry blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--ltpl-teal);
  background: var(--ltpl-bg-soft);
  border-radius: 0 var(--ltpl-radius-sm) var(--ltpl-radius-sm) 0;
  font-style: italic;
  color: var(--ltpl-ink-soft);
}

.single-entry table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.single-entry th, .single-entry td { border: 1px solid var(--ltpl-line); padding: .55rem .7rem; }
.single-entry th { background: var(--ltpl-bg-soft); }

.page-links {
  margin: 1.4rem 0;
  font-weight: 700;
}

.page-links > span,
.page-links > a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;
  margin: 0 .15rem;
  border-radius: var(--ltpl-radius-sm);
  border: 1px solid var(--ltpl-line);
}

.single-post-tag {
  display: block;
  margin: 1.2rem 0;
}

.single-tag-text { font-weight: 700; margin-right: .5rem; }

.single-post-tag a {
  display: inline-block;
  margin: 0 .3rem .4rem 0;
  padding: .28rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--ltpl-line);
  background: var(--ltpl-bg-soft);
  font-size: .8rem;
  color: var(--ltpl-ink-soft);
  transition: all .25s var(--ltpl-ease);
}

.single-post-tag a:hover {
  background: var(--ltpl-teal);
  border-color: var(--ltpl-teal);
  color: #fff;
}

/* Post navigation prev/next */
.single-nav {
  margin: 1.6rem 0;
}

.single-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.single-nav .nav-previous,
.single-nav .nav-next {
  flex: 1 1 50%;
  max-width: 50%;
}

.single-nav a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  background: #fff;
  color: var(--ltpl-ink);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--ltpl-shadow-sm);
  transition: all .3s var(--ltpl-ease);
}

.single-nav a:hover {
  border-color: var(--ltpl-teal);
  color: var(--ltpl-teal);
  box-shadow: var(--ltpl-shadow);
  transform: translateY(-2px);
}

.single-nav .nav-next a { flex-direction: row-reverse; text-align: right; }

.newspaper-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ltpl-gradient-accent);
  color: #fff;
}

/* Author box */
.single-box-author,
.single-post-box-outer .single-box-author {
  display: block;
  margin: 1.6rem 0;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  background: linear-gradient(135deg, rgba(0, 133, 155, .05), rgba(173, 26, 172, .05));
}

.author-thumb-wrap img {
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--ltpl-shadow);
}

.author-title h3 { margin: 0 0 .3rem; }
.author-title a { color: var(--ltpl-ink); }
.author-title a:hover { color: var(--ltpl-magenta); }
.author-description { color: var(--ltpl-ink-soft); font-size: .92rem; }
.newspaperss-author-bttom-wrap { margin-top: .8rem; }
.author-links .bubbly-button { text-transform: none; letter-spacing: 0; }

/* Related posts */
.single-post-box-related { margin: 1.6rem 0; }

.single-post-box-related .post-wrap {
  margin-bottom: 0;
  box-shadow: var(--ltpl-shadow-sm);
}

.object-fit-postimg_250 {
  display: block;
  width: 100%;
  height: 15.6rem;
  object-fit: cover;
}
.object-fit-postimg_250.noimage { background: var(--ltpl-bg-soft); }

/* list-post-blog widget thumbnails — uniform 3:2 frames, minimal crop */
.object-fit-postimg {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--ltpl-radius-sm);
}

/* Long titles — never let a single long word break the layout */
.post-title,
.post-title a { overflow-wrap: break-word; }

/* ==========================================================================
   15. Subheader banner (archives / pages / search)
   ========================================================================== */

#sub_banner {
  position: relative;
  padding: 3rem 0;
  background: var(--ltpl-gradient);
  color: #fff;
  overflow: hidden;
}

#sub_banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(173, 26, 172, .25), transparent 40%);
  pointer-events: none;
}

.postpage_subheader,
.sub_header_page { background-color: #199fb6; }

#sub_banner h1 {
  color: #fff;
  margin: 0 0 .5rem;
  font-size: 2rem;
  letter-spacing: -.01em;
}

#sub_banner .breadcrumbs { color: rgba(255, 255, 255, .85); justify-content: center; }
#sub_banner .breadcrumbs a { color: #fff; }
#sub_banner .breadcrumbs .bread-current,
#sub_banner .breadcrumbs .current { color: rgba(255, 255, 255, .95); }
#sub_banner .breadcrumbs li:not(:last-child)::after { color: rgba(255, 255, 255, .5); }

.header-image-container {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

#sub_banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 22, .55);
}

.heade-content { position: relative; z-index: 2; }

/* ==========================================================================
   16. Comments
   ========================================================================== */

.comments-area,
.comments_template,
.box-comment-content {
  margin-top: 1.6rem;
}

.comments-title,
.comment-title h2 {
  font-size: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--ltpl-teal);
  margin-bottom: 1.2rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 1rem;
}

.comment-list .comment-body {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--ltpl-shadow-sm);
}

.comment-list .children {
  list-style: none;
  margin: .8rem 0 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--ltpl-line);
}

.comment-meta { font-size: .82rem; color: var(--ltpl-muted); margin-bottom: .4rem; }
.comment-meta a { color: var(--ltpl-teal); }
.comment-author .avatar { border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.comment-author .fn { font-weight: 700; color: var(--ltpl-ink); }
.comment-content p:last-child { margin-bottom: 0; }

.reply .comment-reply-link {
  display: inline-block;
  margin-top: .5rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--ltpl-bg-soft);
  border: 1px solid var(--ltpl-line);
  color: var(--ltpl-teal);
}

.reply .comment-reply-link:hover {
  background: var(--ltpl-teal);
  color: #fff;
  border-color: var(--ltpl-teal);
}

.comment-form label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.comment-form .form-submit input#submit,
.comment-form input[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.8rem;
  background: var(--ltpl-gradient-accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(0, 133, 155, .3);
  transition: transform .3s var(--ltpl-ease), box-shadow .3s var(--ltpl-ease);
}

.comment-form .form-submit input#submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(173, 26, 172, .35);
}

.comment-form-cookies-consent input { width: auto; margin-right: .4rem; }

/* ==========================================================================
   17. Page / archive misc
   ========================================================================== */

#content-page .page_content,
.page_content {
  background: #fff;
  border: 1px solid var(--ltpl-line);
  border-radius: var(--ltpl-radius);
  padding: 1.6rem 1.7rem;
  margin: 1.4rem 0;
  box-shadow: var(--ltpl-shadow-sm);
}

.edit-link a {
  display: inline-block;
  font-size: .78rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: var(--ltpl-bg-soft);
  border: 1px solid var(--ltpl-line);
  color: var(--ltpl-muted);
}

.edit-link a:hover { color: var(--ltpl-magenta); border-color: var(--ltpl-magenta); }

/* 404 */
.section-404 { padding: 4rem 0; text-align: center; }
.section-404 .page-title { font-size: 2.4rem; }
.section-404 form { max-width: 26rem; margin: 1.4rem auto 0; }

/* No results */
.post-wrap-blog p { padding: 0; }

/* Responsive video embeds */
.responsive-embed {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.responsive-embed::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.responsive-embed.widescreen::before { padding-bottom: 56.25%; }

.responsive-embed iframe,
.responsive-embed embed,
.responsive-embed object,
.responsive-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

#footer,
.footer-wrap {
  background: var(--ltpl-bg-dark);
  color: #aeb6bf;
  margin-top: 2rem;
}

.top-footer-wrap {
  padding: 2.6rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.top-footer-wrap .widget,
.sidebar-footer .widget {
  color: #cfd4da;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.top-footer-wrap .widget-title h3,
.top-footer-wrap .widget-title {
  color: #fff;
}

.top-footer-wrap .widget ul li { border-color: rgba(255, 255, 255, .1); }
.top-footer-wrap a { color: #cfd4da; }
.top-footer-wrap a:hover { color: var(--ltpl-teal-light); }

.footer-copyright-wrap {
  padding: 1.1rem 0;
  font-size: .85rem;
}

.footer-copyright-text { margin: 0; }
.footer-copyright-text p { display: inline; margin: 0; }
.footer-copyright-text a { color: var(--ltpl-teal-light); }
.footer-copyright-text a:hover { color: #fff; }

.theme-by { opacity: .75; }

/* Scroll to top */
.scroll_to_top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 150;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ltpl-gradient-accent);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--ltpl-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ltpl-ease), transform .3s var(--ltpl-ease), visibility .3s;
}

.scroll_to_top.ltpl-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll_to_top:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   19. WordPress core blocks & alignment
   ========================================================================== */

.alignleft { float: left; margin: .4rem 1.2rem .8rem 0; }
.alignright { float: right; margin: .4rem 0 .8rem 1.2rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -1rem; margin-right: -1rem; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption {
  font-size: .82rem;
  color: var(--ltpl-muted);
  padding: .4rem 0;
}

.sticky .card,
.sticky.card {
  border-color: var(--ltpl-teal);
  box-shadow: 0 0 0 1px var(--ltpl-teal), var(--ltpl-shadow);
}

.sticky .post-title::before {
  content: "\f08d";
  font-family: FontAwesome;
  color: var(--ltpl-magenta);
  margin-right: .45rem;
}

.bypostauthor .comment-body { border-left: 3px solid var(--ltpl-teal); }

.gallery { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.gallery-item { flex: 1 1 30%; margin: 0; }
.gallery-item img { border-radius: var(--ltpl-radius-sm); display: block; width: 100%; }

.wp-block-image img { border-radius: var(--ltpl-radius-sm); }
.wp-block-quote { border-left: 4px solid var(--ltpl-teal); padding-left: 1.2rem; font-style: italic; }
.wp-block-pullquote { border-top: 3px solid var(--ltpl-teal); border-bottom: 3px solid var(--ltpl-teal); padding: 1.4rem 0; }
.wp-block-button .wp-block-button__link { border-radius: 999px; background: var(--ltpl-teal); }
.wp-block-button .wp-block-button__link:hover { background: var(--ltpl-magenta); }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--ltpl-line); padding: .5rem .7rem; }

/* ==========================================================================
   20. Plugin integration containers
       (psacp carousel, ppt weather, ytcv, ad-inserter)
   ========================================================================== */

.psacp-wrap { margin-bottom: 0; }
.psacp-post-img-bg { border-radius: var(--ltpl-radius-sm); }

.ppt-weather-widget {
  border-radius: var(--ltpl-radius);
  overflow: hidden;
}

.code-block img { max-width: 100%; height: auto; }

.ytcv { max-width: 100%; }

/* ==========================================================================
   21. Animations — micro-interactions
   ========================================================================== */

/* NA CZASIE-style pulsing marker */
.ltpl-live-dot {
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-right: .45em;
  border-radius: 50%;
  background: var(--ltpl-magenta);
  box-shadow: 0 0 0 0 rgba(173, 26, 172, .55);
  animation: ltplPulse 1.8s ease-out infinite;
  vertical-align: baseline;
}

@keyframes ltplPulse {
  0%   { box-shadow: 0 0 0 0 rgba(173, 26, 172, .55); }
  70%  { box-shadow: 0 0 0 .65em rgba(173, 26, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(173, 26, 172, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   22. Misc helpers (customize preview callout, buttons)
   ========================================================================== */

.callout {
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--ltpl-teal);
  border-radius: var(--ltpl-radius);
  background: var(--ltpl-bg-soft);
}

.button.secondary,
.button {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  background: var(--ltpl-teal);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border: 0;
  transition: background .25s var(--ltpl-ease), transform .25s var(--ltpl-ease);
}

.button.secondary:hover,
.button:hover {
  background: var(--ltpl-magenta);
  color: #fff;
  transform: translateY(-1px);
}

/* ltpl-js flag moved to :root level — set on <html> by JS */


/* ==========================================================================
   23. Home widgets area — column layout control
   ==========================================================================
   Controlled by Customizer > Strona główna > "Bloki kategorii w rzędzie"
   (hw-cols-1/2/3) and "Układ kolumn dla wszystkich widżetów" (hw-cols-all).
   Mirrors the original behaviour: post-block widgets tile side by side,
   custom HTML / weather / ads stay full width unless hw-cols-all is set. */

.home-widgets-area {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.home-widgets-area > .widget {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
}

/* Equal heights per row for tiled post-block widgets */
@media (min-width: 40em) {
  .hw-cols-2 > .widget.latest-post-news,
  .hw-cols-2 > .widget.latest-post-blog-big,
  .hw-cols-2 > .widget.latest_post_blog_list,
  .hw-cols-2 > .widget.recent-post-single,
  .hw-cols-3 > .widget.latest-post-news,
  .hw-cols-3 > .widget.latest-post-blog-big,
  .hw-cols-3 > .widget.latest_post_blog_list,
  .hw-cols-3 > .widget.recent-post-single,
  .hw-cols-all > .widget {
    display: flex;
    flex-direction: column;
  }

  .hw-cols-2 > .widget > .lates-post-warp,
  .hw-cols-2 > .widget > .lates-post-blog,
  .hw-cols-2 > .widget > .lates-post-blogbig,
  .hw-cols-3 > .widget > .lates-post-warp,
  .hw-cols-3 > .widget > .lates-post-blog,
  .hw-cols-3 > .widget > .lates-post-blogbig {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (min-width: 40em) {
  .hw-cols-2 > .widget.latest-post-news,
  .hw-cols-2 > .widget.latest-post-blog-big,
  .hw-cols-2 > .widget.latest_post_blog_list,
  .hw-cols-2 > .widget.recent-post-single {
    flex-basis: calc(50% - .625rem);
    max-width: calc(50% - .625rem);
  }

  .hw-cols-2.hw-cols-all > .widget {
    flex-basis: calc(50% - .625rem);
    max-width: calc(50% - .625rem);
  }

  .hw-cols-3 > .widget.latest-post-news,
  .hw-cols-3 > .widget.latest-post-blog-big,
  .hw-cols-3 > .widget.latest_post_blog_list,
  .hw-cols-3 > .widget.recent-post-single {
    flex-basis: calc(50% - .625rem);
    max-width: calc(50% - .625rem);
  }

  .hw-cols-3.hw-cols-all > .widget {
    flex-basis: calc(50% - .625rem);
    max-width: calc(50% - .625rem);
  }
}

@media (min-width: 64em) {
  .hw-cols-3 > .widget.latest-post-news,
  .hw-cols-3 > .widget.latest-post-blog-big,
  .hw-cols-3 > .widget.latest_post_blog_list,
  .hw-cols-3 > .widget.recent-post-single {
    flex-basis: calc(33.3333% - .834rem);
    max-width: calc(33.3333% - .834rem);
  }

  .hw-cols-3.hw-cols-all > .widget {
    flex-basis: calc(33.3333% - .834rem);
    max-width: calc(33.3333% - .834rem);
  }
}

/* ==========================================================================
   Latest posts slider widget ("NA CZASIE" style)
   ========================================================================== */

.ltpl-slider {
  position: relative;
}

.ltpl-slider-viewport {
  overflow: hidden;
  border-radius: var(--ltpl-radius);
}

.ltpl-slider-track {
  display: flex;
  transition: transform .5s var(--ltpl-ease);
  will-change: transform;
}

.ltpl-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 .45rem;
}

.ltpl-slider-track { margin: 0 -.45rem; }

@media (min-width: 40em) {
  .ltpl-slide { flex-basis: 50%; }
}

.ltpl-slide-bg {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  min-height: 14rem;
  background-color: var(--ltpl-bg-dark);
  background-size: cover;
  background-position: center;
  border-radius: var(--ltpl-radius);
  overflow: hidden;
  box-shadow: var(--ltpl-shadow-sm);
  transition: box-shadow .3s var(--ltpl-ease);
}

.ltpl-slide:hover .ltpl-slide-bg { box-shadow: var(--ltpl-shadow); }

.ltpl-slide-bg.noimage { background: var(--ltpl-bg-soft); }

/* Whole-card link — same idea as psacp-post-linkoverlay */
.ltpl-slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ltpl-slide-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.6rem 1rem .9rem;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0) 0%, rgba(10, 15, 20, .88) 45%);
  pointer-events: none;
}

.ltpl-slide-overlay a { pointer-events: auto; }

.ltpl-slide-title {
  margin: 0 0 .3rem;
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.ltpl-slide-title,
.ltpl-slide-title a { color: #fff; }

.ltpl-slide-title a:hover { color: var(--ltpl-teal-light); }

.ltpl-slide-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .85);
  font-size: .76rem;
}

.ltpl-slide-meta-item .fa { margin-right: .3rem; }
.ltpl-slide-sep { opacity: .6; }

/* Arrows */
.ltpl-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 14, 18, .55);
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ltpl-ease), transform .25s var(--ltpl-ease);
}

.ltpl-slider-arrow:hover,
.ltpl-slider-arrow:focus-visible {
  background: var(--ltpl-magenta);
  transform: translateY(-50%) scale(1.08);
}

.ltpl-slider-prev { left: .7rem; }
.ltpl-slider-next { right: .7rem; }

/* Hide arrows when JS disabled the slider (fewer slides than view) */
.ltpl-slider.is-static .ltpl-slider-arrow { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ltpl-slider-track { transition: none; }
}

/* ==========================================================================
   24. WordPress admin bar — keep fixed elements clear of it
       (body.admin-bar exists only for logged-in viewers)
   ========================================================================== */

body.admin-bar #header-bottom.is-stuck { top: 32px; }

body.admin-bar .ltpl-drawer {
  top: 32px;
  height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar #header-bottom.is-stuck { top: 46px; }
  body.admin-bar .ltpl-drawer {
    top: 46px;
    height: calc(100% - 46px);
  }
}

/* Anchor jumps clear the sticky nav (+ admin bar when logged in) */
[id] { scroll-margin-top: 70px; }
body.admin-bar [id] { scroll-margin-top: 102px; }

@media screen and (max-width: 782px) {
  body.admin-bar [id] { scroll-margin-top: 116px; }
}
