/* Small WordPress and branding additions; layout and components use Metronic Demo 1. */
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.tip-shell { min-width: 0; min-height: 100vh; }
.kt-wrapper { min-width: 0; }
.tip-page-content { padding-bottom: 32px; }
.tip-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tip-brand-mark { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--primary); color: white; font-weight: 700; font-size: 21px; }
.tip-brand-name { font-size: 13px; font-weight: 750; letter-spacing: 1.1px; line-height: 1.4; white-space: nowrap; }
.tip-brand-name > span { display: block; font-size: 10px; letter-spacing: 3px; color: var(--muted-foreground); }
.tip-nav-link { padding: 11px 12px; gap: 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.tip-nav-link .kt-menu-icon { width: 20px; color: var(--muted-foreground); font-size: 18px; }
.tip-nav-link:hover, .kt-menu-item.active > .tip-nav-link { background: var(--accent); color: var(--primary); }
.kt-menu-item.active > .tip-nav-link .kt-menu-icon { color: var(--primary); }
.tip-menu-heading { padding: 26px 12px 10px; font-size: 10px; letter-spacing: 1.2px; font-weight: 600; color: var(--muted-foreground); }
.tip-sidebar-note { margin: 20px; padding: 14px; display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-weight: 600; }
.tip-sidebar-note span { display: block; margin-top: 5px; font-size: 10px; color: var(--muted-foreground); font-weight: 400; }
.demo1 .kt-sidebar-content { flex: 1 1 0; min-height: 0; overflow: hidden; }
/* KTDrawer removes its positional utility classes when leaving mobile mode.
   Keep sidebar sizing independent of those classes and of KTScrollable JS. */
.demo1 { --tip-admin-bar-height: 0px; }
.demo1.admin-bar { --tip-admin-bar-height: 32px; }
.demo1 #sidebar { top: var(--tip-admin-bar-height); bottom: 0; height: calc(100vh - var(--tip-admin-bar-height)); height: calc(100dvh - var(--tip-admin-bar-height)); }
.demo1 #sidebar_scrollable { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.demo1 #sidebar_menu { flex: 1 0 auto; min-height: max-content; }
.tip-sidebar-note { flex-shrink: 0; }
.tip-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 0 28px; }
.tip-eyebrow { color: var(--muted-foreground); font-size: 10px; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 9px; }
.tip-page-heading h1 { font-size: 25px; font-weight: 600; letter-spacing: -.6px; line-height: 1.3; }
.tip-page-heading p { font-size: 13px; color: var(--muted-foreground); margin-top: 8px; }
.tip-welcome { background: linear-gradient(115deg, var(--background), color-mix(in srgb, var(--primary) 7%, var(--background))); }
.tip-welcome .kt-card-content { padding: 28px; }
.tip-welcome h2 { font-size: 29px; font-weight: 600; letter-spacing: -.8px; line-height: 1.25; }
.tip-welcome p { max-width: 430px; margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--muted-foreground); }
.tip-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted-foreground); }
.tip-chip i { color: var(--primary); }
.tip-measurement { font-size: 38px; font-weight: 600; letter-spacing: -1px; }
.tip-measurement span { font-size: 16px; font-weight: 400; color: var(--muted-foreground); }
.tip-divider { border-top: 1px solid var(--border); margin: 20px 0; }
.tip-small-note { display: block; font-size: 10px; color: var(--muted-foreground); margin-top: 16px; line-height: 1.6; }
.tip-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 27px 0 17px; }
.tip-section-heading h2 { font-size: 17px; font-weight: 600; }
.tip-section-heading > span { color: var(--muted-foreground); font-size: 12px; }
.tip-library-card { transition: border-color .2s, box-shadow .2s; }
.tip-library-card:hover { border-color: var(--primary); box-shadow: 0 4px 18px #00000008; }
.tip-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tip-icon-tile { display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); border-radius: 10px; font-size: 21px; color: var(--primary); }
.tip-library-card h3 { font-weight: 600; font-size: 15px; }
.tip-library-card p { font-size: 12px; line-height: 1.8; margin-top: 8px; min-height: 44px; color: var(--muted-foreground); }
.tip-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted-foreground); }
.tip-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.tip-page-content > .kt-card.mt-7\.5 { margin-top: 30px; }
.tip-workflow span { color: var(--primary); font-size: 12px; font-weight: 600; }
.tip-workflow h3 { font-size: 14px; font-weight: 600; margin: 10px 0 5px; }
.tip-workflow p { font-size: 12px; color: var(--muted-foreground); line-height: 1.8; }
.tip-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 20px; text-align: center; }
.tip-empty p { color: var(--muted-foreground); font-size: 13px; line-height: 1.9; white-space: normal; }
.tip-table-scroll { overflow-x: auto; }
.tip-footer-inner { display: flex; justify-content: space-between; gap: 15px; padding-top: 22px; padding-bottom: 22px; font-size: 12px; color: var(--muted-foreground); }
.tip-skip-link { position: fixed; left: 15px; top: -100px; z-index: 100000; padding: 10px 20px; background: var(--background); border: 1px solid var(--primary); }
.tip-skip-link:focus { top: 42px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.admin-bar .kt-header, .admin-bar .kt-sidebar { top: 32px; }
.tip-prose p { margin-bottom: 16px; }
@media (min-width: 1024px) {
 .kt-sidebar-collapse .tip-brand-name, .kt-sidebar-collapse .tip-menu-heading, .kt-sidebar-collapse .tip-sidebar-note, .kt-sidebar-collapse .tip-nav-link .kt-menu-title, .kt-sidebar-collapse .tip-nav-link .kt-menu-badge { display: none; }
}
@media (max-width: 1023px) {
 .tip-collapse-toggle { display: none; }
 .kt-sidebar-header { min-height: 70px; }
 .tip-desktop-label { display: none; }
}
@media (max-width: 782px) {
 .demo1.admin-bar { --tip-admin-bar-height: 46px; }
 .admin-bar .kt-header, .admin-bar .kt-sidebar { top: 46px; }
 .tip-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
 .tip-workflow { grid-template-columns: 1fr; gap: 24px; }
 .tip-welcome h2 { font-size: 25px; }
 .tip-footer-inner { flex-wrap: wrap; }
 .tip-user { display: none; }
}
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* Metronic palette accents; semantic badges keep their native component colors. */
.tip-icon-tile { --tip-tone: var(--primary); color: var(--tip-tone); background: color-mix(in srgb, var(--tip-tone) 12%, var(--background)); }
.tip-tone-violet { --tip-tone: var(--color-violet-500); }
.tip-tone-info { --tip-tone: var(--color-blue-600); }
.tip-tone-warning { --tip-tone: var(--color-yellow-700); }
.tip-tone-success { --tip-tone: var(--color-green-600); }
.kt-menu-item.active > .tip-nav-link { background: color-mix(in srgb, var(--primary) 10%, var(--background)); }
.tip-workflow > div:nth-child(2) > span { color: var(--color-violet-500); }
.tip-workflow > div:nth-child(3) > span { color: var(--color-green-600); }

/* Keep directory titles and totals aligned on the same row. */
.tip-card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tip-card-title-row h3 { min-width: 0; }
.tip-card-record-count { flex-shrink: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--foreground); }
.tip-overview-count-note { margin: -5px 0 18px; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }

/* Master Tip Library vector identity. */
.tip-brand-full { display: block; width: 202px; height: auto; max-width: 100%; }
.tip-logo-dark, .tip-brand-compact { display: none; }
.dark .tip-logo-light { display: none; }
.dark .tip-logo-dark { display: block; }
@media (min-width: 1024px) {
 .kt-sidebar-collapse .tip-brand-full { display: none; }
 .kt-sidebar-collapse .tip-brand-compact { display: block; width: 36px; height: 36px; }
}
