/* ==========================================================
   RETENTION PAGE STYLES
   Alaska Judicial Council
   ========================================================== */ /*

Welcome (or welcome back)! This redesign was drafted and built for the 2026 Retention Election. If you have questions, refer to the web binder.
                                                                 */
/* ==========================================================
                                      BASE TYPOGRAPHY & LINKS
   ========================================================== */

.page h1 {
  font-size: 22px;
}

.page h2 {
  font-size: 20px;
}

.page h3 {
  font-size: 20px;
}

.page .section h4:hover {
  color: #ffcc00 !important;
}

.page #sourceDocuments:hover {
    color: #ffcc00;
}

#sourceDocuments {
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color .2s ease;
}

/* Removed global body styles (handled by basic_style.css stylesheet) */

.page .main-nav a {
  font-size: 0.85rem;
}

/* ==========================================================
                                          MAIN PAGE CONTAINER
   ========================================================== */

.page {
  max-width: 960px;
  margin: 20px auto;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page a {
  color: #00457c;
}

.page .docs a {
  color: white;
  display: block;
  padding: 8px 0;
}

.docs a {
    display: block;
    padding: 8px 0;
    transition: all .2s ease;
}

.docs a:hover {
    padding-left: 6px;
}

.page a:hover {
  color: #ffcc00;
}

/* ==========================================================
                                               PROFILE HEADER
   ========================================================== */
.page .profile-layout {
  margin-top: .1rem;
  margin-bottom: .3rem;
  padding: 30px 20px 0px 30px;
}

.page .profile-content {
    margin-top: 20px;
}

/* Float the image */
.page .profile-image img {
  float: left;             
  width: auto;
  height: auto;
  margin: 0px 20px 5px 0px;   
  display: block;
  border: 1px solid #ccc;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

/* Optional cleanup: prevent layout break */
.page .profile-layout::after {
  content: "";
  display: table;
  clear: both;
}

.page .profile-content h1 {
  margin-bottom: 0;
  font-size: 2.2rem;
  color: #003d6b;
}

.page .profile-content h2 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  color: #666;
}

.page .profile-content .intro {
  margin-bottom: 24px;
}

/* ==========================================================
                                         RECOMMENDATION PANEL
   ========================================================== */

.page .recommendation {
  background: #f2f8f3;
  border-left: 6px solid #2fa84f;
  padding: 18px 22px;
  color: #1b5e20;
  margin-top: 30px;
  margin-bottom: 35px;
  margin-left: 0px;
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
}

.page .recommendation-label {
    display: block;
    font-size: .85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page .recommendation {
    background: linear-gradient(
    135deg,
    #e8f5e9,
    #ffffff);
}

/* ==========================================================
                                          PERFORMANCE SUMMARY
   ========================================================== */

.page .summary-inline {
    padding: 12px 18px;
    margin: 10px 0 20px 0;
    background: #f7f9fc;
}

.page .summary-inline p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.page .summary-inline p:last-child {
    margin-bottom: 0;
}

.performance-summary-section {
    padding-top: 20px;
    border-top: none;
}

.page .performance-summary-section {
    clear: both;
    padding: 24px 10px 0px;
}

.performance-summary-section h3 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #00457c;
    font-size: 1.5rem;
    font-weight: 700;

    border-top: 4px solid #00457c;
    padding-top: 12px;

    border-left: none;
    padding-left: 0;
}

/* ==========================================================
                                             JUDGE REFLECTION
   ========================================================== */

.judge-reflection {
    margin: 2rem auto 0;
    max-width: 800px;
    padding-top: 1.5rem;
    border-top: 1px solid #cfd6df;
}

.judge-reflection h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #004b87;
    margin-bottom: 1rem;
}

.judge-reflection h3:target {
    background: transparent;
}

.judge-reflection blockquote {
    max-width: 700px;
    padding-left: 1.5rem;
    border-left: 3px solid #004b87;
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    color: #333;
}

.quote-attribution {
    padding-left: 10px;
    margin: 1rem 0 0.25rem 1.5rem;
    font-weight: 700;
    color: #004b87;
}

.quote-note {
    margin: -15px 0 0 1.5rem;
    padding-left: 10px;
    font-size: 0.8rem;
    color: #666;
    font-style: oblique;
}

/* ==========================================================
                                         PERFORMANCE FINDINGS
   ========================================================== */

.page .section {
  padding: 0px 10px;
}

.page .section #ratings {
  padding-left: 40px;
}

/* SECTION HEADERS */
.page .section h3 {
  margin-top: 0;
  color: #00457c;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;

  border-top: 4px solid #00457c;
  padding-top: 12px;
}

/* ==========================================================
                        FINDINGS TOGGLES & EXPANDABLE CONTENT
   ========================================================== */

.page .section h4 {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 20px;
  color: #00457c;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  padding-left: 0px;
  position: relative;
}

/* arrow sits in the SAME left column as the blue bar */
.page .section h4 span {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  text-align: left;
}

/* ==========================================================
                                             DOCUMENT LIBRARY
   ========================================================== */

.page .docs-box {
  background: #00457c;
  padding: 14px 18px;
  border: 7px solid #ffcc00;
  margin-top: 10px;
  display: none;
}

/* ===== DOCUMENT LIST ===== */
.page .docs {
  columns: 2;
  column-gap: 30px;
  padding-left: 30px;
  margin: 0;
  list-style: none;
}

.page .docs li {
  margin-bottom: 6px;
}

.page .docs-description {
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.3);

    color: white;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 600;
}

.docs i {
    margin-right: 8px;
    width: 18px;
}

.docs .fa-file-pdf {
    color: #d32f2f;
}

.docs .fa-link {
    color: #0d5a99;
}

/* ==========================================================
                                         NAVIGATION OVERRIDES
   ========================================================== */

.main-nav {
  font-size: 1rem;
}

#navbar .main-nav a {
  color: white;
}

#navbar .main-nav a:hover {
  color: #ffcc00;
}

/* ===== PERFORMANCE FINDINGS LIST ===== */

.page .findings-intro-box {
    margin: 25px 0 35px 0;
    padding: 12px 18px;
    background: #f7f9fc;
}

.page .findings-divider {
    margin: 0 0 15px 0;
    border-top: 2px solid #d7e2ef;
}

.page .findings-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page .findings-list li {
  margin-bottom: 30px;
  padding-left: 0;
  position: static;
}

/* Remove the arrow entirely */
.page .findings-list li::before {
  content: none;
}

/* Finding title */
.page .findings-heading {
  color: #00457c;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* Question */
.page .findings-list li .findings-question {
  margin: 0 0 15px 25px;
  padding-left: 12px;
  border-left: 3px solid #d7e2ef;
  color: #555;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600 !important;
}

/* Findings box */
.page .findings-detail {
    margin-left: 25px;
    
    padding: 12px 16px;

    background: #f8fafc;
    border: 1px solid #e4e8ed;
    border-radius: 4px;
}

/* Paragraph spacing inside findings */
.page .findings-detail p {
  margin-bottom: 16px;
  line-height: 1.4;
  margin-right: 14px;
}

.page .findings-detail p:last-child {
  margin-bottom: 0;
}

.page .subsection-heading {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #00457C;
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 3px solid #00457c;
    padding-bottom: 6px;
}

.page .admin4justice {
    list-style: none;
    margin: 16px 0 16px 40px;
    padding: 0;
}

.page .admin4justice li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page .admin4justice li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2d6a4f;
    font-weight: bold;
}

.page .data-section-heading {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #00457c;
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 3px solid #00457c;
    padding-top: 6px;    
}

.page .findings-toggle {
  position: relative;
  display: inline-block;
    
  cursor: pointer;
  color: #00457c;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 5px 0;

  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.page .findings-toggle:hover {
  color: #ffcc00;
}

.page .findings-toggle .arrow {
  display: inline-block;
  width: 22px;
}

.page .findings-toggle:hover .arrow {
    color: #ffcc00;
}

/* Animated Underline on Hover */
.page .toggle-text {
    position: relative;
    display: inline-block;
}

.page .toggle-text::after {
    content: '';

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 0;
    height: 2px;

    background: #ffcc00;
    transition: width 0.25s ease;
}

.page .findings-toggle:hover .toggle-text::after {
    width: 100%;
}

.page .finding-content {
  display: block;
}

/* WRAPPED TABLES IN TEXT */

.chart-caption {
    margin-top: 12px;
    font-size: .9rem;
    color: #666;
    font-style: italic;
}

.page .wrapped-image {
  float: right;
  margin-left: 20px;
  margin-bottom: 5px;
  max-width: 100%;
  height: auto;
}

.ratings-section {
    margin: 30px 0;
}

.ratings-text {
    flex: 0 0 250px;
}

/* ==========================================================
                                 CHARTS & DATA VISUALIZATIONS
   ========================================================== */

.chart-container {
    display: block;
    width: fit-content;
    margin: 25px auto;
    background: white;
    padding: 15px;
    border: 1px solid #d7e2ef;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.chart-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

.chart-container img {
    transition: transform .25s ease;
}

.chart-container img:hover {
    transform: scale(1.02);
}

/* EXPANDABLE CHARTS */

.chart-container img {
    width: 100%;
    height: auto;
    display: block;
}

.expandable-chart {
    cursor: pointer;
}

/* ==========================================================
                                                     LIGHTBOX
   ========================================================== */

.chart-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chart-lightbox img {
    width: 95vw;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    color: white;
    font-size: 40px;
    font-weight: bold;

    cursor: pointer;
}

/* ==========================================================
                                                  BREADCRUMBS
   ========================================================== */

.breadcrumbs {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-left: 1rem;
    color: #666;
}

/* ==========================================================
                                             MOBILE OVERRIDES
   ========================================================== */

@media (max-width: 768px) {

    /* Page Container */

    .page {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    /* Profile Header */

    .page .profile-image img {
        float: left;
        width: 130px;
        max-width: 130px;
        height: auto;
        margin: 20px 10px 10px 0;
    }

    .page .profile-content h1 {
        font-size: 1.5rem;
        line-height: 1.05;
        margin-top: 0;
        margin-bottom: 4px;
        overflow-wrap: break-word;
    }

    .page .profile-content h2 {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .page .profile-content h2 .court-separator {
        display: none;
    }

    .page .profile-content h2 .district {
        display: block;
    }

    .page .intro {
        clear: left;
    }

    /* Section Layouts */

    .page .section {
        padding: 16px;
    }

    .page .section h3 {
        font-size: 1.5rem;
    }

    /* Recommendation Section & Label */

    .page .recommendation {
        font-size: 1rem;
        line-height: 1.35;
        padding: 12px;

        margin-top: 5px;
        margin-bottom: -5px;

        margin-left: 0;
        margin-right: 16px;

        width: auto;
    }

    .page .recommendation-label {
        font-size: 0.75rem;
    }

    /* Performance Summary Section */

    .page .performance-summary-section {
        padding-top: 5px;
        padding-left: 0;
        padding-right: 0;
    }

    .performance-summary-section h3 {
        margin-left: 0;
        margin-right: 16px;
    }

    /* Findings Section */

    .page .findings-heading {
        font-size: 1rem;
    }

    .page .findings-title {
        white-space: nowrap;
        font-size: 1.3rem !important;
        line-height: 1.15;
        margin-left: 0;
        margin-right: 16px;
    }

    .page .findings-toggle {
        font-size: 1rem;
        line-height: 1.4;
        display: block;
    }

    .page .findings-detail,
    .page .findings-question,
    .page .findings-list li .findings-question {
        margin-left: 0;
        margin-right: 0;
    }

    /* Documents */

    .page .docs {
        columns: 1;
    }

    /* Chart Formatting */

    .ratings-section {
        display: block;
    }

    .ratings-text {
        max-width: 100%;
        padding-bottom: 20px;
    }

    .chart-container {
        width: 100%;
        box-sizing: border-box;
    }

    .chart-container img {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .chart-caption {
        text-align: center;
        font-size: 0.9rem;
    }

}
