/* yl-css-block e0 | unified */
/* yl-css-block e1 | unified */
/* yl-css-block e2 | unified */
/* yl-css-block e3 | unified */
/* yl-css-block e4 | unified */
/* yl-css-block e5 | unified */
/* yl-css-block e6 | unified */
/* yl-css-block e7 | unified */
/* yl-css-block e8 | unified */
/* yl-css-block e9 | unified */
/* yl-css-block e10 | unified */
/* yl-css-block e11 | unified */
/* yl-css-block e12 | unified */
/* yl-css-block e13 | unified */
/* yl-css-block e14 | unified */
/* yl-css-block e15 | unified */
/* yl-css-block e16 | unified */
/* yl-css-block e17 | unified */
/* yl-css-block e18 | unified */
/* yl-css-block e19 | unified */
/* yl-css-block e20 | unified */
/* yl-css-block e21 | unified */
/* yl-css-block e22 | unified */
/* yl-css-block e23 | unified */
/* yl-css-block e24 | unified */
/* yl-css-block e25 | unified */
/* yl-css-block e26 | unified */
/* yl-css-block e27 | unified */
/* yl-css-block e28 | unified */
/* yl-css-block e29 | unified */
/* yl-css-block e30 | unified */
/* yl-css-block e31 | unified */
/* yl-css-block e32 | unified */
/* yl-css-block e33 | unified */
/* yl-css-block e34 | unified */
/* yl-css-block e35 | unified */
/* yl-css-block e36 | unified */
/* yl-css-block e37 | unified */
/* yl-css-block e38 | unified */
/* yl-css-block e39 | unified */
/* yl-css-block e40 | unified */
/* yl-css-block e41 | unified */
/* yl-css-block e42 | unified */
/* yl-css-block e43 | unified */
/* yl-css-block e44 | unified */
/* yl-css-block e45 | unified */
/* yl-css-block e46 | unified */
/* yl-css-block e47 | unified */
/* yl-css-block e48 | unified */
/* yl-css-block e49 | unified */
/* yl-css-block e50 | unified */
/* yl-css-block e51 | unified */
/* yl-css-block e52 | unified */
/* yl-css-block e53 | unified */
/* yl-css-block e54 | unified */
/* yl-css-block e55 | unified */
/* yl-css-block e56 | unified */
/* yl-css-block e57 | unified */
/* yl-css-block e58 | unified */
/* yl-css-block e59 | unified */
/* yl-css-block e60 | unified */
/* yl-css-block e61 | unified */
/* yl-css-block e62 | unified */
/* yl-css-block e63 | unified */
/* yl-css-block e64 | unified */
/* yl-css-block e65 | unified */
/* yl-css-block e66 | unified */
/* yl-css-block e67 | unified */
/* yl-css-block e68 | unified */
/* yl-css-block e69 | unified */
/* yl-css-block e70 | unified */
/* yl-css-block e71 | unified */
/* yl-css-block e72 | unified */
/* yl-css-block e73 | unified */
/* yl-css-block e74 | unified */
/* yl-css-block e75 | unified */
/* yl-css-block e76 | unified */
/* yl-css-block e77 | unified */
/* yl-css-block e78 | unified */
/* yl-css-block e79 | unified */
/* yl-css-block e80 | unified */
/* yl-css-block e81 | unified */
/* yl-css-block e82 | unified */
/* yl-css-block e83 | unified */
/* yl-css-block e84 | unified */
/* ==========================================================================
   الموقع القانوني اليمني — Unified Legal Explanations Stylesheet
   Replaces 1,296 KB legacy bundle with one clean, high-contrast Royal Navy & Gold stylesheet.
   ========================================================================== */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/cairo/cairo-01.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/cairo/cairo-02.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/cairo/cairo-03.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yl-font: "Cairo", Tahoma, Arial, sans-serif;
  --yl-navy-950: #031022;
  --yl-navy-900: #061225;
  --yl-navy-800: #0b225a;
  --yl-blue-700: #0b6fd8;
  --yl-gold-500: #d4a63a;
  --yl-gold-300: #f3c969;
  --yl-page: #f5f7fb;
  --yl-surface: #ffffff;
  --yl-surface-alt: #f8fafc;
  --yl-text: #0f172a;
  --yl-muted: #475569;
  --yl-border: rgba(11, 34, 90, 0.14);
  --yl-focus: #005fcc;
  --yl-radius: 18px;
  --yl-shadow: 0 10px 28px rgba(6, 18, 37, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  direction: rtl;
  font-family: var(--yl-font);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--yl-font);
  background: var(--yl-page);
  color: var(--yl-text);
  font-size: clamp(16px, 0.96rem + 0.14vw, 18px);
  line-height: 1.9;
  overflow-x: hidden;
}
a { color: var(--yl-navy-800); text-underline-offset: 3px; }
a:hover { color: var(--yl-blue-700); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--yl-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Main Container */
.page-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 28px) clamp(14px, 2vw, 22px) 44px;
}

/* Breadcrumb */
.breadcrumb,
.yl-library-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--yl-muted);
}
.breadcrumb a {
  color: var(--yl-navy-800);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Section */
.yl-static-hero,
.hero.hero-modern,
.yl-criminal-fixed-hero {
  position: relative;
  background: linear-gradient(135deg, #041229 0%, #0b225a 58%, #10327c 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 32px);
  margin: 0 0 22px;
  border: 1px solid rgba(243, 201, 105, 0.3);
  box-shadow: 0 14px 34px rgba(3, 16, 34, 0.16);
}
.yl-static-hero__content,
.hero-content {
  position: relative;
  z-index: 1;
}
.yl-static-hero__badge,
.hero-badge,
.hero-motto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(243, 201, 105, 0.16);
  border: 1px solid rgba(243, 201, 105, 0.44);
  color: #f8de96;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.yl-static-hero h1,
.hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  font-weight: 800;
  line-height: 1.38;
}
.yl-static-hero__description,
.hero p {
  margin: 0 0 18px;
  color: #e6eefc;
  font-size: 1rem;
  line-height: 1.82;
  max-width: 78ch;
}
.yl-static-hero__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yl-static-hero__action-grid,
.yl-hero-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.yl-static-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.yl-static-hero__action:hover {
  background: rgba(243, 201, 105, 0.22);
  border-color: #f3c969;
  color: #ffffff;
  transform: translateY(-1px);
}
.yl-static-hero__action.primary {
  background: linear-gradient(135deg, #f3c969, #d4a63a);
  color: #061225;
  border-color: #f3c969;
}
.yl-static-hero__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}
.yl-static-hero__whatsapp:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
}
.yl-static-hero__whatsapp-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.yl-static-hero__whatsapp-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.yl-static-hero__notification-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde047;
  margin-inline-start: 4px;
}

/* Main Content Sections & Book Cards */
.section-card,
.library-official-detail-wrap,
.library-official-detail,
.seo-extra-content,
.claim-faq-section,
.claim-law-sources,
.yl-related-library,
.yl-library-internal-links,
.related-links,
.claim-related-links {
  background: var(--yl-surface);
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  padding: clamp(18px, 2.6vw, 28px);
  margin: 0 0 20px;
  box-shadow: var(--yl-shadow);
}
.section-head {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(212, 166, 58, 0.28);
}
.section-card h2,
.library-official-detail h2,
.seo-extra-content h2,
.claim-faq-section h2,
.claim-law-sources h2,
.yl-related-library h2,
.yl-library-internal-links h2,
.related-links h2,
.book-title {
  margin: 0 0 12px;
  color: var(--yl-navy-800);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.42;
}
.section-card h3,
.library-official-detail h3,
.seo-extra-content h3,
.book-sub {
  margin: 18px 0 8px;
  color: var(--yl-navy-900);
  font-size: 1.12rem;
  font-weight: 800;
}
.section-card p,
.library-official-detail p,
.article-text,
.material-block p {
  margin: 0 0 12px;
  color: var(--yl-text);
}
.section-card ul,
.section-card ol,
.library-official-detail ul,
.library-official-detail ol {
  margin: 0 0 14px;
  padding-inline-start: 22px;
}
.section-card li,
.library-official-detail li {
  margin-bottom: 8px;
  color: var(--yl-text);
}
.book-note,
.law-article-note {
  padding: 14px 16px;
  margin: 14px 0;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #78350f;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Structured Legal Tables (Book Tables) */
.claim-detail-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: 14px;
  border: 1px solid rgba(11, 34, 90, 0.14);
}
.book-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.96rem;
}
.book-table th,
.book-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(11, 34, 90, 0.1);
  text-align: right;
  vertical-align: top;
}
.book-table thead th,
.book-table th {
  background: #0b225a;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}
.book-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.book-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Law Articles & Legal Sources */
.law-wrap,
.material-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
}
.law-heading {
  margin: 8px 0 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef4ff;
  border-right: 4px solid #0b225a;
  color: #0b225a;
  font-weight: 800;
  font-size: 1.05rem;
}
.law-article,
.claim-law-article,
.claim-law-source-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(11, 34, 90, 0.13);
  border-right: 4px solid #d4a63a;
}
.law-article-head,
.claim-law-article__number {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #0b225a;
  color: #f3c969;
  font-size: 0.88rem;
  font-weight: 800;
}
.law-article-body {
  color: var(--yl-text);
  line-height: 1.85;
}
.claim-law-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #0b6fd8;
  font-weight: 800;
  text-decoration: none;
}
.claim-law-source-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.claim-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.claim-faq-item {
  border: 1px solid rgba(11, 34, 90, 0.13);
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px 16px;
}
.claim-faq-item summary,
.claim-faq-item h3 {
  margin: 0 0 6px;
  color: #0b225a;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
}
.claim-faq-answer {
  margin: 0;
  color: var(--yl-text);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* Author Credit Box */
.claim-author-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef4ff);
  border: 1px solid rgba(11, 34, 90, 0.16);
}
.claim-author-credit__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b225a;
  color: #f3c969;
  font-size: 1.2rem;
}
.claim-author-credit__text {
  flex: 1 1 240px;
  color: var(--yl-text);
  font-size: 0.94rem;
}
.claim-author-credit__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #0b225a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}
.claim-author-credit__button:hover {
  background: #14368a;
  color: #ffffff;
}

/* Related Links, Cards & Index Grids */
.related-links-grid,
.seo-internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.case,
.case-card {
  background: #f8fafc;
  border: 1px solid rgba(11, 34, 90, 0.12);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.case:hover,
.case-card:hover {
  border-color: var(--yl-gold-500);
  box-shadow: 0 8px 20px rgba(6, 18, 37, 0.08);
}
.seo-internal-link,
.claim-link,
.claim-precedents-link,
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(11, 34, 90, 0.14);
  color: var(--yl-navy-800);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.seo-internal-link:hover,
.claim-link:hover,
.claim-precedents-link:hover,
.action-btn:hover {
  background: #eef4ff;
  border-color: var(--yl-blue-700);
  color: var(--yl-navy-900);
}
.action-btn.primary {
  background: #0b225a;
  color: #ffffff;
  border-color: #0b225a;
}
.action-btn.primary:hover {
  background: #14368a;
  color: #ffffff;
}

/* PDF Save Button */
.yl-pdf-save-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.yl-pdf-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d4a63a;
  border-radius: 12px;
  background: linear-gradient(135deg, #061225, #0b225a);
  color: #f3c969;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
}
.yl-pdf-save-btn:hover {
  background: linear-gradient(135deg, #0b225a, #14368a);
}

/* Ads */
.yl-in-article-ad,
.yl-claim-bottom-ad,
.yl-autorelaxed-ad,
.yl-main-bottom-autorelaxed-ad {
  text-align: center;
  margin: 18px auto;
  min-height: 90px;
}

/* Floating Share Button */
.yl-floating-share-wrap {
  position: fixed;
  bottom: 20px;
  left: 18px;
  z-index: 1100;
}
.yl-floating-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(243, 201, 105, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #061225, #0b225a);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(3, 16, 34, 0.28);
  cursor: pointer;
}

/* Unified Footer */
.site-footer {
  background: linear-gradient(180deg, #061225 0%, #030b18 100%);
  color: #e2e8f0;
  border-top: 2px solid rgba(243, 201, 105, 0.28);
  padding: 32px 16px 28px;
  margin-top: 32px;
}
.site-footer a { color: #f3c969; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .yl-trust-footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px 14px !important;
  margin: 12px auto 0 !important;
  padding: 12px 10px 0 !important;
  border-top: 1px solid rgba(243, 201, 105, 0.22) !important;
  max-width: 980px !important;
}
.site-footer .yl-trust-footer-links a {
  color: #f3c969 !important;
  text-decoration: none !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

@media (max-width: 640px) {
  .book-table th,
  .book-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
  .yl-floating-share-wrap {
    bottom: 14px;
    left: 12px;
  }
}

@media print {
  header.topbar,
  .yl-floating-share-wrap,
  .yl-pdf-save-area,
  .yl-in-article-ad,
  .yl-claim-bottom-ad,
  .yl-autorelaxed-ad,
  .yl-main-bottom-autorelaxed-ad {
    display: none !important;
  }
}

/* ===== Header Menu Navigation ===== */
/* Header menu CSS - cleaned */
:root{
  --yl-header-h: 88px;
  --yl-safe-top: 0px;
  --yl-safe-right: env(safe-area-inset-right, 0px);
  --yl-safe-bottom: env(safe-area-inset-bottom, 0px);
  --yl-safe-left: env(safe-area-inset-left, 0px);
  --yl-gold: #f3c969;
  --yl-blue: #1d77ff;
  --yl-ink: #061326;
  --yl-rose: #e65b91;
  --yl-green: #2fbf8f;
  --yl-violet: #7c5cff;
}

/* Official fixed header */
.topbar.yl-header-ready{
  position: sticky !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(46px, auto) !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding-top: calc(8px + var(--yl-safe-top)) !important;
  padding-right: calc(12px + var(--yl-safe-right)) !important;
  padding-bottom: 8px !important;
  padding-left: calc(12px + var(--yl-safe-left)) !important;
  min-height: calc(62px + var(--yl-safe-top)) !important;
  background: rgba(5, 12, 26, .96) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22) !important;
  overflow: visible !important;
}

.topbar.yl-header-ready .brand{
  display: none !important;
}

.topbar.yl-header-ready .yl-header-shortcuts{
  display: contents !important;
}

.topbar.yl-header-ready .yl-header-link,
.topbar.yl-header-ready .yl-header-menu-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding: 0 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  text-align: center !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.topbar.yl-header-ready .yl-header-link:focus-visible,
.topbar.yl-header-ready .yl-header-menu-btn:focus-visible{
  outline: none !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18) !important;
}

@media (hover: hover) and (pointer: fine) {
  .topbar.yl-header-ready .yl-header-link:hover,
  .topbar.yl-header-ready .yl-header-menu-btn:hover{
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .20) !important;
  }
}

.topbar.yl-header-ready .yl-header-link:active,
.topbar.yl-header-ready .yl-header-menu-btn:active{
  transform: scale(.97) !important;
}

.topbar.yl-header-ready .yl-header-link--site,
.topbar.yl-header-ready .yl-header-link--contracts{
  background: linear-gradient(180deg, #f8d46b, #c79210) !important;
  color: #3d2a00 !important;
}

.topbar.yl-header-ready .yl-header-link--library{
  background: linear-gradient(180deg, #42c8ff, #1d77ff) !important;
  color: #fff !important;
}

.topbar.yl-header-ready .yl-header-link--posts{
  background: linear-gradient(180deg, #34d399, #059669) !important;
  color: #052e1a !important;
}

.topbar.yl-header-ready .yl-header-link--services{
  background: linear-gradient(180deg, #fb7185, #e11d48) !important;
  color: #fff !important;
}

.topbar.yl-header-ready .yl-header-link--ai-search{
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  border: 1px solid rgba(125, 211, 252, .72) !important;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, .95) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 28%, rgba(196, 181, 253, .9) 0 1.5px, transparent 2.5px),
    linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 6px 18px rgba(79, 70, 229, .34) !important;
}

.topbar.yl-header-ready .yl-header-link--ai-search::before{
  content: "AI";
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #e0f2fe !important;
  font-size: .68rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  box-shadow: inset 0 0 12px rgba(255,255,255,.08) !important;
}

.topbar.yl-header-ready .yl-header-menu-btn{
  background: linear-gradient(180deg, #16304d, #0f1f35) !important;
  color: #fff !important;
  cursor: pointer !important;
  font-family: inherit !important;
}

.topbar.yl-header-ready .yl-header-menu-btn__icon{
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .08) !important;
  line-height: 1 !important;
}

.topbar.yl-header-ready .main-nav{
  display: none !important;
  width: 100% !important;
  grid-column: 1 / -1 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding-top: 10px !important;
  margin-top: 2px !important;
}

.topbar.yl-header-ready .main-nav.is-open{
  display: flex !important;
}

.topbar.yl-header-ready .main-nav a{
  display: block !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  color: #eef5ff !important;
  text-decoration: none !important;
}

/*
 * header-menu.js measures the rendered header (including the safe area)
 * and writes the final value into --yl-header-h, so the safe inset must
 * not be added a second time here.
 */
body.yl-header-active{
  padding-top: 0 !important;
}

/* Book author note */
.book-note.author-contact-ready{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

.book-note.author-contact-ready::before,
.book-note.author-contact-ready br{
  display: none !important;
  content: none !important;
}

.author-name-button{
  background: linear-gradient(135deg, #173d6e, #2563eb) !important;
  border: 1px solid rgba(37, 99, 235, .35) !important;
  color: #fff !important;
}

/* Mobile header */
@media (max-width: 760px) {
  :root{
    --yl-header-h: 116px;
  }

  .topbar.yl-header-ready{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(44px, auto) !important;
    gap: 8px !important;
    padding-top: calc(8px + var(--yl-safe-top)) !important;
    padding-right: calc(8px + var(--yl-safe-right)) !important;
    padding-bottom: 8px !important;
    padding-left: calc(8px + var(--yl-safe-left)) !important;
    min-height: calc(108px + var(--yl-safe-top)) !important;
  }

  .topbar.yl-header-ready .yl-header-link,
  .topbar.yl-header-ready .yl-header-menu-btn{
    min-height: 44px !important;
    padding: 5px 6px !important;
    border-radius: 14px !important;
    font-size: clamp(11px, 2.8vw, 13px) !important;
    line-height: 1.35 !important;
    gap: 6px !important;
  }

  .topbar.yl-header-ready .yl-header-link--ai-search{
    border-radius: 20px !important;
  }

  .topbar.yl-header-ready .yl-header-link--ai-search::before{
    flex-basis: 24px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: .64rem !important;
  }

  .topbar.yl-header-ready .yl-header-menu-btn__icon{
    font-size: 1rem !important;
  }

  body.yl-header-active{
    padding-top: 0 !important;
  }
}

/*
 * iOS 26 can return safe-area-inset-top as 0 for installed Home Screen apps.
 * Keep a hard minimum guard in standalone mode so the first row of controls
 * always starts below the status bar even when WebKit reports a bad inset.
 */
@media (display-mode: standalone) and (max-width: 760px) {
  .topbar.yl-header-ready{
    padding-top: max(48px, calc(8px + var(--yl-safe-top))) !important;
    min-height: max(148px, calc(108px + var(--yl-safe-top))) !important;
  }
}

@media (max-width: 380px) {
  .topbar.yl-header-ready .yl-header-link,
  .topbar.yl-header-ready .yl-header-menu-btn{
    font-size: clamp(10px, 2.6vw, 12px) !important;
    padding-inline: 4px !important;
  }
}

/* Footer links spacing */
.site-footer .yl-trust-footer-links{
  display: block !important;
  text-align: center !important;
  line-height: 2 !important;
  white-space: normal !important;
  word-spacing: normal !important;
}

.site-footer .yl-trust-footer-links a{
  display: inline !important;
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .yl-trust-footer-links a + a::before{
  content: " " !important;
  white-space: pre !important;
}

/* CLS stable header geometry v6:start */
/*
 * A single, deterministic header box is reserved from the first paint.
 * Do not use env(safe-area-inset-top) in header geometry: iOS/Safari may
 * resolve it after the first frame and move the whole page.
 */
:root{--yl-safe-top:0px!important}
html{--yl-header-h:0px!important}
body,body.yl-header-active{padding-top:0!important;padding-block-start:0!important;margin-top:0!important;margin-block-start:0!important}
header.topbar,header.topbar.yl-header-ready,.topbar.yl-header-ready{
  box-sizing:border-box!important;
  position:sticky!important;
  top:0!important;
  right:auto!important;
  left:auto!important;
  inset-inline:auto!important;
  width:100%!important;
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-auto-rows:46px!important;
  align-items:stretch!important;
  align-content:start!important;
  gap:10px!important;
  padding:8px 12px!important;
  margin:0!important;
  overflow:visible!important;
  font-synthesis:none!important;
  transform:none!important;
  translate:none!important;
  transition:none!important;
  animation:none!important;
}
header.topbar>.yl-header-shortcuts,.topbar.yl-header-ready>.yl-header-shortcuts{display:contents!important}
header.topbar .yl-header-link,header.topbar .yl-header-menu-btn,header.topbar .nav-toggle{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  padding:0 10px!important;
  margin:0!important;
  line-height:1.35!important;
  overflow:hidden!important;
  font-synthesis:none!important;
  transform:none!important;
  translate:none!important;
  transition:none!important;
  animation:none!important;
}
header.topbar .yl-header-link>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-height:40px!important;overflow:hidden!important;line-height:1.35!important}
header.topbar>.main-nav{min-height:0!important;transition:none!important;animation:none!important}
nav.breadcrumb,nav[class*="breadcrumb"]{box-sizing:border-box;min-block-size:48px;font-synthesis:none;transition:none!important;animation:none!important}
nav.breadcrumb>a,nav.breadcrumb>span,nav[class*="breadcrumb"]>a,nav[class*="breadcrumb"]>span{box-sizing:border-box;display:inline-flex;align-items:center;min-block-size:32px;line-height:1.5;transition:none!important;animation:none!important}
#copyToast,.copy-toast{position:fixed!important;z-index:2147483000;top:auto!important;right:auto!important;bottom:20px!important;left:50%!important;box-sizing:border-box;inline-size:min(92vw,220px)!important;block-size:44px!important;min-block-size:44px!important;padding:0 16px!important;margin:0!important;line-height:44px!important;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-synthesis:none;transform:translateX(-50%)!important;translate:none!important;scale:none!important;rotate:none!important;contain:layout paint;will-change:opacity;pointer-events:none;animation:none!important;transition:opacity .15s ease,visibility .15s linear!important}
@media(max-width:760px){
  header.topbar,header.topbar.yl-header-ready,.topbar.yl-header-ready{
    height:116px!important;
    min-height:116px!important;
    max-height:116px!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-rows:46px!important;
    gap:8px!important;
    padding:8px!important;
  }
  header.topbar .yl-header-link,header.topbar .yl-header-menu-btn,header.topbar .nav-toggle{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    padding:4px 6px!important;
    line-height:1.35!important;
  }
  nav.breadcrumb,nav[class*="breadcrumb"]{min-block-size:52px}
}
@media(display-mode:standalone) and (max-width:760px){
  header.topbar,header.topbar.yl-header-ready,.topbar.yl-header-ready{
    height:156px!important;
    min-height:156px!important;
    max-height:156px!important;
    padding-top:48px!important;
    padding-right:8px!important;
    padding-bottom:8px!important;
    padding-left:8px!important;
  }
}
/* CLS stable header geometry v6:end */

/* Mobile header pre-compact restore v1:start */
@media (max-width: 760px) {
  html body header.topbar,
  html body header.topbar.yl-header-ready,
  html body .topbar.yl-header-ready {
    box-sizing: border-box !important;
    height: 116px !important;
    min-height: 116px !important;
    max-height: 116px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 46px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  html body header.topbar .yl-header-link,
  html body header.topbar .yl-header-menu-btn,
  html body header.topbar .nav-toggle {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 4px 6px !important;
    font-size: clamp(11px, 2.8vw, 13px) !important;
    line-height: 1.35 !important;
  }
}

@media (display-mode: standalone) and (max-width: 760px) {
  html body header.topbar,
  html body header.topbar.yl-header-ready,
  html body .topbar.yl-header-ready {
    height: 156px !important;
    min-height: 156px !important;
    max-height: 156px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 46px !important;
    padding: 48px 8px 8px !important;
  }
}
/* Mobile header pre-compact restore v1:end */
.site-footer .yl-trust-footer-links{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:8px 14px!important;max-width:100%!important;box-sizing:border-box!important;padding-inline:12px!important}.site-footer .yl-trust-footer-links a{display:inline-flex!important;white-space:nowrap!important;max-width:100%!important}.site-footer .yl-trust-footer-links a+a::before{content:none!important;display:none!important}
/* ===== Category Index Grids, Cards & Search (8 Category Index Pages) ===== */
.posts-grid,
.yl-library-section-index .posts-grid,
.yl-clean-index-section .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.yl-index-modern-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(11, 34, 90, 0.14);
  box-shadow: 0 8px 24px rgba(6, 18, 37, 0.06);
}
.yl-index-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b225a;
  color: #f3c969;
  font-size: 1.2rem;
}
.claim-list {
  list-style: none !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.claim-list li {
  margin: 0 !important;
}
.claim-list .claim-link {
  width: 100%;
  justify-content: flex-start;
}
.yl-clean-index-search,
.civil-search-section,
.criminal-search-section {
  background: #ffffff;
  border: 1px solid rgba(11, 34, 90, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 20px;
  box-shadow: 0 8px 24px rgba(6, 18, 37, 0.06);
}
.yl-clean-index-search__form,
.civil-search-form,
.criminal-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.yl-clean-index-search__form input,
.civil-search-form input,
.criminal-search-form input {
  flex: 1 1 240px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 34, 90, 0.22);
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1rem;
}
.yl-clean-index-search__form button,
.civil-search-form button,
.criminal-search-form button {
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  background: #0b225a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}
.yl-clean-index-search__status,
.civil-search-status,
.criminal-search-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
}
.yl-clean-index-search__results,
.civil-search-results,
.criminal-search-results {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.yl-clean-related-links {
  margin-top: 20px;
}

/* ===== Original Classic Hero Geometry (Restored Pixel-Exact) ===== */
.yl-static-hero,
.hero.hero-modern,
.yl-site-static-hero,
.yl-criminal-fixed-hero {
  position: relative;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(215, 174, 85, 0.16), transparent 55%),
              linear-gradient(135deg, #041229 0%, #091d4a 55%, #0d2b6b 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: clamp(24px, 3.6vw, 40px) clamp(16px, 3vw, 32px);
  margin: 0 0 22px;
  border: 1px solid rgba(215, 174, 85, 0.34);
  box-shadow: 0 16px 38px rgba(3, 16, 34, 0.22);
}
.yl-static-hero__content,
.hero-content {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.yl-static-hero__badge,
.hero-badge,
.hero-motto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(215, 174, 85, 0.16);
  border: 1px solid rgba(240, 213, 142, 0.48);
  color: #f4d88c;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.yl-static-hero h1,
.hero h1 {
  margin: 0 auto 10px;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.9vw, 2.25rem);
  font-weight: 900;
  line-height: 1.38;
  max-width: 920px;
}
.yl-static-hero__description,
.hero p {
  display: block;
  max-width: 900px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  line-height: 1.85;
}
.yl-static-hero__rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin: clamp(20px, 3.5vw, 30px) 0 0;
}
.yl-static-hero__whatsapp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  text-align: right;
  box-shadow: 0 12px 26px rgba(21, 128, 61, 0.34);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.yl-static-hero__whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  color: #ffffff;
}
.yl-static-hero__whatsapp-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 26px;
}
.yl-static-hero__notification-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fde047;
  border: 2px solid #15803d;
}
.yl-static-hero__whatsapp-copy {
  display: block;
  min-width: 0;
}
.yl-static-hero__whatsapp-copy strong {
  display: block;
  color: #ffffff;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 900;
}
.yl-static-hero__action-grid,
.yl-hero-related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.yl-static-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(215, 174, 85, 0.32);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.yl-static-hero__action:hover {
  transform: translateY(-2px);
  background: rgba(215, 174, 85, 0.18);
  color: #ffffff;
}
.yl-static-hero__action i {
  flex: 0 0 auto;
  color: #f0d58e;
  font-size: 17px;
}
.yl-static-hero__action span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ===== Original Classic Legal Book Table (.book-table) ===== */
.claim-detail-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 18px;
  border-radius: 14px;
  border: 1px solid #d9ccb2;
  background: #ffffff;
}
.book-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  color: #111827;
  font-size: 0.97rem;
  line-height: 1.85;
}
.book-table th,
.book-table td {
  padding: 13px 15px;
  border: 1px solid #e2d8c3;
  text-align: right;
  vertical-align: top;
}
.book-table th {
  background: #f7f1e4;
  color: #0b225a;
  font-weight: 800;
  font-size: 1rem;
}
.book-table tr:first-child th[colspan="3"] {
  background: linear-gradient(135deg, #f3e6cb, #f9f3e6);
  color: #0b225a;
  font-size: 1.16rem;
  font-weight: 900;
  text-align: center;
  padding: 15px 16px;
}
.book-table td:first-child {
  width: 22%;
  font-weight: 800;
  color: #0b225a;
  background: #fcfaf4;
}
.book-table td:nth-child(2) {
  width: 54%;
  color: #111827;
}
.book-table td:nth-child(3) {
  width: 24%;
  color: #334155;
  background: #fdfcf9;
  font-size: 0.92rem;
}
.book-table td ul,
.book-table td ol {
  margin: 4px 0 0;
  padding-inline-start: 20px;
}
.book-table td li {
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .yl-static-hero__action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .yl-static-hero__action {
    font-size: 13px;
    padding: 9px 8px;
  }
  .yl-static-hero__whatsapp {
    min-height: 62px;
    padding: 11px 13px;
    gap: 10px;
  }
  .yl-static-hero__whatsapp-icon {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
  .book-table {
    min-width: 620px;
    font-size: 0.92rem;
  }
  .book-table th,
  .book-table td {
    padding: 10px 11px;
  }
}
/* ===== Floating Share & Facebook Buttons (Restored Pixel-Exact) ===== */
.yl-floating-share-wrap {
  position: fixed;
  inset-inline-end: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  direction: rtl;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}
.yl-floating-share-btn {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.34);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.yl-floating-share-btn.yl-floating-share-facebook,
.yl-floating-share-facebook {
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.34);
}
.yl-floating-share-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.06);
  color: #ffffff;
}
.yl-floating-share-btn:active {
  transform: translateY(0) scale(0.98);
}
.yl-floating-share-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}
.yl-floating-share-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
  color: #ffffff;
  flex-shrink: 0;
}
.yl-floating-share-toast {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 156px;
  z-index: 99999;
  max-width: min(310px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.yl-floating-share-toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 700px) {
  .yl-floating-share-wrap {
    inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
  .yl-floating-share-btn {
    width: 52px;
    height: 52px;
    min-height: 52px;
  }
  .yl-floating-share-btn svg {
    width: 24px;
    height: 24px;
  }
}
/* ===== Full-Width Mobile Book Table (Fits 100% Inside Phone Screen Without Horizontal Cut) ===== */
.book-table {
  min-width: 0 !important;
  width: 100% !important;
  table-layout: fixed;
}
.book-table th,
.book-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 768px) {
  .claim-detail-table-wrap {
    overflow-x: visible;
    border-radius: 12px;
  }
  .book-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
  }
  .book-table th,
  .book-table td {
    padding: 8px 6px !important;
    white-space: normal !important;
  }
  .book-table tr:first-child th[colspan="3"] {
    font-size: 1rem !important;
    padding: 11px 8px !important;
  }
  .book-table td:first-child {
    width: 24% !important;
  }
  .book-table td:nth-child(2) {
    width: 52% !important;
  }
  .book-table td:nth-child(3) {
    width: 24% !important;
    font-size: 0.8rem !important;
  }
  .book-table td ul,
  .book-table td ol {
    padding-inline-start: 14px !important;
  }
}
/* ===== Edge-to-Edge Full-Width Table + Wide Middle Column (18% | 64% | 18%) ===== */
.book-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}
.book-table tr:not(:first-child) th:nth-child(1),
.book-table td:nth-child(1) {
  width: 17% !important;
}
.book-table tr:not(:first-child) th:nth-child(2),
.book-table td:nth-child(2) {
  width: 66% !important;
}
.book-table tr:not(:first-child) th:nth-child(3),
.book-table td:nth-child(3) {
  width: 17% !important;
}

@media (max-width: 768px) {
  .library-detail-page .page-shell,
  .library-clean-detail-page .page-shell {
    padding-inline: 4px !important;
  }
  .library-official-detail-wrap,
  .library-official-detail {
    padding-inline: 0 !important;
    padding-block: 10px !important;
    border-inline: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .library-official-detail-wrap .yl-pdf-save-area {
    padding-inline: 8px;
  }
  .claim-detail-table-wrap {
    width: 100% !important;
    margin: 6px 0 !important;
    border-radius: 10px !important;
    overflow-x: visible !important;
  }
  .book-table tr:not(:first-child) th:nth-child(1),
  .book-table td:nth-child(1) {
    width: 18% !important;
    font-size: 0.78rem !important;
    padding: 8px 4px !important;
  }
  .book-table tr:not(:first-child) th:nth-child(2),
  .book-table td:nth-child(2) {
    width: 64% !important;
    font-size: 0.88rem !important;
    padding: 9px 7px !important;
  }
  .book-table tr:not(:first-child) th:nth-child(3),
  .book-table td:nth-child(3) {
    width: 18% !important;
    font-size: 0.76rem !important;
    padding: 8px 4px !important;
  }
}
