/*
Theme Name: JQ PlayGround News
Theme URI: https://www.jqplayground.com/
Description: Prototype WordPress theme scaffold for the JQ PlayGround industry news site.
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: jq-playground-news
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.jqpg-hero-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.15;
}

.jqpg-hero-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jqpg-brand-mark {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
}

.jqpg-header-nav {
  align-self: stretch;
}

.jqpg-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.jqpg-nav-item-has-children {
  padding-bottom: 0.85rem;
  margin-bottom: -0.85rem;
}

.jqpg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
  padding: 0 0.125rem;
  color: rgb(88 66 53);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.jqpg-nav-link:hover,
.jqpg-nav-link:focus-visible {
  color: rgb(153 71 0);
  outline: none;
}

.jqpg-nav-link[data-nav-state="current"] {
  color: rgb(153 71 0);
  border-bottom-color: rgb(153 71 0);
}

.jqpg-nav-caret {
  color: inherit;
  transition: transform 0.2s ease;
}

.jqpg-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 16rem;
  padding: 0.9rem;
  border: 1px solid rgb(224 192 175 / 0.9);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 18px 40px rgba(25, 28, 29, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.75rem);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 30;
}

.jqpg-nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.9rem;
  height: 0.9rem;
}

.jqpg-nav-item-has-children:hover .jqpg-nav-dropdown,
.jqpg-nav-item-has-children:focus-within .jqpg-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.jqpg-nav-item-has-children:hover .jqpg-nav-caret,
.jqpg-nav-item-has-children:focus-within .jqpg-nav-caret {
  transform: rotate(180deg);
}

.jqpg-nav-dropdown-link {
  display: block;
  padding: 0.95rem 1rem;
  line-height: 1.45;
  border-radius: 0.95rem;
  color: rgb(25 28 29);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.jqpg-nav-dropdown-link:hover,
.jqpg-nav-dropdown-link:focus-visible {
  color: rgb(153 71 0);
  background: rgb(255 122 0 / 0.07);
  border-color: rgb(224 192 175 / 0.9);
  outline: none;
}

.jqpg-nav-dropdown-link[data-nav-child-state="current"] {
  color: rgb(153 71 0);
  background: rgb(255 122 0 / 0.1);
  border-color: rgb(153 71 0 / 0.15);
}

@media (min-width: 1024px) {
  [data-sidebar="home"],
  [data-sidebar="archive"],
  [data-sidebar="index"],
  [data-sidebar="search"],
  [data-sidebar="single"] {
    position: sticky;
    top: 7rem;
    align-self: flex-start;
  }
}
/* WordPress content blocks */
.article-content,
.page-content {
  line-height: 1.8;
}

.article-content > * + *,
.page-content > * + * {
  margin-top: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: rgb(25 28 29);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
}

.article-content h2,
.page-content h2 {
  font-size: clamp(1.625rem, 2vw, 2rem);
}

.article-content h3,
.page-content h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}

.article-content p,
.article-content li,
.page-content p,
.page-content li {
  color: rgb(69 71 70);
}

.article-content ul,
.article-content ol,
.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
}

.article-content ul,
.page-content ul {
  list-style: disc;
}

.article-content ol,
.page-content ol {
  list-style: decimal;
}

.article-content a,
.page-content a {
  color: rgb(153 71 0);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-content blockquote,
.page-content blockquote {
  border-left: 4px solid rgb(246 184 116);
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: rgb(25 28 29);
  font-size: 1.125rem;
}

.article-content img,
.page-content img {
  border-radius: 1.5rem;
  display: block;
  height: auto;
  margin: 2rem 0;
  max-width: 100%;
}

.jqpg-inquiry-shortcode > * + * {
  margin-top: 1rem;
}
