/* Walin Legal shared article system: balanced premium legal editorial. */
.content-grid {
  align-items: start;
  max-width: 1240px;
  grid-template-columns: minmax(0,1fr) minmax(310px,335px);
  gap: 36px;
}
.article {
  max-width: none;
  min-width: 0;
  color: #435966;
  counter-reset: legal-section;
}
.article p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 1.08em;
}
.article>p {
  max-width: 72ch;
}
.article>:first-child {
  margin-top: 0;
}
.article strong,.article b {
  color: var(--navy);
}
.article h2 strong,.article h2 b,.article h3 strong,.article h3 b {
  font-weight: inherit;
}
/* Section hierarchy: numbered editorial rules rather than floating cards. */
.article h2,.article h3,.article h4,.article h5 {
  color: var(--navy);
  text-wrap: balance;
}
.article h2 {
  counter-increment: legal-section;
  position: relative;
  max-width: none;
  margin: 1.65em 0 .72em;
  border-radius: 0;
}
.article h2:before {
  content: counter(legal-section,decimal-leading-zero);
  position: absolute;
  color: #a98349;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.article h2:after {
  position: absolute;
  left: 53px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: #c8a66f;
}
.article h3,.article h4,.article h5 {
  position: relative;
  max-width: 44ch;
  margin: 1.35em 0 .58em;
}
.article h3:before,.article h4:before,.article h5:before {
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 3px;
  border-radius: 3px;
  background: #c1a477;
}
/* Structured detail panels sit closer to the section they belong to. */
.article>ul,.article>ol {
  margin: .15em 0 1.08em;
  padding: 16px 20px 15px 2.65em;
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  background: #f0ede6;
  box-shadow: none;
}
.article ul,.article ol {
  margin-top: .62em;
}
.article ul {
  list-style: disc;
}
.article li {
  padding-left: .28em;
  margin: 0 0 .54em;
}
.article li:last-child {
  margin-bottom: 0;
}
.article li::marker {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: .95em;
}
.article li p {
  margin: .38em 0 .68em;
}
.article li ul,.article li ol {
  margin: .65em 0 .8em;
  padding-left: 1.5em;
}
.article .article-sublist {
  list-style: none;
}
.article .article-sublist>li::marker {
  content: counters(list-item,".") ". ";
  font-variant-numeric: tabular-nums;
}
.article .article-emphasis {
  position: relative;
  margin: .82em 0 1.08em;
  padding: 14px 17px 14px 46px;
  border: 1px solid #c4b38f;
  border-left: 3px solid var(--gold-dark);
  border-radius: 4px;
  background: #f3eddf;
  color: var(--navy);
  box-shadow: none;
}
.article .article-emphasis:before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b28c50;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.article blockquote {
  margin: 1.2em 0;
  padding: 17px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #f7f3eb;
  color: #334c5a;
}
.article table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #ddd5c8;
  border-radius: 12px;
  background: #fff;
}
.article td,.article th {
  padding: 11px 13px;
  border-right: 1px solid #e5ddd1;
  border-bottom: 1px solid #e5ddd1;
  vertical-align: top;
}
.article tr:last-child td {
  border-bottom: 0;
}
.article td:last-child,.article th:last-child {
  border-right: 0;
}
.article th {
  background: #f5f0e7;
  color: var(--navy);
}
.article a:not(.button) {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.article .button {
  line-height: 1.5;
}
/* One coherent sidebar rail rather than two floating widgets. */
.article-sidebar {
  position: sticky;
  top: 85px;
  display: grid;
  gap: 10px;
  align-self: start;
}
.article-sidebar:before {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom,#ccb083,#eadfce 78%,transparent);
}
.article-sidebar .sidebar-card {
  position: static;
  top: auto;
  margin: 0;
  padding: 23px;
  border: 0;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  background: var(--navy-deep);
  color: #fff;
  box-shadow: none;
}
.article-sidebar .sidebar-card .eyebrow {
  margin-bottom: 12px;
  color: #dec397;
}
.article-sidebar .sidebar-card h3 {
  margin: 0 0 12px;
}
.article-sidebar .sidebar-card p {
  margin: 0 0 13px;
}
.article-sidebar .sidebar-card .button {
  width: 100%;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 13px 16px;
}
.article-sidebar .sidebar-card>a:not(.button) {
  display: inline-block;
  margin-top: 2px;
}
.article-sidebar .sidebar-card h3 em {
  color: inherit;
}
.article-sidebar .sidebar-card p {
  color: #d5dfe5;
}
.article-sidebar .sidebar-card .button {
  background: #d0b17b;
  color: var(--navy-deep);
}
.article-toc {
  padding: 19px 20px;
  border: 1px solid #cdd1ce;
  border-radius: 4px;
  background: #f7f4ee;
  box-shadow: none;
}
.article-toc .eyebrow {
  margin: 0 0 11px;
  color: #9a7848;
}
.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-toc li+li {
  margin-top: 6px;
}
.article-toc a {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 12px;
  border-left: 2px solid transparent;
  border-radius: 3px;
  color: #334d5c;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.article-toc a:hover {
  color: var(--gold-dark);
  background: #f0ebe2;
}
.article-toc .toc-number {
  padding-top: 3px;
  color: #a98349;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.article-toc .toc-title {
  min-width: 0;
}
.article-toc a[aria-current=location] {
  color: var(--navy);
  font-weight: 700;
  background: #e8e2d8;
  border-left-color: var(--gold-dark);
}
.reading-progress {
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 12px;
  border: 0;
  background: #d9dedb;
  accent-color: #a98349;
  border-radius: 0;
}
.reading-progress::-webkit-progress-bar {
  background: #d9dedb;
}
.reading-progress::-webkit-progress-value {
  background: #a98349;
}
.reading-progress::-moz-progress-bar {
  background: #a98349;
}
@media (max-width:900px) {
  .content-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
  }
  .article {
    max-width: none;
  }
  .article-sidebar {
    position: static;
    gap: 12px;
  }
  .article-sidebar:before {
    display: none;
  }
  .content-grid .sidebar-card {
    max-width: none;
  }
}
@media print {
  .reading-progress {
    display: none;
  }
}
@media (max-width:600px) {
  .article>p {
    max-width: none;
  }
  .article h2 {
    border-radius: 0;
    margin: 1.35em 0 .68em;
  }
  .article h2:after {
    left: 47px;
    top: 15px;
    bottom: 15px;
  }
  .article>ul,.article>ol {
    padding: 14px 14px 13px 2.2em;
  }
  .article li {
    padding-left: .18em;
  }
  .article li ul,.article li ol {
    padding-left: 1.3em;
  }
  .article .article-emphasis {
    padding: 13px 14px 13px 44px;
  }
  .article-sidebar {
    grid-template-columns: 1fr;
  }
  .article-toc {
    padding: 18px;
  }
}
/* Plain editorial headings and a calm shared sidebar, matching the approved layout. */
.article h2 {
  padding: 0 0 0 54px;
  border: 0;
  background: none;
  box-shadow: none;
}
.article h2:before {
  left: 0;
  top: .12em;
}
.article h2:after,.article h3:before,.article h4:before,.article h5:before {
  content: none;
}
.article h3,.article h4,.article h5 {
  padding-left: 0;
}
.article-sidebar {
  padding-left: 0;
}
.article-sidebar:before {
  content: none;
}
@media (max-width:600px) {
  .article h2 {
    padding: 0 0 0 43px;
  }
  .article h2:before {
    left: 0;
    top: .12em;
  }
}
/* Related services share the article rail; compact photo links replace the large footer grid. */
.article-sidebar[data-sidebar-flow] {
  position: static;
}
.related-services {
  min-width: 0;
  padding: 19px 18px 12px;
  background: #eee9e1;
  border: 1px solid #ded7cb;
  border-radius: 4px;
}
.related-services h2 {
  margin: 0 0 16px;
  color: var(--navy);
}
.related-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-services li+li {
  border-top: 1px solid #d7d2c8;
}
.related-service-card {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  min-height: 88px;
}
.related-services li:first-child .related-service-card {
  padding-top: 0;
}
.related-service-card img {
  width: 64px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
}
.related-service-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.related-service-card strong {
  color: var(--navy);
}
.related-service-copy>span {
  color: #526775;
}
.related-service-card:hover strong {
  color: var(--gold-dark);
}
.related-service-card:hover img {
  opacity: .9;
}
@media (max-width:900px) {
  .article-sidebar {
    grid-template-columns: 1fr;
  }
  .related-services {
    padding: 22px 20px 14px;
  }
  .related-service-card {
    grid-template-columns: 82px minmax(0,1fr);
    gap: 15px;
    padding: 16px 0;
  }
  .related-service-card img {
    width: 82px;
    height: 76px;
  }
}
