:root {
  scroll-behavior: smooth;

  /* --pageWidth: calc(100vw - 17px); */
  --pageWidth: 100%;

  --headerTopHeight: 48px;
  --headerMainHeight: 11vw;
  --headerMenuHeight: min(48px, 3.6vw);
  
  --iconHome: rgb(137, 0, 18);
  --headerTop: rgb(196, 0, 9);
  --headerTopBorder: rgb(124, 0, 21);
  --headerMain: rgb(184, 0, 4);
  --headerMainBorder: rgb(205, 21, 51);
  --headerTitleTagline: rgb(241, 204, 205);

  --standfirstLink: rgb(241, 204, 205);
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: rgb(63, 63, 63);
  background-color: rgb(255, 255, 255);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns:
    [headerHeading-start] 54vw [headerHeading-end] 0
    [headerSearch-start] auto [headerSearch-end];
  grid-template-rows:
    [headerTop-ceiling] var(--headerTopHeight) [headerTop-floor] 0
    [headerMain-ceiling] var(--headerMainHeight) [headerMain-floor] 0
    [headerMenu-ceiling] var(--headerMenuHeight) [headerMenu-floor];
  width: var(--pageWidth);
  height: calc(var(--headerTopHeight) + var(--headerMainHeight) + var(--headerMenuHeight));
  color: rgb(255, 255, 255);
  background-color: rgb(191, 0, 0);
  box-shadow: 0 0.3vw 0.9vw rgb(63, 0, 0);
  overflow: hidden;
  transition: grid-template-rows 0.6s ease-out, height 0.6s ease-out;
}

.headerTopArea {
  grid-area: headerTop-ceiling / headerHeading-start / headerTop-floor / headerSearch-end;
  background-color: var(--headerTop);
  border-bottom: 1px solid var(--headerTopBorder);
  overflow: hidden;
}

.headerHeadingArea {
  grid-area: headerMain-ceiling / headerHeading-start / headerMain-floor / headerHeading-end;
}

.headerSearchArea {
  grid-area: headerMain-ceiling / headerSearch-start / headerMain-floor / headerSearch-end;
  padding: 12px 6px;
}

.headerHeadingArea,
.headerSearchArea {
  background-color: var(--headerMain);
  border-top: 1px solid var(--headerMainBorder);
  overflow: hidden;
}

.headerMenuArea {
  grid-area: headerMenu-ceiling / headerHeading-start / headerMenu-floor / headerSearch-end;
  /* grid-row: headerMenu-ceiling / headerMenu-floor; */
  /* grid-column: headerHeading-start / headerSearch-end; */
  z-index: -3;
  background-color: rgb(255, 127, 127);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.6s ease-out;
}

@font-face {
  font-family: 'archivo-black';
  font-display: swap;
  src: url('/.ashiva-assets/site/theme/elements/font/archivo-black/archivo-black.woff2') format('woff2'),
       url('/.ashiva-assets/site/theme/elements/font/archivo-black/archivo-black.woff') format('woff');
}

@font-face {
  font-family: 'brush-script-mt';
  font-display: swap;
  src: url('/.ashiva-assets/site/theme/elements/font/brush-script-mt/brush-script-mt.woff2') format('woff2'),
       url('/.ashiva-assets/site/theme/elements/font/brush-script-mt/brush-script-mt.woff') format('woff');
}

@font-face {
  font-family: 'bookman-old-style';
  font-display: swap;
  src: url('/.ashiva-assets/site/theme/elements/font/bookman-old-style/bookman-old-style.woff2') format('woff2'),
       url('/.ashiva-assets/site/theme/elements/font/bookman-old-style/bookman-old-style.woff') format('woff');
}

.iconHome {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 40px;
  height: 40px;
  transition: all 0.6s ease-out;
}

.headerTitle {
  margin: 0;
  padding: 0 0 0 0.7vw;
  line-height: 6vw;
  font-family: 'archivo-black', sans-serif;
  font-size: 6vw;
  font-weight: 400; 
}

.headerTitleTagline {
  display: block;
  line-height: 3.4vw;
  font-family: 'brush-script-mt', cursive;
  font-size: 3.5vw;
  font-weight: 400;
  color: var(--headerTitleTagline);
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.headerSearchArea {
  position: relative;
  margin: 0;
  padding: 0;  
}

.siteSearch {
  display: block;
  width: calc(100% - 1.6vw);
  height: 54px;
  margin: 0.8vw;
  padding-left: 54px;
  line-height: 54px;
  color: rgba(255, 0, 0, 0.75);
  font-size: 2vw;
  font-weight: bold;
  border: 3px solid var(--iconHome);
  border-radius: 6px;
}

.siteSearch::placeholder {
  color: rgba(255, 0, 0, 0.35);
}

.iconSearch {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  margin: calc(0.8vw + 6px);
  opacity: 0.5;
  pointer-events: none;
}

.siteSearch:focus::placeholder,
.siteSearch:hover::placeholder {
  color: rgba(255, 0, 0, 0.55);
}

.siteSearch:focus + .iconSearch,
.siteSearch:hover + .iconSearch {
  opacity: 1;
}

.headerMenu {
  display: flex;
  height: var(--headerMenuHeight);
  margin: 0;
  padding: 0;
}

.headerMenuItem {
  flex: 1 1 calc(100vw / 6);
  line-height: var(--headerMenuHeight);
  font-family: 'bookman-old-style', serif;
  font-size: min(42px, 2.4vw);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  list-style-type: none;
}

.headerMenuItem:last-of-type {
  font-size: 1.8vw;
}

.header:not(:hover).\--minimised {
  --headerTopHeight: 24px;
  --headerMainHeight: 7vw;
  height: calc(24px + 7vw);
  box-shadow: none;
}

.header:not(:hover).\--minimised .iconHome {
  top: 1px;
  left: 2px;
  width: 20px;
  height: 20px;
}

.header:not(:hover).\--minimised .headerTitleTagline {
  opacity: 0;
}

.intersectionMinifyHeader,
.intersectionMinifyMainHeader {
  position: absolute;
  top: 1172px;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0);
}

.intersectionMinifyHeader {
  top: 1260px;
}

.intersectionMinifyMainHeader {
  top: 1420px;
}

.footer {
  display: block;
  height: 200px;
  background-color: rgb(159, 0, 0);
}

.main {
  position: relative;
  display: block;
  width: 100%;
  padding-top: calc(var(--headerTopHeight) + var(--headerMainHeight) + var(--headerMenuHeight) + 15vw);
  transition: all 0.6s ease-out;
}

.mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6;
  width: 100%;
  margin-bottom: 12px;
  padding: calc(var(--headerTopHeight) + var(--headerMainHeight) + var(--headerMenuHeight) + 1.5vw) 12px 0 1vw;
  color: white;
  background-color: rgb(159, 0, 0);
  overflow-y: hidden;
  transition: all 0.6s ease-out;
}

.mainHeader + .menuPageSection {
  margin-top: 312px;
}

.mainHeader.\--raised {
  height: 10.5vw;
  padding: calc(24px + 6vw + 2vw) 12px calc(12px + 1vw) 1vw;
}

.mainHeader.\--minimised {
  height: calc(3vw + 1.5vw);
}

.mainHeading {
  height: 3vw;
  margin: 0;
  padding: 0;
  line-height: 3vw;
  font-weight: 400;
  font-family: 'archivo-black', sans-serif;
  font-size: 3vw;
}

.mainHeadingTagline {
  height: 2.25vw;
  margin: 0;
  padding: 0;
  line-height: 2.25vw;
  font-size: 1.5vw;
  font-style: italic;
}

.standfirst {
  width: 50%;
  margin-top: 1.5vw;
  font-size: 1vw;
  line-height: 1.5;
}

.standfirstLink {
  color: var(--standfirstLink);
  font-weight: 700;
  text-decoration: none;
}

.standfirstLink:hover {
  text-decoration: underline;
}

.menuPageThematicBreak {
  position: relative;
  display: block;
  width: 80%;
  height: 60px;
  background-color: rgba(0, 0, 0, 0);
  background-image: 
    url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20class=%22iconHome%22%20lang=%22en-GB%22%20viewBox=%220%200%20426%20426%22%3E%3Ctitle%3EReady%20Write%20Web%3C/title%3E%3Cg%20id=%22ready-write-web-icon%22%3E%3Cdefs%3E%3Cstyle%20type=%22text/css%22%3E%3C!%5BCDATA%5B.rectIconHome%20%7Bwidth:426px;height:426px;fill:rgb(0,0,0,0);%7D.circleIconHome%20%7Bfill:rgb(152,0,4)%7D%23squareIconHome%20%7Bwidth:366px;height:366px;fill:rgb(152,0,4)%7D.pathIconHome%20%7Bfill:rgb(255,255,255);%7D%23top-left%20%7Btransform-origin:25%25%2025%25;transform:rotateY(180deg)%20translateX(-0.6%25);%7D%23top-right%20%7Btransform:translateX(0.1%25);%7D%23bottom-left%20%7Btransform-origin:25%25%2075%25;transform:rotateZ(-180deg)%20translateX(-0.6%25);%7D%23bottom-right%20%7Btransform-origin:75%25%2075%25;transform:rotateX(-180deg)%20translateX(0.1%25);%7D%23hieroglyph%20%7Btransform-origin:center;transform:scale(0.7);%7D%5D%5D%3E%3C/style%3E%3Cpath%20id=%22top-right%22%20class=%22pathIconHome%22%20d=%22m%203.6248057,174.89902%20c%200,-20.04254%200.3375,-36.60811%200.75,-36.81236%200.4125,-0.20426%2031.5750003,-0.0687%2069.2500003,0.30113%2075.767794,0.74387%2075.699984,0.73829%2089.662404,7.36902%209.8553,4.68026%2018.25593,10.54745%2023.28955,16.26595%208.72949,9.91721%2015.1982,25.10838%2016.5292,38.81724%200.37379,3.85%200.89878,7.7875%201.16663,8.75%200.45561,1.63724%20-1.35649,1.75%20-28.12222,1.75%20h%20-28.60921%20l%20-2.84072,-6.33143%20c%20-5.25172,-11.7051%20-11.43958,-16.30343%20-25.14121,-18.68294%20-3.53893,-0.61459%20-21.171924,-1.37685%20-39.184424,-1.69391%20l%20-32.75,-0.57647%20V%20197.69763%20211.34%20h%20-22%20-22.0000003%20z%20m%200,-106.075353%20V%201.3073332%20l%2026.7500003,0.2663334%2026.75,0.2663334%200.85229,57.5%20c%200.46876,31.625%200.9647,57.62094%201.10208,57.76875%200.47562,0.51171%2021.66855,-3.86739%2024.3514,-5.03174%204.94964,-2.14813%209.08629,-5.86738%2012.87644,-11.57719%20C%20100.94467,93.513294%20110.8759,73.464754%20121.15415,50.34%20c%204.27803,-9.625%2010.78016,-24.25%2014.44918,-32.5%20l%206.67096,-15%2030.67526,-0.2644519%20c%2022.73995,-0.1960415%2030.67526,0.035347%2030.67526,0.8944706%200,3.7672232%20-48.45789,102.9694913%20-54.24124,111.0418613%20-4.14636,5.78746%20-7.9562,9.9947%20-15.01218,16.57812%20l%20-5.62686,5.25%20H%2066.184666%203.6248057%20Z%22%20/%3E%3C/defs%3E%3Crect%20class=%22rectIconHome%22%20/%3E%3Ccircle%20class=%22circleIconHome%22%20cx=%22213%22%20cy=%22213%22%20r=%22213%22%20/%3E%3Crect%20id=%22squareIconHome%22%20x=%2230%22%20y=%2230%22%20/%3E%3Cg%20id=%22hieroglyph%22%3E%3Cuse%20id=%22top-left%22%20href=%22%23top-right%22%20x=%220%22%20y=%220%22%20/%3E%3Cuse%20id=%22top-right%22%20href=%22%23top-right%22%20x=%2249%25%22%20y=%220%22%20/%3E%3Cuse%20id=%22bottom-left%22%20href=%22%23top-right%22%20x=%220%22%20y=%2250%25%22%20/%3E%3Cuse%20id=%22bottom-right%22%20href=%22%23top-right%22%20x=%2249%25%22%20y=%2250%25%22%20/%3E%3C/g%3E%3C/g%3E%3C/svg%3E'),
    linear-gradient(to right, rgba(0, 0, 0, 0) 0 12px, rgb(152, 0, 4) 12px, rgb(255, 0, 0), rgb(152, 0, 4), rgb(255, 0, 0), rgb(152, 0, 4) calc(100% - 12px), rgb(255, 255, 255) calc(100% - 12px) 100%);
  
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 60px, 100% 12px;
  border: none;
}

.menuPageThematicBreak::before,
.menuPageThematicBreak::after {
  content: '';
  position: absolute;
  top: 22px;
  display: block;
  width: 12px;
  height: 12px;
  background-color: rgb(152, 0, 4);
  border: 2px solid rgb(255, 255, 255);
  border-radius: 50%;
}

.menuPageThematicBreak::before {
  left: 6px;
}

.menuPageThematicBreak::after {
  right: 6px;
}

.menuPageSection {
  position: relative;
  display: flex;
  justify-content: space-around;
  gap: 0 24px;
  min-height: calc(3.2vw + 480px + 12px);
  margin: 6vw 24px 6vw 18px;
  padding: 0 12px 12px 12px;
}

.menuPageSectionHeading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.2vw;
  margin: 0;
  padding: 0;
  line-height: 3.2vw;
  font-size: 1.6vw;
  text-align: center;
  color: rgb(255, 255, 255);
  text-shadow: 1px 1px 1px rgb(184, 0, 4),
               1px -1px 1px rgb(184, 0, 4),
               -1px -1px 1px rgb(184, 0, 4),
               -1px 1px 1px rgb(184, 0, 4)
}

.menuPageArticle {
  position: relative;
  flex: 1 1 50%;
  height: 480px;
  margin-top: 3.2vw;
  border: 2px solid rgb(184, 0, 4);
  border-radius: 9px;
  overflow: hidden;
  transition: background-color 0.4s ease-out;
}

.menuPageArticle:has( .menuPageArticleHeading)::before {
  content: 'This is a test paragraph so we can see what the profile text looks like.';
  position: absolute;
  inset: auto 0 -150px 0;
  display: block;
  text-align: center;
  color: rgb(255, 255, 255);
  transition: all 0.6s ease-out 0.9s;
}

.menuPageArticle:has( .menuPageArticleHeading:focus) {
  background-color: rgb(31, 0, 0);
}

.menuPageArticle:has( .menuPageArticleHeading:focus)::before {
  inset: auto 0 120px 0;
}

.menuPageArticleHeading {
  height: max(2.4vw, 40px);
  margin: 0;
  padding: 0;
  line-height: max(2.4vw, 40px);
  font-size: max(1.2vw, 20px);
  color: rgb(255, 255, 255);
  text-align: center;
  background-color: rgb(184, 0, 4);
  background-image: linear-gradient(rgb(152, 0, 4), 40%, rgb(255, 0, 0));
  border: 1px solid rgb(184, 0, 4);
  pointer-events: none;
}

.menuPageArticleHeading::before,
.menuPageArticleHeading::after {
  position: absolute;
  display: block;
  background-color: rgb(184, 0, 4);
  outline: 1px solid rgb(184, 0, 4);
  cursor: pointer;
  pointer-events: auto;
}

.menuPageArticleHeading::before {
  content: '';
  top: calc(max(2.4vw, 40px) + 6px);
  right: 9px;
  width: 100px;
  height: 100px;
  border: 6px solid rgb(255, 255, 255);
  border-radius: 50%;
}

.menuPageArticleHeading::after {
  content: 'Alan Lansdowne';
  top: calc(max(2.4vw, 40px) + 6px + 100px);
  right: 6px;
  width: 112px;
  height: 30px;
  color: rgb(255, 255, 255);
  font-size: 12px;
  line-height: 24px;
  font-weight: 400;
  text-align: center;
  border: 3px solid rgb(255, 255, 255);
  box-sizing: border-box;
}

.menuPageArticleHeading:focus::before {
  top: calc(max(2.4vw, 40px) + 18px);
  right: calc(50% - 106px);
  width: 200px;
  height: 200px;
  animation: expandThumbnail 0.6s ease-out forwards;
}

.menuPageArticleHeading:focus::after {
  content: 'Alan L';
  top: max(2.4vw, 40px);
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% - max(2.4vw, 40px));
  padding-top: 248px;
  font-size: 24px;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0);
  border: 0px solid rgb(255, 255, 255);
  border-radius: 0 0 7px 7px;
  outline: 0px solid rgb(184, 0, 4);
  opacity: 0;
  animation: fadeUpAuthorProfile 0.6s ease-out 0.6s forwards;
}

.menuPageArticleHeading::before {
  animation: contractThumbnail 0.6s ease-out forwards;
}

/* PROBABLY GET RID OF THESE ANIMATIONS AND REPLACE WITH TRANSITIONS.... */
@keyframes expandThumbnail {0% {top: calc(max(2.4vw, 40px) + 6px); right: 9px; width: 100px; height: 100px;}}
@keyframes contractThumbnail {0% {top: calc(max(2.4vw, 40px) + 18px); right: calc(50% - 106px); width: 200px; height: 200px;}}
@keyframes fadeUpAuthorProfile {100% {opacity: 1;}}



/* NON-DYNAMIC HEADER */
body[data-dynamic-header="false"] .header {
  position: absolute;    
}
    
body[data-dynamic-header="false"] .mainHeader {
  position: absolute;
  box-sizing: border-box;    
}

body[data-dynamic-header="false"] .intersectionMinifyHeader,
body[data-dynamic-header="false"] .intersectionMinifyMainHeader {
  display: none;    
}




@media only screen and (max-width: 1100px) {

  .iconSearch,
  .siteSearch {
    display: none;
  }
}

@media only screen and (max-width: 960px) {

  .menuPageSection {
    flex-wrap: wrap;
  }  
}

@media only screen and (max-width: 864px) {  

  .main {
    padding-top: calc(var(--headerTopHeight) + var(--headerMainHeight) + var(--headerMenuHeight) + 14vw);
  }
  
  .footer {
    height: 80px;
  }
}

@media only screen and (max-width: 640px) {

  .header:not(:hover) {
    --headerTopHeight: 24px;
    height: calc(24px + var(--headerMainHeight) + var(--headerMenuHeight));
    box-shadow: none;
  }

  .header:not(:hover) .iconHome {
    top: 1px;
    left: 2px;
    width: 20px;
    height: 20px;
  }

  .main {
    padding-top: calc(var(--headerTopHeight) + var(--headerMainHeight) + var(--headerMenuHeight) + 9.5vw);
  }

  .mainHeader {
    padding: calc(24px + var(--headerMainHeight) + var(--headerMenuHeight) + 0.66vh) 12px 0.33vh 1vw;
  }
  
}