/* ═══════════════════════════════════════════════════════════════════
   LAWT MODULE — Scoped CSS
   All rules under .lawt-page to isolate from Bootstrap 3 / site.css

   Naming: .lawt-{component}-{element}
   Variables: --lt-{name}
   ═══════════════════════════════════════════════════════════════════ */


/* ── CSS Variables ─────────────────────────────────────────────── */
.lawt-page {
    --lt-blue:          #0077a8;
    --lt-blue-dark:     #005f88;
    --lt-blue-light:    #e8f4f9;
    --lt-blue-bar:      #1a8ab5;
    --lt-yellow:        #f5a623;
    --lt-yellow-bg:     #fff8eb;
    --lt-teal:          #1a9a8a;
    --lt-teal-bg:       #e6f7f5;
    --lt-warm-gray:     #f5f3f0;
    --lt-warm-border:   #e5e0d8;
    --lt-text:          #1a1a1a;
    --lt-text-muted:    #4a5a64;
    --lt-border:        #dce3e8;
    --lt-radius:        6px;
    --lt-diff-del:      #fde8e8;
    --lt-diff-del-text: #b91c1c;
    --lt-diff-add:      #e6f9e6;
    --lt-diff-add-text: #15803d;
    --lt-bar-h: 50px;
}


/* ── Content Bar (sticky) ────────────────────────────────────── */
.lawt-page .lawt-bar {
    position: sticky;

    top: calc(var(--site-header-h, 0px) + 4px);
    z-index: 500;
    background: var(--lt-blue-bar);
    height: 50px;
    display: flex;
    align-items: stretch;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    max-width: 1260px;
    margin: 0 auto;
}


/* ══════════════════════════════════════════════════════════════
   Codification Panel — Append to lawt.css
   (τα .lawt-trop-* styles υπάρχουν ήδη — μόνο wrapper/header)
   ══════════════════════════════════════════════════════════════ */

.lawt-page .lawt-ip-codif-wrap {
    padding: 0;
}

.lawt-page .lawt-ip-codif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--lt-blue-light);
    border-bottom: 1px solid var(--lt-border);
    font-size: 14px;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-codif-header .fa {
    color: var(--lt-blue);
    margin-right: 4px;
}
.lawt-page .lawt-ip-codif-print {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--lt-blue);
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.lawt-page .lawt-ip-codif-print:hover {
    background: var(--lt-blue-dark);
    color: #fff;
    text-decoration: none;
}
.lawt-page .lawt-ip-codif-print .fa {
    color: #fff;
    margin-right: 0;
    font-size: 12px;
}

.lawt-page .lawt-ip-codif-content {
    padding: 16px 20px;
}

.lawt-page .lawt-ip.panel-codification {
    width: 75vw;
    max-width: 75vw;
}

/* ── Tooltip trigger ─────────────────────────────────────────── */
.lawt-page .lawt-bar-trigger-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.lawt-page .lawt-bar-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    cursor: pointer;
    border: none;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,.2);
    transition: background .15s;
    white-space: nowrap;
    user-select: none;
}
.lawt-page .lawt-bar-trigger-wrap.open .lawt-bar-trigger,
.lawt-page .lawt-bar-trigger:hover {
    background: rgba(0,0,0,.18);
}
.lawt-page .lawt-bar-trigger .fa {
    font-size: 16px;
}

.lawt-page .lawt-bar-arrow {
    margin-left: 2px;
    font-size: 11px;
    opacity: .8;
    display: inline-block;
    transition: transform .2s;
}
.lawt-page .lawt-bar-trigger-wrap.open .lawt-bar-arrow {
    transform: rotate(180deg);
}

/* ── Tooltip panel ───────────────────────────────────────────── */
.lawt-page .lawt-bar-tooltip {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    min-width: 780px;
    background: #fff;
    border: 1px solid var(--lt-border);
    border-top: 3px solid var(--lt-blue);
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    z-index: 600;
}
.lawt-page .lawt-bar-trigger-wrap.open .lawt-bar-tooltip {
    display: block;
    animation: lawtSlideDown .15s ease;
}

@keyframes lawtSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lawt-page .lawt-bar-tooltip-links {
    padding: 14px 20px 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lawt-page .lawt-bar-tooltip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--lt-radius);
    border: 1px solid var(--lt-border);
    color: var(--lt-text);
    font-size: 14px;
    font-weight: 500;
    transition: background .12s, border-color .12s;
    line-height: 1.35;
}
.lawt-page .lawt-bar-tooltip-item:hover {
    background: var(--lt-blue-light);
    border-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    text-decoration: none;
}
.lawt-page .lawt-bar-tooltip-item .fa {
    font-size: 16px;
    color: var(--lt-blue);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* ── Codification link ───────────────────────────────────────── */
.lawt-page .lawt-bar-codif {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 0 18px;
    border-left: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
    transition: background .15s;
    background: rgba(0,0,0,.12);
}
.lawt-page .lawt-bar-codif:hover {
    background: rgba(0,0,0,.22);
    text-decoration: none;
    color: #fff;
}
.lawt-page .lawt-bar-codif .fa {
    opacity: .75;
    font-size: 14px;
}
.lawt-page .lawt-bar-codif-sep {
    opacity: .45;
    margin: 0 1px;
}
.lawt-page .lawt-bar-codif-cta {
    color: var(--lt-yellow);
    font-weight: 700;
}

/* ── Bar spacer ──────────────────────────────────────────────── */
.lawt-page .lawt-bar-spacer {
    flex: 1;
}

/* ── Progress label ──────────────────────────────────────────── */
.lawt-page .lawt-bar-progress-label {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 500;
    padding: 0 14px;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.15);
}
.lawt-page .lawt-bar-progress-label strong {
    color: #fff;
    margin: 0 3px;
}

/* ── Changes link ────────────────────────────────────────────── */
.lawt-page .lawt-bar-changes {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 18px;
    border-left: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
    transition: background .15s;
}
.lawt-page .lawt-bar-changes:hover {
    background: rgba(0,0,0,.15);
    text-decoration: none;
    color: #fff;
}

.lawt-page .lawt-bar-changes-count {
    background: var(--lt-yellow);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 10px;
}

/* ── Progress bar (bottom of content bar) ────────────────────── */
.lawt-page .lawt-bar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,.15);
}
.lawt-page .lawt-bar-progress-fill {
    height: 100%;
    background: var(--lt-yellow);
    width: 0%;
    transition: width .3s ease;
    border-radius: 0 2px 2px 0;
}



/* ── Base Reset (scoped) ───────────────────────────────────────── */
.lawt-page {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: var(--lt-text);
    line-height: 1.75;

    -webkit-font-smoothing: antialiased;
}

.lawt-page *,
.lawt-page *::before,
.lawt-page *::after {
    box-sizing: border-box;
}

/* Override Bootstrap inherited styles within .lawt-page */
.lawt-page h1,
.lawt-page h2,
.lawt-page h3,
.lawt-page h4,
.lawt-page h5,
.lawt-page h6 {
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: 1.35;
}

.lawt-page p { margin: 0; }

.lawt-page a {
    color: var(--lt-blue);
    text-decoration: none;
}
.lawt-page a:hover {
    text-decoration: underline;
    color: var(--lt-blue-dark);
}
.lawt-page a:focus { outline: 2px solid rgba(0,119,168,.3); outline-offset: 2px; }

.lawt-page ul,
.lawt-page ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lawt-page img { max-width: 100%; }


/* ── Subpage Header ────────────────────────────────────────────── */
.lawt-subpage-header {
    background: #fff;
    border-bottom: 1px solid var(--lt-border);
    padding: 18px 32px 0;
}

.lawt-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--lt-blue);
    margin-bottom: 12px;
    padding: 6px 14px 6px 10px;
    border-radius: var(--lt-radius);
    border: 1px solid var(--lt-blue-light);
    background: var(--lt-blue-light);
    transition: all .15s;
}
.lawt-back-btn:hover {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
    text-decoration: none;
}
.lawt-back-btn .fa { font-size: 15px; }

.lawt-law-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    margin-bottom: 3px;
    line-height: 1.35;
}

.lawt-law-subtitle {
    font-size: 16px;
    color: var(--lt-text-muted);
    margin-bottom: 16px;
}


/* ── Tab Navigation ────────────────────────────────────────────── */
.lawt-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lawt-tabs::-webkit-scrollbar { display: none; }

.lawt-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    font-size: 17px;
    font-weight: 500;
    color: var(--lt-text-muted);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all .15s;
    cursor: pointer;
}
.lawt-tab:hover {
    color: var(--lt-blue);
    background: var(--lt-blue-light);
    text-decoration: none;
}
.lawt-tab.active {
    color: var(--lt-blue-dark);
    font-weight: 700;
    border-bottom-color: var(--lt-blue);
}
.lawt-tab .fa {
    font-size: 15px;
    opacity: .65;
}
.lawt-tab.active .fa {
    opacity: 1;
    color: var(--lt-blue);
}
.lawt-tab-count {
    background: var(--lt-warm-gray);
    color: var(--lt-text-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}
.lawt-tab.active .lawt-tab-count {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
}


/* ── Layout: Sidebar + Content ─────────────────────────────────── */
.lawt-layout-wrap {
    display: flex;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 0;
}


/* ── Sidebar (shared pattern) ──────────────────────────────────── */
.lawt-sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 20px 0 40px 0;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lt-border) transparent;
}
.lawt-sidebar::-webkit-scrollbar { width: 4px; }
.lawt-sidebar::-webkit-scrollbar-track { background: transparent; }
.lawt-sidebar::-webkit-scrollbar-thumb { background: var(--lt-border); border-radius: 4px; }

.lawt-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
    padding: 0 12px 10px;
}

.lawt-sidebar-search {
    padding: 0 12px 14px;
}
.lawt-sidebar-search input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%239aaab4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") 9px center no-repeat;
    transition: border-color .15s;
}
.lawt-sidebar-search input:focus {
    outline: none;
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.1);
}

/* Sidebar links (for year sidebar, TOC etc.) */
.lawt-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 15px;
    color: var(--lt-text);
    border-left: 3px solid transparent;
    transition: all .12s;
    cursor: pointer;
    font-weight: 500;
}
.lawt-sidebar-link:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    text-decoration: none;
}
.lawt-sidebar-link.active {
    border-left-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    font-weight: 700;
    background: var(--lt-blue-light);
}

.lawt-sidebar-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-text-muted);
    background: #f0f2f4;
    padding: 1px 7px;
    border-radius: 8px;
}
.lawt-sidebar-link.active .lawt-sidebar-count {
    background: var(--lt-blue);
    color: #fff;
}

/* Narrow sidebar variant (200px — for year sidebar) */
.lawt-sidebar.lawt-sidebar-narrow { width: 200px; }


/* ── Main Content ──────────────────────────────────────────────── */
.lawt-main-content {
    flex: 1;
    min-width: 0;
    padding: 20px 0 80px 28px;
    border-left: 1px solid var(--lt-border);
}


/* ── Summary Bar ───────────────────────────────────────────────── */
.lawt-summary-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--lt-blue-light);
    border-radius: var(--lt-radius);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.lawt-summary-icon {
    width: 38px;
    height: 38px;
    background: var(--lt-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.lawt-summary-text {
    font-size: 16px;
    color: var(--lt-blue-dark);
    line-height: 1.4;
}
.lawt-summary-text strong { font-weight: 700; }
.lawt-summary-sep { flex: 1; }
.lawt-summary-actions { display: flex; gap: 6px; }

.lawt-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: var(--lt-blue-dark);
    border: 1px solid rgba(0,119,168,.25);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all .12s;
}
.lawt-btn:hover {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
    text-decoration: none;
}
.lawt-btn .fa { font-size: 14px; }


/* ── Year Section Header ───────────────────────────────────────── */
.lawt-year-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f4f6f8;
    padding: 14px 10px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lawt-year-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lt-text);
}
.lawt-year-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-text-muted);
    background: var(--lt-warm-gray);
    padding: 2px 10px;
    border-radius: 10px;
}
.lawt-year-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lt-border);
}


/* ── Card (shared pattern) ─────────────────────────────────────── */
.lawt-card {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .15s;
}
.lawt-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.lawt-card.expanded {
    border-color: var(--lt-blue);
    box-shadow: 0 2px 12px rgba(0,119,168,.1);
}

.lawt-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background .1s;
}
.lawt-card-header:hover { background: #fafbfc; }

.lawt-card-expand {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lt-text-muted);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .2s;
}
.lawt-card.expanded .lawt-card-expand {
    transform: rotate(90deg);
    color: var(--lt-blue);
}

.lawt-card-body {
    display: none;
    border-top: 1px solid var(--lt-border);
}
.lawt-card.expanded .lawt-card-body { display: block; }

.lawt-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    flex-shrink: 0;
}
.lawt-card.expanded .lawt-card-count {
    background: var(--lt-blue);
    color: #fff;
}


/* ── Article Group (inside card body) ──────────────────────────── */
.lawt-article-group + .lawt-article-group {
    border-top: 1px solid #eef1f4;
}

.lawt-article-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 50px;
    background: var(--lt-warm-gray);
    font-size: 15px;
    font-weight: 700;
    color: var(--lt-text);
}
.lawt-article-header .fa {
    font-size: 13px;
    color: var(--lt-text-muted);
}

/* Paragraph row */
.lawt-para-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 66px;
    font-size: 15px;
    border-bottom: 1px solid #f2f4f6;
    transition: background .1s;
}
.lawt-para-row:last-child { border-bottom: none; }
.lawt-para-row:hover { background: #f8fafc; }

.lawt-para-label {
    font-weight: 600;
    color: var(--lt-text);
    min-width: 120px;
}
.lawt-para-note {
    font-size: 13px;
    color: var(--lt-text-muted);
    font-style: italic;
}
.lawt-para-sep { flex: 1; }


/* ── Action Buttons (view / diff) ──────────────────────────────── */
.lawt-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--lt-text-muted);
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}
.lawt-btn-view:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
}
.lawt-btn-view .fa { font-size: 12px; }

.lawt-btn-diff {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--lt-blue);
    border: 1px solid var(--lt-blue-light);
    border-radius: 4px;
    background: var(--lt-blue-light);
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}
.lawt-btn-diff:hover,
.lawt-btn-diff.active {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
}
.lawt-btn-diff .fa { font-size: 12px; }


/* ── Inline Diff Panel ─────────────────────────────────────────── */
.lawt-diff-panel {
    display: none;
    padding: 0 16px 12px 66px;
    animation: lawtDiffSlideIn .25s ease;
}
.lawt-diff-panel.visible { display: block; }

@keyframes lawtDiffSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lawt-diff-container {
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    overflow: hidden;
    background: #fff;
}

.lawt-diff-header {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--lt-warm-gray);
    border-bottom: 1px solid var(--lt-warm-border);
    gap: 8px;
}
.lawt-diff-header-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-text-muted);
}
.lawt-diff-header-sep { flex: 1; }
.lawt-diff-header-action {
    font-size: 13px;
    color: var(--lt-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.lawt-diff-header-action:hover { text-decoration: underline; }
.lawt-diff-header-action .fa { font-size: 12px; }

.lawt-diff-titles-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.lawt-diff-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--lt-border);
}
.lawt-diff-col-title.old {
    background: var(--lt-diff-del);
    color: var(--lt-diff-del-text);
    border-right: 1px solid var(--lt-border);
}
.lawt-diff-col-title.new {
    background: var(--lt-diff-add);
    color: var(--lt-diff-add-text);
}

.lawt-diff-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.lawt-diff-col {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--lt-text);
}
.lawt-diff-col-old {
    background: #fffbfb;
    border-right: 1px solid var(--lt-border);
}
.lawt-diff-col-new { background: #fbfffb; }

/* Diff highlighting (used by server-side Diff class output) */
.lawt-page del,
.lawt-diff-del {
    background: var(--lt-diff-del);
    color: var(--lt-diff-del-text);
    text-decoration: line-through;
    text-decoration-color: rgba(185,28,28,.4);
    padding: 1px 2px;
    border-radius: 2px;
}
.lawt-page ins,
.lawt-diff-add {
    background: var(--lt-diff-add);
    color: var(--lt-diff-add-text);
    text-decoration: none;
    padding: 1px 2px;
    border-radius: 2px;
}


/* ── Info Note (yellow) ────────────────────────────────────────── */
.lawt-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px 10px 66px;
    font-size: 13px;
    color: var(--lt-text-muted);
    background: var(--lt-yellow-bg);
    border-bottom: 1px solid #f2f4f6;
    line-height: 1.5;
}
.lawt-info-note .fa {
    color: var(--lt-yellow);
    margin-top: 2px;
    flex-shrink: 0;
}


/* ── Loading Indicator ─────────────────────────────────────────── */
.lawt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--lt-text-muted);
    font-size: 15px;
}

.lawt-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--lt-border);
    border-top-color: var(--lt-blue);
    border-radius: 50%;
    animation: lawtSpin .6s linear infinite;
    display: inline-block;
}

@keyframes lawtSpin {
    to { transform: rotate(360deg); }
}


/* ── Scroll to Top Button ──────────────────────────────────────── */
.lawt-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lt-blue);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all .2s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lawt-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.lawt-scroll-top:hover {
    background: var(--lt-blue-dark);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}


/* ── Empty State ───────────────────────────────────────────────── */
.lawt-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--lt-text-muted);
}
.lawt-empty .fa {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: .4;
    display: block;
}
.lawt-empty-text {
    font-size: 17px;
    font-weight: 500;
}


/* ════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════════════════════════════════ */
@media print {
    .lawt-subpage-header,
    .lawt-back-btn,
    .lawt-tabs,
    .lawt-sidebar,
    .lawt-summary-actions,
    .lawt-scroll-top,
    .lawt-btn-diff,
    .lawt-btn-view,
    .lawt-sidebar-search {
        display: none !important;
    }
    .lawt-main-content {
        padding-left: 0 !important;
        border: none !important;
    }
    .lawt-layout-wrap {
        display: block !important;
    }
    .lawt-card.expanded .lawt-card-body { display: block !important; }
    .lawt-year-header { position: static !important; }
    .lawt-page { background: #fff; }
}


/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
   /* .lawt-sidebar display handled by .lawt-drawer-sidebar */
    .lawt-main-content {
        padding-left: 0;
        border: none;
    }

    .lawt-subpage-header { padding: 14px 16px 0; }
    .lawt-layout-wrap { padding: 0 12px; }

    .lawt-article-header { padding-left: 16px; }
    .lawt-para-row {
        padding-left: 28px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .lawt-info-note { padding-left: 28px; }
    .lawt-diff-panel { padding-left: 16px; }

    .lawt-diff-columns { grid-template-columns: 1fr; }
    .lawt-diff-col-old { border-right: none; border-bottom: 1px solid var(--lt-border); }
    .lawt-diff-titles-row { grid-template-columns: 1fr; }
    .lawt-diff-col-title.old { border-right: none; }

    .lawt-summary-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .lawt-tab {
        font-size: 15px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .lawt-law-title { font-size: 18px; }
    .lawt-tab { font-size: 14px; padding: 9px 10px; }
    .lawt-tab .fa { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   SUBPAGE SHARED STYLES — Reading area, sidebar, toolbar
   Append to: public/assets/front/lawt/css/lawt.css
   ═══════════════════════════════════════════════════════════════ */


/* ── Subpage Body Layout ─────────────────────────────────────── */

.lawt-page .lawt-subpage-body {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
}


/* ── Sidebar TOC ─────────────────────────────────────────────── */

.lawt-page .lawt-sub-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--lt-border);
    padding: 0;
}

.lawt-page .lawt-sub-sidebar::-webkit-scrollbar       { width: 4px; }
.lawt-page .lawt-sub-sidebar::-webkit-scrollbar-track  { background: transparent; }
.lawt-page .lawt-sub-sidebar::-webkit-scrollbar-thumb  { background: #c8d4da; border-radius: 4px; }

.lawt-page .lawt-sub-sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--lt-text-muted);
    font-weight: 700;
    padding: 16px 16px 10px;
}

.lawt-page .lawt-sub-toc-item {
    display: block;
    padding: 9px 16px;
    font-size: 13.5px;
    color: var(--lt-text);
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: all .12s;
    cursor: pointer;
    text-decoration: none;
}

.lawt-page .lawt-sub-toc-item:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    text-decoration: none;
}

.lawt-page .lawt-sub-toc-item.active {
    border-left-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    font-weight: 600;
    background: var(--lt-blue-light);
}

.lawt-page .lawt-sub-toc-item.indent {
    padding-left: 30px;
    font-size: 13px;
}

.lawt-page .lawt-sub-toc-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b5e4f;
    padding: 10px 16px 6px;
    background: var(--lt-warm-gray);
    border-top: 1px solid var(--lt-warm-border);
    border-bottom: 1px solid var(--lt-warm-border);
    letter-spacing: .4px;
    margin-top: 4px;
}

.lawt-page .lawt-sub-toc-empty {
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--lt-text-muted);
    border-left: 3px solid var(--lt-blue);
    background: var(--lt-blue-light);
    font-weight: 600;
}

.lawt-page .lawt-sub-toc-empty .fa {
    margin-right: 6px;
    color: var(--lt-blue);
}


/* ── Main Content ────────────────────────────────────────────── */

.lawt-page .lawt-sub-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 0;
}

/* Page title area inside content */
.lawt-page .lawt-content-page-header {
    padding: 28px 40px 24px;
    border-bottom: 1px solid var(--lt-border);
}

.lawt-page .lawt-content-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lt-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    line-height: 1.3;
}

.lawt-page .lawt-content-page-header h1 .fa {
    color: var(--lt-blue);
    font-size: 20px;
}

.lawt-page .lawt-page-meta {
    font-size: 13px;
    color: var(--lt-text-muted);
    margin-top: 6px;
}


/* ── Toolbar ─────────────────────────────────────────────────── */

.lawt-page .lawt-content-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 40px;
    background: #fafbfc;
    border-bottom: 1px solid var(--lt-border);
    flex-wrap: wrap;
}

.lawt-page .lawt-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--lt-text-muted);
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all .12s;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.lawt-page .lawt-toolbar-btn:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    background: var(--lt-blue-light);
    text-decoration: none;
}

.lawt-page .lawt-toolbar-btn .fa {
    font-size: 13px;
}

.lawt-page .lawt-toolbar-sep {
    flex: 1;
}

.lawt-page .lawt-toolbar-info {
    font-size: 12px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-toolbar-info .fa {
    margin-right: 3px;
}


/* ── Reading Area ────────────────────────────────────────────── */

.lawt-page .lawt-reading-area {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 40px 80px;
}

/* Document text — styled for legal content readability */
.lawt-page .lawt-doc-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--lt-text);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.lawt-page .lawt-doc-text p {
    margin-bottom: 16px;
}

.lawt-page .lawt-doc-text p:last-child {
    margin-bottom: 0;
}

/* Handle headings within the raw HTML content */
.lawt-page .lawt-doc-text h1,
.lawt-page .lawt-doc-text h2,
.lawt-page .lawt-doc-text h3 {
    scroll-margin-top: 20px;
}

.lawt-page .lawt-doc-text h2,
.lawt-page .lawt-doc-text .lawt-doc-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    padding-bottom: 10px;
    margin-top: 36px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--lt-blue-light);
    line-height: 1.4;
}

.lawt-page .lawt-doc-text h3,
.lawt-page .lawt-doc-text .lawt-doc-subsection-title {
    font-size: 15px;
    font-weight: 700;
    color: #5a4e3e;
    margin: 28px 0 12px;
    padding: 8px 14px;
    background: var(--lt-warm-gray);
    border-left: 3px solid var(--lt-warm-border);
    border-radius: 0 var(--lt-radius) var(--lt-radius) 0;
}

/* Tables inside aitiologiki text */
.lawt-page .lawt-doc-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.lawt-page .lawt-doc-text table th,
.lawt-page .lawt-doc-text table td {
    padding: 8px 12px;
    border: 1px solid var(--lt-border);
    text-align: left;
    vertical-align: top;
}

.lawt-page .lawt-doc-text table th {
    background: var(--lt-warm-gray);
    font-weight: 600;
}

/* Lists inside content */
.lawt-page .lawt-doc-text ul,
.lawt-page .lawt-doc-text ol {
    margin: 12px 0 12px 24px;
    padding: 0;
}

.lawt-page .lawt-doc-text li {
    margin-bottom: 6px;
}

/* Links in content */
.lawt-page .lawt-doc-text a {
    color: var(--lt-blue);
    font-weight: 600;
    border-bottom: 1px dashed var(--lt-blue);
    transition: all .12s;
}

.lawt-page .lawt-doc-text a:hover {
    background: var(--lt-blue-light);
    text-decoration: none;
}

/* Bold/strong text commonly used in aitiologiki for article references */
.lawt-page .lawt-doc-text strong,
.lawt-page .lawt-doc-text b {
    color: var(--lt-text);
    font-weight: 700;
}


/* ── Attachments Section ─────────────────────────────────────── */

.lawt-page .lawt-attachments-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--lt-border);
}

.lawt-page .lawt-attachments-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--lt-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lawt-page .lawt-attachments-title .fa {
    color: var(--lt-blue);
}

.lawt-page .lawt-attachments-count {
    background: var(--lt-warm-gray);
    color: var(--lt-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.lawt-page .lawt-attachments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lawt-page .lawt-attachments-list li {
    margin-bottom: 6px;
}

.lawt-page .lawt-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--lt-blue);
    font-weight: 500;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    background: #fff;
    transition: all .12s;
    text-decoration: none;
}

.lawt-page .lawt-attachment-link:hover {
    border-color: var(--lt-blue);
    background: var(--lt-blue-light);
    text-decoration: none;
}

.lawt-page .lawt-attachment-link .fa {
    font-size: 16px;
    color: var(--lt-text-muted);
}


/* ── Empty State ─────────────────────────────────────────────── */

.lawt-page .lawt-empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-empty-state .fa {
    font-size: 48px;
    opacity: .3;
    margin-bottom: 16px;
    display: block;
}

.lawt-page .lawt-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--lt-text);
    margin: 0 0 8px;
}

.lawt-page .lawt-empty-state p {
    font-size: 14px;
    margin: 0 0 20px;
}

.lawt-page .lawt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--lt-blue);
    font-weight: 500;
}


/* ── Scroll to Top ───────────────────────────────────────────── */

.lawt-page .lawt-scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lt-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s;
    z-index: 100;
}

.lawt-page .lawt-scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.lawt-page .lawt-scroll-top-btn:hover {
    background: var(--lt-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}


/* ── Print Styles ────────────────────────────────────────────── */

@media print {
    .lawt-page .lawt-subpage-header,
    .lawt-page .lawt-sub-sidebar,
    .lawt-page .lawt-content-toolbar,
    .lawt-page .lawt-scroll-top-btn,
    .lawt-page .lawt-back-btn {
        display: none !important;
    }

    .lawt-page .lawt-subpage-body {
        display: block;
    }

    .lawt-page .lawt-reading-area {
        max-width: 100%;
        padding: 20px;
    }
}


/* ── Mobile Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
    /* .lawt-sub-sidebar display handled by .lawt-drawer-sidebar */
    .lawt-page .lawt-reading-area {
        padding: 24px 20px 60px;
    }
    .lawt-page .lawt-content-page-header {
        padding: 20px;
    }
    .lawt-page .lawt-content-toolbar {
        padding: 10px 16px;
    }
}



/* ── Toast Notification ───────────────────────────────────────── */
/* Append this also to lawt.css (after the subpage styles above) */

.lawt-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a1a2e;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    opacity: 0;
    transition: all .25s;
    z-index: 9999;
    pointer-events: none;
}

.lawt-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   CSS PATCH v2 — append to END of lawt.css
   Fixes for DB content that uses <br> instead of <p>, and
   restores list bullets inside doc text.
   ═══════════════════════════════════════════════════════════════ */

/* Fix: Restore list bullets/numbers inside doc text
   (global reset removes list-style for all .lawt-page lists) */
.lawt-page .lawt-doc-text ul { list-style: disc; }
.lawt-page .lawt-doc-text ol { list-style: decimal; }

/* Fix: scroll-margin for anchors created by TOC builder */
.lawt-page .lawt-doc-text [id^="lawt-toc-"] {
    scroll-margin-top: 20px;
}

/* Fix: ensure flex layout works even inside Bootstrap containers */
.lawt-page .lawt-subpage-body {
    display: -webkit-flex !important;
    display: flex !important;
}


/* ═══════════════════════════════════════════════════════════════
   PROISTORIA — Codification history styles
   Append to: public/assets/front/lawt/css/lawt.css
   ═══════════════════════════════════════════════════════════════ */


/* ── Proistoria Toolbar ──────────────────────────────────────── */

.lawt-page .lawt-proistoria-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lt-border);
    margin-bottom: 4px;
}

.lawt-page .lawt-proistoria-search {
    padding: 8px 14px 8px 34px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    width: 280px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aaab4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") 12px center no-repeat;
    transition: border-color .15s;
    outline: none;
    color: var(--lt-text);
}

.lawt-page .lawt-proistoria-search:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}

.lawt-page .lawt-proistoria-search::placeholder {
    color: #aab8c2;
}


/* ── Year Section ────────────────────────────────────────────── */

.lawt-page .lawt-year-section {
    scroll-margin-top: 10px;
}

.lawt-page .lawt-codif-year-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 10px;
    margin-top: 8px;
    border-bottom: 2px solid var(--lt-blue-light);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.lawt-page .lawt-codif-year-badge {
    font-size: 18px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    background: var(--lt-blue-light);
    padding: 3px 14px;
    border-radius: var(--lt-radius);
}

.lawt-page .lawt-codif-year-count {
    font-size: 14px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-codif-year-line {
    flex: 1;
    height: 1px;
    background: var(--lt-border);
}


/* ── Codification Table ──────────────────────────────────────── */

.lawt-page .lawt-codif-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.lawt-page .lawt-codif-table th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--lt-text-muted);
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--lt-border);
    background: #fafbfc;
    position: sticky;
    top: 52px;
    z-index: 5;
}

.lawt-page .lawt-codif-table th:nth-child(1) { width: 130px; }
.lawt-page .lawt-codif-table th:nth-child(2) { width: 80px; }
.lawt-page .lawt-codif-table th:nth-child(3) { width: 130px; }

.lawt-page .lawt-codif-table td {
    padding: 10px 12px;
    font-size: 15px;
    border-bottom: 1px solid #f0f2f4;
    vertical-align: top;
}

.lawt-page .lawt-codif-table tr:hover td {
    background: #f7f9fb;
}

.lawt-page .lawt-codif-law-link {
    font-weight: 700;
    color: var(--lt-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lawt-page .lawt-codif-law-link:hover {
    color: var(--lt-blue-dark);
    text-decoration: none;
}

.lawt-page .lawt-codif-law-link .fa {
    font-size: 11px;
    opacity: .5;
}

.lawt-page .lawt-codif-art-num {
    font-weight: 600;
    color: var(--lt-text);
}

.lawt-page .lawt-codif-date {
    color: var(--lt-text-muted);
    white-space: nowrap;
    font-size: 14px;
}


/* ── Modification Tags ───────────────────────────────────────── */

.lawt-page .lawt-mod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lawt-page .lawt-mod-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--lt-warm-gray);
    color: #5a4e3e;
    border: 1px solid var(--lt-warm-border);
    white-space: nowrap;
}


/* ── Active History Tags ─────────────────────────────────────── */

.lawt-page .lawt-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.lawt-page .lawt-active-tag--restore {
    background: var(--lt-teal-bg);
    color: #0d6b5e;
}

.lawt-page .lawt-active-tag--restore .fa {
    color: var(--lt-teal);
}

.lawt-page .lawt-active-tag--revoke {
    background: #fde8e8;
    color: #b91c1c;
}

.lawt-page .lawt-active-tag--revoke .fa {
    color: #b91c1c;
}


/* ── Active History Section ──────────────────────────────────── */

.lawt-page .lawt-active-history-section {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 2px solid var(--lt-border);
}


/* ── Print additions for proistoria ──────────────────────────── */

@media print {
    .lawt-page .lawt-proistoria-toolbar {
        display: none !important;
    }

    .lawt-page .lawt-codif-year-header {
        position: static !important;
    }

    .lawt-page .lawt-codif-table th {
        position: static !important;
    }
}


/* ── Mobile additions for proistoria ─────────────────────────── */

@media (max-width: 900px) {
    .lawt-page .lawt-codif-date-col {
        display: none;
    }

    .lawt-page .lawt-proistoria-search {
        width: 100%;
    }

    .lawt-page .lawt-proistoria-toolbar {
        flex-wrap: wrap;
    }
}


/* Fix: white background for layout-wrap content area */
.lawt-page .lawt-layout-wrap {
    background: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   APOFASEIS — Decisions / Case law / Circulars styles
   Append to: public/assets/front/lawt/css/lawt.css
   ═══════════════════════════════════════════════════════════════ */


/* ── Filter Toolbar ──────────────────────────────────────────── */

.lawt-page .lawt-apof-toolbar {
    padding: 14px 24px;
    border-bottom: 1px solid var(--lt-border);
    background: #fafbfc;
}

.lawt-page .lawt-apof-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lawt-page .lawt-apof-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-apof-select {
    padding: 7px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    background: #fff;
    color: var(--lt-text);
    cursor: pointer;
    outline: none;
}

.lawt-page .lawt-apof-select:focus {
    border-color: var(--lt-blue);
}

.lawt-page .lawt-apof-toolbar-sep {
    flex: 1;
    min-width: 8px;
}

.lawt-page .lawt-apof-actions {
    display: flex;
    gap: 6px;
}

.lawt-page .lawt-apof-search-wrap {
    display: flex;
    align-items: stretch;
}

.lawt-page .lawt-apof-search {
    padding: 7px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius) 0 0 var(--lt-radius);
    width: 200px;
    outline: none;
    color: var(--lt-text);
}

.lawt-page .lawt-apof-search:focus {
    border-color: var(--lt-blue);
}

.lawt-page .lawt-apof-search-btn {
    padding: 7px 12px;
    font-size: 14px;
    border: 1px solid var(--lt-border);
    border-left: none;
    border-radius: 0 var(--lt-radius) var(--lt-radius) 0;
    background: #fff;
    color: var(--lt-text-muted);
    cursor: pointer;
    transition: all .12s;
}

.lawt-page .lawt-apof-search-btn:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue);
}


/* ── Summary Bar ─────────────────────────────────────────────── */

.lawt-page .lawt-apof-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--lt-border);
    flex-wrap: wrap;
}

.lawt-page .lawt-apof-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-apof-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lawt-page .lawt-apof-stat-num {
    font-weight: 700;
    color: var(--lt-text);
    background: var(--lt-warm-gray);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 13px;
}


/* ── Article Card ────────────────────────────────────────────── */

.lawt-page .lawt-apof-card {
    border-bottom: 1px solid #f0f2f4;
}

.lawt-page .lawt-apof-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background .12s;
}

.lawt-page .lawt-apof-card-header:hover {
    background: #f7f9fb;
}

.lawt-page .lawt-apof-expand-icon {
    width: 20px;
    text-align: center;
    color: var(--lt-text-muted);
    font-size: 12px;
    transition: transform .2s;
    flex-shrink: 0;
}

.lawt-page .lawt-apof-card.expanded > .lawt-apof-card-header .lawt-apof-expand-icon {
    transform: rotate(90deg);
}

.lawt-page .lawt-apof-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    white-space: nowrap;
}

.lawt-page .lawt-apof-card-name {
    font-size: 15px;
    color: var(--lt-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.lawt-page .lawt-apof-chips {
    display: flex;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.lawt-page .lawt-apof-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.lawt-page .lawt-chip-circ  { background: #e8f0fe; color: #1a56db; }
.lawt-page .lawt-chip-news  { background: #fde8e8; color: #c0392b; }
.lawt-page .lawt-chip-rel   { background: var(--lt-teal-bg); color: #0d6b5e; }
.lawt-page .lawt-chip-imp   { background: #ede9fe; color: #6d28d9; }

.lawt-page .lawt-apof-card-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--lt-text);
    background: var(--lt-warm-gray);
    padding: 2px 10px;
    border-radius: 10px;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}


/* ── Card Body (hidden until expanded) ───────────────────────── */

.lawt-page .lawt-apof-card-body {
    display: none;
    padding: 0 24px 16px 52px;
}

.lawt-page .lawt-apof-card.expanded > .lawt-apof-card-body {
    display: block;
}


/* ── Category Group ──────────────────────────────────────────── */

.lawt-page .lawt-apof-cat {
    margin-bottom: 4px;
    border: 1px solid #f0f2f4;
    border-radius: var(--lt-radius);
    overflow: hidden;
}

.lawt-page .lawt-apof-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    background: #fafbfc;
    transition: background .12s;
}

.lawt-page .lawt-apof-cat-header:hover {
    background: #f0f4f8;
}

.lawt-page .lawt-apof-cat-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.lawt-page .lawt-cat-circ { background: #e8f0fe; color: #1a56db; }
.lawt-page .lawt-cat-news { background: #fde8e8; color: #c0392b; }
.lawt-page .lawt-cat-rel  { background: var(--lt-teal-bg); color: #0d6b5e; }
.lawt-page .lawt-cat-imp  { background: #ede9fe; color: #6d28d9; }

.lawt-page .lawt-apof-cat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--lt-text);
    flex: 1;
}

.lawt-page .lawt-apof-cat-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-text-muted);
    background: #e8ecf0;
    padding: 1px 8px;
    border-radius: 10px;
}

.lawt-page .lawt-apof-cat-arrow {
    font-size: 11px;
    color: var(--lt-text-muted);
    transition: transform .2s;
}

.lawt-page .lawt-apof-cat.open > .lawt-apof-cat-header .lawt-apof-cat-arrow {
    transform: rotate(90deg);
}

.lawt-page .lawt-apof-cat-items {
    display: none;
    padding: 4px 0;
}

.lawt-page .lawt-apof-cat.open > .lawt-apof-cat-items {
    display: block;
}


/* ── Document Item ───────────────────────────────────────────── */

.lawt-page .lawt-apof-doc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 14px;
    transition: background .1s;
}

.lawt-page .lawt-apof-doc:hover {
    background: #f7f9fb;
}

.lawt-page .lawt-apof-doc-icon {
    color: var(--lt-text-muted);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.lawt-page .lawt-apof-doc-content {
    flex: 1;
    min-width: 0;
}

.lawt-page .lawt-apof-doc-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--lt-text);
    line-height: 1.5;
    display: block;
}

.lawt-page .lawt-apof-doc-title:hover {
    color: var(--lt-blue);
    text-decoration: none;
}

.lawt-page .lawt-apof-doc-open {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--lt-blue);
    padding: 3px 8px;
    border: 1px solid var(--lt-blue-light);
    border-radius: 3px;
    transition: all .12s;
    align-self: center;
}

.lawt-page .lawt-apof-doc-open:hover {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
    text-decoration: none;
}


/* ── Print ───────────────────────────────────────────────────── */

@media print {
    .lawt-page .lawt-apof-toolbar { display: none !important; }
    .lawt-page .lawt-apof-card-body { display: block !important; }
    .lawt-page .lawt-apof-cat-items { display: block !important; }
    .lawt-page .lawt-apof-doc-open { display: none !important; }
}


/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lawt-page .lawt-apof-toolbar { padding: 10px 12px; }
    .lawt-page .lawt-apof-form { gap: 6px; }
    .lawt-page .lawt-apof-actions { display: none; }
    .lawt-page .lawt-apof-search { width: 140px; }
    .lawt-page .lawt-apof-card-header { padding: 10px 12px; gap: 6px; }
    .lawt-page .lawt-apof-card-body { padding: 0 12px 12px 32px; }
    .lawt-page .lawt-apof-chips { display: none; }
    .lawt-page .lawt-apof-card-name { display: none; }
    .lawt-page .lawt-apof-summary { padding: 8px 12px; gap: 8px; }
}





/* ═══════════════════════════════════════════════════════════════
   CSS PATCH — Append to END of lawt.css
   1. Max-width 1280px for all subpage containers
   2. Per-category chip colors
   3. Per-category icon colors
   4. White background for layout wraps
   ═══════════════════════════════════════════════════════════════ */

/* Fix: max-width 1280px to match header */
.lawt-page .lawt-subpage-header,
.lawt-page .lawt-subpage-body,
.lawt-page .lawt-layout-wrap,
.lawt-page .lawt-apof-page {
    max-width: 1260px;
    margin: 0 auto;
}

/* Fix: white background */
.lawt-page .lawt-layout-wrap,
.lawt-page .lawt-apof-page {
    background: #fff;
}


/* ── Per-category chip colors ────────────────────────────────── */

.lawt-page .lawt-chip-egk   { background: #e8f0fe; color: #1a56db; }
.lawt-page .lawt-chip-egg   { background: #e0f2fe; color: #0369a1; }
.lawt-page .lawt-chip-ded   { background: #fef3c7; color: #92400e; }
.lawt-page .lawt-chip-nom   { background: #d1fae5; color: #065f46; }
.lawt-page .lawt-chip-news  { background: #fde8e8; color: #c0392b; }
.lawt-page .lawt-chip-arth  { background: #ede9fe; color: #6d28d9; }
.lawt-page .lawt-chip-qa    { background: #ccfbf1; color: #0f766e; }
.lawt-page .lawt-chip-kan   { background: #e0e7ff; color: #4338ca; }
.lawt-page .lawt-chip-odig  { background: #ffedd5; color: #9a3412; }
.lawt-page .lawt-chip-dlp   { background: #f1f5f9; color: #475569; }
.lawt-page .lawt-chip-slot  { background: #f3e8ff; color: #7c3aed; }
.lawt-page .lawt-chip-agor  { background: #fce7f3; color: #be185d; }
.lawt-page .lawt-chip-vouli { background: #f5f5f4; color: #57534e; }
.lawt-page .lawt-chip-rel   { background: var(--lt-teal-bg); color: #0d6b5e; }
.lawt-page .lawt-chip-default { background: var(--lt-warm-gray); color: #5a4e3e; }


/* ── Per-category icon box colors ────────────────────────────── */

.lawt-page .lawt-cati-egk   { background: #e8f0fe; color: #1a56db; }
.lawt-page .lawt-cati-egg   { background: #e0f2fe; color: #0369a1; }
.lawt-page .lawt-cati-ded   { background: #fef3c7; color: #92400e; }
.lawt-page .lawt-cati-nom   { background: #d1fae5; color: #065f46; }
.lawt-page .lawt-cati-news  { background: #fde8e8; color: #c0392b; }
.lawt-page .lawt-cati-arth  { background: #ede9fe; color: #6d28d9; }
.lawt-page .lawt-cati-qa    { background: #ccfbf1; color: #0f766e; }
.lawt-page .lawt-cati-kan   { background: #e0e7ff; color: #4338ca; }
.lawt-page .lawt-cati-odig  { background: #ffedd5; color: #9a3412; }
.lawt-page .lawt-cati-dlp   { background: #f1f5f9; color: #475569; }
.lawt-page .lawt-cati-slot  { background: #f3e8ff; color: #7c3aed; }
.lawt-page .lawt-cati-agor  { background: #fce7f3; color: #be185d; }
.lawt-page .lawt-cati-vouli { background: #f5f5f4; color: #57534e; }
.lawt-page .lawt-cati-rel   { background: var(--lt-teal-bg); color: #0d6b5e; }
.lawt-page .lawt-cati-default { background: var(--lt-warm-gray); color: #5a4e3e; }



/* ═══════════════════════════════════════════════════════════════
   ΣΧΕΤΙΚΕΣ ΔΙΑΤΑΞΕΙΣ — Styles
   Append to: lawt.css (after apofaseis block)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page container ─────────────────────────────────────────── */

.lawt-page .lawt-sxet-page {
    max-width: 1260px;
    margin: 0 auto;
    background: #fff;
}


/* ── Layout: sidebar + content ──────────────────────────────── */

.lawt-page .lawt-sxet-layout {
    display: flex;
    align-items: flex-start;
}


/* ── Sidebar ────────────────────────────────────────────────── */

.lawt-page .lawt-sxet-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--lt-border);
}

.lawt-page .lawt-sxet-sidebar::-webkit-scrollbar { width: 4px; }
.lawt-page .lawt-sxet-sidebar::-webkit-scrollbar-thumb { background: #c8d4da; border-radius: 4px; }

.lawt-page .lawt-sxet-sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--lt-text-muted);
    font-weight: 700;
    padding: 14px 16px 8px;
}

.lawt-page .lawt-sxet-sidebar-search {
    padding: 0 10px 10px;
}

.lawt-page .lawt-sxet-sidebar-search input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%239aaab4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") 9px center no-repeat;
    outline: none;
    color: var(--lt-text);
    transition: border-color .15s;
}

.lawt-page .lawt-sxet-sidebar-search input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}

.lawt-page .lawt-sxet-sidebar-art {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 16px;
    font-size: 14px;
    color: var(--lt-text);
    border-left: 3px solid transparent;
    transition: all .12s;
    cursor: pointer;
    text-decoration: none;
}

.lawt-page .lawt-sxet-sidebar-art:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    text-decoration: none;
}

.lawt-page .lawt-sxet-sidebar-art.active {
    border-left-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    font-weight: 600;
    background: var(--lt-blue-light);
}

.lawt-page .lawt-sxet-sidebar-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lawt-page .lawt-sxet-sidebar-name {
    color: var(--lt-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.lawt-page .lawt-sxet-sidebar-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--lt-text-muted);
    background: #f0f2f4;
    padding: 1px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

.lawt-page .lawt-sxet-sidebar-art.no-refs {
    color: #b0bec5;
}

.lawt-page .lawt-sxet-sidebar-art.no-refs .lawt-sxet-sidebar-count {
    display: none;
}


/* ── Main Content ───────────────────────────────────────────── */

.lawt-page .lawt-sxet-content {
    flex: 1;
    min-width: 0;
    padding: 0 28px 80px;
    background: #fff;
    min-height: 100vh;
}


/* ── Header ─────────────────────────────────────────────────── */

.lawt-page .lawt-sxet-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--lt-border);
    flex-wrap: wrap;
}

.lawt-page .lawt-sxet-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--lt-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.lawt-page .lawt-sxet-header h1 .fa {
    color: var(--lt-blue);
    font-size: 18px;
}

.lawt-page .lawt-sxet-stat {
    font-size: 14px;
    color: var(--lt-text-muted);
    padding: 5px 14px;
    background: var(--lt-warm-gray);
    border-radius: 20px;
}

.lawt-page .lawt-sxet-stat strong {
    color: var(--lt-text);
}


/* ── Toolbar ────────────────────────────────────────────────── */

.lawt-page .lawt-sxet-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lt-border);
}


/* ── Article Block ──────────────────────────────────────────── */

.lawt-page .lawt-sxet-block {
    scroll-margin-top: 10px;
    border-bottom: 1px solid var(--lt-border);
    padding: 20px 0 16px;
}

.lawt-page .lawt-sxet-block:last-child {
    border-bottom: none;
}

.lawt-page .lawt-sxet-block-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.lawt-page .lawt-sxet-block-num {
    font-size: 17px;
    font-weight: 700;
    color: var(--lt-blue-dark);
}

.lawt-page .lawt-sxet-block-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--lt-text);
}

.lawt-page .lawt-sxet-block-count {
    font-size: 13px;
    color: var(--lt-text-muted);
    background: var(--lt-blue-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}


/* ── Reference Card ─────────────────────────────────────────── */

.lawt-page .lawt-sxet-card {
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.lawt-page .lawt-sxet-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.lawt-page .lawt-sxet-card.expanded {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.lawt-page .lawt-sxet-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    transition: background .12s;
}

.lawt-page .lawt-sxet-card-header:hover {
    background: #f7f9fb;
}

.lawt-page .lawt-sxet-card.expanded .lawt-sxet-card-header {
    background: var(--lt-blue-light);
    border-bottom: 1px solid var(--lt-border);
}

.lawt-page .lawt-sxet-expand {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f2f4;
    color: var(--lt-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    transition: all .2s;
}

.lawt-page .lawt-sxet-card.expanded .lawt-sxet-expand {
    background: var(--lt-blue);
    color: #fff;
    transform: rotate(90deg);
}

.lawt-page .lawt-sxet-law-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--lt-blue);
    background: var(--lt-blue-light);
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.lawt-page .lawt-sxet-law-tag:hover {
    background: var(--lt-blue);
    color: #fff;
    text-decoration: none;
}

.lawt-page .lawt-sxet-card.expanded .lawt-sxet-law-tag {
    background: var(--lt-blue);
    color: #fff;
}

.lawt-page .lawt-sxet-card-meta {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--lt-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.lawt-page .lawt-sxet-open {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--lt-blue);
    padding: 3px 8px;
    border: 1px solid var(--lt-blue-light);
    border-radius: 3px;
    transition: all .12s;
    white-space: nowrap;
}

.lawt-page .lawt-sxet-open:hover {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
    text-decoration: none;
}


/* ── Card Body (expanded) ───────────────────────────────────── */

.lawt-page .lawt-sxet-card-body {
    display: none;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--lt-text);
    background: #fcfdfe;
}

.lawt-page .lawt-sxet-card.expanded .lawt-sxet-card-body {
    display: block;
}

.lawt-page .lawt-sxet-body-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-sxet-body-meta .fa {
    color: var(--lt-blue);
}

.lawt-page .lawt-sxet-body-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.lawt-page .lawt-sxet-body-text p {
    margin-bottom: 10px;
}

.lawt-page .lawt-sxet-body-text p:last-child {
    margin-bottom: 0;
}


/* ── Print ───────────────────────────────────────────────────── */

@media print {
    .lawt-page .lawt-sxet-sidebar { display: none !important; }
    .lawt-page .lawt-sxet-toolbar { display: none !important; }
    .lawt-page .lawt-sxet-open { display: none !important; }
    .lawt-page .lawt-sxet-card-body { display: block !important; }
    .lawt-page .lawt-sxet-layout { display: block; }
}


/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
    /* .lawt-sxet-sidebar display handled by .lawt-drawer-sidebar */
    .lawt-page .lawt-sxet-layout { display: block; }
    .lawt-page .lawt-sxet-content { padding: 0 12px 60px; }
    .lawt-page .lawt-sxet-header { padding: 14px 0; gap: 8px; }
    .lawt-page .lawt-sxet-card-meta { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   ΑΛΛΑΓΕΣ ΣΕ ΑΛΛΟΥΣ ΝΟΜΟΥΣ — Styles
   Append to: lawt.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Diff colors (add to :root / .lawt-page vars if not present) ── */
.lawt-page {
    --lt-diff-del:      #fde8e8;
    --lt-diff-del-text: #b91c1c;
    --lt-diff-add:      #e6f9e6;
    --lt-diff-add-text: #15803d;
}


/* ── Page ────────────────────────────────────────────────────── */

.lawt-page .lawt-alg-page {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
}


/* ── Layout ──────────────────────────────────────────────────── */

.lawt-page .lawt-alg-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
}


/* ── Sidebar ─────────────────────────────────────────────────── */

.lawt-page .lawt-alg-sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 20px 0 40px 0;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lt-border) transparent;
}

.lawt-page .lawt-alg-sidebar::-webkit-scrollbar { width: 4px; }
.lawt-page .lawt-alg-sidebar::-webkit-scrollbar-thumb { background: var(--lt-border); border-radius: 4px; }

.lawt-page .lawt-alg-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
    padding: 0 12px 10px;
}

.lawt-page .lawt-alg-sidebar-search {
    padding: 0 12px 12px;
}

.lawt-page .lawt-alg-sidebar-search input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%239aaab4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") 9px center no-repeat;
    transition: border-color .15s;
    outline: none;
    color: var(--lt-text);
}

.lawt-page .lawt-alg-sidebar-search input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.1);
}

.lawt-page .lawt-alg-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--lt-text-muted);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all .12s;
    line-height: 1.35;
}

.lawt-page .lawt-alg-sidebar-item:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue);
}

.lawt-page .lawt-alg-sidebar-item.active {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    font-weight: 600;
    border-left-color: var(--lt-blue);
}

.lawt-page .lawt-alg-si-num {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    min-width: 70px;
}

.lawt-page .lawt-alg-si-count {
    margin-left: auto;
    background: var(--lt-warm-gray);
    color: var(--lt-text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

.lawt-page .lawt-alg-sidebar-item.active .lawt-alg-si-count {
    background: var(--lt-blue);
    color: #fff;
}


/* ── Main Content ────────────────────────────────────────────── */

.lawt-page .lawt-alg-content {
    flex: 1;
    min-width: 0;
    padding: 20px 0 80px 28px;
    border-left: 1px solid var(--lt-border);
}


/* ── Summary Bar ─────────────────────────────────────────────── */

.lawt-page .lawt-alg-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--lt-blue-light);
    border-radius: var(--lt-radius);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.lawt-page .lawt-alg-summary-icon {
    width: 38px;
    height: 38px;
    background: var(--lt-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.lawt-page .lawt-alg-summary-text {
    font-size: 16px;
    color: var(--lt-blue-dark);
    line-height: 1.4;
}

.lawt-page .lawt-alg-summary-text strong {
    font-weight: 700;
}

.lawt-page .lawt-alg-summary-actions {
    display: flex;
    gap: 6px;
}


/* ── Law Card ────────────────────────────────────────────────── */

.lawt-page .lawt-alg-card {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.lawt-page .lawt-alg-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.lawt-page .lawt-alg-card.expanded {
    border-color: var(--lt-blue);
    box-shadow: 0 2px 12px rgba(0,119,168,.1);
}

.lawt-page .lawt-alg-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background .1s;
}

.lawt-page .lawt-alg-card-header:hover {
    background: #fafbfc;
}

.lawt-page .lawt-alg-card-expand {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lt-text-muted);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .2s;
}

.lawt-page .lawt-alg-card.expanded .lawt-alg-card-expand {
    transform: rotate(90deg);
    color: var(--lt-blue);
}

.lawt-page .lawt-alg-card-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    white-space: nowrap;
    min-width: 100px;
}

.lawt-page .lawt-alg-card-title {
    font-size: 15px;
    color: var(--lt-text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lawt-page .lawt-alg-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    flex-shrink: 0;
}

.lawt-page .lawt-alg-card.expanded .lawt-alg-card-count {
    background: var(--lt-blue);
    color: #fff;
}


/* ── Card Body ───────────────────────────────────────────────── */

.lawt-page .lawt-alg-card-body {
    display: none;
    border-top: 1px solid var(--lt-border);
}

.lawt-page .lawt-alg-card.expanded .lawt-alg-card-body {
    display: block;
}


/* ── Article Group ───────────────────────────────────────────── */

.lawt-page .lawt-alg-art-group + .lawt-alg-art-group {
    border-top: 1px solid #eef1f4;
}

.lawt-page .lawt-alg-art-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 50px;
    background: var(--lt-warm-gray);
    font-size: 15px;
    font-weight: 700;
    color: var(--lt-text);
}

.lawt-page .lawt-alg-art-header .fa {
    font-size: 13px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-alg-art-header a {
    color: var(--lt-text);
}

.lawt-page .lawt-alg-art-header a:hover {
    color: var(--lt-blue);
}


/* ── Paragraph Row ───────────────────────────────────────────── */

.lawt-page .lawt-alg-para-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 66px;
    font-size: 15px;
    border-bottom: 1px solid #f2f4f6;
    transition: background .1s;
}

.lawt-page .lawt-alg-para-row:last-of-type {
    border-bottom: none;
}

.lawt-page .lawt-alg-para-row:hover {
    background: #f8fafc;
}

.lawt-page .lawt-alg-para-label {
    font-weight: 600;
    color: var(--lt-text);
    min-width: 120px;
}

.lawt-page .lawt-alg-para-label a {
    color: var(--lt-text);
}

.lawt-page .lawt-alg-para-label a:hover {
    color: var(--lt-blue);
}

.lawt-page .lawt-alg-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--lt-text-muted);
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    transition: all .12s;
    white-space: nowrap;
}

.lawt-page .lawt-alg-view-btn:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    text-decoration: none;
}

.lawt-page .lawt-alg-view-btn.active {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    background: var(--lt-blue-light);
}

.lawt-page .lawt-alg-view-btn { cursor: pointer; }


.lawt-page .lawt-alg-view-btn .fa { font-size: 12px; }

.lawt-page .lawt-alg-diff-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--lt-blue);
    border: 1px solid var(--lt-blue-light);
    border-radius: 4px;
    background: var(--lt-blue-light);
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}

.lawt-page .lawt-alg-diff-btn:hover,
.lawt-page .lawt-alg-diff-btn.active {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
}

.lawt-page .lawt-alg-diff-btn .fa { font-size: 12px; }


/* ── Diff Panel (inline, AJAX loaded) ────────────────────────── */

.lawt-page .lawt-alg-diff-panel {
    display: none;
    margin: 0;
    padding: 0 16px 12px 66px;
    animation: lawtAlgDiffSlide .25s ease;
}

.lawt-page .lawt-alg-diff-panel.visible {
    display: block;
}

@keyframes lawtAlgDiffSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Diff Container (returned by AJAX) ───────────────────────── */

.lawt-page .lawt-alg-diff-container {
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    overflow: hidden;
    background: #fff;
}

.lawt-page .lawt-alg-diff-header {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--lt-warm-gray);
    border-bottom: 1px solid var(--lt-warm-border);
    gap: 8px;
}

.lawt-page .lawt-alg-diff-header-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-alg-diff-titles {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.lawt-page .lawt-alg-diff-title-old {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--lt-border);
    background: var(--lt-diff-del);
    color: var(--lt-diff-del-text);
    border-right: 1px solid var(--lt-border);
}

.lawt-page .lawt-alg-diff-title-new {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--lt-border);
    background: var(--lt-diff-add);
    color: var(--lt-diff-add-text);
}

.lawt-page .lawt-alg-diff-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}




.lawt-page .lawt-alg-diff-col {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--lt-text);
}

.lawt-page .lawt-alg-diff-col-old {
    background: #fffbfb;
    border-right: 1px solid var(--lt-border);
}

.lawt-page .lawt-alg-diff-col-new {
    background: #fbfffb;
}


/* Diff highlighting (from AJAX response) */

.lawt-page .lawt-diff-del {
    background: var(--lt-diff-del);
    color: var(--lt-diff-del-text);
    text-decoration: line-through;
    text-decoration-color: rgba(185,28,28,.4);
    padding: 1px 2px;
    border-radius: 2px;
}

.lawt-page .lawt-diff-add {
    background: var(--lt-diff-add);
    color: var(--lt-diff-add-text);
    padding: 1px 2px;
    border-radius: 2px;
}


/* Diff extras (comments, source) */

.lawt-page .lawt-alg-diff-extras {
    padding: 10px 16px;
    border-top: 1px solid var(--lt-border);
    background: #fafbfc;
}

.lawt-page .lawt-alg-diff-extra {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lt-text-muted);
    margin-bottom: 6px;
}

.lawt-page .lawt-alg-diff-extra:last-child {
    margin-bottom: 0;
}

.lawt-page .lawt-alg-diff-extra strong {
    color: var(--lt-text);
}


/* ── Section (related changes, active history) ───────────────── */

.lawt-page .lawt-alg-section {
    margin-top: 24px;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    overflow: hidden;
}

.lawt-page .lawt-alg-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--lt-text);
    background: var(--lt-warm-gray);
    border-bottom: 1px solid var(--lt-warm-border);
}

.lawt-page .lawt-alg-section-header .fa {
    color: var(--lt-blue);
}

.lawt-page .lawt-alg-section-body {
    padding: 16px 18px;
}

.lawt-page .lawt-alg-related-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.lawt-page .lawt-alg-related-list li {
    margin-bottom: 4px;
}


/* ── Print ───────────────────────────────────────────────────── */

@media print {
    .lawt-page .lawt-alg-sidebar { display: none !important; }
    .lawt-page .lawt-alg-summary-actions { display: none !important; }
    .lawt-page .lawt-alg-diff-btn,
    .lawt-page .lawt-alg-view-btn { display: none !important; }
    .lawt-page .lawt-alg-content { padding-left: 0; border: none; }
    .lawt-page .lawt-alg-layout { display: block; }
    .lawt-page .lawt-alg-card.expanded .lawt-alg-card-body { display: block; }
}


/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
        /* .lawt-alg-sidebar display handled by .lawt-drawer-sidebar */
    .lawt-page .lawt-alg-content { padding-left: 0; border: none; }
    .lawt-page .lawt-alg-layout { padding: 0 12px; }
    .lawt-page .lawt-alg-art-header { padding-left: 16px; }
    .lawt-page .lawt-alg-para-row { padding-left: 28px; flex-wrap: wrap; gap: 6px; }
    .lawt-page .lawt-alg-diff-panel { padding-left: 16px; }
    /* Diff mobile: dissolve wrappers, interleave title→content */
    .lawt-page .lawt-alg-diff-container {
        display: flex;
        flex-direction: column;
    }
    .lawt-page .lawt-alg-diff-titles,
    .lawt-page .lawt-alg-diff-columns {
        display: contents;
    }
    .lawt-page .lawt-alg-diff-header    { order: 0; }
    .lawt-page .lawt-alg-diff-title-old { order: 1; border-right: none; }
    .lawt-page .lawt-alg-diff-col-old   { order: 2; border-right: none; border-bottom: 1px solid var(--lt-border); }
    .lawt-page .lawt-alg-diff-title-new { order: 3; }
    .lawt-page .lawt-alg-diff-col-new   { order: 4; }
    .lawt-page .lawt-alg-card-title { display: none; }
    .lawt-page .lawt-alg-summary { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════
   ΤΡΟΠΟΠΟΙΗΣΕΙΣ — Styles
   Append to: lawt.css
   Namespace: .lawt-trop-*
   ═══════════════════════════════════════════════════════════════ */


/* ── Layout ──────────────────────────────────────────────────── */

.lawt-page .lawt-trop-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}


/* ── Sidebar ─────────────────────────────────────────────────── */

.lawt-page .lawt-trop-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 20px 0 40px 0;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lt-border) transparent;
}

.lawt-page .lawt-trop-sidebar::-webkit-scrollbar { width: 4px; }
.lawt-page .lawt-trop-sidebar::-webkit-scrollbar-thumb { background: var(--lt-border); border-radius: 4px; }

.lawt-page .lawt-trop-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 15px;
    color: var(--lt-text);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all .12s;
    font-weight: 500;
}

.lawt-page .lawt-trop-sidebar-item:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    text-decoration: none;
}

.lawt-page .lawt-trop-sidebar-item.active {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    font-weight: 700;
    border-left-color: var(--lt-blue);
}

.lawt-page .lawt-trop-si-year {
    font-weight: inherit;
}

.lawt-page .lawt-trop-si-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-text-muted);
    background: #f0f2f4;
    padding: 1px 7px;
    border-radius: 8px;
}

.lawt-page .lawt-trop-sidebar-item.active .lawt-trop-si-count {
    background: var(--lt-blue);
    color: #fff;
}


/* ── Main Content ────────────────────────────────────────────── */

.lawt-page .lawt-trop-content {
    flex: 1;
    min-width: 0;
    padding: 20px 0 80px 28px;
    border-left: 1px solid var(--lt-border);
}


/* ── Summary Bar ─────────────────────────────────────────────── */

.lawt-page .lawt-trop-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--lt-blue-light);
    border-radius: var(--lt-radius);
    margin-bottom: 18px;
    flex-wrap: wrap;
}


/* ── Year Section ────────────────────────────────────────────── */

.lawt-page .lawt-trop-year-section {
    margin-bottom: 4px;
}


/* ── Modification Card ───────────────────────────────────────── */

.lawt-page .lawt-trop-card {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.lawt-page .lawt-trop-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.lawt-page .lawt-trop-card.expanded {
    border-color: var(--lt-blue);
    box-shadow: 0 2px 12px rgba(0,119,168,.1);
}

.lawt-page .lawt-trop-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background .1s;
}

.lawt-page .lawt-trop-card-header:hover {
    background: #fafbfc;
}

.lawt-page .lawt-trop-card-expand {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lt-text-muted);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .2s;
}

.lawt-page .lawt-trop-card.expanded .lawt-trop-card-expand {
    transform: rotate(90deg);
    color: var(--lt-blue);
}

.lawt-page .lawt-trop-card-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--lt-text-muted);
    min-width: 90px;
    white-space: nowrap;
}

.lawt-page .lawt-trop-card-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    white-space: nowrap;
}

.lawt-page .lawt-trop-card-number a {
    color: var(--lt-blue-dark);
}

.lawt-page .lawt-trop-card-number a:hover {
    color: var(--lt-blue);
}

.lawt-page .lawt-trop-card-title {
    font-size: 15px;
    color: var(--lt-text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lawt-page .lawt-trop-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    flex-shrink: 0;
}

.lawt-page .lawt-trop-card.expanded .lawt-trop-card-count {
    background: var(--lt-blue);
    color: #fff;
}


/* ── Card Body ───────────────────────────────────────────────── */

.lawt-page .lawt-trop-card-body {
    display: none;
    border-top: 1px solid var(--lt-border);
}

.lawt-page .lawt-trop-card.expanded .lawt-trop-card-body {
    display: block;
}


/* ── Article Group (inside AJAX-loaded card body) ────────────── */

.lawt-page .lawt-trop-art-group + .lawt-trop-art-group {
    border-top: 1px solid #eef1f4;
}

.lawt-page .lawt-trop-art-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 50px;
    background: var(--lt-warm-gray);
    font-size: 15px;
    font-weight: 700;
    color: var(--lt-text);
}

.lawt-page .lawt-trop-art-header .fa {
    font-size: 13px;
    color: var(--lt-text-muted);
}

.lawt-page .lawt-trop-art-header a {
    color: var(--lt-text);
}

.lawt-page .lawt-trop-art-header a:hover {
    color: var(--lt-blue);
}


/* ── Paragraph Row ───────────────────────────────────────────── */

.lawt-page .lawt-trop-para-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 66px;
    font-size: 15px;
    border-bottom: 1px solid #f2f4f6;
    transition: background .1s;
}

.lawt-page .lawt-trop-para-row:last-of-type {
    border-bottom: none;
}

.lawt-page .lawt-trop-para-row:hover {
    background: #f8fafc;
}

.lawt-page .lawt-trop-para-label {
    font-weight: 600;
    color: var(--lt-text);
    min-width: 120px;
}

.lawt-page .lawt-trop-para-label a {
    color: var(--lt-text);
}

.lawt-page .lawt-trop-para-label a:hover {
    color: var(--lt-blue);
}

.lawt-page .lawt-trop-para-note {
    font-size: 13px;
    color: var(--lt-text-muted);
    font-style: italic;
}

.lawt-page .lawt-trop-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--lt-text-muted);
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    transition: all .12s;
    white-space: nowrap;
}

.lawt-page .lawt-trop-view-btn:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    text-decoration: none;
}


.lawt-page .lawt-trop-view-btn.active {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    background: var(--lt-blue-light);
}

.lawt-page .lawt-trop-view-btn { cursor: pointer; }

.lawt-page .lawt-trop-view-btn .fa { font-size: 12px; }

.lawt-page .lawt-trop-diff-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--lt-blue);
    border: 1px solid var(--lt-blue-light);
    border-radius: 4px;
    background: var(--lt-blue-light);
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}

.lawt-page .lawt-trop-diff-btn:hover,
.lawt-page .lawt-trop-diff-btn.active {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
}

.lawt-page .lawt-trop-diff-btn .fa { font-size: 12px; }


/* ── Diff Panel (inline, AJAX loaded) ────────────────────────── */

.lawt-page .lawt-trop-diff-panel {
    display: none;
    margin: 0;
    padding-top: 10px;
    animation: lawtTropDiffSlide .25s ease;
}

.lawt-page .lawt-trop-diff-panel.visible {
    display: block;
}

@keyframes lawtTropDiffSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Effective date note ─────────────────────────────────────── */

.lawt-page .lawt-trop-eff-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    font-size: 13px;
    color: var(--lt-text-muted);
    background: var(--lt-yellow-bg);
    border-bottom: 1px solid #f2f4f6;
    line-height: 1.5;
}

.lawt-page .lawt-trop-eff-note .fa {
    color: var(--lt-yellow);
    margin-top: 2px;
    flex-shrink: 0;
}


/* ── Print ───────────────────────────────────────────────────── */

@media print {
    .lawt-page .lawt-trop-sidebar { display: none !important; }
    .lawt-page .lawt-trop-summary .lawt-summary-actions { display: none !important; }
    .lawt-page .lawt-trop-diff-btn,
    .lawt-page .lawt-trop-view-btn { display: none !important; }
    .lawt-page .lawt-trop-content { padding-left: 0; border: none; }
    .lawt-page .lawt-trop-layout { display: block; }
    .lawt-page .lawt-trop-card.expanded .lawt-trop-card-body { display: block; }
}


/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* .lawt-trop-sidebar display handled by .lawt-drawer-sidebar */
    .lawt-page .lawt-trop-content { padding-left: 0; border: none; }
    .lawt-page .lawt-trop-layout { padding: 0 12px; }
    .lawt-page .lawt-trop-art-header { padding-left: 16px; }
    .lawt-page .lawt-trop-para-row { padding-left: 28px; flex-wrap: wrap; gap: 6px; }
    .lawt-page .lawt-trop-eff-note { padding-left: 28px; }
    .lawt-page .lawt-trop-diff-panel { padding-left: 16px; }
    .lawt-page .lawt-trop-card-title { display: none; }
    .lawt-page .lawt-trop-summary { flex-direction: column; align-items: flex-start; }
    /* Diff mobile: dissolve wrappers, interleave title→content */
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-container {
        display: flex;
        flex-direction: column;
    }
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-titles,
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-columns {
        display: contents;
    }
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-header    { order: 0; }
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-title-old { order: 1; border-right: none; }
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-col-old   { order: 2; border-right: none; border-bottom: 1px solid var(--lt-border); }
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-title-new { order: 3; }
    .lawt-page .lawt-trop-diff-panel .lawt-alg-diff-col-new   { order: 4; }
}

/* ── Current Text (Ισχύουσα) — Inline panel ──────────────────── */

.lawt-page .lawt-current-container {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: 6px;
    overflow: hidden;
}

.lawt-page .lawt-current-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f0f7fa;
    border-bottom: 1px solid var(--lt-border);
    font-size: 13px;
    flex-wrap: wrap;
}

.lawt-page .lawt-current-header-label {
    font-weight: 600;
    color: var(--lt-blue);
    white-space: nowrap;
}

.lawt-page .lawt-current-header-label .fa {
    margin-right: 4px;
}

.lawt-page .lawt-current-para-info {
    color: var(--lt-text-muted);
    font-size: 12px;
}

.lawt-page .lawt-current-revinfo {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--lt-text-muted);
    background: #fafbfc;
    border-bottom: 1px solid var(--lt-border);
}

.lawt-page .lawt-current-body {
    padding: 16px;
    font-size: 15px;
    line-height: 1.75;
    text-align: justify;
    color: var(--lt-text);
}

.lawt-page .lawt-current-comments {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--lt-text-muted);
    background: #fafbfc;
    border-top: 1px solid var(--lt-border);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .lawt-page .lawt-current-header {
        padding: 8px 12px;
    }
    .lawt-page .lawt-current-body {
        padding: 12px;
        font-size: 14px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE VIEW — Standalone article/paragraph reference page
   Append to: lawt.css
   Namespace: .lawt-artview-*
   ═══════════════════════════════════════════════════════════════ */

/* ── Page container ─────────────────────────────────── */
.lawt-page .lawt-artview-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.lawt-page .lawt-artview-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--lt-text-muted);
    margin-bottom: 20px;
}
.lawt-page .lawt-artview-breadcrumb a {
    color: var(--lt-text-muted);
}
.lawt-page .lawt-artview-breadcrumb a:hover {
    color: var(--lt-blue);
}
.lawt-page .lawt-artview-breadcrumb .sep {
    color: #b0b8c0;
    font-size: 11px;
}

/* ── Main card ──────────────────────────────────────── */
.lawt-page .lawt-artview-card {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: 8px;
    overflow: hidden;
}

/* ── Law header bar ─────────────────────────────────── */
.lawt-page .lawt-artview-law-bar {
    background: var(--lt-blue-dark);
    color: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.lawt-page .lawt-artview-law-bar .fa {
    font-size: 18px;
    opacity: .7;
}
.lawt-page .lawt-artview-law-ref {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.lawt-page .lawt-artview-law-name {
    font-size: 14px;
    font-weight: 400;
    opacity: .85;
    margin-left: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lawt-page .lawt-artview-law-link {
    margin-left: auto;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    white-space: nowrap;
}
.lawt-page .lawt-artview-law-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Article header ─────────────────────────────────── */
.lawt-page .lawt-artview-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--lt-border);
}
.lawt-page .lawt-artview-art-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--lt-blue);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}
.lawt-page .lawt-artview-art-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--lt-text);
    line-height: 1.35;
}

/* ── Paragraph content ──────────────────────────────── */
.lawt-page .lawt-artview-body {
    padding: 0 28px 28px;
}

.lawt-page .lawt-artview-para {
    padding: 20px 0;
    border-bottom: 1px solid #f0f2f4;
}
.lawt-page .lawt-artview-para:last-child {
    border-bottom: none;
}

.lawt-page .lawt-artview-para-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-blue);
    background: var(--lt-blue-light);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Highlighted target paragraph */
.lawt-page .lawt-artview-para.is-target {
    background: #fffde6;
    margin: 0 -28px;
    padding: 20px 28px;
    border-left: 3px solid var(--lt-yellow);
    border-bottom-color: #f0ead0;
}

.lawt-page .lawt-artview-para-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--lt-text);
}
.lawt-page .lawt-artview-para-text p {
    margin-bottom: 10px;
}
.lawt-page .lawt-artview-para-text p:last-child {
    margin-bottom: 0;
}

/* ── Actions bar ────────────────────────────────────── */
.lawt-page .lawt-artview-actions {
    padding: 16px 28px;
    background: var(--lt-warm-gray);
    border-top: 1px solid var(--lt-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.lawt-page .lawt-artview-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--lt-radius);
    border: 1px solid var(--lt-border);
    background: #fff;
    color: var(--lt-text-muted);
    transition: all .15s;
}
.lawt-page .lawt-artview-action:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    text-decoration: none;
}
.lawt-page .lawt-artview-action.primary {
    background: var(--lt-blue);
    color: #fff;
    border-color: var(--lt-blue);
}
.lawt-page .lawt-artview-action.primary:hover {
    background: var(--lt-blue-dark);
    border-color: var(--lt-blue-dark);
    color: #fff;
}
.lawt-page .lawt-artview-action .fa {
    font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
    .lawt-page .lawt-artview-wrap {
        padding: 16px 12px 40px;
    }
    .lawt-page .lawt-artview-law-bar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    .lawt-page .lawt-artview-law-name {
        display: none;
    }
    .lawt-page .lawt-artview-header {
        padding: 18px 16px 16px;
    }
    .lawt-page .lawt-artview-body {
        padding: 0 16px 20px;
    }
    .lawt-page .lawt-artview-art-title {
        font-size: 19px;
    }
    .lawt-page .lawt-artview-actions {
        padding: 14px 16px;
        flex-direction: column;
    }
    .lawt-page .lawt-artview-para.is-target {
        margin: 0 -16px;
        padding: 20px 16px;
    }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
    .lawt-page .lawt-artview-breadcrumb,
    .lawt-page .lawt-artview-actions { display: none; }
    .lawt-page .lawt-artview-wrap { max-width: 100%; padding: 0; }
    .lawt-page .lawt-artview-card { border: none; box-shadow: none; }
    .lawt-page .lawt-artview-law-bar { background: none; color: #1a1a1a; border-bottom: 2px solid #1a1a1a; }
    .lawt-page .lawt-artview-law-link { display: none; }
    .lawt-page .lawt-artview-para.is-target { background: none; border-left: 2px solid #666; }
}



/* ═══════════════════════════════════════════════════════════════════
   PHASE 3A — Main Law Page CSS
   Scoped under .lawt-page .lawt-law-*
   Append this to lawt.css
   ═══════════════════════════════════════════════════════════════════ */


/* ── Title Area ──────────────────────────────────────────────── */
.lawt-page .lawt-law-title-area {
    background: #fff;
    border-bottom: 1px solid var(--lt-border);
    padding: 20px 24px 16px;
}

.lawt-page .lawt-law-title-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.lawt-page .lawt-law-h1 {
    font-size: 21px;
    color: var(--lt-blue-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.lawt-page .lawt-law-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--lt-text-muted);
    line-height: 1.5;
}


/* ── Body Layout ─────────────────────────────────────────────── */
.lawt-page .lawt-law-body {
    display: flex;
    align-items: flex-start;
    max-width: 1260px;
    margin: 0 auto;
}


/* ── Sidebar ─────────────────────────────────────────────────── */
.lawt-page .lawt-law-sidebar {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--site-header-h, 0px) + 50px);
    height: calc(100vh - var(--site-header-h, 0px) - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c8d4da transparent;
    background: #fff;
    /* border-right removed — Chat 38 collapsed cards */
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.lawt-page .lawt-law-sidebar::-webkit-scrollbar       { width: 4px; }
.lawt-page .lawt-law-sidebar::-webkit-scrollbar-track { background: transparent; }
.lawt-page .lawt-law-sidebar::-webkit-scrollbar-thumb { background: #c8d4da; border-radius: 4px; }
.lawt-page .lawt-law-sidebar::-webkit-scrollbar-thumb:hover { background: #9aaab4; }

/* Sidebar actions */
.lawt-page .lawt-toc-actions {
    border-bottom: 1px solid var(--lt-border);
    padding: 4px 0;
    flex-shrink: 0;
}

.lawt-page .lawt-toc-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    font-size: 13.5px;
    color: var(--lt-text);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
    text-decoration: none;
    line-height: 1.3;
}
.lawt-page .lawt-toc-action-btn:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    text-decoration: none;
}
.lawt-page .lawt-toc-action-btn .fa {
    width: 18px;
    text-align: center;
    color: var(--lt-blue);
    flex-shrink: 0;
    font-size: 14px;
}

.lawt-page .lawt-toc-action-count {
    background: var(--lt-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    margin-left: auto;
}


/* Sidebar toggle button */
.lawt-page .lawt-toc-actions-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    font-size: 13px;
    color: var(--lt-text-muted);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
    border-top: 1px solid var(--lt-border);
    font-weight: 600;
    font-family: inherit;
}
.lawt-page .lawt-toc-actions-toggle:hover {
    background: #f7f9fb;
    color: var(--lt-blue-dark);
}
.lawt-page .lawt-toc-actions-toggle .fa {
    width: 18px;
    text-align: center;
    font-size: 12px;
    transition: transform .2s;
}
.lawt-page .lawt-toc-actions-toggle.open .fa {
    transform: rotate(180deg);
}

/* Collapsed tools section */
.lawt-page .lawt-toc-actions-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    border-bottom: 1px solid transparent;
    flex-shrink: 0;
}
.lawt-page .lawt-toc-actions-collapsed.open {
    max-height: 400px;
    border-bottom-color: var(--lt-border);
}

/* Dimmed style for not-yet-implemented tools */
.lawt-page .lawt-toc-action-btn.lawt-toc-todo {
    opacity: 0.5;
    cursor: default;
}
.lawt-page .lawt-toc-action-btn.lawt-toc-todo:hover {
    background: none;
    color: var(--lt-text);
}

/* Study Mode button */
.lawt-page .lawt-study-btn {
    display: block;
    flex-shrink: 0;
    margin: 12px 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1a5276 0%, #1a8ab5 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(26, 82, 118, 0.3);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}
.lawt-page .lawt-study-btn:hover,
.lawt-page .lawt-study-btn:focus {
    background: linear-gradient(135deg, #154360 0%, #1479a0 100%);
    box-shadow: 0 3px 10px rgba(26, 82, 118, 0.45);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.lawt-page .lawt-study-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(26, 82, 118, 0.3);
}


.lawt-page .lawt-study-btn .fa {
    margin-right: 6px;
    font-size: 15px;
}

/* ═══ START BLOCK: Admin-only Edit button ═══ */
.lawt-page .lawt-admin-edit-btn {
    display: block;
    flex-shrink: 0;
    margin: 0 10px 12px;
    padding: 6px 14px;
    background: #fff;
    color: #c0392b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px dashed #e0a39a;
    border-radius: 4px;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}
.lawt-page .lawt-admin-edit-btn:hover,
.lawt-page .lawt-admin-edit-btn:focus {
    background: #fdf2f0;
    border-color: #c0392b;
    color: #962d22;
    text-decoration: none;
}
.lawt-page .lawt-admin-edit-btn .fa {
    margin-right: 5px;
    font-size: 11px;
}
/* ═══ END BLOCK: Admin-only Edit button ═══ */


/* TOC search */
.lawt-page .lawt-toc-search-wrap {

    padding: 8px 10px;
    flex-shrink: 0;

}

.lawt-page .lawt-toc-search-input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    font-size: 13px;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aaab4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") 10px center no-repeat;
    font-family: inherit;
    color: var(--lt-text);
    transition: border-color .15s;
    outline: none;
}
.lawt-page .lawt-toc-search-input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-toc-search-input::placeholder {
    color: #aab8c2;
}

/* TOC list container */
.lawt-page .lawt-toc-list-wrap {
    position: relative;
    flex: 1;
    min-height: 200px;
}
.lawt-page .lawt-toc-list-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 5px;
    height: 28px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    z-index: 1;
}

.lawt-page .lawt-toc-list {
    padding: 2px 0 16px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}
.lawt-page .lawt-toc-list::-webkit-scrollbar       { width: 4px; }
.lawt-page .lawt-toc-list::-webkit-scrollbar-track { background: transparent; }
.lawt-page .lawt-toc-list::-webkit-scrollbar-thumb { background: #c8d4da; border-radius: 4px; }
.lawt-page .lawt-toc-list::-webkit-scrollbar-thumb:hover { background: #9aaab4; }

/* TOC heading */
.lawt-page .lawt-toc-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--lt-text-muted);
    font-weight: 700;
    padding: 8px 15px 4px;
}

/* TOC chapter headers */
.lawt-page .lawt-toc-chapter {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b5e4f;
    padding: 9px 15px 5px;
    letter-spacing: .4px;
    background: var(--lt-warm-gray);
    border-top: 1px solid var(--lt-warm-border);
    border-bottom: 1px solid var(--lt-warm-border);
    margin-top: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background .12s;
}
.lawt-page .lawt-toc-chapter:hover {
    background: #efe9e2;
}

.lawt-page .lawt-toc-chap-arrow {
    font-size: 10px;
    opacity: .5;
    transition: transform .2s;
}
.lawt-page .lawt-toc-chapter.collapsed .lawt-toc-chap-arrow {
    transform: rotate(-90deg);
}

/* Chapter items container — collapse animation */
.lawt-page .lawt-toc-chapter-items {
    overflow: hidden;
    transition: max-height .25s ease;
    max-height: 5000px;
}
.lawt-page .lawt-toc-chapter.collapsed + .lawt-toc-chapter-items {
    max-height: 0;
}

/* TOC item row */
.lawt-page .lawt-toc-item {
    display: flex;
    align-items: center;
}

.lawt-page .lawt-toc-link {
    flex: 1;
    display: block;
    padding: 7px 15px;
    font-size: 13.5px;
    color: var(--lt-text);
    line-height: 1.35;
    transition: background .1s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lawt-page .lawt-toc-link:hover {
    background: var(--lt-blue-light);
    text-decoration: none;
    color: var(--lt-blue-dark);
}
.lawt-page .lawt-toc-link.active {
    border-left-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    font-weight: 600;
    background: var(--lt-blue-light);
}

.lawt-page .lawt-toc-art-num {
    color: var(--lt-blue);
    font-weight: 600;
    margin-right: 5px;
}

.lawt-page .lawt-toc-external {
    padding: 7px 9px 7px 0;
    color: var(--lt-text-muted);
    font-size: 12px;
    opacity: 0;
    transition: opacity .15s;
    flex-shrink: 0;
}
.lawt-page .lawt-toc-item:hover .lawt-toc-external {
    opacity: 1;
}

/* TOC filter hidden states */
.lawt-page .lawt-toc-item.hidden { display: none; }
.lawt-page .lawt-toc-chapter.hidden { display: none; }
.lawt-page .lawt-toc-chapter-items.hidden-group { display: none; }


/* ── TOC View Toggle (List / Grid buttons) ───────────────────── */
.lawt-page .lawt-toc-view-toggle {
    display: flex;
    flex-shrink: 0;
    gap: 0;
    margin-bottom: 7px;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    overflow: hidden;
}

.lawt-page .lawt-toc-view-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    color: var(--lt-text-muted);
    background: #fafbfc;
    border: none;
    border-right: 1px solid var(--lt-border);
    cursor: pointer;
    transition: background .12s, color .12s;
    white-space: nowrap;
    line-height: 1;
}
.lawt-page .lawt-toc-view-btn:last-child {
    border-right: none;
}
.lawt-page .lawt-toc-view-btn:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
}
.lawt-page .lawt-toc-view-btn.active {
    background: var(--lt-blue);
    color: #fff;
}
.lawt-page .lawt-toc-view-btn.active:hover {
    background: var(--lt-blue-dark);
}
.lawt-page .lawt-toc-view-btn .fa {
    font-size: 11px;
}


/* ── TOC Grid wrap ───────────────────────────────────────────── */
.lawt-page .lawt-toc-grid-wrap {
    position: relative;
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 16px;
}
.lawt-page .lawt-toc-grid-wrap::-webkit-scrollbar       { width: 4px; }
.lawt-page .lawt-toc-grid-wrap::-webkit-scrollbar-track { background: transparent; }
.lawt-page .lawt-toc-grid-wrap::-webkit-scrollbar-thumb { background: #c8d4da; border-radius: 4px; }
/* Fade-out at bottom like the list */
.lawt-page .lawt-toc-grid-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 5px;
    height: 28px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    z-index: 1;
}


/* ── TOC Grid: flexible columns, ~5 per row ──────────────────── */
.lawt-page .lawt-toc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}


/* ── TOC Grid cell ───────────────────────────────────────────── */
.lawt-page .lawt-toc-grid-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 2px 1px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--lt-blue);
    background: #fff;
    border: 1px solid #dce8f0;
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.15;
    text-align: center;
    transition: background .1s, color .1s, border-color .1s, box-shadow .1s;
    cursor: pointer;
    overflow: hidden;
    word-break: break-all;
}
.lawt-page .lawt-toc-grid-cell:hover {
    background: var(--lt-blue-light);
    border-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,119,168,.15);
}

/* Active cell — currently visible article */
.lawt-page .lawt-toc-grid-cell.active {
    background: var(--lt-blue);
    border-color: var(--lt-blue-dark);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,95,136,.3);
}

/* Repealed article (active=0) */
.lawt-page .lawt-toc-grid-inactive {
    color: #c0392b;
    background: #fff8f8;
    border-color: #f0d0d0;
    text-decoration: line-through;
    opacity: .8;
}
.lawt-page .lawt-toc-grid-inactive:hover {
    background: #fde8e8;
    border-color: #c0392b;
    color: #c0392b;
    text-decoration: line-through;
    box-shadow: none;
}
.lawt-page .lawt-toc-grid-inactive.active {
    background: #c0392b;
    border-color: #a02020;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

/* Filtered-out cell */
.lawt-page .lawt-toc-grid-cell.lawt-toc-grid-hidden {
    display: none;
}


/* ── Law Content ─────────────────────────────────────────────── */
.lawt-page .lawt-law-content {
    flex: 1;
    min-width: 0;
    --content-pad: 24px;
    padding: 0 var(--content-pad) 80px;
    background: #fff;
}

/* Formal header block */
.lawt-page .lawt-law-header-block {
    text-align: center;
    padding: 30px 40px 24px;
    
    color: var(--lt-text-muted);
    font-size: 16px;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Notice: law not codified by editorial team (pinned=0) */
.lawt-page .lawt-not-codified-notice {
    max-width: 700px;
    margin: 24px auto 0;
    padding: 12px 18px;
    background: var(--lt-yellow-bg);
    border-left: 4px solid var(--lt-yellow);
    color: var(--lt-text);
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--lt-radius);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lawt-page .lawt-not-codified-notice .fa {
    color: var(--lt-yellow);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lawt-page .lawt-law-footer-block {
    text-align: center;
    padding: 24px 40px 30px;
    border-top: 1px solid var(--lt-border);
    color: var(--lt-text-muted);
    font-size: 16px;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Chapter header between articles */
.lawt-page .lawt-art-chapter-header {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #5a4e3e;
    background: var(--lt-warm-gray);
    padding: 10px var(--content-pad, 24px);
    margin: 0 calc(-1 * var(--content-pad, 24px));   /* bleed edge-to-edge */
    border-top: 1px solid var(--lt-warm-border);
    border-bottom: 1px solid var(--lt-warm-border);
}
.lawt-page .lawt-art-chapter-header h2 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    margin: 0;
}

/* Article prefix (sub-chapter / section divider from DB) */
.lawt-page .lawt-art-prefix {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--lt-blue-dark, #1a5276);
    background: var(--lt-blue-light, #eaf2f8);
    padding: 10px var(--content-pad, 24px);
    margin: 0 calc(-1 * var(--content-pad, 24px));   /* bleed edge-to-edge */
    border-bottom: 1px solid #d4e4ef;
    line-height: 1.6;
}

/* ── Paragraph Section ───────────────────────────────────────── */
.lawt-page .lawt-para-section {
    padding: 16px 0 0;

}
.lawt-page .lawt-para-section:last-of-type {
    border-bottom: none;
}

.lawt-page .lawt-para-text {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    margin-bottom: 10px;
    padding-right: 8px;
    text-align: justify;
    text-justify: inter-word;
}


/* ── Back to Top ─────────────────────────────────────────────── */
.lawt-page .lawt-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lt-blue-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, background .15s;
    z-index: 400;
}
.lawt-page .lawt-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.lawt-page .lawt-back-to-top:hover {
    background: var(--lt-blue);
}


/* ── Paywall Block ────────────────────────────────────────────── */
.lawt-page .lawt-law-paywall {
    padding: 0 24px 40px;
    position: relative;
}
.lawt-page .lawt-law-paywall::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.lawt-page .lawt-paywall-inner {
    text-align: center;
    padding: 40px 30px;
    background: var(--lt-warm-gray);
    border: 1px solid var(--lt-warm-border);
    border-radius: var(--lt-radius);
    max-width: 600px;
    margin: 0 auto;
}

.lawt-page .lawt-paywall-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lt-blue-light);
    color: var(--lt-blue);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.lawt-page .lawt-paywall-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--lt-text);
    margin-bottom: 10px;
}

.lawt-page .lawt-paywall-text {
    font-size: 15px;
    color: var(--lt-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.lawt-page .lawt-paywall-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.lawt-page .lawt-paywall-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    font-family: inherit;
    border: none;
}
.lawt-page .lawt-paywall-btn:hover {
    text-decoration: none;
}

.lawt-page .lawt-paywall-btn-primary {
    background: var(--lt-blue);
    color: #fff;
}
.lawt-page .lawt-paywall-btn-primary:hover {
    background: var(--lt-blue-dark);
    color: #fff;
}

.lawt-page .lawt-paywall-btn-secondary {
    background: #fff;
    color: var(--lt-blue);
    border: 1px solid var(--lt-border);
}
.lawt-page .lawt-paywall-btn-secondary:hover {
    background: var(--lt-blue-light);
    border-color: var(--lt-blue);
    color: var(--lt-blue-dark);
}


/* ── Responsive: content bar ─────────────────────────────────── */
@media (max-width: 1024px) {
    .lawt-page .lawt-bar {
        padding: 0 12px;
    }
    .lawt-page .lawt-bar-codif {
        display: none;
    }
    .lawt-page .lawt-bar-tooltip {
        min-width: 95vw;
        left: -12px;
    }
    .lawt-page .lawt-bar-tooltip-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lawt-page .lawt-bar {
        height: 44px;
        padding: 0 10px;
    }
    /* Shorten trigger text */
    .lawt-page .lawt-bar-trigger {
        font-size: 13px;
        padding: 0 12px;
        gap: 6px;
    }
    /* Hide "Περιεχόμενα νόμου" text, keep icon + arrow */
    .lawt-page .lawt-bar-trigger-text {
        display: none;
    }
    .lawt-page .lawt-bar-tooltip-links {
        grid-template-columns: 1fr;
    }
    .lawt-page .lawt-bar-changes {
        display: none;
    }
    /* Smaller progress label */
    .lawt-page .lawt-bar-progress-label {
        font-size: 11px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .lawt-page .lawt-bar {
        height: 40px;
        padding: 0 8px;
    }
    .lawt-page .lawt-bar-trigger {
        font-size: 12px;
        padding: 0 8px;
    }
    .lawt-page .lawt-bar-progress-label {
        font-size: 10px;
        padding: 0 6px;
    }
}

/* ── Print: hide bar ─────────────────────────────────────────── */
@media print {
    .lawt-page .lawt-bar {
        display: none !important;
    }
}




/* ── Mobile TOC Hamburger (hidden on desktop) ────────────────── */
.lawt-page .lawt-bar-toc-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 0 14px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    height: 100%;
    font-family: inherit;
    transition: opacity .15s;
}
.lawt-page .lawt-bar-toc-toggle:hover { opacity: .8; }

/* ── Mobile TOC Backdrop ─────────────────────────────────────── */
.lawt-page .lawt-toc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 499;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .25s ease;
}
.lawt-page .lawt-toc-backdrop.open {
    display: block;
    opacity: 1;
}

/* ── Mobile TOC Drawer close button ──────────────────────────── */
.lawt-page .lawt-toc-drawer-close {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #f0f2f4;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: var(--lt-text-muted);
    cursor: pointer;
    z-index: 2;
    transition: background .12s, color .12s;
}
.lawt-page .lawt-toc-drawer-close:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Hamburger visible */
    .lawt-page .lawt-bar-toc-toggle {
        display: flex;
    }

    /* Sidebar becomes off-screen drawer */
    .lawt-page .lawt-law-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 500;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4,0,.2,1);
        border-right: 1px solid var(--lt-border);
        box-shadow: none;
    }
    .lawt-page .lawt-law-sidebar.drawer-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
    }

    /* Show close button inside drawer */
    .lawt-page .lawt-law-sidebar.drawer-open .lawt-toc-drawer-close {
        display: flex;
    }

    .lawt-page .lawt-law-content {
        --content-pad: 16px;
        padding: 0 var(--content-pad) 60px;
    }
    .lawt-page .lawt-para-section {
        padding: 12px 0 0;
    }
    .lawt-page .lawt-para-text {
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .lawt-page .lawt-law-sidebar {
        width: 85vw;
        max-width: 320px;
    }

    .lawt-page .lawt-para-text {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .lawt-page .lawt-law-h1 {
        font-size: 18px;
    }
    .lawt-page .lawt-law-subtitle {
        font-size: 14px;
    }
    .lawt-page .lawt-law-header-block {
        padding: 20px 16px 18px;
        font-size: 14px;
    }

        .lawt-page .lawt-para-text {
        padding-right: 20px;
    }

}


/* ── Mobile codification banner ─────────────────────────────── */
/* Hidden on desktop (bar-codif is visible there) */
.lawt-page .lawt-codif-mobile-banner {
    display: none;
}

@media (max-width: 1024px) {
    .lawt-page .lawt-codif-mobile-banner {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 16px;
        background: var(--lt-blue-light, #eef4fb);
        border-bottom: 1px solid var(--lt-border, #dce3ea);
        font-size: 13px;
        color: var(--lt-text, #333);
    }

    .lawt-page .lawt-codif-mobile-banner .fa {
        color: var(--lt-blue, #2e6da4);
        font-size: 13px;
        flex-shrink: 0;
    }

    .lawt-page .lawt-codif-mobile-text {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lawt-page .lawt-codif-mobile-btn {
        margin-left: auto;
        flex-shrink: 0;
        padding: 3px 12px;
        background: var(--lt-blue, #2e6da4);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        border-radius: 3px;
        text-decoration: none;
        white-space: nowrap;
        transition: background .15s;
    }

    .lawt-page .lawt-codif-mobile-btn:hover {
        background: var(--lt-blue-dark, #1a4d7a);
        color: #fff;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .lawt-page .lawt-codif-mobile-banner {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .lawt-page .lawt-codif-mobile-btn {
        padding: 3px 10px;
        font-size: 11px;
    }
}


/* ── Print ───────────────────────────────────────────────────── */
@media print {
    .lawt-page .lawt-law-sidebar,
    .lawt-page .lawt-back-to-top,
    .lawt-page .lawt-toc-actions,
    .lawt-page .lawt-bar-toc-toggle,
    .lawt-page .lawt-toc-backdrop,
    .lawt-page .lawt-toc-drawer-close {
        display: none !important;
    }
    .lawt-page .lawt-law-body {
        display: block;
    }
    .lawt-page .lawt-law-content {
        --content-pad: 0px;
        padding: 0;
    }
    .lawt-page .lawt-art-card {
        break-inside: avoid-page;
        page-break-inside: avoid;
    }
    .lawt-page .lawt-para-section:nth-child(even) {
        background: none;
    }
    .lawt-page .lawt-art-chapter-header {
        background: none;
        border-top: 2px solid #333;
        border-bottom: 1px solid #333;
        color: #333;
    }
    .lawt-page .lawt-law-header-block {
        border-bottom: 2px solid #333;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   PHASE 3C — Lazy Loading: Skeleton + Sentinel
   Append this to lawt.css (after Phase 3B CSS)
   ═══════════════════════════════════════════════════════════════════ */


/* ── Articles Toolbar (open-all / stop / counter) ─────────────── */
/*    Sits inside .lawt-law-content, sticky below the blue bar.    */

.lawt-page .lawt-articles-toolbar {
    position: sticky;
    top: calc(var(--site-header-h, 0px) + var(--lt-bar-h, 50px));
    z-index: 100;
    background: #f4f7fa;
    border-bottom: 1px solid var(--lt-border);
    border-top: 1px solid var(--lt-border);
    margin: 0 calc(-1 * var(--content-pad, 24px));   /* bleed edge-to-edge */
}

/* Row with buttons + counter */
.lawt-page .lawt-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px var(--content-pad, 24px);
}

/* Shared button base — scoped inside articles-toolbar to avoid conflicts */
.lawt-page .lawt-articles-toolbar .lawt-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s, opacity .15s;
    white-space: nowrap;
}

/* "Ανοίξτε τα όλα" — primary action */
.lawt-page .lawt-articles-toolbar .lawt-toolbar-open {
    background: var(--lt-blue, #0077a8);
    color: #fff;
}
.lawt-page .lawt-articles-toolbar .lawt-toolbar-open:hover {
    background: var(--lt-blue-dark, #005f88);
}

/* "Διακοπή" — cancel action */
.lawt-page .lawt-articles-toolbar .lawt-toolbar-stop {
    background: #fff;
    color: #c0392b;
    border: 1.5px solid #e0b0ac;
}
.lawt-page .lawt-articles-toolbar .lawt-toolbar-stop:hover {
    background: #fdf0ef;
    border-color: #c0392b;
}

/* Counter text */
.lawt-page .lawt-toolbar-count {
    font-size: 12px;
    color: var(--lt-text-muted, #4a5a64);
    margin-left: 4px;
}

/* Progress bar — shown only during loading */
.lawt-page .lawt-toolbar-progress-bar {
    height: 3px;
    background: #dce3e8;
}
.lawt-page .lawt-toolbar-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--lt-blue, #0077a8);
    transition: width .3s ease;
}

/* Mobile: slightly smaller buttons */
@media (max-width: 1024px) {
    .lawt-page .lawt-toolbar-row {
        padding: 6px 16px;
    }
    .lawt-page .lawt-articles-toolbar .lawt-toolbar-btn {
        font-size: 12px;
        padding: 4px 11px;
    }
    .lawt-page .lawt-toolbar-count {
        font-size: 11px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   PHASE 3D — Article & Paragraph Tools
   Append this to lawt.css (after Phase 3C CSS)
   ═══════════════════════════════════════════════════════════════════ */


/* ── Article Tools Toggle ────────────────────────────────────── */
.lawt-page .lawt-art-tools-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 24px 10px;
    cursor: pointer;
    user-select: none;
}

.lawt-page .lawt-art-tools-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--lt-text-muted);
    background: #f5f7f9;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    padding: 4px 11px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.lawt-page .lawt-art-tools-btn:hover {
    background: var(--lt-blue-light);
    border-color: var(--lt-blue);
    color: var(--lt-blue-dark);
}
.lawt-page .lawt-art-tools-btn .fa {
    font-size: 11px;
    transition: transform .2s;
}
.lawt-page .lawt-art-tools-btn.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* hint counts inside toggle */
.lawt-page .lawt-art-tools-btn .lawt-hint {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--lt-text-muted);
    opacity: .75;
    margin-left: 4px;
}
.lawt-page .lawt-art-tools-btn .lawt-hint .lawt-nos {
    background: var(--lt-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 2px;
    vertical-align: middle;
}
.lawt-page .lawt-art-tools-btn:hover .lawt-hint { opacity: 1; }
.lawt-page .lawt-art-tools-btn:hover .lawt-hint .lawt-nos { background: var(--lt-blue-dark); }


/* ── Article Tools Panel (hidden by default) ─────────────────── */
.lawt-page .lawt-art-tools-panel {
    display: none;
    align-items: center;
    gap: 0;
    padding: 0 24px 10px;
    border-bottom: 1px solid var(--lt-border);
    flex-wrap: wrap;
    animation: lawtFadeSlideDown .2s ease;
}
.lawt-page .lawt-art-tools-panel.open {
    display: flex;
}

@keyframes lawtFadeSlideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Print buttons group */
.lawt-page .lawt-art-print-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 14px;
    flex-shrink: 0;
}
.lawt-page .lawt-art-print-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    color: var(--lt-text-muted);
    font-size: 14px;
    transition: all .12s;
    background: #fafbfc;
}
.lawt-page .lawt-art-print-btn:hover {
    background: var(--lt-blue-light);
    border-color: var(--lt-blue);
    color: var(--lt-blue);
    text-decoration: none;
}

/* Links group */
.lawt-page .lawt-art-links-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    flex: 1;
}
.lawt-page .lawt-art-link-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--lt-blue);
    border-right: 1px solid var(--lt-border);
    white-space: nowrap;
    transition: color .12s;
    cursor: pointer;
}
.lawt-page .lawt-art-link-item:last-child { border-right: none; }
.lawt-page .lawt-art-link-item:hover {
    color: var(--lt-blue-dark);
    text-decoration: underline;
}
.lawt-page .lawt-art-link-item:first-child { padding-left: 0; }
.lawt-page .lawt-art-link-item .lawt-nos {
    background: var(--lt-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9px;
    min-width: 20px;
    text-align: center;
}


/* ── Comment Boxes ───────────────────────────────────────────── */
.lawt-page .lawt-comment-box {
    background: #f8fafc;
    border-left: 3px solid var(--lt-blue-light);
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--lt-text-muted);
    display: none;
}
.lawt-page .lawt-comment-box.open {
    display: block;
    animation: lawtFadeSlideDown .2s ease;
}
.lawt-page .lawt-comment-box h5 {
    font-size: 13px;
    color: var(--lt-blue);
    margin-bottom: 6px;
    font-weight: 600;
}
.lawt-page .lawt-comment-box p {
    margin: 0;
    font-style: italic;
}


/* ── Paragraph Comment Box ───────────────────────────────────── */
.lawt-page .lawt-para-comment-box {
    display: none;
    background: #f8fafc;
    border-left: 3px solid var(--lt-teal);
    border-radius: 0 4px 4px 0;
    padding: 10px 14px 12px;
    margin: 0 0 0 8px;             /* small indent — border-left provides visual separation */
    font-size: 14px;
    line-height: 1.7;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-para-comment-box.open {
    display: block;
    animation: lawtFadeSlideDown .2s ease;
}
.lawt-page .lawt-para-comment-box h5 {
    font-size: 12px;
    color: var(--lt-teal);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.lawt-page .lawt-para-comment-current {
    font-style: italic;
}

/* History toggle button */
.lawt-page .lawt-para-comment-history {
    margin-top: 8px;
    border-top: 1px dashed #d0dde5;
    padding-top: 6px;
}
.lawt-page .lawt-para-comment-history-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lt-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color .12s;
}
.lawt-page .lawt-para-comment-history-toggle:hover {
    color: var(--lt-blue);
}
.lawt-page .lawt-para-comment-history-toggle.open {
    color: var(--lt-blue);
}
.lawt-page .lawt-para-comment-history-toggle .fa {
    font-size: 11px;
}

/* Individual revision comment */
.lawt-page .lawt-para-comment-rev {
    padding: 6px 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 13px;
}
.lawt-page .lawt-para-comment-rev:last-child {
    border-bottom: none;
}
.lawt-page .lawt-para-comment-rev-meta {
    display: block;
    font-size: 11px;
    color: #9aabb5;
    margin-bottom: 3px;
    font-style: normal;
}


/* ── PATCH: Update paragraph section to support hover tools ──── */
/*
   In Phase 3A CSS, FIND:
       .lawt-page .lawt-para-section { ... }

   Make sure border-bottom is present:
*/
.lawt-page .lawt-para-section {
    padding: 16px 0 0;
    position: relative;
}
.lawt-page .lawt-para-section:last-of-type {
    border-bottom: none;
}


/* ── Paragraph Tools (always visible) ────────────────────────── */

.lawt-page .lawt-para-tools {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 5px var(--content-pad, 24px) 8px;
    padding-left: 12px;
    flex-wrap: wrap;
    opacity: 1;
    max-height: none;
    overflow: visible;
    /* Visual separation: blue left accent + gray shade */
    background: #f2f5f7;
    border-left: 2px solid #85B7EB;
    box-shadow: inset 3px 0 6px -3px rgba(0,0,0,0.08);
    margin: 6px calc(-1 * var(--content-pad, 24px)) 0;   /* bleed edge-to-edge */
    border-radius: 0;
}
/* Hover trigger removed — tools are always visible */

/* ΜΕΤΑ: */
.lawt-page .lawt-para-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 11px;           /* μικρότερο — ξεχωρίζει από paragraph text */
    color: #7a8d98;            /* πιο muted από var(--lt-text-muted) */
    border-right: 1px solid var(--lt-border);
    white-space: nowrap;
    transition: color .12s;
    cursor: pointer;
}
.lawt-page .lawt-para-tool-link:first-child { padding-left: 0; }

.lawt-page .lawt-para-tool-link:hover {
    color: var(--lt-blue);
    text-decoration: none;
}
.lawt-page .lawt-para-tool-link .lawt-nos {
    background: var(--lt-teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9px;
    min-width: 20px;
    text-align: center;
    transition: background .12s;
}
.lawt-page .lawt-para-tool-link:hover .lawt-nos {
    background: var(--lt-blue);
}

/* ── Paragraph Tools: smaller on mobile ──────────────────────── */
@media (max-width: 1024px) {
    /* Slightly smaller font on mobile */
    .lawt-page .lawt-para-tool-link {
        font-size: 12px;
        padding: 3px 8px;
    }
    .lawt-page .lawt-para-tool-link .lawt-nos {
        font-size: 10px;
        padding: 1px 5px;
    }
}



/* ── Article Tools: compact on mobile ───────────────────────── */
@media (max-width: 1024px) {
    .lawt-page .lawt-art-tools-toggle {
        padding: 4px 16px 8px;
    }
    .lawt-page .lawt-art-tools-panel {
        padding: 0 16px 8px;
        gap: 6px;
    }
    .lawt-page .lawt-art-tools-panel .lawt-art-print-group {
        margin-right: 8px;
    }
    .lawt-page .lawt-art-link-item {
        font-size: 12px;
        padding: 3px 7px;
    }
    .lawt-page .lawt-art-link-item .lawt-nos {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 640px) {
    .lawt-page .lawt-art-tools-btn {
        font-size: 11.5px;
        padding: 4px 9px;
    }
    .lawt-page .lawt-art-tools-btn .lawt-hint {
        display: none;
    }
    /* Stack print buttons + links vertically */
    .lawt-page .lawt-art-tools-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    .lawt-page .lawt-art-tools-panel .lawt-art-print-group {
        margin-bottom: 4px;
    }
    .lawt-page .lawt-art-links-group {
        flex-wrap: wrap;
    }
    .lawt-page .lawt-art-link-item {
        border-right: none;
        border-bottom: 1px solid #edf0f2;
        padding: 5px 0;
    }
    .lawt-page .lawt-art-link-item:last-child {
        border-bottom: none;
    }
    .lawt-page .lawt-art-link-item:first-child {
        padding-left: 0;
    }
}


/* ── Paragraph More Menu ─────────────────────────────────────── */
.lawt-page .lawt-para-more-wrap {
    position: relative;
    display: inline-flex;
}

.lawt-page .lawt-para-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 13px;
    color: var(--lt-text-muted);
    cursor: pointer;
    transition: color .12s;
    background: none;
    border: none;
    white-space: nowrap;
    font-family: inherit;
}
.lawt-page .lawt-para-more-btn:hover {
    color: var(--lt-blue);
}

.lawt-page .lawt-para-more-menu {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    min-width: 220px;
    z-index: 9000;
    padding: 4px 0 6px;
}
.lawt-page .lawt-para-more-menu.open {
    display: block;
    animation: lawtFadeSlideDown .15s ease;
}

.lawt-page .lawt-para-more-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--lt-text);
    transition: background .1s;
    cursor: pointer;
}
.lawt-page .lawt-para-more-menu a:hover {
    background: var(--lt-blue-light);
    color: var(--lt-blue-dark);
    text-decoration: none;
}
.lawt-page .lawt-para-more-menu a .fa {
    width: 16px;
    text-align: center;
    color: var(--lt-blue);
    font-size: 13px;
}


/* ── Add teal variable if not present ────────────────────────── */
/* PATCH: Add this to the .lawt-page {} variables block:
   --lt-teal: #3aa8a0;
*/



/* ═══════════════════════════════════════════════════════════════════
   Phase 3E — INFO PANEL
   Scoped under .lawt-page, using --lt-* variables.
   Append this BEFORE the @media print block in lawt.css.
   ═══════════════════════════════════════════════════════════════════ */


/* ── Panel variable ──────────────────────────────────────────── */
/* Add --lt-panel-w: 470px; to the .lawt-page {} variables block */


/* ── Backdrop ────────────────────────────────────────────────── */
.lawt-page .lawt-ip-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.22);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.lawt-page .lawt-ip-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}


/* ── Panel container ─────────────────────────────────────────── */
.lawt-page .lawt-ip {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 470px;
    max-width: 92vw;
    background: #fff;
    z-index:10001;
    box-shadow: -6px 0 32px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.lawt-page .lawt-ip.open {
    transform: translateX(0);
}
.lawt-page .lawt-ip.panel-wide {
    width: 580px;
}

.lawt-page .lawt-ip.panel-extra-wide {
    width: 75vw;
    max-width: 75vw;
}

/* ── Header ──────────────────────────────────────────────────── */
.lawt-page .lawt-ip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--lt-blue-dark);
    color: #fff;
    flex-shrink: 0;
}
.lawt-page .lawt-ip-header-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.lawt-page .lawt-ip-header-text {
    flex: 1; min-width: 0;
}
.lawt-page .lawt-ip-header-title {
    font-size: 15px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lawt-page .lawt-ip-header-sub {
    font-size: 12px;
    opacity: .7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lawt-page .lawt-ip-close {
    width: 32px; height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}
.lawt-page .lawt-ip-close:hover {
    background: rgba(255,255,255,.25);
}


/* ── Context bar ─────────────────────────────────────────────── */
.lawt-page .lawt-ip-context {
    padding: 10px 18px;
    background: var(--lt-blue-light);
    border-bottom: 1px solid var(--lt-border);
    font-size: 13px;
    color: var(--lt-blue-dark);
    font-weight: 600;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lawt-page .lawt-ip-context .fa {
    font-size: 13px; opacity: .6;
}
.lawt-page .lawt-ip-context-label {
    font-weight: 400;
    color: var(--lt-text-muted);
    margin-right: 4px;
}


/* ── Summary chips (docs panel) ──────────────────────────────── */
.lawt-page .lawt-ip-summary {
    padding: 12px 18px;
    background: #fafbfc;
    border-bottom: 1px solid var(--lt-border);
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.lawt-page .lawt-ip-summary.visible {
    display: flex;
}
.lawt-page .lawt-ip-summary-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--lt-border);
    color: var(--lt-text-muted);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.lawt-page .lawt-ip-summary-chip:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue-dark);
    background: var(--lt-blue-light);
}
.lawt-page .lawt-ip-summary-chip .chip-count {
    background: var(--lt-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}


/* ── Search within panel ─────────────────────────────────────── */
.lawt-page .lawt-ip-search-wrap {
    padding: 10px 18px;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
    background: #fff;
}
.lawt-page .lawt-ip-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    font-size: 13.5px;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aaab4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") 11px center no-repeat;
    font-family: inherit;
    color: var(--lt-text);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}
.lawt-page .lawt-ip-search-input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
    background-color: #fff;
}
.lawt-page .lawt-ip-search-input::placeholder { color: #aab8c2; }
.lawt-page .lawt-ip-search-count {
    font-size: 11.5px;
    color: var(--lt-text-muted);
    margin-top: 5px;
    display: none;
}
.lawt-page .lawt-ip-search-count.visible { display: block; }



.lawt-page .lawt-ip.panel-inlinesearch { width: 50vw; }
@media (max-width: 900px) {
    .lawt-page .lawt-ip.panel-inlinesearch { width: 100vw; }
}






/* ── Scrollable body ─────────────────────────────────────────── */
.lawt-page .lawt-ip-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}
.lawt-page .lawt-ip-body::-webkit-scrollbar       { width: 7px; }
.lawt-page .lawt-ip-body::-webkit-scrollbar-track { background: #f0f2f4; }
.lawt-page .lawt-ip-body::-webkit-scrollbar-thumb { background: #b0bec5; border-radius: 4px; }
.lawt-page .lawt-ip-body::-webkit-scrollbar-thumb:hover { background: #8a9aa4; }
.lawt-page .lawt-ip-body { scrollbar-width: thin; scrollbar-color: #b0bec5 #f0f2f4; }


/* ── Loading skeleton ────────────────────────────────────────── */
.lawt-page .lawt-ip-loading {
    padding: 20px 18px;
}
.lawt-page .lawt-ip-skel-group { margin-bottom: 20px; }
.lawt-page .lawt-ip-skel-bar {
    height: 38px;
    background: #edf0f3;
    border-radius: 6px;
    margin-bottom: 8px;
    animation: lawtPulse 1.4s ease-in-out infinite;
}
.lawt-page .lawt-ip-skel-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f4;
    animation: lawtPulse 1.4s ease-in-out infinite;
}
.lawt-page .lawt-ip-skel-line {
    height: 12px;
    background: #e8ecef;
    border-radius: 4px;
    margin-bottom: 6px;
}
.lawt-page .lawt-ip-skel-line.w40 { width: 40%; }
.lawt-page .lawt-ip-skel-line.w85 { width: 85%; }
.lawt-page .lawt-ip-skel-line.w65 { width: 65%; }
.lawt-page .lawt-ip-skel-line.w50 { width: 50%; }

@keyframes lawtPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .5; }
}


/* ── Empty state ─────────────────────────────────────────────── */
.lawt-page .lawt-ip-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-empty .fa {
    font-size: 36px; opacity: .2;
    margin-bottom: 12px; display: block;
}
.lawt-page .lawt-ip-empty p { font-size: 14px; }


/* ── Category group (docs panel) ─────────────────────────────── */
.lawt-page .lawt-ip-category {
    border-bottom: 1px solid var(--lt-border);
}
.lawt-page .lawt-ip-category:last-child { border-bottom: none; }

.lawt-page .lawt-ip-cat-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    background: #f7f9fb;
    cursor: pointer;
    user-select: none;
    transition: background .12s;
    border-bottom: 1px solid var(--lt-border);
}
.lawt-page .lawt-ip-cat-header:hover { background: var(--lt-blue-light); }
.lawt-page .lawt-ip-cat-header .cat-icon {
    width: 26px; height: 26px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
/* Color-coded category icons */
.lawt-page .cat-icon.cat-egkyklioi  { background: #e8f4e8; color: #2d7d2d; }
.lawt-page .cat-icon.cat-ded        { background: #fce8e8; color: #a64626; }
.lawt-page .cat-icon.cat-dikastika  { background: #e8ecf4; color: #3a5ba0; }
.lawt-page .cat-icon.cat-arthra     { background: #f4ece8; color: #8a6b3a; }
.lawt-page .cat-icon.cat-eggrafa    { background: #e8f0f4; color: #4a7a8a; }

.lawt-page .lawt-ip-cat-header .cat-title { flex: 1; }
.lawt-page .lawt-ip-cat-header .cat-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--lt-blue);
    color: #fff;
    min-width: 22px;
    text-align: center;
}
.lawt-page .lawt-ip-cat-header .cat-arrow {
    font-size: 10px; opacity: .4;
    transition: transform .2s;
}
.lawt-page .lawt-ip-cat-header.collapsed .cat-arrow {
    transform: rotate(-90deg);
}

.lawt-page .lawt-ip-cat-items {
    overflow: hidden;
    transition: max-height .3s ease;
    max-height: 20000px;
}
.lawt-page .lawt-ip-cat-header.collapsed + .lawt-ip-cat-items {
    max-height: 0;
}


/* ── Document item ───────────────────────────────────────────── */
.lawt-page .lawt-ip-doc-item {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f2f4;
    transition: background .12s;
    cursor: pointer;
    text-decoration: none;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-doc-item:last-child { border-bottom: none; }
.lawt-page .lawt-ip-doc-item:hover {
    background: #f7f9fb;
    text-decoration: none;
}
.lawt-page .lawt-ip-doc-item.filter-hidden { display: none; }

.lawt-page .lawt-ip-doc-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-blue);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lawt-page .lawt-ip-doc-code .fa { font-size: 11px; opacity: .5; }
.lawt-page .lawt-ip-doc-title {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--lt-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lawt-page .lawt-ip-doc-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--lt-text-muted);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}
.lawt-page .lawt-ip-doc-date {
    font-size: 11.5px;
    color: #8899a6;
    margin-top: 4px;
    letter-spacing: .02em;
}
.lawt-page .lawt-ip-doc-date .fa {
    font-size: 10px;
    opacity: .6;
    margin-right: 2px;
}


/* ── News item ───────────────────────────────────────────────── */
.lawt-page .lawt-ip-news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f2f4;
    transition: background .12s;
    cursor: pointer;
    text-decoration: none;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-news-item:last-child { border-bottom: none; }
.lawt-page .lawt-ip-news-item:hover {
    background: #f7f9fb;
    text-decoration: none;
}
.lawt-page .lawt-ip-news-item .news-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--lt-yellow-bg);
    color: var(--lt-yellow);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}
.lawt-page .lawt-ip-news-item .news-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.lawt-page .lawt-ip-news-item .news-title {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--lt-text);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lawt-page .lawt-ip-news-item .news-date {
    font-size: 11.5px;
    color: #8899a6;
    margin-top: 3px;
    letter-spacing: .02em;
}
.lawt-page .lawt-ip-news-item .news-date .fa {
    font-size: 10px;
    opacity: .6;
    margin-right: 2px;
}
.lawt-page .lawt-ip-news-item:hover .news-title {
    color: var(--lt-blue-dark);
}
.lawt-page .lawt-ip-news-item .news-ext {
    font-size: 11px; opacity: .4;
    flex-shrink: 0; align-self: center;
}
.lawt-page .lawt-ip-news-item:hover .news-ext { opacity: .7; }
.lawt-page .lawt-ip-news-item.filter-hidden { display: none; }


/* ── Library tree ────────────────────────────────────────────── */
.lawt-page .lawt-ip-lib-tree {
    padding: 8px 12px 16px;
}
.lawt-page .lawt-ip-lib-node { position: relative; }
.lawt-page .lawt-ip-lib-node-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .1s;
    user-select: none;
}
.lawt-page .lawt-ip-lib-node-row:hover { background: var(--lt-blue-light); }

/* Indent levels */
.lawt-page .lawt-ip-lib-node[data-level="1"] > .lawt-ip-lib-node-row { padding-left: 24px; }
.lawt-page .lawt-ip-lib-node[data-level="2"] > .lawt-ip-lib-node-row { padding-left: 42px; }
.lawt-page .lawt-ip-lib-node[data-level="3"] > .lawt-ip-lib-node-row { padding-left: 60px; }
.lawt-page .lawt-ip-lib-node[data-level="4"] > .lawt-ip-lib-node-row { padding-left: 78px; }

.lawt-page .lawt-ip-lib-expand {
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: var(--lt-text-muted);
    flex-shrink: 0;
    transition: transform .2s;
    border-radius: 3px;
}
.lawt-page .lawt-ip-lib-expand:hover { background: rgba(0,0,0,.06); }
.lawt-page .lawt-ip-lib-expand.collapsed { transform: rotate(-90deg); }
.lawt-page .lawt-ip-lib-expand.leaf { visibility: hidden; }

.lawt-page .lawt-ip-lib-check {
    width: 16px; height: 16px;
    border: 2px solid #b0bec5;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    cursor: pointer;
}
.lawt-page .lawt-ip-lib-check.checked {
    background: var(--lt-blue);
    border-color: var(--lt-blue);
}
.lawt-page .lawt-ip-lib-check.checked::after {
    content: '\2713';
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.lawt-page .lawt-ip-lib-folder-icon {
    font-size: 13px;
    color: var(--lt-yellow);
    flex-shrink: 0;
    width: 16px; text-align: center;
}
.lawt-page .lawt-ip-lib-node-label {
    font-size: 13.5px;
    color: var(--lt-text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lawt-page .lawt-ip-lib-node-row:hover .lawt-ip-lib-node-label { color: var(--lt-blue-dark); }

.lawt-page .lawt-ip-lib-children {
    overflow: hidden;
    transition: max-height .25s ease;
    max-height: 2000px;
}
.lawt-page .lawt-ip-lib-children.collapsed { max-height: 0; }
.lawt-page .lawt-ip-lib-node.filter-hidden { display: none; }


/* ── Library: new category form ──────────────────────────────── */
.lawt-page .lawt-ip-lib-new-cat {
    display: none;
    padding: 10px 18px;
    border-top: 1px solid var(--lt-border);
    background: var(--lt-blue-light);
    flex-shrink: 0;
}
.lawt-page .lawt-ip-lib-new-cat.visible { display: block; }
.lawt-page .lawt-ip-lib-new-cat-label {
    font-size: 12px; font-weight: 600; color: var(--lt-blue-dark);
    margin-bottom: 6px;
}
.lawt-page .lawt-ip-lib-new-cat-row {
    display: flex; gap: 6px;
}
.lawt-page .lawt-ip-lib-new-cat-input {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.lawt-page .lawt-ip-lib-new-cat-input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-ip-lib-new-cat-add {
    padding: 7px 14px;
    background: var(--lt-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.lawt-page .lawt-ip-lib-new-cat-add:hover { background: var(--lt-blue-dark); }


/* ── Footer ──────────────────────────────────────────────────── */
.lawt-page .lawt-ip-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--lt-border);
    background: #fafbfc;
    flex-shrink: 0;
    display: none;
}
.lawt-page .lawt-ip-footer.visible { display: block; }
.lawt-page .lawt-ip-footer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lawt-page .lawt-ip-footer-btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    border: none;
}
.lawt-page .lawt-ip-footer-btn.primary {
    background: var(--lt-blue);
    color: #fff;
}
.lawt-page .lawt-ip-footer-btn.primary:hover { background: var(--lt-blue-dark); }
.lawt-page .lawt-ip-footer-btn.secondary {
    background: #fff;
    color: var(--lt-text-muted);
    border: 1px solid var(--lt-border);
}
.lawt-page .lawt-ip-footer-btn.secondary:hover {
    border-color: var(--lt-blue);
    color: var(--lt-blue);
}
.lawt-page .lawt-ip-footer-spacer { flex: 1; }


/* ── Tags & Notes panel ──────────────────────────────────────── */
.lawt-page .lawt-ip-tagnote-wrap { padding: 0; }

.lawt-page .lawt-ip-tags-section {
    padding: 14px 18px;
    border-bottom: 1px solid var(--lt-border);
}
.lawt-page .lawt-ip-tags-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lawt-page .lawt-ip-tags-section-title .fa { font-size: 13px; color: var(--lt-blue); }

.lawt-page .lawt-ip-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.lawt-page .lawt-ip-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--lt-blue-light);
    border: 1px solid #c8dfe8;
    border-radius: 20px;
    font-size: 13px;
    color: var(--lt-blue-dark);
    font-weight: 500;
    transition: all .15s;
}
.lawt-page .lawt-ip-tag-chip:hover { background: #d0eaf3; border-color: var(--lt-blue); }
.lawt-page .lawt-ip-tag-chip .tag-remove {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--lt-text-muted);
    cursor: pointer;
    transition: all .15s;
    border: none; font-family: inherit;
    line-height: 1;
}
.lawt-page .lawt-ip-tag-chip .tag-remove:hover { background: #e74c3c; color: #fff; }

.lawt-page .lawt-ip-tag-add-row { display: flex; gap: 6px; }
.lawt-page .lawt-ip-tag-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13.5px;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    font-family: inherit;
    color: var(--lt-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.lawt-page .lawt-ip-tag-input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-ip-tag-input::placeholder { color: #aab8c2; }
.lawt-page .lawt-ip-tag-add-btn {
    padding: 8px 14px;
    background: var(--lt-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.lawt-page .lawt-ip-tag-add-btn:hover { background: var(--lt-blue-dark); }
.lawt-page .lawt-ip-tags-empty {
    font-size: 13px;
    color: var(--lt-text-muted);
    font-style: italic;
    margin-bottom: 10px;
}

/* Notes section */
.lawt-page .lawt-ip-notes-section { padding: 14px 18px; }
.lawt-page .lawt-ip-note-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    font-family: inherit;
    color: var(--lt-text);
    resize: vertical;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.lawt-page .lawt-ip-note-textarea:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-ip-note-textarea::placeholder { color: #aab8c2; }
.lawt-page .lawt-ip-note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-note-save-btn {
    padding: 7px 16px;
    background: var(--lt-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.lawt-page .lawt-ip-note-save-btn:hover { background: var(--lt-blue-dark); }

.lawt-page .lawt-ip-saved-notes {
    margin-top: 14px;
    border-top: 1px solid var(--lt-border);
    padding-top: 12px;
}
.lawt-page .lawt-ip-saved-note {
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 3px solid var(--lt-blue-light);
    border-radius: 0 5px 5px 0;
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-saved-note-meta {
    font-size: 11.5px;
    color: var(--lt-text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lawt-page .lawt-ip-saved-note-meta .note-action {
    color: var(--lt-blue);
    cursor: pointer;
    font-weight: 600;
}
.lawt-page .lawt-ip-saved-note-meta .note-action:hover { text-decoration: underline; }


/* ── Print select panel ──────────────────────────────────────── */
.lawt-page .lawt-ip-print-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f7f9fb;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
    font-size: 13px;
}
.lawt-page .lawt-ip-print-select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lt-blue);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.lawt-page .lawt-ip-print-select-all:hover {
    background: var(--lt-blue-light);
    border-color: var(--lt-blue);
}
.lawt-page .lawt-ip-print-count {
    font-size: 12.5px;
    color: var(--lt-text-muted);
    margin-left: auto;
}
.lawt-page .lawt-ip-print-count strong { color: var(--lt-blue); }

.lawt-page .lawt-ip-print-list { padding: 0; }
.lawt-page .lawt-ip-print-chapter {
    padding: 9px 18px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b5e4f;
    background: var(--lt-warm-gray);
    border-top: 1px solid var(--lt-warm-border);
    border-bottom: 1px solid var(--lt-warm-border);
}
.lawt-page .lawt-ip-print-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f2f4;
    cursor: pointer;
    transition: background .1s;
    user-select: none;
}
.lawt-page .lawt-ip-print-item:hover { background: #f7f9fb; }
.lawt-page .lawt-ip-print-item.checked { background: var(--lt-blue-light); }
.lawt-page .lawt-ip-print-item .print-check {
    width: 18px; height: 18px;
    border: 2px solid #b0bec5;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    margin-top: 1px;
}
.lawt-page .lawt-ip-print-item.checked .print-check {
    background: var(--lt-blue);
    border-color: var(--lt-blue);
}
.lawt-page .lawt-ip-print-item.checked .print-check::after {
    content: '\2713';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.lawt-page .lawt-ip-print-item .print-label {
    font-size: 14px;
    line-height: 1.45;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-print-item .print-label .print-art-num {
    font-weight: 700;
    color: var(--lt-blue);
    margin-right: 4px;
}
.lawt-page .lawt-ip-print-item.filter-hidden { display: none; }


/* ── Revisions panel (wide) ──────────────────────────────────── */
.lawt-page .lawt-ip.panel-revisions {
    width: 75vw;
    max-width: 75vw;
}

.lawt-page .lawt-ip-rev-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f7f9fb;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.lawt-page .lawt-ip-rev-control-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lawt-page .lawt-ip-rev-control-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-rev-control-label.label-left  { color: #9a4e2e; }
.lawt-page .lawt-ip-rev-control-label.label-right { color: #2e6e4e; }

.lawt-page .lawt-ip-rev-select {
    width: 100%;
    padding: 9px 32px 9px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    background: #fff;
    color: var(--lt-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5a64' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}
.lawt-page .lawt-ip-rev-select:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-ip-rev-select.select-left  { border-left: 3px solid #c0785a; }
.lawt-page .lawt-ip-rev-select.select-right { border-left: 3px solid #4a9a6e; }

.lawt-page .lawt-ip-rev-vs {
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-text-muted);
    padding-top: 18px;
    flex-shrink: 0;
}

/* Diff legend */
.lawt-page .lawt-ip-rev-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
    font-size: 12.5px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-rev-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lawt-page .lawt-ip-rev-legend-swatch {
    display: inline-block;
    width: 18px; height: 14px;
    border-radius: 3px;
}
.lawt-page .lawt-ip-rev-legend-swatch.swatch-added   { background: #d4edda; border: 1px solid #a3d9b1; }
.lawt-page .lawt-ip-rev-legend-swatch.swatch-removed { background: #f8d7da; border: 1px solid #e8b4b8; }

/* Dual-column diff */
.lawt-page .lawt-ip-rev-diff-wrap {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.lawt-page .lawt-ip-rev-diff-col {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-width: 0;
}
.lawt-page .lawt-ip-rev-diff-col:first-child {
    border-right: 2px solid var(--lt-border);
}
.lawt-page .lawt-ip-rev-col-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid;
}
.lawt-page .lawt-ip-rev-col-header.header-left {
    background: #fdf2ef;
    color: #9a4e2e;
    border-bottom-color: #c0785a;
}
.lawt-page .lawt-ip-rev-col-header.header-right {
    background: #eef7f1;
    color: #2e6e4e;
    border-bottom-color: #4a9a6e;
}
.lawt-page .lawt-ip-rev-col-header .rev-law-ref {
    font-weight: 400;
    opacity: .7;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.lawt-page .lawt-ip-rev-diff-text {
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.85;
    color: #222;
    text-align: justify;
}

/* Diff highlights */
.lawt-page .lawt-ip-diff-added {
    background: #d4edda;
    text-decoration: underline;
    text-decoration-color: #4a9a6e;
    text-underline-offset: 2px;
    border-radius: 2px;
    padding: 1px 2px;
}
.lawt-page .lawt-ip-diff-removed {
    background: #f8d7da;
    text-decoration: line-through;
    text-decoration-color: #a04040;
    border-radius: 2px;
    padding: 1px 2px;
    color: #6a3030;
}

/* Empty/placeholder state */
.lawt-page .lawt-ip-rev-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: var(--lt-text-muted);
    text-align: center;
    flex: 1;
}
.lawt-page .lawt-ip-rev-empty-state .fa {
    font-size: 40px; opacity: .2; margin-bottom: 14px;
}
.lawt-page .lawt-ip-rev-empty-state p { font-size: 14px; line-height: 1.6; }

/* Scrollbar for diff columns */
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar       { width: 6px; }
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar-track { background: #f4f6f8; }
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar-thumb { background: #c0c8ce; border-radius: 4px; }
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar-thumb:hover { background: #9aaab4; }

/* When revisions panel is active, body becomes flex */
.lawt-page .lawt-ip.panel-revisions .lawt-ip-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lawt-page .lawt-ip {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .lawt-page .lawt-ip.panel-revisions {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .lawt-page .lawt-ip-rev-diff-wrap {
        flex-direction: column;
    }
    .lawt-page .lawt-ip-rev-diff-col:first-child {
        border-right: none;
        border-bottom: 2px solid var(--lt-border);
    }
}




/* ══════════════════════════════════════════════════════════════
   Phase 3E-3: REVISIONS PANEL
   ══════════════════════════════════════════════════════════════ */

/* Wide panel for revisions */
.lawt-page .lawt-ip.panel-revisions {
    width: 75vw;
    max-width: 75vw;
}

/* ipBody becomes flex layout when in revisions mode */
.lawt-page .lawt-ip.panel-revisions .lawt-ip-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Controls row with comboboxes ─────────────────────────── */
.lawt-page .lawt-ip-rev-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f7f9fb;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.lawt-page .lawt-ip-rev-control-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lawt-page .lawt-ip-rev-control-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-rev-control-label.label-left  { color: #9a4e2e; }
.lawt-page .lawt-ip-rev-control-label.label-right { color: #2e6e4e; }

.lawt-page .lawt-ip-rev-select {
    width: 100%;
    padding: 9px 32px 9px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    background: #fff;
    color: var(--lt-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5a64' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.lawt-page .lawt-ip-rev-select:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-ip-rev-select.select-left  { border-left: 3px solid #c0785a; }
.lawt-page .lawt-ip-rev-select.select-right { border-left: 3px solid #4a9a6e; }

.lawt-page .lawt-ip-rev-vs {
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-text-muted);
    padding-top: 18px;
    flex-shrink: 0;
}

/* ── Diff legend ──────────────────────────────────────────── */
.lawt-page .lawt-ip-rev-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
    font-size: 12.5px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-rev-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lawt-page .lawt-ip-rev-legend-swatch {
    display: inline-block;
    width: 18px;
    height: 14px;
    border-radius: 3px;
}
.lawt-page .lawt-ip-rev-legend-swatch.swatch-added   { background: #d4edda; border: 1px solid #a3d9b1; }
.lawt-page .lawt-ip-rev-legend-swatch.swatch-removed { background: #f8d7da; border: 1px solid #e8b4b8; }

/* ── Dual-column diff container ───────────────────────────── */
.lawt-page .lawt-ip-rev-diff-wrap {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.lawt-page .lawt-ip-rev-diff-col {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-width: 0;
}
.lawt-page .lawt-ip-rev-diff-col:first-child {
    border-right: 2px solid var(--lt-border);
}

/* Column headers (sticky) */
.lawt-page .lawt-ip-rev-col-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid;
}
.lawt-page .lawt-ip-rev-col-header.header-left {
    background: #fdf2ef;
    color: #9a4e2e;
    border-bottom-color: #c0785a;
}
.lawt-page .lawt-ip-rev-col-header.header-right {
    background: #eef7f1;
    color: #2e6e4e;
    border-bottom-color: #4a9a6e;
}
.lawt-page .lawt-ip-rev-col-header .lawt-ip-rev-law-ref {
    font-weight: 400;
    opacity: .7;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* Diff text content */
.lawt-page .lawt-ip-rev-diff-text {
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.85;
    color: #222;
    text-align: justify;
}

/* Diff highlights */
.lawt-page .diff-added {
    background: #d4edda;
    text-decoration: underline;
    text-decoration-color: #4a9a6e;
    text-underline-offset: 2px;
    border-radius: 2px;
    padding: 1px 2px;
}
.lawt-page .diff-removed {
    background: #f8d7da;
    text-decoration: line-through;
    text-decoration-color: #a04040;
    border-radius: 2px;
    padding: 1px 2px;
    color: #6a3030;
}

/* Empty/no-history state */
.lawt-page .lawt-ip-rev-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: var(--lt-text-muted);
    text-align: center;
    flex: 1;
}
.lawt-page .lawt-ip-rev-empty .fa {
    font-size: 40px;
    opacity: .2;
    margin-bottom: 14px;
}
.lawt-page .lawt-ip-rev-empty p {
    font-size: 14px;
    line-height: 1.6;
}

/* Diff loading spinner */
.lawt-page .lawt-ip-rev-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex: 1;
    color: var(--lt-text-muted);
    font-size: 14px;
    gap: 8px;
}
.lawt-page .lawt-ip-rev-loading .fa {
    animation: lawtSpin 1s linear infinite;
}
@keyframes lawtSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Scrollbar styling for diff columns */
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar       { width: 6px; }
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar-track { background: #f4f6f8; }
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar-thumb { background: #c0c8ce; border-radius: 4px; }
.lawt-page .lawt-ip-rev-diff-col::-webkit-scrollbar-thumb:hover { background: #9aaab4; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .lawt-page .lawt-ip.panel-revisions {
        width: 100vw;
        max-width: 100vw;
    }
    .lawt-page .lawt-ip-rev-diff-wrap {
        flex-direction: column;
    }
    .lawt-page .lawt-ip-rev-diff-col:first-child {
        border-right: none;
        border-bottom: 2px solid var(--lt-border);
    }
}


/* ══════════════════════════════════════════════════════════════
   Phase 3E-3: TAGS & NOTES PANEL
   ══════════════════════════════════════════════════════════════ */

.lawt-page .lawt-ip-tagnote-wrap {
    padding: 0;
}





.lawt-page .lawt-ip-tag-add-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Notes section ────────────────────────────────────────── */
.lawt-page .lawt-ip-notes-section {
    padding: 14px 18px;
}
.lawt-page .lawt-ip-notes-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lawt-page .lawt-ip-notes-section-title .fa {
    font-size: 13px;
    color: var(--lt-blue);
}

.lawt-page .lawt-ip-note-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid var(--lt-border);
    border-radius: 5px;
    font-family: inherit;
    color: var(--lt-text);
    resize: vertical;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.lawt-page .lawt-ip-note-textarea:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 2px rgba(0,119,168,.12);
}
.lawt-page .lawt-ip-note-textarea::placeholder { color: #aab8c2; }

.lawt-page .lawt-ip-note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--lt-text-muted);
}
.lawt-page .lawt-ip-note-save-btn {
    padding: 7px 16px;
    background: var(--lt-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.lawt-page .lawt-ip-note-save-btn:hover { background: var(--lt-blue-dark); }
.lawt-page .lawt-ip-note-save-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Saved notes list */
.lawt-page .lawt-ip-saved-notes {
    margin-top: 14px;
    border-top: 1px solid var(--lt-border);
    padding-top: 12px;
}
.lawt-page .lawt-ip-saved-notes-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--lt-text-muted);
    margin-bottom: 10px;
}
.lawt-page .lawt-ip-saved-note {
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 3px solid var(--lt-blue-light);
    border-radius: 0 5px 5px 0;
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-saved-note-meta {
    font-size: 11.5px;
    color: var(--lt-text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lawt-page .lawt-ip-saved-note-meta .lawt-ip-note-action {
    color: var(--lt-blue);
    cursor: pointer;
    font-weight: 600;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}
.lawt-page .lawt-ip-saved-note-meta .lawt-ip-note-action:hover {
    text-decoration: underline;
}
.lawt-page .lawt-ip-saved-note-meta .lawt-ip-note-action.delete:hover {
    color: #e74c3c;
}

/* Success/error flash */
.lawt-page .lawt-ip-tagnote-flash {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    margin: 10px 18px 0;
    animation: lawtFadeSlideDown .2s ease;
}
.lawt-page .lawt-ip-tagnote-flash.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.lawt-page .lawt-ip-tagnote-flash.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Library flash messages ─────────────────────────────── */
.lawt-page .lawt-ip-lib-flash {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    margin: 10px 18px 0;
    animation: lawtFadeSlideDown .2s ease;
}
.lawt-page .lawt-ip-lib-flash.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.lawt-page .lawt-ip-lib-flash.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── All Notes panel (sidebar aggregated notes) ────────── */
.lawt-page .lawt-ip-allnotes-item {
    padding: 12px 18px;
    border-bottom: 1px solid #eef1f4;
    transition: background .15s;
}
.lawt-page .lawt-ip-allnotes-item:last-child { border-bottom: none; }
.lawt-page .lawt-ip-allnotes-item:hover {
    background: #f8f9fb;
}

.lawt-page .lawt-ip-allnotes-para {
    font-size: 11.5px;
    color: #7a8fa0;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: .01em;
}
.lawt-page .lawt-ip-allnotes-para .fa {
    font-size: 10px;
    margin-right: 2px;
    opacity: .6;
}

.lawt-page .lawt-ip-allnotes-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #2c3e50;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
}

.lawt-page .lawt-ip-allnotes-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lawt-page .lawt-ip-allnotes-action {
    font-size: 11.5px;
    color: #4a7c9b;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: color .15s;
}
.lawt-page .lawt-ip-allnotes-action:hover {
    color: #2a5f80;
    text-decoration: underline;
}
.lawt-page .lawt-ip-allnotes-action.delete:hover {
    color: #c0392b;
}
.lawt-page .lawt-ip-allnotes-action .fa {
    margin-right: 3px;
    font-size: 11px;
}




/* ══════════════════════════════════════════════════════════════
   INLINE SEARCH — Panel results + text highlights
   ══════════════════════════════════════════════════════════════ */

/* ── Initial / loading state ──────────────────────────── */
.lawt-page .lawt-ip-search-initial {
    text-align: center;
    padding: 60px 24px 40px;
    color: #7a8fa0;
}
.lawt-page .lawt-ip-search-initial .fa {
    font-size: 36px;
    color: #c8d4da;
    display: block;
    margin-bottom: 16px;
}
.lawt-page .lawt-ip-search-initial p {
    font-size: 14px;
    margin: 0 0 6px;
}
.lawt-page .lawt-ip-search-hint {
    font-size: 12.5px !important;
    color: #a0b0bc !important;
}
.lawt-page .lawt-ip-search-hint kbd {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-family: inherit;
    color: #555;
    background: #f3f5f7;
    border: 1px solid #d0d7dd;
    border-radius: 3px;
    box-shadow: 0 1px 0 #c8cdd2;
}

.lawt-page .lawt-ip-search-loading {
    text-align: center;
    padding: 50px 24px 40px;
    color: #7a8fa0;
}
.lawt-page .lawt-ip-search-loading .lawt-spinner {
    display: inline-block;
    margin-bottom: 12px;
}
.lawt-page .lawt-ip-search-loading p {
    font-size: 14px;
    margin: 0;
}

/* ── Search result items ──────────────────────────────── */
.lawt-page .lawt-ip-search-result {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid #eef1f4;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    cursor: pointer;
}
.lawt-page .lawt-ip-search-result:last-child { border-bottom: none; }
.lawt-page .lawt-ip-search-result:hover {
    background: #f0f6fb;
}
.lawt-page .lawt-ip-search-result:active {
    background: #e4eef6;
}
.lawt-page .lawt-ip-search-result.search-active {
    background: #e4eef6;
    border-left: 3px solid var(--lt-blue-dark, #0077a8);
    padding-left: 15px;
}

.lawt-page .lawt-ip-search-para-badge {
    font-size: 11px;
    font-weight: 600;
    color: #5a7a8f;
    margin-bottom: 4px;
    letter-spacing: .02em;
}
.lawt-page .lawt-ip-search-para-badge .fa {
    font-size: 10px;
    opacity: .6;
    margin-right: 2px;
}

.lawt-page .lawt-ip-search-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: #3a4f5e;
    word-break: break-word;
}

/* Keyword highlight in panel excerpt */
.lawt-page .lawt-ip-search-mark {
    background: #fff3b0;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 600;
}

/* ── Keyword highlight in actual law text ─────────────── */
mark.lawt-search-hl {
    background: #ffe066;
    color: inherit;
    padding: 1px 2px;
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 224, 102, .4);
    transition: background .3s;
}

/* Pulse animation on the paragraph when scrolled to */
.lawt-page .lawt-para-section.lawt-search-pulse {
    animation: lawtSearchPulse 2.2s ease-out;
}
@keyframes lawtSearchPulse {
    0%   { background-color: rgba(255, 224, 102, .25); }
    30%  { background-color: rgba(255, 224, 102, .15); }
    100% { background-color: transparent; }
}

/* ── Search toast notification ────────────────────────── */
.lawt-search-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Source Sans 3', sans-serif;
    z-index: 10010;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    pointer-events: none;
    max-width: 500px;
}
.lawt-search-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.lawt-search-toast .fa {
    margin-right: 6px;
    opacity: .7;
}


/* ── Jump-to-article loading toast ────────────────────── */
.lawt-jump-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1a3a4a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    z-index: 10010;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lawt-jump-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.lawt-jump-toast .lawt-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}


/* ══════════════════════════════════════════════════════════════
   ACCESS GATE OVERLAY — non-subscriber message
   ══════════════════════════════════════════════════════════════ */
.lawt-access-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10100;
    align-items: center;
    justify-content: center;
}
.lawt-access-overlay.open {
    display: flex;
}

.lawt-access-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 25, 35, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.lawt-access-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
    animation: lawtAccessIn .25s ease-out;
}
@keyframes lawtAccessIn {
    from { opacity: 0; transform: scale(.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lawt-access-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;
    transition: all .15s;
}
.lawt-access-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.lawt-access-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lawt-access-icon .fa {
    font-size: 26px;
    color: #0369a1;
}

.lawt-access-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.lawt-access-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px;
}

.lawt-access-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.lawt-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    min-width: 200px;
}
.lawt-access-btn .fa {
    font-size: 14px;
}

.lawt-access-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(3, 105, 161, .3);
}
.lawt-access-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, .4);
}

.lawt-access-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.lawt-access-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
    text-decoration: none;
}

/* Dim locked tools slightly */
.lawt-page .lawt-access-gate {
    opacity: .55;
    transition: opacity .2s;
}
.lawt-page .lawt-access-gate:hover {
    opacity: .8;
}


/* ══════════════════════════════════════════════════════════════
   Subscription Gate — Subpage access restriction
   Append to lawt.css
   ══════════════════════════════════════════════════════════════ */

.lawt-page .lawt-sub-gate {
    display: flex;
    justify-content: center;
    padding: 48px 24px 64px;
}

.lawt-page .lawt-sub-gate-card {
    max-width: 640px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: 12px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Icon ────────────────────────────────────────── */
.lawt-page .lawt-sub-gate-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--lt-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lawt-page .lawt-sub-gate-icon .fa {
    font-size: 30px;
    color: var(--lt-blue);
}

/* ── Title ───────────────────────────────────────── */
.lawt-page .lawt-sub-gate-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--lt-text);
    margin: 0 0 16px;
}

/* ── Body text ───────────────────────────────────── */
.lawt-page .lawt-sub-gate-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--lt-text-muted);
    margin-bottom: 24px;
}
.lawt-page .lawt-sub-gate-body p {
    margin: 0 0 12px;
}

/* ── Info notice ─────────────────────────────────── */
.lawt-page .lawt-sub-gate-notice {
    background: var(--lt-yellow-bg);
    border: 1px solid #f0dca8;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: #6b5900;
}
.lawt-page .lawt-sub-gate-notice .fa {
    margin-right: 6px;
    color: var(--lt-yellow);
}
.lawt-page .lawt-sub-gate-notice a {
    color: var(--lt-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* ── CTA Button ──────────────────────────────────── */
.lawt-page .lawt-sub-gate-cta {
    margin-bottom: 28px;
}
.lawt-page .lawt-sub-gate-btn-primary {
    display: inline-block;
    background: var(--lt-blue);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s;
}
.lawt-page .lawt-sub-gate-btn-primary:hover {
    background: var(--lt-blue-dark);
}
.lawt-page .lawt-sub-gate-btn-primary .fa {
    margin-right: 6px;
}
.lawt-page .lawt-sub-gate-btn-primary small {
    font-weight: 400;
    opacity: 0.85;
}

/* ── Services grid ───────────────────────────────── */
.lawt-page .lawt-sub-gate-services {
    border-top: 1px solid var(--lt-border);
    padding-top: 24px;
    margin-bottom: 20px;
}
.lawt-page .lawt-sub-gate-services-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}
.lawt-page .lawt-sub-gate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lawt-page .lawt-sub-gate-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border: 1px solid var(--lt-border);
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s;
}
.lawt-page .lawt-sub-gate-service:hover {
    border-color: var(--lt-blue);
    background: var(--lt-blue-light);
}
.lawt-page .lawt-sub-gate-service .fa {
    font-size: 20px;
    color: var(--lt-blue);
    margin-bottom: 6px;
}
.lawt-page .lawt-sub-gate-service span {
    font-size: 14px;
    font-weight: 700;
    color: var(--lt-text);
}
.lawt-page .lawt-sub-gate-service small {
    font-size: 12px;
    color: var(--lt-text-muted);
    margin-top: 2px;
}

/* ── Contact footer ──────────────────────────────── */
.lawt-page .lawt-sub-gate-contact {
    font-size: 13px;
    color: var(--lt-text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--lt-border);
}
.lawt-page .lawt-sub-gate-contact .fa {
    margin-right: 4px;
    color: var(--lt-blue);
}
.lawt-page .lawt-sub-gate-contact span {
    font-weight: 600;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
    .lawt-page .lawt-sub-gate { padding: 24px 12px 40px; }
    .lawt-page .lawt-sub-gate-card { padding: 32px 20px 28px; }
    .lawt-page .lawt-sub-gate-grid { grid-template-columns: 1fr; }
    .lawt-page .lawt-sub-gate-btn-primary { padding: 12px 20px; font-size: 14px; }
    .lawt-page .lawt-sub-gate-contact span { display: block; margin-top: 2px; }
}



/* ── Subscription gate: nested context (paywall / access overlay) ── */
/* When the partial is embedded inside paywall-inner or access-box,
   strip the card wrapper and hide elements the parent already shows
   (icon, title, main body text). Keep: notice, CTA, services, contact. */

.lawt-paywall-inner .lawt-sub-gate,
.lawt-access-box .lawt-sub-gate {
    padding: 0;
}
.lawt-paywall-inner .lawt-sub-gate-card,
.lawt-access-box .lawt-sub-gate-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
    background: transparent;
}
/* Hide duplicate icon + title + body paragraph (parent has these) */
.lawt-paywall-inner .lawt-sub-gate-icon,
.lawt-paywall-inner .lawt-sub-gate-title,
.lawt-paywall-inner .lawt-sub-gate-body > p,
.lawt-access-box .lawt-sub-gate-icon,
.lawt-access-box .lawt-sub-gate-title,
.lawt-access-box .lawt-sub-gate-body > p {
    display: none;
}
/* Keep the notice visible but tighten spacing */
.lawt-paywall-inner .lawt-sub-gate-notice,
.lawt-access-box .lawt-sub-gate-notice {
    margin-top: 4px;
}
/* Tighten CTA spacing */
.lawt-paywall-inner .lawt-sub-gate-cta,
.lawt-access-box .lawt-sub-gate-cta {
    margin-top: 18px;
}
/* Services section: smaller in nested context */
.lawt-paywall-inner .lawt-sub-gate-services,
.lawt-access-box .lawt-sub-gate-services {
    margin-top: 20px;
    padding-top: 18px;
}
/* Access overlay: widen box to fit services grid */
.lawt-access-box {
    max-width: 540px;
}
/* Access overlay: services 1-column on narrow screens */
@media (max-width: 600px) {
    .lawt-access-box .lawt-sub-gate-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Admin tool button ──────────────────────────────────── */
.lawt-page .lawt-admin-tool {
    background: #fef9e7 !important;
    border: 1px dashed #d4a017 !important;
    color: #8b6914 !important;
}
.lawt-page .lawt-admin-tool:hover {
    background: #fdf3cd !important;
    color: #6b4f10 !important;
}
.lawt-page .lawt-admin-tool .fa {
    color: #d4a017;
}


/* ── Tax Change form inside Info Panel ─────────────────── */
.lawt-ip-taxchange-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 8px;
    height: 100%;
}
.lawt-ip-tc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lawt-ip-tc-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lawt-ip-tc-field label small {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    color: #94a3b8;
}
.lawt-ip-tc-input {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--lt-border);
    border-radius: 6px;
    background: #fff;
    color: var(--lt-text);
    transition: border-color .15s;
    box-sizing: border-box;
}
.lawt-ip-tc-input:focus {
    outline: none;
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.lawt-ip-tc-date {
    max-width: 200px;
}
.lawt-ip-tc-field-grow {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.lawt-ip-tc-textarea {
    flex: 1;
    min-height: 200px;
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Source Sans 3', monospace;
    line-height: 1.6;
    border: 1px solid var(--lt-border);
    border-radius: 6px;
    background: #fff;
    color: var(--lt-text);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .15s;
}
.lawt-ip-tc-textarea:focus {
    outline: none;
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

/* Status messages */
.lawt-ip-tc-status {
    min-height: 20px;
}
.lawt-ip-tc-success {
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
}
.lawt-ip-tc-success .fa {
    margin-right: 4px;
}
.lawt-ip-tc-error {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}
.lawt-ip-tc-error .fa {
    margin-right: 4px;
}


/* ── Linked Article preview in Info Panel ──────────────── */
.lawt-ip-linked-article {
    padding: 4px 16px;
}
.lawt-ip-la-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: var(--lt-blue-light);
    border-radius: 8px;
    margin-bottom: 16px;
}
.lawt-ip-la-law {
    font-size: 12px;
    font-weight: 600;
    color: var(--lt-blue);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lawt-ip-la-art {
    font-size: 16px;
    font-weight: 700;
    color: var(--lt-text);
}
.lawt-ip-la-title {
    font-size: 14px;
    color: var(--lt-text-muted);
    font-style: italic;
}
.lawt-ip-la-para {
    padding: 12px 0;
    border-bottom: 1px dashed var(--lt-border);
}
.lawt-ip-la-para:last-child {
    border-bottom: none;
}
.lawt-ip-la-para-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--lt-blue);
    margin-bottom: 4px;
}
.lawt-ip-la-para-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--lt-text);
    text-align: justify;
    text-justify: inter-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
.lawt-ip-la-para-text a {
    color: var(--lt-blue);
    text-decoration: underline;
}
/* Tables inside linked article text — prevent overflow */
.lawt-ip-la-para-text table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 13px;
    overflow-wrap: break-word;
}
.lawt-ip-la-para-highlight {
    background: #fef9e7;
    border-left: 3px solid #d4a017;
    padding: 12px 12px 12px 12px;
    border-radius: 0 6px 6px 0;
}


/* ── Print: base rules ──────────────────────────────────────── */
@media print {
    /* Always hide tools in print */
    .lawt-page .lawt-art-tools-toggle,
    .lawt-page .lawt-art-tools-panel,
    .lawt-page .lawt-para-tools,
    .lawt-page .lawt-para-more-wrap {
        display: none !important;
    }

    /* Selective print mode */
    .lawt-page.lawt-print-selective .lawt-law-sidebar,
    .lawt-page.lawt-print-selective .lawt-content-bar,
    .lawt-page.lawt-print-selective .lawt-back-to-top,
    .lawt-page.lawt-print-selective .lawt-ip-backdrop,
    .lawt-page.lawt-print-selective .lawt-ip,
    .lawt-page.lawt-print-selective .lawt-art-print-group,
    .lawt-page.lawt-print-selective .lawt-art-link-bar {
        display: none !important;
    }

    /* Hide all articles by default in selective mode */
    .lawt-page.lawt-print-selective .lawt-law-article {
        display: none !important;
    }

    /* Show only selected articles */
    .lawt-page.lawt-print-selective .lawt-law-article.lawt-print-selected {
        display: block !important;
    }

    /* Remove max-width constraints for print */
    .lawt-page.lawt-print-selective .lawt-law-body {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ensure chapter headers print if their article is selected */
    .lawt-page.lawt-print-selective .lawt-art-chapter-header {
        display: none !important;
    }
    .lawt-page.lawt-print-selective .lawt-print-selected .lawt-art-chapter-header {
        display: block !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   Subpage Sidebar Drawer — Unified system (Chat 22)
   Shared class .lawt-drawer-sidebar added to all 5 sidebar elements
   ══════════════════════════════════════════════════════════════ */

/* ── Desktop: drawer-only elements hidden ────── */
.lawt-page .lawt-drawer-hamburger {
    display: none;
}
.lawt-page .lawt-drawer-close {
    display: none;
}
.lawt-page .lawt-drawer-backdrop {
    display: none;
}

@media (max-width: 900px) {

    /* ── Hamburger button ── */
    .lawt-page .lawt-drawer-hamburger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--lt-blue);
        border: 1px solid var(--lt-blue);
        border-radius: 4px;
        background: var(--lt-blue-light);
        cursor: pointer;
        transition: all .12s;
        font-family: inherit;
        line-height: 1.4;
    }
    .lawt-page .lawt-drawer-hamburger:hover {
        background: var(--lt-blue);
        color: #fff;
    }
    .lawt-page .lawt-drawer-hamburger .fa {
        font-size: 14px;
    }

    /* ── ALL sidebars with .lawt-drawer-sidebar → fixed drawer ── */
    .lawt-page .lawt-drawer-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        background: #fff !important;
        border-right: 1px solid var(--lt-border) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
    }
    .lawt-page .lawt-drawer-sidebar.drawer-open {
        transform: translateX(0);
    }

    /* ── Close header inside drawer ── */
    .lawt-page .lawt-drawer-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px 12px;
        border-bottom: 1px solid var(--lt-border);
        background: var(--lt-blue-light);
        flex-shrink: 0;
    }
    .lawt-page .lawt-drawer-close-label {
        font-size: 13px;
        font-weight: 700;
        color: var(--lt-blue-dark);
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    .lawt-page .lawt-drawer-close-btn {
        width: 30px;
        height: 30px;
        border: none;
        background: none;
        font-size: 20px;
        color: var(--lt-text-muted);
        cursor: pointer;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .12s, color .12s;
    }
    .lawt-page .lawt-drawer-close-btn:hover {
        background: rgba(0, 0, 0, .08);
        color: var(--lt-text);
    }

    /* ── Backdrop overlay ── */
    .lawt-page .lawt-drawer-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 9998;
        cursor: pointer;
    }
    .lawt-page .lawt-drawer-backdrop.drawer-open {
        display: block;
        animation: lawtDrawerFadeIn .2s ease;
    }

    @keyframes lawtDrawerFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
}

/* ── 480px: narrower ── */
@media (max-width: 480px) {
    .lawt-page .lawt-drawer-sidebar {
        width: 85vw !important;
        max-width: 300px !important;
    }
}

/* ── Print: hide all drawer elements ── */
@media print {
    .lawt-page .lawt-drawer-hamburger,
    .lawt-page .lawt-drawer-close,
    .lawt-page .lawt-drawer-backdrop {
        display: none !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   ARTICLE HISTORY — Info Panel accordion (Προϊσχύουσες μορφές)
   ══════════════════════════════════════════════════════════════ */

.lawt-page .lawt-ip-arthistory-info {
    padding: 12px 18px;
    font-size: 13px;
    color: #5a7a8f;
    background: #f5f8fb;
    border-bottom: 1px solid #e8ecf0;
}
.lawt-page .lawt-ip-arthistory-info .fa {
    margin-right: 4px;
    color: var(--lt-blue-dark, #0077a8);
}

.lawt-page .lawt-ip-arthistory-list {
    padding: 4px 0 8px;
}

.lawt-page .lawt-ip-arthistory-item {
    border-bottom: 1px solid #eef1f4;
}
.lawt-page .lawt-ip-arthistory-item:last-child {
    border-bottom: none;
}

.lawt-page .lawt-ip-arthistory-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background .12s;
    font-size: 13.5px;
    color: var(--lt-text);
}
.lawt-page .lawt-ip-arthistory-header:hover {
    background: #f5f8fb;
}

.lawt-page .lawt-ip-arthistory-arrow {
    font-size: 11px;
    color: var(--lt-blue-dark, #0077a8);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    transition: transform .2s;
}

.lawt-page .lawt-ip-arthistory-label {
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.lawt-page .lawt-ip-arthistory-date {
    font-size: 12px;
    color: #8899a6;
    white-space: nowrap;
    flex-shrink: 0;
}

.lawt-page .lawt-ip-arthistory-item.active .lawt-ip-arthistory-header {
    background: #f0f6fb;
}

.lawt-page .lawt-ip-arthistory-body {
    padding: 0 18px 16px;
}

.lawt-page .lawt-ip-arthistory-text {
    font-size: 14px;
    line-height: 1.7;
    color: #2a3a4a;
    text-align: justify;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
}


/* ═══════════════════════════════════════════════════════════════════
   CHAT 38 — Collapsed Article Cards
   ═══════════════════════════════════════════════════════════════════ */

/* ── Collapsed card container ── */
.lawt-page .lawt-art-card {
    border: 1px solid #dce8f0;
    border-radius: 3px;
    margin-bottom: 4px;
    overflow: hidden;
    transition: border-color .15s;
    /* Bleed edge-to-edge past .lawt-law-content padding */
    margin-left: calc(-1 * var(--content-pad, 24px));
    margin-right: calc(-1 * var(--content-pad, 24px));
}
.lawt-page .lawt-art-card.lawt-art-expanded {
    border-color: #b8c8d4;
}
.lawt-page .lawt-art-card.lawt-art-inactive {
    opacity: 0.55;
}

/* ── Card header (always visible, clickable) ── */
.lawt-page .lawt-art-card-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px var(--content-pad, 24px);
    cursor: pointer;
    transition: background .12s;
    user-select: none;
}
.lawt-page .lawt-art-card-header:hover {
    background: #f5f7f9;
}
.lawt-page .lawt-art-card.lawt-art-expanded > .lawt-art-card-header {
    background: #f5f7f9;
    border-bottom: 1px solid #dce8f0;
}

/* ── Article number ── */
.lawt-page .lawt-art-card-number {
    font-weight: 600;
    font-size: 20px;
    color: var(--lt-blue, #1a6ca3);
    white-space: nowrap;
}

/* ── Article title ── */
/* ΜΕΤΑ */
.lawt-page .lawt-art-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #2a3a4a;
    flex: 1;
    line-height: 1.35;
}

/* ── Inactive (καταργημένο) tag ── */
.lawt-page .lawt-art-inactive-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fce8e8;
    color: #c0392b;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Expand arrow ── */
.lawt-page .lawt-art-card-arrow {
    font-size: 11px;
    color: #9ab;
    transition: transform .2s;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.lawt-page .lawt-art-card.lawt-art-expanded .lawt-art-card-arrow {
    transform: rotate(180deg);
}

/* ── Card body (hidden by default) ── */
.lawt-page .lawt-art-card-body {
    display: none;
    padding: 0 var(--content-pad, 24px);
}
.lawt-page .lawt-art-card.lawt-art-expanded > .lawt-art-card-body {
    display: block;
}

/* ── Loading indicator inside card ── */
.lawt-page .lawt-art-card-loading {
    padding: 24px;
    text-align: center;
    color: #9ab;
    font-size: 13px;
}
.lawt-page .lawt-art-card-loading .fa-spinner {
    margin-right: 6px;
}

/* ── Tools inside card body: reset padding (card body provides it) ── */
.lawt-page .lawt-art-card-body .lawt-art-tools-toggle {
    padding-left: 0;
    padding-right: 0;
}
.lawt-page .lawt-art-card-body .lawt-art-tools-panel {
    padding-left: 0;
    padding-right: 0;
}

/* ── Inactive card expanded: italic text ── */
.lawt-page .lawt-art-card.lawt-art-inactive .lawt-para-text {
    font-style: italic;
    color: #7a8d98;
}


/* ── Lazy Counts (Chat 39) ────────────────────────────────── */
.lawt-lazy-hidden { display: none !important; }

/* Imported groups container (no visual output, just a JS anchor) */
.lawt-lazy-imported-container { display: none; }



 /* ═══════════════════════════════════════════════════════════════════
   ═══ START STEP 7: Deep Search in Related Documents             ═══
   ═══════════════════════════════════════════════════════════════════ */

/* Wide variant — same pattern as .panel-revisions */
.lawt-page .lawt-ip.panel-deepsearch {
    width: 75vw;
    max-width: 75vw;
}

/* 2-pane layout container (lives inside ipBody) */
.lawt-ip-deepsearch-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 400px;
}

/* ── LEFT pane: search input + results list ── */
.lawt-ip-ds-results-pane {
    flex: 0 0 35%;
    max-width: 35%;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fafbfc;
}

.lawt-ip-ds-search {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.lawt-ip-ds-search input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}
.lawt-ip-ds-search input[type="text"]:focus {
    outline: none;
    border-color: #85B7EB;
    box-shadow: 0 0 0 2px rgba(133, 183, 235, 0.2);
}
.lawt-ip-ds-search-info {
    margin-top: 6px;
    font-size: 11px;
    color: #888;
}

.lawt-ip-ds-results-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
}

.lawt-ip-ds-result-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #85B7EB;
    border-radius: 3px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.lawt-ip-ds-result-card:hover {
    background: #f2f5f7;
}
.lawt-ip-ds-result-card.active {
    background: #e8f1fb;
    border-left-color: #4a90d9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lawt-ip-ds-result-title {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.lawt-ip-ds-result-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.lawt-ip-ds-result-count {
    display: inline-block;
    background: #85B7EB;
    color: #fff;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}
.lawt-ip-ds-result-snippet {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}
.lawt-ip-ds-result-snippet mark {
    background: #fff3a3;
    padding: 0 2px;
    font-weight: 600;
}

/* Empty / loading / error states in the results pane */
.lawt-ip-ds-empty,
.lawt-ip-ds-loading,
.lawt-ip-ds-error {
    padding: 30px 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.lawt-ip-ds-empty i,
.lawt-ip-ds-loading i,
.lawt-ip-ds-error i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: #ccc;
}
.lawt-ip-ds-error { color: #c0392b; }

/* ── RIGHT pane: preview with highlighted matches ── */
.lawt-ip-ds-preview-pane {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.lawt-ip-ds-preview-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f2f5f7;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.lawt-ip-ds-preview-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.lawt-ip-ds-preview-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}
.lawt-ip-ds-preview-meta a {
    color: #4a90d9;
    text-decoration: none;
    margin-left: 8px;
}
.lawt-ip-ds-preview-meta a:hover { text-decoration: underline; }

.lawt-ip-ds-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lawt-ip-ds-nav button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
}
.lawt-ip-ds-nav button:hover {
    background: #e8f1fb;
    border-color: #85B7EB;
    color: #333;
}
.lawt-ip-ds-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.lawt-ip-ds-nav-counter {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.lawt-ip-ds-preview-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}
.lawt-ip-ds-preview-body table {
    border-collapse: collapse;
    margin: 8px 0;
    max-width: 100%;
}
.lawt-ip-ds-preview-body td,
.lawt-ip-ds-preview-body th {
    border: 1px solid #ddd;
    padding: 4px 8px;
}
.lawt-ip-ds-preview-body a { color: #4a90d9; }

/* Highlighted matches inside the preview body */
mark.lawt-deep-hit {
    background: #fff3a3;
    padding: 1px 2px;
    border-radius: 2px;
    scroll-margin-top: 80px;
}
mark.lawt-deep-hit.current {
    background: #ffae42;
    color: #000;
    box-shadow: 0 0 0 2px rgba(255, 174, 66, 0.4);
}

/* Preview empty / loading states */
.lawt-ip-ds-preview-empty,
.lawt-ip-ds-preview-loading {
    padding: 60px 30px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.lawt-ip-ds-preview-empty i,
.lawt-ip-ds-preview-loading i {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    color: #ccc;
}

/* ── Trigger button in the docs panel header ── */
/* ── Trigger button in the docs panel header (prominent CTA) ── */
.lawt-ip-ds-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient( 135deg, #4a90d9 0%, #2a6fbf 100% );
    border: 1px solid #2a6fbf;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba( 74, 144, 217, 0.35 );
    text-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 );
    transition: all 0.18s ease;
    animation: lawt-ds-pulse 2.4s ease-in-out infinite;
}
.lawt-ip-ds-trigger:hover {
    background: linear-gradient( 135deg, #5aa0e9 0%, #3a7fcf 100% );
    box-shadow: 0 4px 10px rgba( 74, 144, 217, 0.5 );
    transform: translateY( -1px );
    animation: none;
}
.lawt-ip-ds-trigger:active {
    transform: translateY( 0 );
    box-shadow: 0 2px 4px rgba( 74, 144, 217, 0.4 );
}
.lawt-ip-ds-trigger i {
    font-size: 13px;
}

@keyframes lawt-ds-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba( 74, 144, 217, 0.35 ); }
    50%      { box-shadow: 0 2px 12px rgba( 74, 144, 217, 0.7 ); }
}

/* ── Mobile: collapse to single pane (left only) ── */
@media ( max-width: 900px ) {
    .lawt-page .lawt-ip.panel-deepsearch {
        width: 100vw;
        max-width: 100vw;
    }
    .lawt-ip-deepsearch-layout {
        flex-direction: column;
    }
    .lawt-ip-ds-results-pane,
    .lawt-ip-ds-preview-pane {
        flex: 1 1 auto;
        max-width: 100%;
        border-right: none;
    }
    .lawt-ip-ds-results-pane {
        border-bottom: 1px solid #e0e0e0;
        max-height: 40vh;
    }
}

/* ═══ END STEP 7                                                  ═══
   ═══════════════════════════════════════════════════════════════════ */

  /* ============================================================
   TAX CHANGE PANEL — Νέα στοιχεία (Νόμος/Άρθρο + αιτιολογική)
   Πρόσθεσε αυτά στο υπάρχον lawt CSS αρχείο.
   ============================================================ */

/* Read-only γραμμή "Νόμος / Άρθρο" */
.lawt-ip-tc-ref {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #6366f1;
    border-radius: 5px;
    padding: 8px 11px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}
.lawt-ip-tc-ref i { color: #6366f1; flex-shrink: 0; }
.lawt-ip-tc-ref a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.lawt-ip-tc-ref a:hover { text-decoration: underline; }

/* Ένδειξη αιτιολογικής στο label του Περιεχομένου */
.lawt-ip-tc-hasreason {
    color: #16a34a;
    font-weight: 600;
}
.lawt-ip-tc-noreason {
    color: #94a3b8;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   ═══ START BLOCK: HistSearch — Αναζήτηση στην προϊστορία (Chat 46) ═══
   ═══════════════════════════════════════════════════════════════════
   Two-pane: αριστερά λίστα ομαδοποιημένη ανά άρθρο, δεξιά το rail των
   εκδόσεων. Ίδιο pattern με το panel-deepsearch. Prefix: .lawt-hs-*
   ═══════════════════════════════════════════════════════════════════ */

.lawt-page .lawt-ip.panel-histsearch {
    width: 75vw;
    max-width: 75vw;
}

/* Το body δεν κάνει scroll — τα δύο panes κάνουν, ξεχωριστά */
.lawt-page .lawt-ip.panel-histsearch .lawt-ip-body {
    overflow: hidden;
    padding: 0;
}

.lawt-hs-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    --hs-past:     #c2410c;
    --hs-past-bg:  #fff4ed;
    --hs-past-bd:  #fdba74;
    --hs-live:     #1a9a8a;
    --hs-live-bg:  #e6f7f5;
    --hs-live-bd:  #a8ded7;
}

/* ── Γραμμή αναζήτησης ─────────────────────────────────────────── */
.lawt-hs-searchbar {
    padding: 11px 16px;
    background: #fafcfd;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
}
.lawt-hs-searchbar input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    font: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.lawt-hs-searchbar input:focus {
    border-color: var(--lt-blue);
    box-shadow: 0 0 0 3px rgba(0,119,168,.12);
}
.lawt-hs-scope {
    font-size: 12.5px;
    color: var(--lt-text-muted);
    margin-top: 7px;
}
.lawt-hs-scope i { color: var(--lt-blue); margin-right: 4px; }
.lawt-hs-scope b { color: var(--lt-text); }

/* ── Φίλτρα ────────────────────────────────────────────────────── */
.lawt-hs-chips {
    display: flex;
    gap: 7px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--lt-border);
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    min-height: 0;
}
.lawt-hs-chips:empty { display: none; }

.lawt-hs-chip {
    border: 1px solid var(--lt-border);
    background: #fff;
    border-radius: 20px;
    padding: 4px 13px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--lt-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}
.lawt-hs-chip:hover { border-color: var(--lt-blue); }
.lawt-hs-chip .n {
    background: #eef2f5;
    border-radius: 9px;
    padding: 0 6px;
    font-size: 11.5px;
}
.lawt-hs-chip.on {
    background: var(--lt-blue-dark);
    border-color: var(--lt-blue-dark);
    color: #fff;
}
.lawt-hs-chip.on .n { background: rgba(255,255,255,.22); color: #fff; }
.lawt-hs-chip.past.on {
    background: var(--hs-past);
    border-color: var(--hs-past);
}
.lawt-hs-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lawt-hs-chip .dot.live { background: var(--hs-live); }
.lawt-hs-chip .dot.past { background: var(--hs-past); }

.lawt-hs-collapse {
    margin-left: auto;
    border: 1px solid var(--lt-border);
    background: #fff;
    border-radius: 5px;
    padding: 4px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--lt-text-muted);
}
.lawt-hs-collapse:hover { border-color: var(--lt-blue); color: var(--lt-blue); }

/* ── Two-pane ──────────────────────────────────────────────────── */
.lawt-hs-two {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── ΑΡΙΣΤΕΡΑ: λίστα ───────────────────────────────────────────── */
.lawt-hs-list {
    flex: 0 0 352px;
    max-width: 352px;
    border-right: 1px solid var(--lt-border);
    overflow-y: auto;
    background: #fff;
}
.lawt-hs-list::-webkit-scrollbar       { width: 7px; }
.lawt-hs-list::-webkit-scrollbar-track { background: #f0f2f4; }
.lawt-hs-list::-webkit-scrollbar-thumb { background: #b0bec5; border-radius: 4px; }

.lawt-hs-count {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--lt-text-muted);
    background: #eef3f6;
    border-bottom: 1px solid var(--lt-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Κεφαλίδα ομάδας (άρθρο) — sticky κάτω από τον μετρητή */
.lawt-hs-grp-h {
    position: sticky;
    top: 29px;
    z-index: 4;
    background: #f7f9fa;
    border-top: 1px solid var(--lt-border);
    border-bottom: 1px solid #eef2f5;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lt-blue-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lawt-hs-grp-h:hover { background: #eef3f6; }
.lawt-hs-grp-h .car {
    font-size: 10px;
    color: #8a99a4;
    transition: transform .15s;
    flex-shrink: 0;
}
.lawt-hs-grp-h.cl .car { transform: rotate(-90deg); }
.lawt-hs-grp-h .ref  { flex-shrink: 0; }
.lawt-hs-grp-h .ttl {
    font-weight: 400;
    color: var(--lt-text-muted);
    font-size: 11.5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lawt-hs-grp-h .pips { display: flex; gap: 2px; flex-shrink: 0; }
.lawt-hs-grp-h .pip  { width: 6px; height: 6px; border-radius: 50%; }
.lawt-hs-grp-h .pip.live { background: var(--hs-live); }
.lawt-hs-grp-h .pip.past { background: var(--hs-past); }
.lawt-hs-grp-h .cnt {
    background: #dfe7ec;
    color: var(--lt-text-muted);
    border-radius: 9px;
    padding: 0 7px;
    font-size: 11px;
    flex-shrink: 0;
}
.lawt-hs-grp-b.cl { display: none; }

/* Αποτέλεσμα */
.lawt-hs-li {
    padding: 9px 14px 9px 22px;
    border-bottom: 1px solid #f2f5f7;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.lawt-hs-li:hover { background: #fafcfd; }
.lawt-hs-li.sel {
    background: var(--lt-blue-light);
    border-left-color: var(--lt-blue);
}
.lawt-hs-li-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}
.lawt-hs-li-ref {
    font-size: 13px;
    font-weight: 700;
    color: var(--lt-blue-dark);
}
.lawt-hs-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
.lawt-hs-badge.live { background: var(--hs-live-bg); color: #0f6f63; border: 1px solid var(--hs-live-bd); }
.lawt-hs-badge.past { background: var(--hs-past-bg); color: var(--hs-past); border: 1px solid var(--hs-past-bd); }

.lawt-hs-li-ex {
    font-size: 12.5px;
    color: var(--lt-text-muted);
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lawt-hs-li-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.lawt-hs-li-meta {
    font-size: 10.5px;
    color: #8a99a4;
    font-variant-numeric: tabular-nums;
}

/* Sparkline — γεμάτη κουκκίδα = αποτέλεσμα σε εκείνη την έκδοση */
.lawt-hs-spark { display: flex; align-items: center; flex-shrink: 0; }
.lawt-hs-spark .s {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #c3ced6;
    box-sizing: content-box;
}
.lawt-hs-spark .s.h     { background: var(--hs-past); border-color: var(--hs-past); }
.lawt-hs-spark .s.h.lv  { background: var(--hs-live); border-color: var(--hs-live); }
.lawt-hs-spark .l       { width: 7px; height: 1.5px; background: #dbe3e9; }

/* ── ΔΕΞΙΑ: rail εκδόσεων ──────────────────────────────────────── */
.lawt-hs-prev {
    flex: 1;
    overflow-y: auto;
    background: #f7f9fa;
    min-width: 0;
}
.lawt-hs-prev::-webkit-scrollbar       { width: 8px; }
.lawt-hs-prev::-webkit-scrollbar-track { background: #f0f2f4; }
.lawt-hs-prev::-webkit-scrollbar-thumb { background: #b0bec5; border-radius: 4px; }

.lawt-hs-prev-head {
    padding: 13px 20px;
    background: #fff;
    border-bottom: 1px solid var(--lt-border);
    position: sticky;
    top: 0;
    z-index: 3;
}
.lawt-hs-prev-ref {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--lt-blue-dark);
}
.lawt-hs-prev-sub {
    font-size: 12.5px;
    color: var(--lt-text-muted);
    margin-top: 2px;
}

.lawt-hs-verdict {
    margin: 14px 20px 0;
    padding: 10px 14px;
    border-radius: var(--lt-radius);
    font-size: 13.5px;
    line-height: 1.5;
}
.lawt-hs-verdict.past { background: var(--hs-past-bg); border: 1px solid var(--hs-past-bd); color: #7c3a12; }
.lawt-hs-verdict.live { background: var(--hs-live-bg); border: 1px solid var(--hs-live-bd); color: #0f6f63; }

.lawt-hs-rail { padding: 14px 20px 20px; }

.lawt-hs-v { display: flex; }
.lawt-hs-v-gut {
    width: 26px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
}
.lawt-hs-v-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid #c3ced6;
    background: #fff;
    z-index: 2;
    flex-shrink: 0;
    box-sizing: content-box;
}
.lawt-hs-v.hit .lawt-hs-v-dot    { background: var(--hs-past); border-color: var(--hs-past); }
.lawt-hs-v.hit.lv .lawt-hs-v-dot { background: var(--hs-live); border-color: var(--hs-live); }
.lawt-hs-v.cut .lawt-hs-v-dot    { background: #fff; border-color: var(--hs-past); }
.lawt-hs-v-line { width: 2px; flex: 1; background: #e3e9ed; margin: 2px 0; }
.lawt-hs-v-body { flex: 1; min-width: 0; padding-bottom: 10px; }

.lawt-hs-v-card {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    overflow: hidden;
}
.lawt-hs-v.hit .lawt-hs-v-card    { border-color: var(--hs-past-bd); box-shadow: 0 1px 6px rgba(194,65,12,.10); }
.lawt-hs-v.hit.lv .lawt-hs-v-card { border-color: var(--hs-live-bd); box-shadow: 0 1px 6px rgba(26,154,138,.10); }
.lawt-hs-v-card.dim { opacity: .72; margin-bottom: 8px; }

.lawt-hs-v-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    background: #f7f9fa;
    border-bottom: 1px solid #eef2f5;
    font-size: 12.5px;
    flex-wrap: wrap;
}
.lawt-hs-v-date { color: var(--lt-text-muted); font-variant-numeric: tabular-nums; }
.lawt-hs-v-lab  { font-weight: 700; }
.lawt-hs-v-now {
    font-size: 10.5px;
    font-weight: 700;
    background: var(--hs-live-bg);
    color: #0f6f63;
    border: 1px solid var(--hs-live-bd);
    border-radius: 10px;
    padding: 0 7px;
}
.lawt-hs-v-hit {
    font-size: 10.5px;
    font-weight: 700;
    background: var(--hs-past);
    color: #fff;
    border-radius: 10px;
    padding: 1px 8px;
    margin-left: auto;
}
.lawt-hs-v.lv .lawt-hs-v-hit { background: var(--hs-live); }

.lawt-hs-v-txt { padding: 11px 13px; font-size: 14px; line-height: 1.62; }
.lawt-hs-v-txt table { max-width: 100%; }
.lawt-hs-v-com {
    padding: 8px 13px;
    background: #fbfcfd;
    border-top: 1px dashed #e3e9ed;
    font-size: 12.5px;
    color: var(--lt-text-muted);
    line-height: 1.5;
}

/* Το highlight — ίδιο σε λίστα και rail */
.lawt-page .lawt-ip.panel-histsearch mark.lawt-hs-hit,
.lawt-hs-li-ex mark.lawt-hs-hit {
    background: #ffe89a;
    color: inherit;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* «Εδώ απαλείφθηκε ο όρος» — ποτέ δεν συμπτύσσεται */
.lawt-hs-cut {
    padding: 8px 13px;
    background: #fff5ef;
    border: 1px solid var(--hs-past-bd);
    border-radius: var(--lt-radius);
    font-size: 12.5px;
    color: #7c3a12;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Συμπτυγμένες εκδόσεις χωρίς αποτέλεσμα αναζήτησης */
.lawt-hs-gap { display: flex; }
.lawt-hs-gap-gut {
    width: 26px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lawt-hs-gap-gut .ln {
    width: 2px;
    flex: 1;
    background-image: linear-gradient(#e3e9ed 55%, transparent 0);
    background-size: 2px 7px;
    background-repeat: repeat-y;
}
.lawt-hs-gap-b { flex: 1; min-width: 0; padding-bottom: 10px; }
.lawt-hs-gap-btn {
    width: 100%;
    text-align: left;
    border: 1px dashed #cfd8de;
    background: #fbfcfd;
    border-radius: var(--lt-radius);
    padding: 7px 13px;
    font: inherit;
    font-size: 12.5px;
    color: #8a99a4;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lawt-hs-gap-btn:hover { background: #f2f6f8; color: var(--lt-text-muted); }
.lawt-hs-gap-btn .car { font-size: 10px; }
.lawt-hs-gap-body { margin-top: 8px; }

/* ── Ενέργειες ─────────────────────────────────────────────────── */
.lawt-hs-actions {
    display: flex;
    gap: 7px;
    padding: 11px 20px;
    background: #fff;
    border-top: 1px solid var(--lt-border);
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
}
.lawt-hs-btn {
    border: 1px solid var(--lt-border);
    background: #fff;
    border-radius: 5px;
    padding: 6px 13px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--lt-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.6;
}
.lawt-hs-btn:hover  { border-color: var(--lt-blue); color: var(--lt-blue); text-decoration: none; }
.lawt-hs-btn.primary {
    background: var(--lt-blue);
    border-color: var(--lt-blue);
    color: #fff;
}
.lawt-hs-btn.primary:hover { background: var(--lt-blue-dark); border-color: var(--lt-blue-dark); color: #fff; }
.lawt-hs-btn.ghost  { opacity: .45; cursor: not-allowed; }
.lawt-hs-btn.ghost:hover { border-color: var(--lt-border); color: var(--lt-text-muted); }

/* ── Καταστάσεις ───────────────────────────────────────────────── */
.lawt-hs-initial,
.lawt-hs-loading,
.lawt-hs-error,
.lawt-hs-prev-empty {
    padding: 38px 24px;
    text-align: center;
    color: #8a99a4;
}
.lawt-hs-initial i,
.lawt-hs-loading i,
.lawt-hs-error i,
.lawt-hs-prev-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 12px;
    opacity: .45;
}
.lawt-hs-initial p,
.lawt-hs-loading p,
.lawt-hs-error p,
.lawt-hs-prev-empty p { margin: 0 0 6px; font-size: 13.5px; }
.lawt-hs-hint { font-size: 12.5px; opacity: .8; }
.lawt-hs-error i { color: #d9534f; opacity: .7; }

/* ── Mobile: κάθετη διάταξη ────────────────────────────────────── */
@media ( max-width: 900px ) {
    .lawt-page .lawt-ip.panel-histsearch {
        width: 100vw;
        max-width: 100vw;
    }
    .lawt-hs-two { flex-direction: column; }
    .lawt-hs-list {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid var(--lt-border);
    }
    .lawt-hs-prev { flex: 1 1 auto; }
    .lawt-hs-rail { padding: 12px 12px 16px; }
    .lawt-hs-prev-head { padding: 11px 14px; }
    .lawt-hs-verdict { margin: 12px 14px 0; }
    .lawt-hs-actions { padding: 10px 14px; }
}

/* Μπάρα επιστροφής μέσα στο linkedarticle panel (Chat 46) */
.lawt-hs-backbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--lt-blue-light);
    border-bottom: 1px solid #bcd9e8;
    flex-wrap: wrap;
}
.lawt-hs-backbar button {
    border: 1px solid var(--lt-blue);
    background: #fff;
    color: var(--lt-blue-dark);
    border-radius: 5px;
    padding: 4px 12px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lawt-hs-backbar button:hover { background: var(--lt-blue); color: #fff; }
.lawt-hs-backbar span {
    font-size: 12.5px;
    color: var(--lt-text-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   ═══ END BLOCK: HistSearch — Αναζήτηση στην προϊστορία            ═══
   ═══════════════════════════════════════════════════════════════════ */
