/* LocalRank Modern styles: tool rules + CSS-only chrome behaviors.
   Everything is scoped so it never overrides the SeoBook theme chrome
   (loader.css) — the theme owns #binder/#content/#courses layout. */

/* --- results matrix (scoped to #report / #legend) --- */
#report table { border-collapse: collapse; font-size: 12px; }
#report td { padding: 2px 6px; }
#report td, #report th { border: 1px solid #e5e1c3; }
#report th { background: #F4F2F7; padding: 2px 6px; }
#report li, #legend li { margin-bottom: 4px; }
#legend { text-align: left; }

.custom-domain { background-color: #C5B88B; }
.my-domain { background-color: #699558; }

.tooltip {
    position: absolute;
    padding: 4px 6px;
    z-index: 10000;
    color: #303030;
    background-color: #f5f5b5;
    border: 1px solid #DECA7E;
    font-family: sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}
.tooltip h3 { margin: 0 0 5px; text-align: left; }
.tooltip a { color: #1a4b8c; }

/* External-link marker (scoped to tool content; replaces ./img/external.png). */
#content .external { padding: 0 14px 0 0; background: none; }
#content .external::after { content: "\2197"; font-size: 0.85em; color: #888; margin-left: 2px; }

/* Interconnectivity tick, replaces ./img/tick.gif (no external asset). */
.lr-tick { text-align: center; }
.lr-tick::after { content: "\2713"; color: #2a7; font-weight: bold; }

/* Restore hover-open for the nav submenus (replaces menu-dropdown.js).
   Specific enough to beat the theme's `display: none` on .dropdown. */
#nav ul.nav-top li:hover > ul.dropdown { display: block; }

/* Course ribbon fold: the theme's fold <img> is inline, so without Drupal's
   baseline CSS it drops ~9px onto the text baseline and overlaps the ribbon.
   Block-level pins it to the ribbon's top-left corner (matches the theme). */
.ribbon-fold-left img, .ribbon-fold-right img { display: block; }

/* --- join modal overlay (replaces colorbox) --- */
#lr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    z-index: 9999;
}
#lr-modal-overlay.open { display: block; }
#lr-modal-overlay > #seobook_join_popup {
    position: relative;
    margin: 5% auto;
    max-width: 680px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}
#lr-modal-overlay .close { position: absolute; top: 8px; right: 8px; cursor: pointer; }

/* --- tool form helpers (scoped to #content; no layout override) --- */
#content form[action="get.php"] { margin: 1em 0; }
#content label { display: inline-block; min-width: 120px; }
#content input[type="text"], #content select { padding: 2px 4px; }
#content input[type="submit"] { margin-top: 10px; padding: 4px 12px; cursor: pointer; }
#content .clear { clear: both; }
#progress, #timer { margin: 6px 0; }
