/* ==========================================================================
   Inkright Advisory - Editorial Articles & Legal Intelligence Styling
   Palette: Ink (#140a13), Wine (#741728), Paper (#fbf8f2), Cream (#eedbc8)
   Typography: Bodoni Moda (Headings), Inter (Body & Data)
   ========================================================================== */

/* Layout & Base */
.page-article, .page-dispatches-index {
  background: #fbf8f2;
  color: #2b1f24;
  font-family: var(--sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.masthead.masthead-article,
.page-dispatches-index .masthead,
.page-article .masthead {
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  background: rgba(22, 13, 20, 0.98) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 219, 202, 0.15) !important;
  padding: 16px var(--gutter) !important;
  z-index: 100 !important;
  color: var(--cream);
}
.text-small {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Article Detail Page Layout                                                 */
/* -------------------------------------------------------------------------- */
.article-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 24px 100px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 35px;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d6b72;
}
.breadcrumbs a {
  color: #7d6b72;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--wine);
}
.breadcrumb-sep {
  color: #bfaeb4;
  font-size: 13px;
}
.breadcrumb-current {
  color: var(--wine);
  font-weight: 600;
}

/* Article Header */
.article-header {
  border-bottom: 1px solid #e5dcd2;
  padding-bottom: 35px;
  margin-bottom: 40px;
}
.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.article-category-badge {
  font: 600 10px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--wine);
  color: #fff;
  padding: 6px 12px;
  border-radius: 2px;
}
.article-read-time, .article-date {
  font: 400 11px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6870;
}

.article-title {
  font: 400 clamp(34px, 4.2vw, 54px)/1.18 var(--serif);
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 24px;
}
.article-snippet {
  font-size: 16px;
  line-height: 1.85;
  color: #55444b;
  margin: 0 0 32px;
  border-left: 2px solid var(--wine);
  padding-left: 20px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.author-name {
  font: 600 13px var(--sans);
  color: var(--ink);
}
.author-credentials {
  font-size: 11px;
  color: #7a6870;
}

/* Practice Synopsis / Takeaways Callout */
.takeaways-box {
  background: #f4ede2;
  border: 1px solid #dfd3c3;
  border-left: 4px solid var(--wine);
  padding: 30px 34px;
  margin: 35px 0 50px;
  border-radius: 2px;
}
.takeaways-tag {
  font: 600 9px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wine);
  display: block;
  margin-bottom: 8px;
}
.takeaways-box h3 {
  font: 400 24px/1.3 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.takeaways-list {
  padding-left: 22px;
  margin: 0;
}
.takeaways-list li {
  font-size: 13.5px;
  line-height: 1.85;
  color: #4b3b41;
  margin-bottom: 10px;
}
.takeaways-list li:last-child {
  margin-bottom: 0;
}

/* Article Visual Media */
.article-figure {
  margin: 45px 0;
}
.article-banner-img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  display: block;
}
.article-figure figcaption {
  font-size: 11px;
  line-height: 1.6;
  color: #7a6870;
  font-style: italic;
  margin-top: 12px;
  text-align: center;
}

/* Article Typography */
.article-body-content {
  font-size: 15.5px;
  line-height: 1.95;
  color: #3b2c32;
}
.article-body-content p {
  margin-bottom: 24px;
}
.article-body-content .article-lead {
  font-size: 17.5px;
  line-height: 1.85;
  color: #2b1d23;
  font-weight: 400;
}
.article-body-content h2 {
  font: 400 clamp(26px, 3vw, 36px)/1.25 var(--serif);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8decb;
}
.article-body-content h3 {
  font: 400 clamp(20px, 2.4vw, 26px)/1.3 var(--serif);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 36px 0 14px;
}
.article-body-content ul, .article-body-content ol {
  padding-left: 24px;
  margin: 0 0 26px;
}
.article-body-content li {
  margin-bottom: 10px;
  line-height: 1.85;
}
.article-body-content strong {
  color: var(--ink);
  font-weight: 600;
}
.article-body-content em {
  font-style: italic;
  color: #2b1c22;
}

/* Contract Clause Blockquote */
.contract-clause {
  background: #f4ede2;
  border-left: 3px solid var(--wine);
  margin: 26px 0;
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #44343a;
  font-style: normal;
  border-radius: 0 2px 2px 0;
}

/* Article Callout */
.article-callout {
  background: #fff;
  border: 1px solid #e0d5c8;
  border-left: 3px solid #8e6840;
  padding: 24px 28px;
  margin: 35px 0;
}
.article-callout h4 {
  font: 600 11px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8e6840;
  margin: 0 0 10px;
}
.article-callout p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #55444a;
  margin: 0;
}
.article-callout ul {
  padding-left: 20px;
  margin: 10px 0 0;
}
.article-callout li {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 6px;
}

/* FAQ Accordion Section */
.article-faqs-section {
  border-top: 1px solid #e0d5c8;
  padding-top: 45px;
  margin-top: 60px;
}
.faqs-header h3 {
  font: 400 clamp(26px, 3.2vw, 36px)/1.2 var(--serif);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 6px 0 26px;
}
.article-faq-item {
  border-bottom: 1px solid #e0d5c8;
}
.article-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font: 400 18px/1.4 var(--serif);
  color: var(--ink);
}
.article-faq-q::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--wine);
  transition: transform 0.2s ease;
}
.article-faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.article-faq-a {
  padding: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #55444a;
}
.article-faq-a p {
  margin: 0;
}

/* Article Bottom CTA */
.article-cta-box {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(35px, 5vw, 55px);
  margin-top: 60px;
  border-radius: 2px;
}
.cta-eyebrow {
  font: 600 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #cca474;
  display: block;
  margin-bottom: 12px;
}
.article-cta-inner h3 {
  font: 400 clamp(24px, 3vw, 34px)/1.2 var(--serif);
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 14px;
}
.article-cta-inner p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #c9b8bf;
  margin: 0 0 26px;
  max-width: 620px;
}
.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-cta-actions .line-link {
  color: #e5c39c;
  border-bottom-color: #e5c39c;
}

/* -------------------------------------------------------------------------- */
/* Dispatches Library Index Page                                              */
/* -------------------------------------------------------------------------- */
.dispatches-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 65px var(--gutter) 55px;
  border-bottom: 1px solid rgba(234, 219, 202, 0.15);
}
.dispatches-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.dispatches-hero h1 {
  font: 400 clamp(42px, 5.5vw, 76px)/1.15 var(--serif);
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
}
.dispatches-lead {
  font-size: 16px;
  line-height: 1.85;
  max-width: 680px;
  color: #d1bfc6;
  margin: 0 0 36px;
}

.dispatches-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-pill {
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: 1px solid rgba(234, 219, 202, 0.25);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.dispatches-grid-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px var(--gutter) 110px;
}
.dispatches-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 40px 32px;
}

.dispatch-index-card {
  background: #fff;
  border: 1px solid #e5dcd2;
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dispatch-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.08);
}
.card-img-link {
  display: block;
  overflow: hidden;
  background: #24151f;
}
.card-thumb {
  width: 100%;
  height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.dispatch-index-card:hover .card-thumb {
  transform: scale(1.03);
}

.card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.card-category {
  color: var(--wine);
  font-weight: 600;
}
.card-time {
  color: #8c7b82;
}

.card-title {
  font: 400 22px/1.3 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--wine);
}
.card-excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: #5c4c52;
  margin: 0 0 24px;
  flex-grow: 1;
}

.card-foot {
  border-top: 1px solid #eee5da;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.card-author {
  font-size: 10.5px;
  color: #8c7b82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-link {
  font: 500 11px var(--sans);
  color: var(--wine);
  border-bottom-color: var(--wine);
}

@media(max-width: 800px) {
  .dispatches-library-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 32px;
  }
  .takeaways-box {
    padding: 24px 20px;
  }
}
