/*
Theme Name: Indikativno
Theme URI: https://indikativno.com/
Author: Indikativno
Author URI: https://indikativno.com/
Description: Editorial magazine theme for INDIKATIVNO — news portal for the curious. Warm paper palette, Fraunces + Space Grotesk typography, dark mode, AJAX search and load more, and a full magazine front page.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indikativno
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, editor-style, translation-ready, dark-mode
*/

/* Theme-specific additions loaded after the compiled Tailwind layer. */

body {
  overflow-x: hidden;
}

/* Keep the sticky nav below the WordPress admin bar. */
.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-nav {
    top: 46px;
  }
}

/* WordPress core alignment + block styles inside article body. */
.article-body > *:first-child {
  margin-top: 0;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.35rem;
  padding: 0;
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body li {
  margin-bottom: 0.45rem;
}
.article-body figure,
.article-body .wp-caption {
  margin: 2rem 0;
  max-width: 100%;
}
.article-body figcaption,
.article-body .wp-caption-text {
  margin-top: 0.75rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--c-muted));
}
.article-body img {
  max-width: 100%;
  height: auto;
}
.article-body .alignwide {
  width: min(100%, 56rem);
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}
.article-body .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}
.article-body .wp-block-quote {
  border-left: 2px solid rgb(var(--c-accent));
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
}
.article-body .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: '"Space Grotesk"', ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--c-muted));
  font-style: normal;
}
.article-body .wp-block-embed iframe,
.article-body .wp-block-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.article-body .wp-block-separator {
  margin: 2.5rem auto;
  border-color: rgb(var(--c-line));
}
.article-body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgb(var(--c-accent));
  color: rgb(var(--c-accentink));
  padding: 0.65rem 1.25rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.article-body .wp-block-table {
  overflow-x: auto;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.article-body th,
.article-body td {
  border-bottom: 1px solid rgb(var(--c-line));
  padding: 0.7rem 0.6rem;
  text-align: left;
}
.article-body .gallery {
  display: grid;
  gap: 0.75rem;
}
.article-body .gallery-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article-body .gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* WordPress screen-reader text + password form. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: rgb(var(--c-surface));
  clip: auto !important;
  clip-path: none;
  color: rgb(var(--c-ink));
  display: block;
  font-size: 14px;
  height: auto;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  width: auto;
  z-index: 100000;
}
.post-password-form input[type='password'] {
  border-radius: 999px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-surface));
  padding: 0.65rem 1.25rem;
}
.post-password-form input[type='submit'] {
  border: 0;
  border-radius: 999px;
  background: rgb(var(--c-accent));
  color: rgb(var(--c-accentink));
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  cursor: pointer;
}

/* Current menu item states on top of the compiled navlink styles. */
.navlink.current-menu-item::after,
.navlink.current-menu-parent::after,
.navlink.current-menu-ancestor::after {
  width: 100%;
}
.navlink.current-menu-item,
.navlink.current-menu-parent,
.navlink.current-menu-ancestor {
  color: rgb(var(--c-ink));
}

/* Search results spinner state. */
.search-loading #search-results {
  opacity: 0.55;
}

/* Editorial content: keep Gutenberg blocks on-brand. */
.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.35rem;
  padding-left: 1.15rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body ul ul { list-style: circle; }
.article-body ol ol { list-style: lower-alpha; }
.article-body li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}
.article-body li::marker { color: rgb(var(--c-muted)); }
.article-body li > ul,
.article-body li > ol {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}
.article-body .wp-block-gallery,
.article-body .wp-block-social-links {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.article-body .wp-block-gallery li { margin: 0; padding: 0; }

.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(var(--c-ink));
}
.article-body h4 { font-size: 21px; }
.article-body h5 { font-size: 18px; }
.article-body h6 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-body img { height: auto; }
.article-body .wp-block-image { margin: 2rem 0; }
.article-body .wp-block-image img { width: 100%; }
.article-body figcaption,
.article-body .wp-caption-text,
.article-body .wp-block-image figcaption {
  margin-top: 0.75rem;
  font-size: 11px;
  line-height: 1.6;
  color: rgb(var(--c-muted));
}
.article-body .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.article-body .alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}
.article-body .alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}
@media (min-width: 1024px) {
  .article-body .alignwide {
    width: min(64rem, calc(100vw - 4rem));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .article-body .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

.article-body table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.article-body th,
.article-body td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgb(var(--c-line));
  text-align: left;
  vertical-align: top;
}
.article-body th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--c-muted));
}

.article-body hr {
  margin: 2.5rem auto;
  border: 0;
  border-top: 1px solid rgb(var(--c-line));
}

.article-body code,
.article-body kbd,
.article-body pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.article-body code {
  padding: 0.15em 0.35em;
  background: rgb(var(--c-surface));
}
.article-body pre {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: rgb(var(--c-surface));
}

.article-body .wp-block-button__link {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: rgb(var(--c-ink));
  color: rgb(var(--c-paper));
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
}

/* Keep long imported tokens, embeds and tables inside the viewport. */
.article-body {
  overflow-wrap: anywhere;
  word-break: normal;
}
.article-body > * {
  max-width: 100%;
}
.article-body iframe,
.article-body embed,
.article-body object,
.article-body video,
.article-body img,
.article-body figure,
.article-body pre {
  max-width: 100%;
}
.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
}
