/* In-module navigation anchors to this wrapper; keep clear of sticky headers/tab bars */
#awards-entry {
	scroll-margin-top: 90px;
}

#aos-AW_WrapperInner {
	display: flex;
	flex-direction: column;
	align-items: center;
}
#aos-AW_WrapperInner > *:not(.aos-AW_Categories) {
	max-width:800px;
}

.ao-documentdownload {
    white-space: nowrap;
}

.aos-AW_CriteriaFull {
	display:none;
} 

.aos-Awards_EntryWrapper form {
	max-width:650px;display:inline-block;text-align:left;width:100%;
} 

.aos-Awards_EntryWrapper .aoInputLabel {
	margin-bottom:10px;padding:0;
} 

.aos-AW_CommentForm textarea{	
	background-color:#ffffff;
} 

.aos-AW_StepContainer {
	display:table;
} 
	
#aoAwardsEntry .ao-FormLine{
	text-align:center;
} 

#aoAwardsEntry .ao-FormLine > div {
	display:inline-block;float:none;width:auto;
}

.aos-AW_EntryDetail textarea {
	resize:vertical;padding:0.5em;width:100%;margin-bottom:10px;
} 

.aos-AW_FooterContainer {
	position:fixed;left:0;bottom:0;width:100%;top:auto;z-index:1;
} 

.aos-AW_LastEntry {
	margin-bottom:120px;
}

.aos-Awards_FormButtons {
	text-align:center;
}

.progressbar li {
      list-style-type: none;      
      float: left;      
      position: relative;
      text-align: center;        
}
.progressbar li:before {
    width: 40px;
    height: 40px;
    content: "";
    line-height: 40px;    
    display: block;
    text-align: center;
    margin: 0 auto 3px auto;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background-color: #fff;
}
.progressbar li:after {
     width: 100%;
     height: 3px;
     content: '';
     position: absolute;    
     top: 20px;
     left: -50%;
     z-index: 0;
}
.progressbar li:first-child:after {
     content: none;
}

.progressbar li.active:before {    
    background: green;
 }

.progressbar {
    counter-reset: step;
    margin: 0;
}
.progressbar li:before {
    content: counter(step);
    counter-increment: step; 
}
.progressbar li.active:before {    
    background-size: 60%;
    content: '';
}

@media screen and (max-width:479px){ 
	.aos-AW_StepContainer { 
		font-size:0.75em;
	}		
}

.aos-AW_FilePreview {
    display: flex;    
    gap:10px;
    justify-content: space-between;
    align-items: center;
}

.aos-AW_FilePreview a:has(>img){
    width: 60px;
    height: 60px;
    overflow: hidden;
    position: relative;  
    border-radius: 5px;
}

.aos-AW_FilePreview img {
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Awards Introduction: Categories list (TASK-212028) --- */

.aos-AW_CategoriesHead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 5px 15px;
}

.aos-AW_CategoriesHint {
	opacity: 0.7;
}

/* Column counts (grid-template-columns) are injected per Award profile - see AW_IntroDisplay.cfc. minmax(0,1fr) stops long words forcing tracks wider than their share. align-items:stretch makes every card in a row equal height (matches the Figma, in both collapsed and expanded states). */
.aos-AW_CategoriesGrid {
	display: grid;
	gap: 12px;
	align-items: stretch;
}

/* Flex column so the header fills the card height. While every card is collapsed the grid stretches them to equal height and the label sits at the top (TASK-297145 - was centred; a long title in the row otherwise dropped the shorter labels to the middle). Once any card is expanded we stop stretching (see .aos-AW_HasOpen below) so an open panel doesn't drag its row-mates taller - Mark, TASK-212028. */
.aos-AW_CategoryCard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* TASK-212028 (Mark): when any card in the grid is open (JS adds .aos-AW_HasOpen), stop the grid
   stretching the siblings to match the expanded panel - collapsed cards keep their natural height,
   top-aligned. Scoped to the open state so idle rows still stretch to equal, tidy heights. */
.aos-AW_CategoriesGrid.aos-AW_HasOpen .aos-AW_CategoryCard {
	align-self: start;
}

.aos-AW_CategoryToggle {
	flex: 1 0 auto;
	display: flex;
	/* TASK-297145: top-anchor the header (icon + name + chevron) so headings line up across a
	   row whatever the title length. align-items:center used to float a short title into the
	   middle of a taller card - most visible when a row-mate's title wraps or is much longer. */
	align-items: flex-start;
	gap: clamp(.5rem, 1vw, 1rem);
	padding: clamp(.5rem, 1vw, 1rem);
	min-height: 64px;
	box-sizing: border-box;
	cursor: pointer;
}

/* TASK-212028 (Mark): drop the browser's default focus box on click, but keep a keyboard-only
   ring so the toggle still meets WCAG 2.1 SC 2.4.7. Inset offset so the ring isn't clipped by the
   card's overflow:hidden. */
.aos-AW_CategoryToggle:focus {
	outline: none;
}

.aos-AW_CategoryToggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/*.aos-AW_CategoryName {
	flex: 1 1 auto;
	min-width: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}*/

/* Category icon slot - default placeholder SVG (currentColor) or the uploaded per-category image (TASK-217606), capped small */
.aos-AW_CategoryIcon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
}

.aos-AW_CategoryIcon img {
	max-width: 50px;
	max-height: 50px;
	display: block;
}

/* Caret drawn from borders so it inherits the theme text colour (currentColor) - no icon asset needed */
.aos-AW_CategoryChevron {
	flex: 0 0 auto;
	margin-left: auto; /* TASK-212028: pin the chevron to the card's right edge regardless of category-name length */
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	opacity: 0.6;
}

.aos-AW_CatOpen .aos-AW_CategoryChevron {
	transform: rotate(-135deg);
}

/* Collapsed by default; the toggle JS slides this open. flex:0 0 auto keeps its natural height so the header above takes the stretch instead. */
.aos-AW_CategoryDetail {
	display: none;
	flex: 0 0 auto;
	padding: 0 clamp(.5rem, 1vw, 1rem) clamp(.5rem, 1vw, 1rem);
}

/* Divider sits flush under the title with a fluid gap before the summary (the rest of its styling comes from aos-DS{N}-HDivider) */
.aos-AW_CategoryDetail hr {
	margin: 0 0 clamp(.5rem, 1vw, 1rem);
}

.aos-AW_CategoryActions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	/* TASK-212028: 14px gap above the Add Entry / price row so it isn't flush against the category summary (Figma node 24:12580, pt-14) */
	padding-top: 14px;
}

.aos-AW_CategoryPrice,
.aos-AW_CategoriesCTA .aos-Price {
	display: inline-block;
	margin: 0;
}

.aos-AW_CategoriesCTA {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	padding: 16px;
}

.aos-AW_CategoriesCTAAction {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 15px;
}

/* Entry Fee label stacked over the price, beside the Add entry button (matches the Figma CTA) */
.aos-AW_CategoriesCTAFee {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

/* Mobile (Br3): stack the heading/hint and the CTA */
@media screen and (max-width:599px){
	.aos-AW_CategoriesCTA {
		flex-direction: column;
		align-items: flex-start;
	}
}