/* kriX Magazine – WordPress-specific styles: logo options, admin bar, block content, comments, core classes. */

/* ---------- Logo (size from Customizer → Site Identity) ---------- */
@media (min-width: 768px) {
  .site-header .logo:not(.logo-image) { font-size: var(--k-logo-h, 58px); }
}
.logo-image { padding: 0; line-height: 0; }
.logo-image img { display: block; width: auto; height: var(--k-logo-h, 58px); max-width: 260px; object-fit: contain; }
.site-header.is-scrolled .logo-image img { height: calc(var(--k-logo-h, 58px) * .65); }
.logo-light.logo-image img, .f2-logo.logo-image img { height: 46px; filter: brightness(0) invert(1); }
@media (max-width: 767px) {
  .logo-image img, .site-header.is-scrolled .logo-image img { height: 32px; }
}

/* ---------- Admin bar: keep sticky header below it ---------- */
@media (min-width: 783px) {
  .admin-bar .site-header:not(.header-2) { top: 32px; }
  .admin-bar .header-2 { top: calc(32px - var(--h2-top) - 1px); }
  .admin-bar .reading-bar, .admin-bar .search-overlay { top: 32px; }
  .admin-bar .side-panel { top: 32px; }
}
@media (max-width: 1023px) and (min-width: 783px) { .admin-bar .header-2 { top: 32px; } }

/* ---------- Core WordPress classes ---------- */
.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;
}
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 8px 16px; background: #fff; z-index: 2000; }
.alignleft { float: left; margin: 6px 30px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 30px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption, .wp-element-caption, .gallery-caption { font-size: 13px; line-height: 1.6; color: var(--k-meta); margin-top: 10px; }
.sticky, .bypostauthor { /* styled through cards and comments */ }
.post-cats a.is-accent { color: var(--k-accent); }

/* ---------- Pagination ---------- */
.pagination-k .page-btn .bi::before { vertical-align: -.1em; }
.pagination-k a.page-btn { text-decoration: none; }

/* ---------- Block content in posts and pages ---------- */
.entry > *:first-child { margin-top: 0; }
.entry a:not(.btn-pill) { color: var(--k-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry a:not(.btn-pill):hover { color: var(--k-dark); }
.entry h2, .entry h3 { font-size: 30px; line-height: 34px; letter-spacing: -.6px; margin: 40px 0 17px; }
.entry h4 { font-size: 26px; line-height: 28px; letter-spacing: -.52px; margin: 40px 0 17px; }
.entry h5, .entry h6 { font-size: 20px; margin: 30px 0 12px; }
.entry ul, .entry ol { margin: 0 0 33px; padding-left: 22px; }
.entry li { margin-bottom: 6px; }
.entry li::marker { color: var(--k-accent); }
.entry img { height: auto; }
.entry figure { margin: 16px 0 33px; }
.entry .has-drop-cap:not(:focus)::first-letter {
  float: left; font: 500 50px/1 var(--k-head); color: var(--k-dark); margin: 8px 16px 0 0;
}
.entry blockquote, .entry .wp-block-quote {
  position: relative; margin: 40px 0; padding: 0 0 0 56px; border: 0;
}
.entry blockquote::before, .entry .wp-block-quote::before {
  content: "\201C"; position: absolute; left: 0; top: -14px; font: 700 64px/1 Georgia, serif; color: var(--k-green);
}
.entry blockquote p { font-size: 20px; line-height: 32px; color: var(--k-dark); margin: 0 0 10px; }
.entry blockquote cite { font: normal 700 15px/20px var(--k-head); color: var(--k-dark); }
.entry .wp-block-pullquote { border-top: 3px solid var(--k-dark); border-bottom: 3px solid var(--k-dark); padding: 30px 0; text-align: center; }
.entry .wp-block-pullquote blockquote { padding: 0; }
.entry .wp-block-pullquote blockquote::before { display: none; }
.entry .wp-block-gallery { gap: 10px; }
.entry .wp-block-gallery img { border-radius: 0; }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--k-border); margin: 40px 0; opacity: 1; }
.entry .wp-block-button__link { background: var(--k-accent); border-radius: 30px; font: 500 13px var(--k-body); letter-spacing: 1.56px; text-transform: uppercase; padding: 14px 44px; text-decoration: none; color: #fff; }
.entry .wp-block-button__link:hover { background: var(--k-dark); color: #fff; }
.entry .wp-block-embed { margin: 16px 0 33px; }
.entry .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry .wp-block-table td, .entry .wp-block-table th { border: 1px solid var(--k-border); padding: 10px 14px; }
.entry pre, .entry code { background: var(--k-light); border-radius: 4px; font-size: 14px; }
.entry pre { padding: 18px; overflow-x: auto; }
.page-links { margin: 20px 0; font: 600 13px var(--k-head); }
.legal.entry h2 { font-size: 21px; line-height: 26px; margin: 40px 0 16px; }
.legal.entry h3 { font-size: 18px; line-height: 22px; margin: 26px 0 10px; }

/* Contacts page intro (page content) */
.contact-intro p { margin: 0 0 30px; }
.contact-intro h2 { font-size: 32px; line-height: 36px; letter-spacing: -.64px; margin: 50px 0 22px; }
.contact-msg.error { color: var(--k-accent); }

/* Sidebar posts use h3.h6 for correct heading order */
.side-post .h6 { font-size: 16px; line-height: 20px; margin-bottom: 6px; }

/* Featured band with a photo instead of an illustration */
.band-art.is-photo img { border-radius: 50%; object-fit: cover; animation: none; opacity: .55; }

/* ---------- Comments ---------- */
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; margin: 0; }
.comment-list li { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--k-border); }
.comment-list .children li { border-bottom: 0; border-top: 1px solid var(--k-border); flex-basis: 100%; }
.comment-list .c-avatar { overflow: hidden; }
.comment-list .c-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.comment-list .c-body { flex: 1; min-width: 0; }
.comment-list .c-body p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; }
.c-reply a { font: 600 11px var(--k-head); letter-spacing: .72px; text-transform: uppercase; color: var(--k-accent); }
.comment-reply-title { font-size: 21px; margin: 10px 0 18px; }
.comment-reply-title small { margin-left: 10px; font-size: 13px; }
.comment-form-cookies-consent { font-size: 14px; }
.comment-form .form-control { border-radius: 25px; padding: 12px 22px; font-size: 15px; border-color: var(--k-border); }
.comment-form textarea.form-control { border-radius: 20px; min-height: 150px; }
.comment-form .form-control:focus { border-color: var(--k-accent); box-shadow: 0 0 0 .2rem rgba(244, 42, 121, .12); }
.comment-navigation { display: flex; justify-content: space-between; margin-bottom: 30px; }

/* ---------- Widgets in the post sidebar ---------- */
.sidebar-k .widget-k ul { list-style: none; margin: 0; padding: 0; }
.sidebar-k .widget-k li { padding: 10px 0; border-bottom: 1px solid var(--k-border); font: 500 15px/22px var(--k-head); }
.sidebar-k .widget-k li a { color: var(--k-dark); }
.sidebar-k .widget-k li a:hover { color: var(--k-accent); }

/* Phones hide the tab bar when switched off */
.no-tabbar .app-nav { display: none !important; }
@media (max-width: 767px) {
  .no-tabbar { padding-bottom: 0; }
  .no-tabbar .site-header .header-right .icon-btn { display: inline-block; }
  .no-tabbar .site-header .header-right { display: flex; }
  .side-post .h6 { font-size: 14px; line-height: 18px; }
  .alignleft, .alignright { float: none; margin: 10px 0 20px; }
  .entry h2, .entry h3 { font-size: 22px; line-height: 27px; margin: 30px 0 12px; }
}
