.person-sidebar {
  text-align: left;
}

/* Practices and offices grids */
.nq-practices-wrap {
  width: 100%;
  margin-top: 20px;
}

.nq-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.nq-practice-card {
  position: relative;
  display: block;
  min-height: 160px;
  padding: 0;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nq-practice-card:hover,
.nq-practice-card:focus,
.nq-practice-card:focus-visible {
  transform: translateY(-3px);
  border-color: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  background: #111;
  color: #fff;
  text-decoration: none;
}

.nq-practice-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.nq-practice-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.8em;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.18s ease;
}

.nq-practice-card:hover .nq-practice-card__overlay,
.nq-practice-card:focus .nq-practice-card__overlay,
.nq-practice-card:focus-within .nq-practice-card__overlay {
  background: rgba(0, 0, 0, 0.3);
}

.nq-practice-card__title {
  margin: 0;
  width: 100%;
  padding-bottom: 0;
  border-bottom: 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.nq-practice-card.is-fallback .nq-practice-card__cover {
  background-image: linear-gradient(135deg, #444, #111);
}

/* Practices mini cards (sidebar) */
.nq-practice-grid.-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .nq-practice-grid.-mini {
    grid-template-columns: 1fr;
  }
}

.nq-practice-card.-mini {
  min-height: 88px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f4f6;
  background-image: var(--nq-bg, none);
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

.nq-practice-card.-mini:hover {
  transform: translateY(-1px);
  border-color: #d1d5db;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.nq-practice-card.-mini .nq-practice-card__overlay {
  inset: auto 0 0 0;
  min-height: 3.25em;
  justify-content: initial;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.15s ease;
}

.nq-practice-card.-mini:hover .nq-practice-card__overlay,
.nq-practice-card.-mini:focus .nq-practice-card__overlay,
.nq-practice-card.-mini:focus-within .nq-practice-card__overlay {
  background: rgba(0, 0, 0, 0.18);
}

.nq-practice-card.-mini .nq-practice-card__title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 17px;
  line-height: 1.25;
  text-align: left;
}

/* Single news */
.news-single .entry-title {
  display: block !important;
  margin-top: 0;
}

.news-related-practices,
.news-related-attorneys {
  margin: 18px 0;
}

.news-related-practices h3,
.news-related-attorneys h3 {
  margin: 0 0 10px;
}

.news-related-attorneys .practice-attorney-grid.-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-content .nq-news-person-link--inactive,
.entry-content .nq-news-person-link--inactive:hover,
.entry-content .nq-news-person-link--inactive:focus {
  display: inline;
  padding: 0 8px;
  border-radius: 6px;
  color: #1b75a6;
  text-decoration: none;
  cursor: default;
}

@media (min-width: 1400px) {
  .news-related-attorneys .practice-attorney-grid.-two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1399px) and (min-width: 656px) {
  .news-related-attorneys .practice-attorney-grid.-two {
    grid-template-columns: 1fr;
  }
}

.content-grid {
  margin-right: 20px;
}

.person-card.-small.-hcompact {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.person-card.-small.-hcompact:hover {
  transform: translateY(-1px);
  border-color: #d1d5db;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.person-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-card__media .person-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.person-card__body {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.person-card__firstline {
  margin-bottom: 2px;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-card__lastline {
  color: #111;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* People grid */
.nq-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

@media (min-width: 768px) {
  .nq-people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nq-people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .nq-people-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.nq-people-grid a {
  all: unset;
  display: block;
  cursor: pointer;
}

.nq-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.nq-card .nq-img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.nq-card .nq-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nq-card .nq-img .noimg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.nq-card .nq-body {
  padding: 14px 14px 12px;
}

.nq-card .nq-name {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 700;
}

.nq-card .nq-name a {
  text-decoration: none;
}

.nq-card .nq-sub,
.nq-card .nq-line {
  margin: 2px 0;
  color: #475569;
  font-size: 0.92rem;
}

.nq-card .nq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.nq-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fafafa;
  font-size: 0.85rem;
  text-decoration: none;
}

.nq-card .btn:hover {
  background: #f1f5f9;
}

.nq-card .btn.btn-secondary {
  background: #fff;
}

/* Practice sidebar attorney grid */
.practice-attorney-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 420px) {
  .practice-sidebar .practice-attorney-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.person-card.-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.person-card.-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.person-card.-row .person-card__media {
  width: 56px;
  height: 56px;
}

.person-card.-row .person-card__media .person-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.person-card.-row .person-card__body {
  justify-content: center;
  min-width: 0;
}

.person-card__name {
  margin-bottom: 2px;
  color: #111;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.person-card__name .ln {
  display: inline-block;
}

.person-card__title {
  margin-top: 2px;
  color: #555;
  font-size: 12.5px;
  line-height: 1.3;
  word-break: break-word;
}

/* News cards inside content */
.practice-news-cards {
  margin-top: 28px;
}

.news-section-heading {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
}

.news-card-grid.-fullwidth {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.news-card {
  display: block;
  padding: 0;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-card__head {
  padding: 12px 14px;
  border-bottom: 1px solid #ececf0;
  background: #f4f5f7;
}

.news-card-title {
  color: #111;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
}

.news-card__body {
  padding: 12px 14px;
}

.news-card__excerpt {
  margin: 0;
  color: #333;
}

.news-card__foot {
  padding: 10px 14px;
  border-top: 1px solid #efeff3;
  text-align: right;
}

.news-card__more {
  font-weight: 600;
}

.news-pagination {
  margin-top: 2rem;
  text-align: center;
}

/* News archive layout */
.news-archive-wrapper {
  width: 100%;
  max-width: none;
  padding: 2rem 20px 2rem 2rem;
  box-sizing: border-box;
  overflow: visible;
}

.news-archive-wrapper .news-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.news-archive-wrapper .news-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border-color: #e5e7eb;
  color: inherit;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  will-change: transform;
}

.news-archive-wrapper .news-card:hover,
.news-archive-wrapper .news-card:focus-within {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
}

.news-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.news-card-header {
  padding: 14px 18px;
  background: #f3f4f6;
}

.news-card-header .news-card-meta {
  margin-bottom: 4px;
  color: #374151;
  font-size: 0.9rem;
}

.news-card-body {
  padding: 16px 18px 18px;
}

.news-card-excerpt {
  margin-bottom: 10px;
  color: #374151;
  font-size: 0.98rem;
}

.news-card-cta {
  margin-top: 12px;
  text-align: right;
}

.news-card-cta span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #111827;
  border-radius: 6px;
  font-size: 0.9rem;
}

.post-type-archive-nq_news .content-grid,
.post-type-archive-nq_news .main-content,
.post-type-archive-nq_news .entry-content {
  max-width: none !important;
  width: 100% !important;
}

/* Offices */
.office-map-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.office-address {
  white-space: pre-line;
}

/* Single person helpers */
.person-entry-content {
  margin-bottom: 20px;
}

.person-contact__inner {
  margin-left: 20px;
}
