body > div {
    min-width: auto;
    min-height: auto;
}
body > main {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-bottom: 2rem;
}

section {
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 2.5em;;
    padding-bottom: 2.5em;;
}

p {
    margin-bottom: 1em;
}

.centre {
    text-align: center;
    justify-content: center;
}
.centre img {
    justify-content: center;
    margin: auto;
}
.text {
    padding-top: 1em;
    padding-bottom: 1em;
}

/* Responsive Letter Spacing */
* {
  letter-spacing: 
    clamp(
      -0.05em, 
      calc((1em - 1rem) / -10), 
      0em
    );
}

/* Sip to main content link */
.skip-container {
    position: absolute;
    top: -2em;
    left: 0px;
    transition: top 1s;
    z-index: 100;
    max-height: 2rem!important;
    min-height: auto;
}
.skip-container:focus-within {
    top: 0px;
}

.skip-content {
    margin-left: 3px;
    margin-top: 3px;
    position: relative;
    background-color: yellow;
    border: 2px solid black;
    border-radius: 5px;
}

a.skip-link {
    color: black;
    font-weight: 600;
    outline: none;
    padding-left: 2px;
    padding-right: 2px;
}

/* Section Headers */
.section-intro {
    text-align: center;
    margin-bottom: 2em;
}
.section-intro > h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}
.section-intro > p {
    font-size: x-large;
}

/* Banner */
.news-banner {
    width: 100%;
    background-color: rgb(187 225 250);
    color: rgb(27 38 44);
}

/* Notices */
.notice {
    margin-left: auto;
    margin-right: auto;
}

.publish-notice {
    text-align: center;
}

/* Description List */
dl.dl-inline {
    display: flex;
    flex-direction: column;
}

dl.dl-inline > div  {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #DDDDDD;
    margin-top:  0.5em;
    padding: 0.5em;
}
dl.dl-inline dt {
    font-weight: bold;
}
dl.dl-inline dd {
    margin-left: 0.5em;
}
dl.dl-inline dt::after {
    content: ":";
}

.certificate dt:nth-of-type(2n),
.certificate dd:nth-of-type(2n) {
  background-color: calc(var(--background-colour-2) + 25%);
}

.certificate dl.dl-inline {
    margin-left: 1.5em;
    margin-right: 1.5em;
}

#scope-of-test .expand ul li,
#scope-of-test .expand ol li {
    margin-bottom: 0.2em;
}

#scope-of-test .expand ul li:last-child,
#scope-of-test .expand ol li:last-child {
    margin-bottom: 0.6em;
}

/* Nested lists */
ol {
    list-style-type : decimal;
}
ol ol {
    list-style-type : lower-alpha;
    margin-left: 1rem;
}
ol ol ol {
    list-style-type : lower-roman;
    margin-left: 1rem;
}

ul {
    list-style-type : disc;
}
ul ul {
    list-style-type : circle;
}
ul ul ul {
    list-style-type : square;
}


/* expanding content */
.expand {
    display: none;
}
*[aria-expanded="true"] + .expand {
    display: block;
}
.drop-down::after {
    content: "▼";
    margin-left: 0.5em;
}
*[aria-expanded="true"] .drop-down::after {
    content: "▲";
}
.group {
    display: flex;
    text-wrap-mode: nowrap;
}

.menu .expand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* expanding content */
.scheme-1 .expand {
    background-color: var(--background-colour-1);
    color: var(--text-colour-1);
}

.scheme-2 .expand {
    background-color: var(--background-colour-2);
    color: var(--text-colour-2);
}

#known-issues .expand,
#scope-of-test .expand {
    padding-left: 3em;
    padding-top: 1em;
    padding-bottom: 1em;
}

.mobile-menu {
    position: relative;
}

/* remove italic from elements */
address, em, blockquote {
    font-style: normal;
}
em {
    font-weight: bold;
}

/* Tooltips */
.has-tooltip + span {
	color: black;
	background-color: #FFFFC0;	
	display: inline;
	position: absolute;			
	height:   1px;
	margin:  -1px;
	padding:  0;
	overflow: hidden;
	border:   0;
	z-index:  100;
}
		
.has-tooltip[tooltip-status=active] + span,  
.has-tooltip + span:hover {
	border:  2px solid black;
	height:  auto;
	margin:  auto;
	top:     1em;
}

/* Buttons */
button,
.btn,
.button {
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    padding: 0.7em;
}

/* 'Process' Points */
.process-point > div {
    border-left-width: 2px;
    border-left-style: solid;
    border-left-color: var(--tertiary-colour-1);
    padding-left: 1em;

}
.process-point > div > span {
    left: -10px;
}

/* modals */
.cookie-overlay,
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal .modal-body {
    background-color: white;
    color: black;

    padding: 20px;
    position: absolute;
    top: auto;
    left: auto;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    z-index: 1001;
}

.modal[data-status="open"] {
    display: block;
}

.modal .top-bound,
.modal .bottom-bound {
    position : absolute;
    max-width: 1px;
    max-height: 1px;
    background-color: transparent;
    color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    margin-left: -1px;
    z-index: 1002;
}


/* ************* Tab List ************* */
[role="tablist"] {
    height: 2rem;
}

[role="tab"] {
    height: 1.5rem;
    display: inline;
    cursor: pointer;
    border: 2px solid transparent;
}

[role="tabpanel"] {
    display: none;
    height: auto;
}
.active[role="tabpanel"] {
    display: flex;
}

/* List tables */
table.list[role="presentation"] {
    border-collapse: collapse;
    width: 100%;
}

table.list[role="presentation"] tr {
    border-bottom: 1px solid rgb(221 221 221);
}

table.list[role="presentation"] tr  td{
    padding-top: 1rem;
}

table.list[role="presentation"] tr  td > span {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.2rem;
    padding-left:  0.5rem;
    padding-right: 0.5rem;
    margin-left: 1em;
    color: white;
}

table.list[role="presentation"] tr  td > span.active {
    background-color: Green;
}

table.list[role="presentation"] tr  td > span.expired {
    background-color: Red;
}
/* style */

.present-tabs {
    background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
    padding: 0.2rem;
    padding-left:  0.3rem;
    padding-right: 0.3rem;
    border-radius: 0.5rem;
    display: inline-flex;
}

.present-tabs > [role="tab"] {
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.present-tabs > [role="tab"]:hover {
    --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.present-tabs > [role="tab"] > span {
    position: relative;
    top: -0.4rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.present-tabs > [role="tab"]:not(.present-tabs > :last-child) {
    margin-right: 0.5rem;
}

.present-tabs > [role="tab"][aria-selected="true"] {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));

    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));

     --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
}

h2.small-heading {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
}
p.sub-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1em;
}

.profile-pic {
    object-fit: contain !important;
    height: 10rem!important; 
    width: 10rem!important; 
    overflow: hidden!important;
}

/* *********** Positioning of elements *********** */
/* row and columns */

/* EXAMPLE USAGE:
<div class="row">
    <div class="col-10 center"><i>icon</i></div>
    <div class="col-50 grow-xx">
        <p>text</p>
    </div>
</div>
*/
.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

[class^="col-"] {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-left: 1em;
    margin-right: 1em;
}

.col-side,
.col-10,
.col-10th {
    flex-basis: 10%;
}

.col-xsm,
.col-20,
.col-4th {
    flex-basis: 20%;
}
.col-sm,
.col-30,
.col-3rd {
    flex-basis: 30%;
}
.col-md,
.col-40,
.col-half {
    flex-basis: 40%;
}
.col-lg,
.col-70,
.col-2-3rds {
    flex-basis: 70%;
}
.col-xl,
.col-full,
.col-100
.col {
    flex-basis: 100%;
}

.grow[class^="col-"] {
    flex-grow: 1;
}
.grow-x[class^="col-"] {
    flex-grow: 2;
}
.grow-xx[class^="col-"] {
    flex-grow: 3;
}

.shrink[class^="col-"] {
    flex-shrink: 1;
}
.shrink-x[class^="col-"] {
    flex-shrink: 2;
}
.shrink-xx[class^="col-"] {
    flex-shrink: 3;
}

.centre[class^="col-"],
.center[class^="col-"] {
    align-self: center;
}

/* ******** Cards ******** */
.row > .card:not(:last-child) {
    margin-right: 2em;
}
.row > .h-card:not(:first-child) {
    margin-left: 2em;
}

.card {
    padding: 2em;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column!important;
}

.h-card {
    padding: 0em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: row!important;
    border-radius: 1.5rem;
}
.h-card .icon {
    color: black;
}
.color-card {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}
.color-card .icon {
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 9999px;
}
.color-card:nth-child(1) > .h-card,
.color-card:nth-child(1) > .card {
    background-color: #e2eefe;
}
.color-card:nth-child(1) > .h-card .icon,
.color-card:nth-child(1) > .card .icon {
    background-color: #2563eb;
}
.color-card:nth-child(2) > .h-card,
.color-card:nth-child(2) > .card {
    background-color: #e3fcec;
}
.color-card:nth-child(2) > .h-card .icon,
.color-card:nth-child(2) > .card .icon {
    background-color: #0891b2;
}
.color-card:nth-child(3) > .h-card,
.color-card:nth-child(3) > .card {
    background-color: #f6edff;
}
.color-card:nth-child(3) > .h-card .icon,
.color-card:nth-child(3) > .card .icon {
    background-color: #9333ea;
}
.color-card:nth-child(4) > .h-card,
.color-card:nth-child(4) > .card {
    background-color: #fff2e2;
}
.color-card:nth-child(4) > .h-card .icon,
.color-card:nth-child(4) > .card .icon {
    background-color: #FFFFFF;
}
.color-card:nth-child(5) > .h-card,
.color-card:nth-child(5) > .card {
    background-color: #e0fcf6;
}
.color-card:nth-child(5) > .h-card .icon,
.color-card:nth-child(5) > .card .icon {
    background-color: #FFFFFF;
}
.color-card:nth-child(6) > .h-card,
.color-card:nth-child(6) > .card {
    background-color: #ffeaec;
}
.color-card:nth-child(6) > .h-card .icon,
.color-card:nth-child(6) > .card .icon {
    background-color: #FFFFFF;
}

.h-card [class^="col-"] {
    margin-left: 0.4em;
    margin-right: 0em;
}

.card[highlight] {
    border-width: 0.3rem;
    border-style: solid;
    border-image: var(--colour-wheel-gradient);
    border-radius: var(--card-border-radius);
}

.card > .card-tag {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1;
    border-radius: var(--card-border-radius);
}

.card .card-header,
.h-card .card-header {
    font-weight: 600;
    font-size: small;
    margin-bottom: 1em;
}

.card .card-body,
.h-card .card-body {
    margin-bottom: 0.5em;
}

.card .card-footer,
.h-card .card-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-grow: 2;
    margin-top: 0.5em;
}

.card .card-footer button {
    width: 100%;
}

.card .card-body p {
    margin-bottom: 0.5em;
}

.card .card-body ul > li {
    margin-bottom: 0.5em;
    padding: auto;
}

.card img {
    margin: auto;
    max-width: 400px;
    width: auto;
    height: auto;
    margin-top: 0.3em;
    margin-bottom: 1em;
}


 /* styles */

.alt-background {
    background-color: var(--tertiary-colour-1);
}

.card {
    --colour-wheel-gradient: linear-gradient(
        to right, 
        red 10%, 
        orange 20%, 
        yellow 30%, 
        green 40%, 
        teal 50%,
        blue 60%, 
        purple 90%) 30 stretch;
}

.card {
/* default */
    background-color: rgb(255 255 255);
    border: 1px solid rgb(221 221 221);
    border-radius: var(--card-border-radius);
}
.scheme-1 .card {
    background-color: var(--set-background-colour-1);
    color: var(--text-colour-1);
    border-color: var(--border-colour-1);
}
.scheme-2 .card {
    background-color: var(--set-background-colour-2);
    color: var(--text-colour-2);
    border-color: var(--border-colour-2);
}

.card .card-footer button,
.scheme-1 .card .card-footer button {
    color: var(--text-colour-1);
    background-color: var(--set-background-colour-1);
}
.scheme-2 .card .card-footer button {
    color: var(--text-colour-1);
    background-color: var(--set-background-colour-1);
}

.card > .card-tag {
    background-color: rgb(150 50 235);
    color: rgb(255 255 255);
    font-size: small;
}

ul[class$="-list"] > li {
    display: flex;
}

ul.ticked-list {
    list-style: none;
}
ul.ticked-list li::before {
    content: "✓";
    padding-right: 0.5em;
}
ul.ticked-list li::marker {
    color: Green;
}

ul.arrowed-list {
    list-style: none;
}
ul.arrowed-list li::before {
    content: "➤";
    padding-right: 0.5em;
}
ul.arrowed-list li::marker {
    color: Red;
}

/** Blof Specific **/

.blog-categories {
    padding-top: 1rem;
    border-bottom: var(--tertiary-colour-1) 1px solid;
}

.author-image {
    object-fit: contain !important;
    height: 5rem; 
    width: auto; 
}

.attribution-item {
    margin-right:3rem;    
    display: flex;    
    flex-direction: row;    
    align-items: flex-end;    
    flex-grow: 0;
}

/* input fields */

.field-group {
    padding-bottom: 1em;
}

input[type="text"],
input[type="number"] {
    border: 2px solid rgb(221 221 221);
    border-radius: 5px;
    padding: 0.1em;
    margin-left: 1em;
    text-align: left;
    box-shadow: 0 0 5px rgba(190, 247, 243, 0.916);
    min-width: 50%;
}
textarea + button[aria-expanded] > span[aria-hidden] {
    display: none;
}
textarea + button[aria-expanded="true"] > span[aria-hidden]:nth-child(1) {
    display: inline-block;
}
textarea + button[aria-expanded="false"] > span[aria-hidden]:nth-child(2)  {
    display: inline-block;
}

textarea { 
    Width: 50%;
}
textarea.expand {
    width: 100%;
}

/**** Extra Padding & Margin ****/
.padding-top {
    padding-top: 2.5em;
}
.padding-bottom {
    padding-bottom: 2.5em;
}
.margin-top {
    margin-top: 2.5em;
}
.margin-bottom {
    margin-bottom: 2.5em;
}

/*** Forms ***/
form.contact-us {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
form.contact-us input[type="text"] {
    min-width: 30em;
}

/**** Section specific ****/
.minor-tag {
    font-size: 0.9rem;
    border-radius: 99999px;
    width: fit-content;
    padding-left: 0.5em;
    padding-right: 0.5em;
    font-weight: bold;
}

