/* Lịch Việt v16.9.4: shared compact disclosure icon, matching native card controls.
   Native <details> retains native keyboard and accessibility behavior.
   Global surface only; not applied to menu/nav/close buttons. */
:root{
 --lvg-compact-size:36px;
 --lvg-compact-radius:12px;
 --lvg-compact-surface:#e2f0e7;
 --lvg-compact-border:#d4e7dc;
 --lvg-compact-focus:#0b9070;
 --lvg-compact-svg:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2354796a%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
}
html[data-theme="dark"]{
 --lvg-compact-surface:#2a4c3e;
 --lvg-compact-border:#416350;
 --lvg-compact-focus:#a5e2c4;
 --lvg-compact-svg:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b4dfc7%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
}
/* 1: native details summary is always the full, accessible hit target. */
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px;min-height:48px;list-style:none!important;cursor:pointer;
 -webkit-tap-highlight-color:transparent;
}
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary::-webkit-details-marker{display:none!important}
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary::marker{content:""!important}
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary::after{
 content:""!important;display:block!important;visibility:visible!important;
 box-sizing:border-box!important;width:var(--lvg-compact-size)!important;
 min-width:var(--lvg-compact-size)!important;height:var(--lvg-compact-size)!important;
 flex:0 0 var(--lvg-compact-size)!important;align-self:center!important;
 margin-left:auto!important;padding:0!important;
 border:1px solid var(--lvg-compact-border)!important;
 border-radius:var(--lvg-compact-radius)!important;
 background-color:var(--lvg-compact-surface)!important;
 background-image:var(--lvg-compact-svg)!important;
 background-size:16px 16px!important;background-repeat:no-repeat!important;
 background-position:center!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
 transform:rotate(0deg);transition:transform 170ms ease,background-color 170ms ease;
}
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)[open]>summary::after{transform:rotate(180deg)}
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary:focus-visible{
 outline:3px solid var(--lvg-compact-focus)!important;outline-offset:2px;
 border-radius:var(--lvg-compact-radius);
}
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary:hover::after{filter:brightness(.97)}
/* 2: conceal ONLY the old decorative caret; preserve leading functional icons,
   secondary text, checklist counts, and all forms/content. */
body :is(.cd-explain-more,.v120-disclosure,.tr-note,.sea-checklist,.lr-editor,.lr-notes,.departure-method,.departure-hour-details,.finder-source,.iching-manual) > summary :is(
 .v120-summary-chevron,.tr-note-chevron,.sea-chevron,.lr-editor-chevron,.lr-notes-chevron,.lvg-ref-chevron,.finder-source-chevron,.departure-hour-chevron
 ),
body .cd-explain-more>summary>span[aria-hidden="true"],
body :is(.qa-customize,.ak-more,.family-create,.journey-privacy,.sync-method-details,.sync-guide,.sync-about) > summary > svg:last-child{display:none!important}
body #qa-customize > summary > svg:last-child,
body .ak-more > summary > svg:last-child,
body .sync-method-details > summary > svg.sync-chevron,
body .sync-guide > summary > svg:last-child,
body .sync-about > summary > svg:last-child,
body .iching-manual > summary > svg:last-child,
body .finder-advanced > summary > svg:last-child,
body .v121-shortlist > summary > svg:last-child,
body .departure-method > summary > svg:last-child,
body .mt-more-actions > summary > svg:last-child,
body .family-create-details > summary > svg:last-child,
body .journey-privacy-details > summary > svg:last-child{
 display:none!important;
}
/* Fallback selectors for existing source class names, exact structural matches. */
body details:where(.family-create-details,.family-create,.family-create-disclosure,.journey-privacy,.journey-privacy-details,.lr-editor-details,.lr-card,.departure-age-manual,.departure-method,.finder-advanced,.v121-shortlist,.mt-more-actions) > summary > svg:last-child{display:none!important}
/* Keep legacy pseudo markers from drawing a second arrow. */
body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary::before{flex-shrink:0}
/* 3: non-native expand buttons already driven by their own JS; icon is presentation only. */
body :is(.v121-dashboard-expand,.iching-library-more,.prayer-more).lvg-compact-button{
 display:inline-flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px;min-height:48px;
}
body :is(.v121-dashboard-expand,.iching-library-more,.prayer-more).lvg-compact-button[hidden]{display:none!important}
body .lvg-compact-button::after{
 content:"";width:var(--lvg-compact-size);height:var(--lvg-compact-size);
 flex:0 0 var(--lvg-compact-size);display:block;box-sizing:border-box;
 border-radius:var(--lvg-compact-radius);border:1px solid var(--lvg-compact-border);
 background-color:var(--lvg-compact-surface);background-image:var(--lvg-compact-svg);
 background-position:center;background-repeat:no-repeat;background-size:16px 16px;
 transition:transform 170ms ease;
}
body .lvg-compact-button[aria-expanded="true"]::after{transform:rotate(180deg)}
body .lvg-compact-button:focus-visible{outline:3px solid var(--lvg-compact-focus)!important;outline-offset:2px}
@media(min-width:768px){:root{--lvg-compact-size:38px}}
@media(prefers-reduced-motion:reduce){
 body details:not(.lvg-compact-opt-out):not(.lvg-compact-reserved)>summary::after,body .lvg-compact-button::after{transition:none!important}
}


/* v16.9.5: de-duplicate legacy arrows without changing disclosure semantics.
 * The six Home/day almanac rows are *details*, not links; the single trailing
 * caret is the standard ::after surface. Keep leading symbols and annotations. */
body .almanac-v126 .traditional-summary-side,
body .almanac-v126 .almanac-v126-row>summary>svg:last-child,
body .almanac-v126 .almanac-v126-method>summary>svg:last-child,
body details.v121-studio-advanced>summary>svg:last-child,
body details.studio-disclosure>summary>svg:last-child{
 display:none!important;
}
/* Compound Home-hours summary includes a three-column preview. A pseudo
 * sibling after it cannot be aligned with the heading; retain just its
 * real heading chevron with the same 36x36 visual surface. */
body details.home-hours-details.lvg-compact-opt-out>summary{display:block!important}
body .home-hours-details .home-disclosure-action svg{
 box-sizing:border-box;width:var(--lvg-compact-size)!important;
 height:var(--lvg-compact-size)!important;flex:none;
 padding:9px!important;background:var(--lvg-compact-surface)!important;
 border:1px solid var(--lvg-compact-border)!important;
 border-radius:var(--lvg-compact-radius)!important;
 color:var(--lvg-compact-focus);transform:rotate(0deg);
}
body .home-hours-details[open] .home-disclosure-action svg{transform:rotate(180deg)}
/* An old standalone caret must never reappear next to the synthetic button. */
body details.prayer-advanced>summary::before{content:none!important;display:none!important}
