/*
Theme Name: Lawer Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0.0
Text Domain: lawer-child
*/

/* Lawer article readability layer */
.lawer-unique-article {
  --lawer-ink: #17202a;
  --lawer-muted: #5c6773;
  --lawer-line: #d8e2ea;
  --lawer-soft: #f6f9fb;
  --lawer-blue: #245d73;
  --lawer-green: #2e6f5e;
  --lawer-gold: #9a6a16;
  color: var(--lawer-ink);
  font-size: 18px;
  line-height: 1.85;
}

.lawer-unique-article > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.lawer-unique-article p {
  margin-top: 1.05rem;
  margin-bottom: 1.05rem;
}

.lawer-unique-article h2 {
  position: relative;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--lawer-line);
  color: #183642;
  font-size: clamp(1.35rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.35;
}

.lawer-unique-article h2::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 88px;
  height: 2px;
  background: var(--lawer-blue);
}

.lawer-unique-article h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.55rem;
  color: #204b45;
  font-size: 1.08rem;
  line-height: 1.45;
}

.lawer-summary {
  max-width: 820px;
  margin: 2rem auto 2.4rem;
  padding: 1.45rem 1.55rem;
  border: 1px solid #c8dbe4;
  border-left: 6px solid var(--lawer-blue);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbfd 0%, #eef6f9 100%);
  box-shadow: 0 12px 28px rgba(23, 52, 64, 0.08);
}

.lawer-summary h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.18rem;
}

.lawer-summary h2::before {
  display: none;
}

.lawer-summary ul,
.lawer-unique-article ol {
  padding-left: 1.25rem;
}

.lawer-summary li {
  margin: 0.55rem 0;
}

.lawer-unique-article table {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 1.35rem auto 1.75rem;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--lawer-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 43, 53, 0.06);
}

.lawer-unique-article thead {
  background: #e9f2f5;
}

.lawer-unique-article th,
.lawer-unique-article td {
  min-width: 170px;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--lawer-line);
  text-align: left;
  vertical-align: top;
}

.lawer-unique-article th {
  color: #143a49;
  font-weight: 700;
}

.lawer-unique-article tbody tr:nth-child(even) {
  background: #fafcfd;
}

.lawer-unique-article ol {
  max-width: 820px;
  margin-top: 1.2rem;
  margin-bottom: 1.6rem;
  padding: 1.1rem 1.25rem 1.1rem 2.4rem;
  border: 1px solid #d7e4dd;
  border-radius: 8px;
  background: #f5faf7;
}

.lawer-unique-article ol li {
  margin: 0.58rem 0;
  padding-left: 0.2rem;
}

.lawer-unique-article a {
  color: #195a75;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.lawer-unique-article h2 + ul:not(.wp-block-list) {
  max-width: 820px;
  padding: 1.1rem 1.2rem;
  border: 1px solid #ead9b7;
  border-radius: 8px;
  background: #fffaf0;
  list-style-position: inside;
}

.lawer-unique-article h2 + ul:not(.wp-block-list) li {
  margin: 0.55rem 0;
}

.lawer-unique-article h2 + h3,
.lawer-unique-article h3 + p {
  max-width: 820px;
}

.lawer-unique-article h2 + h3 {
  padding-top: 0.5rem;
}

.lawer-unique-article h3:has(+ p) {
  padding: 0.82rem 1rem 0;
  border: 1px solid #dbe5ea;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f8fbfc;
}

.lawer-unique-article h3 + p {
  margin-top: 0;
  padding: 0 1rem 0.9rem;
  border: 1px solid #dbe5ea;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #f8fbfc;
}

.aw-ymyl-disclaimer,
.aw-footer-disclosure {
  max-width: 820px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.05rem 1.2rem;
  border-radius: 8px;
  font-size: 0.96rem;
  line-height: 1.75;
}

.aw-ymyl-disclaimer {
  border: 1px solid #e4d0a7;
  border-left: 6px solid var(--lawer-gold);
  background: #fff8ea;
  color: #563d10;
}

.aw-footer-disclosure {
  border: 1px solid #d5e0e6;
  background: var(--lawer-soft);
  color: var(--lawer-muted);
}

@media (max-width: 720px) {
  .lawer-unique-article {
    font-size: 16px;
    line-height: 1.78;
  }

  .lawer-summary,
  .lawer-unique-article ol,
  .lawer-unique-article h2 + ul:not(.wp-block-list),
  .aw-ymyl-disclaimer,
  .aw-footer-disclosure {
    border-radius: 6px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lawer-unique-article h2 {
    margin-top: 2.35rem;
  }

  .lawer-unique-article th,
  .lawer-unique-article td {
    min-width: 150px;
    padding: 0.75rem;
  }
}

/* Lawer archive excerpt cards */
.lawer-archive-page {
  --lawer-archive-line: #dce6eb;
  --lawer-archive-soft: #f7fafb;
  --lawer-archive-ink: #17202a;
  --lawer-archive-muted: #61707d;
}

.lawer-archive-query {
  margin-top: 2rem;
}

.lawer-archive-list {
  display: grid;
  gap: 1rem;
}

.lawer-archive-card {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  padding: 1.1rem;
  border: 1px solid var(--lawer-archive-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 43, 53, 0.05);
}

.lawer-archive-card .wp-block-post-featured-image {
  margin: 0;
}

.lawer-archive-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.lawer-archive-card .wp-block-post-title {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.35;
}

.lawer-archive-card .wp-block-post-title a {
  color: var(--lawer-archive-ink);
  text-decoration: none;
}

.lawer-archive-card .wp-block-post-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lawer-archive-card .wp-block-post-excerpt {
  color: var(--lawer-archive-muted);
  line-height: 1.72;
}

.lawer-archive-card .wp-block-post-excerpt__more-link {
  display: inline-flex;
  margin-top: 0.4rem;
  color: #195a75;
  font-weight: 700;
}

.lawer-archive-card time {
  color: #71808c;
}

@media (max-width: 760px) {
  .lawer-archive-card {
    padding: 0.9rem;
  }

  .lawer-archive-card__columns {
    gap: 1rem;
  }

  .lawer-archive-card .wp-block-post-title {
    font-size: 1.15rem !important;
  }
}
