/* guides.css — Guides (.gd- prefix) */

/* ======================================================
   PAGE MASTHEAD - Taxation-themed living animation
   Floating ₹ symbol + GST/tax percentage numbers
   ====================================================== */

/* Remove old generic orb */
.page-masthead::before { display: none; }
.page-masthead::after  { display: none; }

/* Rupee symbol - large, slow drift */
@keyframes rupee-drift {
    0%   { transform: translate(0, 0) rotate(-8deg); opacity: 0.07; }
    30%  { transform: translate(-14px, -10px) rotate(-4deg); opacity: 0.11; }
    60%  { transform: translate(8px, -18px) rotate(-10deg); opacity: 0.07; }
    100% { transform: translate(0, 0) rotate(-8deg); opacity: 0.07; }
}

/* Small numbers - float up and fade */
@keyframes num-float-1 {
    0%   { transform: translateY(0);    opacity: 0; }
    10%  { opacity: 0.13; }
    80%  { opacity: 0.10; }
    100% { transform: translateY(-28px); opacity: 0; }
}
@keyframes num-float-2 {
    0%   { transform: translateY(0) rotate(6deg);    opacity: 0; }
    15%  { opacity: 0.10; }
    85%  { opacity: 0.08; }
    100% { transform: translateY(-22px) rotate(6deg); opacity: 0; }
}
@keyframes num-float-3 {
    0%   { transform: translateY(0) rotate(-4deg);    opacity: 0; }
    12%  { opacity: 0.12; }
    80%  { opacity: 0.08; }
    100% { transform: translateY(-32px) rotate(-4deg); opacity: 0; }
}

/* Large ₹ symbol */
.page-masthead-orb-b {
    position: absolute;
    top: -8px; right: 60px;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    animation: rupee-drift 14s ease-in-out infinite;
    border-radius: 0;
    background: none;
    width: auto; height: auto;
}
.page-masthead-orb-b::before { content: '₹'; }

/* Tax percentage labels */
.page-masthead-orb-c {
    position: absolute;
    bottom: 4px; right: 220px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.04em;
    border-radius: 0;
    background: none;
    width: auto; height: auto;
    animation: num-float-1 9s ease-in-out infinite 1s;
}
.page-masthead-orb-c::before { content: '18%'; }

/* Two more via pseudo on masthead */
.page-masthead-tax-a {
    position: absolute;
    top: 10px; right: 170px;
    font-family: var(--font-sans);
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    animation: num-float-2 12s ease-in-out infinite 4s;
}
.page-masthead-tax-a::before { content: '30%'; }

.page-masthead-tax-b {
    position: absolute;
    bottom: 6px; right: 320px;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    animation: num-float-3 15s ease-in-out infinite 7s;
}
.page-masthead-tax-b::before { content: '§'; }

/* Live dot pulse on badges */
@keyframes live-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.45; transform: scale(0.75); }
}
.tl-live-badge::before {
    animation: live-pulse 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .page-masthead-orb-b,
    .page-masthead-orb-c,
    .page-masthead-tax-a,
    .page-masthead-tax-b { animation: none; opacity: 0; }
    .tl-live-badge::before { animation: none; }
}

/* ======================================================
   RESTORED CSS - Pages body/layout/component styles
   ====================================================== */


/* == GD prefix == */


.gd-masthead-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-40);
    margin: 0 0 4px;
}
.gd-masthead-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

/* Body */
.gd-body { padding: 32px 0 56px; background: var(--bg-warm); }
.gd-main { min-width: 0; }
.gd-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Filter bar */
.gd-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.gd-filter-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.gd-filter-pill {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-40);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--surface);
    transition: all 0.15s;
    display: flex; align-items: center; gap: 5px;
}
.gd-filter-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.gd-filter-pill--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gd-filter-count {
    font-size: 0.66rem; padding: 1px 5px; border-radius: 10px;
    background: var(--ink-10); color: var(--ink-60);
}
.gd-filter-pill--active .gd-filter-count { background: rgba(255,255,255,0.2); color: #fff; }
.gd-results-count { font-size: 0.81rem; color: var(--ink-60); margin-bottom: 20px; }
.gd-clear-filter { font-size: 0.77rem; color: var(--ink-40); text-decoration: none; transition: color 0.15s; white-space: nowrap; }
.gd-clear-filter:hover { color: var(--primary); }

/* Tag - copper accent */
.gd-tag {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--copper-700);
    background: var(--copper-50);
    border: 1px solid var(--copper-200);
    padding: 2px 7px; border-radius: 2px;
}

/* Lead card - image left, text right */
.gd-lead-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--copper-500);
    margin-bottom: 20px;
    transition: all 0.2s var(--ease-out);
}
.gd-lead-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gd-lead-card .gd-lead-thumb {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--copper-50);
}
.gd-lead-body { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.gd-lead-card .gd-lead-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gd-lead-card .gd-lead-date { font-size: 0.70rem; color: var(--ink-40); font-style: italic; }
.gd-lead-card .gd-lead-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 700; color: var(--ink);
    line-height: 1.35; margin: 0 0 10px;
    letter-spacing: -0.01em; transition: color 0.2s;
}
.gd-lead-card:hover .gd-lead-title { color: var(--copper-700); }
.gd-lead-card .gd-lead-summary {
    font-size: 0.86rem; color: var(--ink-60);
    line-height: 1.8; margin: 0 0 14px; font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gd-lead-cta {
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--copper-600);
}

/* Cards grid */
.gd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 8px;
}
.gd-card {
    display: block; text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--copper-500);
    transition: all 0.2s var(--ease-out);
}
.gd-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gd-card-thumb {
    width: 100%; height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--copper-50);
}
.gd-card-body { padding: 14px 16px 16px; }
.gd-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.gd-card-date { font-size: 0.68rem; color: var(--ink-40); font-style: italic; }
.gd-card-title {
    font-family: 'Merriweather', serif;
    font-size: 0.92rem; font-weight: 700;
    color: var(--ink); line-height: 1.4;
    margin: 0 0 7px; letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.gd-card:hover .gd-card-title { color: var(--copper-700); }
.gd-card-summary {
    font-size: 0.80rem; color: var(--ink-60); line-height: 1.65;
    margin: 0 0 10px; font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gd-card-cta {
    font-size: 0.73rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--copper-600);
}

/* Empty state */
.gd-empty { text-align: center; padding: 60px 0; color: var(--ink-40); }
.gd-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.gd-empty p { font-size: 0.92rem; margin-bottom: 16px; }
.gd-empty a { color: var(--primary); font-size: 0.88rem; }

/* Pagination */
.gd-pagination {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 28px 0 8px;
    border-top: 1px solid var(--border); margin-top: 20px;
}
.gd-page-btn {
    font-size: 0.77rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--primary); text-decoration: none;
    padding: 7px 14px; border: 1px solid var(--border-med);
    border-radius: 2px; background: var(--surface); transition: all 0.15s;
}
.gd-page-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.gd-page-btn--disabled { color: var(--ink-20); cursor: default; pointer-events: none; }
.gd-page-numbers { display: flex; gap: 4px; align-items: center; }
.gd-page-num {
    font-size: 0.81rem; font-weight: 600; color: var(--ink-60);
    text-decoration: none; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 2px;
    background: var(--surface); transition: all 0.15s;
}
.gd-page-num:hover { background: var(--copper-50); color: var(--copper-700); border-color: var(--copper-200); }
.gd-page-num--active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Sidebar */
.gd-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 12px);
    align-self: start;
    max-height: calc(100vh - var(--nav-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gd-sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.gd-sidebar-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--copper-500);
    margin-bottom: 20px;
}
.gd-sidebar-head {
    font-family: 'Merriweather', serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink); margin: 0;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    background: var(--ink-05);
}
.gd-sidebar-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    text-decoration: none; transition: background 0.15s;
}
.gd-sidebar-item:last-child { border-bottom: none; }
.gd-sidebar-item:hover { background: var(--copper-25, #fef5eb); }
.gd-sidebar-item--active { background: var(--copper-25, #fef5eb); border-left: 3px solid var(--copper-500); }
.gd-sidebar-tag {
    font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--copper-700); background: var(--copper-50);
    border: 1px solid var(--copper-200);
    padding: 2px 5px; border-radius: 2px;
    flex-shrink: 0; margin-top: 2px; white-space: nowrap;
}
.gd-sidebar-item-title {
    font-size: 0.82rem; color: var(--ink-80);
    line-height: 1.45; font-weight: 400;
}
.gd-sidebar-item:hover .gd-sidebar-item-title { color: var(--copper-700); }

/* Single guide article */
.gd-article-breadcrumb {
    font-size: 0.76rem; color: var(--ink-40);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.gd-article-breadcrumb a { color: var(--primary); text-decoration: none; }
.gd-article-breadcrumb a:hover { color: var(--accent); }
.gd-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--copper-500);
    padding: 36px 40px;
}
.gd-article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.gd-article-date { font-size: 0.77rem; color: var(--ink-40); letter-spacing: 0.05em; }
.gd-article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
/* -- Article tables - responsive scroll wrapper -- */
.gd-article .t360-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border: 1px solid var(--border);
}
.gd-article table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
}
.gd-article table th {
    background: var(--ink-05);
    border: 1px solid var(--border);
    padding: 9px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--ink-60);
    letter-spacing: 0.06em;
}
.gd-article table td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    color: var(--ink-70);
    vertical-align: top;
}
.gd-article table tr:nth-child(even) td { background: var(--bg-warm); }
.gd-article table tr:hover td { background: var(--green-25); }
/* scroll hint on small screens */
@media (max-width: 640px) {
    .gd-article .t360-table-wrap {
        position: relative;
    }
    .gd-article .t360-table-wrap::after {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 32px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .gd-article .t360-table-wrap.can-scroll::after {
        opacity: 1;
    }
}
.gd-tag-link {
    font-size: 0.70rem; font-weight: 600;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--copper-700); background: var(--copper-50);
    border: 1px solid var(--copper-200);
    padding: 3px 9px; border-radius: 2px;
    text-decoration: none; transition: all 0.15s;
}
.gd-tag-link:hover { background: var(--copper-200); }

/* Responsive */
@media (max-width: 991px) {
    .gd-layout { grid-template-columns: minmax(0, 1fr); }
    .gd-sidebar { display: none; }
    .gd-lead-card { grid-template-columns: 1fr; }
    .gd-lead-card .gd-lead-thumb { height: 220px; min-height: unset; }
}
@media (max-width: 640px) {
    .gd-grid { grid-template-columns: 1fr; }
    .gd-article { padding: 20px 16px; }
    .gd-pagination { flex-direction: column; gap: 10px; }
    .gd-page-numbers { justify-content: center; }
    .gd-filter-bar { flex-direction: column; align-items: flex-start; }
    .gd-lead-item:hover { margin: 0; padding-left: 0; padding-right: 0; }
    .gd-list-item:hover { margin: 0; padding-left: 0; padding-right: 0; }
    .gd-lead-title { font-size: 1.05rem; }
    .gd-lead-summary { display: none; }
    .gd-list-summary { display: none; }
    .gd-body { padding: 20px 0 40px; }
    .gd-results-count { font-size: 0.78rem; }
}

/* -- Missing gd- list/lead styles -- */
/* -- Fix 3: Page ellipsis aliases for gd-, cl-, cr- pages -- */
.gd-page-ellipsis,
.cl-page-ellipsis,
.cr-page-ellipsis { font-size: 0.83rem; color: var(--ink-20); padding: 0 4px; }

/* -- Fix 5: cl-sidebar-tag for non-court Explore items in case_laws sidebar -- */
.cl-sidebar-tag { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green-700); background: var(--green-25); padding: 2px 5px; border-radius: 2px; flex-shrink: 0; margin-top: 2px; white-space: nowrap; }

/* -- Fix 8: gd-lead-item and gd-list-item - consistent with up-lead-item / up-list-item -- */
.gd-list { }
.gd-lead-item {
    display: block;
    text-decoration: none;
    padding: 24px 0;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 4px;
    transition: background 0.15s;
}
.gd-lead-item:hover { background: var(--green-25); margin: 0 -12px 4px; padding-left: 12px; padding-right: 12px; }
.gd-lead-thumb { width: 100%; height: 260px; object-fit: cover; object-position: center top; border-radius: 4px; margin-bottom: 16px; display: block; }
.gd-lead-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gd-lead-date { font-size: 0.73rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-40); }
.gd-lead-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.gd-lead-summary { font-size: 0.89rem; color: var(--ink-60); line-height: 1.75; margin: 0 0 12px; font-weight: 300; }
.gd-lead-actions { margin-top: 4px; }
.gd-read-more { font-size: 0.77rem; font-weight: 700; letter-spacing: 0.05em; color: var(--primary); text-transform: uppercase; }

.gd-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
}
.gd-list-item:hover { background: var(--green-25); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.gd-list-item-body { flex: 1; min-width: 0; }
.gd-list-item-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.gd-item-date { font-size: 0.73rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-40); }
.gd-list-title { font-family: 'Merriweather', serif; font-size: 0.97rem; font-weight: 700; color: var(--ink); margin: 0 0 5px; line-height: 1.35; letter-spacing: -0.01em; }
.gd-list-summary { font-size: 0.83rem; color: var(--ink-60); line-height: 1.65; margin: 0; font-weight: 300; }
.gd-list-arrow { color: var(--ink-20); font-size: 0.76rem; flex-shrink: 0; transition: all 0.15s; }
.gd-list-item:hover .gd-list-arrow { color: var(--primary); transform: translateX(3px); }

/* ==================================================\u2
