/* Sticky footer and basic layout setup */
body {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}
.masthead.segment {
    background-color: #093d74 !important;
    flex: none;
    padding: 2rem 0;
}
.content.segment {
    padding: 1rem 0 2rem 0;
    flex: 1 0 auto;
}
.footer.segment {
    min-height: 5rem;
    background-color: #f5f6f7 !important;    
    flex: none;
}
.footer.segment .container p {
    text-align: center;
}

/* Split header into two columns */
.twocol {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.twocol h2 {
    color: #eee;
    font-size: 1.5rem;
    line-height:1.2rem;
    padding-left:1.5rem;
    text-align: right;
}
.twocol img {
    max-width:100%;
}

/* Adjustment to the appearance of section headings */
.ui.dividing.header {
    color: #398be4;
    padding: 0.9rem 0.1rem 0.8rem 0.1rem;
    margin-bottom: 1.8rem;
    margin-top: 2.5rem;
    background-color: #f5f6f7;
    border-top: 0px solid rgba(34,36,38,.15);
}

/* 
With suffix enables right labels outside the field:
<div class="four wide field">
    <label>Draught</label>
    <div class="withsuffix">
        <input type="text" name="EFdraft">
        <span>metres</span>
    </div>  
</div>
*/
.field .withsuffix {
    display:flex; 
    align-items:baseline;
}
.inline.field .withsuffix {
    display:inline-flex;
}
.field .withsuffix > * {
    min-width:0;
}
.field .withsuffix span {
    margin-left: 0.5rem;
    margin-right: 1.0rem;
}
.fields.indented {
    padding-left: 4.5rem;
    padding-bottom: 0.5rem;
}

/* Fixes spacing bug in mobile view */
.right.labeled.input, .vspaced {
    margin-bottom: 1rem !important;
}

/* Provides some additional formatting within labels */
label em {
    font-weight: normal;
    font-style: normal;
}
label span {
    font-weight: normal;
    font-style: italic;
    display:block;
}

/* Named sections */
.rated-only, .numerals-only {
    display: none;
}

.toggle.checkbox {
    margin-top: 0.7rem;
}
.large.hidden.divider {
    margin: 1.6rem 0;
}

.ui.form .three.fields > .double.width.field {
    width: 66.666666667%
}

input.right.aligned {
    text-align: right
}

/* Force second row to not have top border when first row is hidden */
.ui[class*="vertically divided"].firsthidden.grid > .row:nth-child(2)::before {
    -webkit-box-shadow: none;
    box-shadow: none;

}

/* Useful variation for tighter layout */
.compressed.grid .column {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Extra formatting options for grid */
.row.strong, .column.strong {
    font-weight: 700;
}
.row.strong em, .column.strong em {
    font-weight: normal;
    font-style: normal;
    font-size: 0.8em;
    line-height: 1.1em;
    color: grey;
    display:block;
}

/* Formatting for tracking code */
.field .ui.tiny.statistic {
    margin-top: 0.5rem;
}
.field .ui.tiny.statistic > .value {
    font-size: 1.5rem !important;
}

.small {
    font-size: 0.9em;
    color: #777;
}