/* Settings to override the https://jrm.navy.nepa.mil/ website's AllHandsTheme theme/styles */
/* Override 1 linespacing */
p,li {
  line-height: 1.5;
}

/* Override the default Oswald font that appears bold */
li {
	font-family: 'OswaldLight';
	font-weight: normal;
}
/* Make the Second-Level List a dash */
ul.jrm-dashed-nested-list ul {
  list-style-type: none !important; /* Forces removal of default nested disc/circle bullets */
  padding-left: 1.25rem;            /* Matches standard Bootstrap indentation */
}

/* 2. Global Second-Level Dash Insertion */
ul.jrm-dashed-nested-list ul > li::before {
  content: "– ";                   /* Injects the en-dash character plus a space */
  margin-left: -1rem;               /* Pulls the dash into the padding gutter */
  display: inline-block;
  width: 1rem;                      /* Keeps the text perfectly aligned if it wraps */
  color: inherit;                   /* Ensures the dash matches your text color automatically */
}

/* Chain tags together to maximize selector strength */
body html ul.dashed-nested-list2 ul,
div ul.dashed-nested-list ul,
ul.dashed-nested-list ul li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Ensure the dash pseudo-element stays visible */
body html ul.dashed-nested-list2 ul > li::before {
  content: "– " !important;
  margin-left: -1rem !important;
  display: inline-block !important;
  width: 1rem !important;
}


/* Accordion Tabs */
/* Active Tab Header Text */
/* When Display Style is set to "Tabs - Selected", the active tab label appears to be blank. It is because it is displaying white text on a white background. This will reset the active tab font color to black */
.ui-tabs .ui-tabs-nav li.ui-state-active a,
.ui-accordion .ui-accordion-header.ui-state-active a {
    color: #000000 !important;
}
/* Accordion Menu using Army template */
.armyAccordionMenuSubMenu .armyMenuLinkHeader a {
    font-size: initial;
    color: #3d3d3d;
    /* font-family: Helvetica,Arial,sans-serif; */
    /* font-weight: bold; */
}

/* Buttons */
/* Base button wrapper layout reset and core parameters */
.btn-grow-shadow-image {
    background-color: transparent !important; 
    border: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: inline-block !important; 
    width: 100% !important; /* Guarantees filling the parent bootstrap grid column */
    
    /* Crucial anchor mapping configuration for absolute child layouts */
    position: relative !important; 
    
    cursor: pointer; 
    overflow: hidden; /* Clips the background graphic / overlay to match border radius */ 
    text-decoration: none !important; /* Disables standard DNN links underline styling on hover */ 
    
    /* Smooth transition matching engine for sizes and shadow tracking variables */ 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0); 
} 

/* Combined magnification growth action and smooth drop shadow deployment on hover */ 
.btn-grow-shadow-image:hover, 
.btn-grow-shadow-image:focus { 
    transform: scale(1.04); /* Scales up precisely by 4% to prevent edge-blurring */ 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), 0 6px 6px rgba(0, 0, 0, 0.18); 
} 

/* Mechanical active click/tap compression behavior physics feedback */ 
.btn-grow-shadow-image:active { 
    transform: scale(0.98); 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
} 

/* Absolute tracking baseline structure for the TOP grey translucent block text bar */ 
.bg-grey-overlay { 
    background-color: rgba(45, 45, 45, 0.65) !important; /* Premium dark-grey visibility tint layer */
    transition: background-color 0.3s ease-in-out; 
    
    /* Absolute tracking anchored to the top bounds */
    position: absolute !important;
    top: 0 !important;              
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* Forces the box to adhere perfectly to the image width bounds */
    height: auto !important; /* Allows the background to grow vertically if text wraps */
    
    text-align: center !important; 
    padding: 12px 15px !important; /* Generous breathing buffer around typography */
    box-sizing: border-box !important; 
    z-index: 5; /* Forces strict execution rendering display layering order over image elements */
} 

/* Darkens the background tint opacity balance layer when a user hovers over the button card */ 
.btn-grow-shadow-image:hover .bg-grey-overlay { 
    background-color: rgba(25, 25, 25, 0.85) !important; 
} 

/* String text typography design rules and global layout configuration overrides */ 
.bg-grey-overlay span { 
    color: #ffffff !important; /* Flawless solid high-contrast white tracking override */
    
    /* DESKTOP RELATIVE SIZING: Updated to exactly 1.5rem as requested */
    font-size: 1.25rem !important; 
    
    font-weight: 700 !important; /* Ensures bold title presence matching Bootstrap standard values */
    
    /* Strict wrapping rules */
    display: block !important; /* Dictates block formatting behavior so headers wrap naturally */
    width: 100% !important; 
    white-space: normal !important; /* Overrides any global layout styles forcing single text lines */
    line-height: 1.3 !important; /* Ensures stacked sentences don't collide or overlap */
    
    letter-spacing: 0.75px; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Built-in subtle backdrop protection shadow for text legibility */
}

/* ==========================================================================
   Responsive Viewport Breakdown Media Queries
   ========================================================================== */

/* Smooth scaling tracking layout reduction system rule for smart phone screens */
@media (max-width: 576px) {
    .bg-grey-overlay {
        padding: 8px 10px !important; /* Tightens inner bar layout constraints slightly on phones */
    }
    .bg-grey-overlay span {
        /* MOBILE RELATIVE SIZING: Tracks down seamlessly to keep layout proportions balanced */
        font-size: 1.0rem !important; 
        line-height: 1.3 !important;
        letter-spacing: 0.5px;
    }
}

/* Quote */
.jrm-quote {
	line-height: 1.5;
	color:#ffffff;
	text-align: center;
	background-color: #306c0f;
	border-radius: 8px !important;
	font-size: x-large;
	font-weight: bold;
}

/* Accordion Menu */
.armyAccordionMenu {
	margin-top: 10px
}


/* Figure Captions */
figcaption {
    color: #000000 !important; /* Replace with your desired color */
}
figcaption a {
    color: #585858 !important; /* Replace with your desired color */
}
