/* ==========================================================================
   Font imports
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Freeman&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* ==========================================================================
   Global document foundations
   ========================================================================== */

/* Set the default typeface, weight, and text color for the entire site. */
body {
    font-family: 'Inter';
    font-weight: 300;
    color: #222024;
}

/* ==========================================================================
   Navigation bar and site search
   ========================================================================== */

/* Apply the primary brand gradient to the navigation bar. */
.navbar {
    background: linear-gradient(-65deg, #0466c8, #004e92); 
}

/* Set the default appearance of navigation links. */
.navbar a {
    color:  white !important;
    font-size: 16px;
}

/* 
3. Format Navigation items when the bar is collapsed 
.navbar-collapse.show .navbar-nav .nav-item {
  text-align: center;
  overflow: hidden;
}
*/

/* Animate navigation links and the brand mark on hover. */
.navbar-nav .nav-link, .navbar-brand {
  display: inline-block;
  transition: transform 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-brand:hover {
  color: #9cc9fc !important;
  transform: translateY(-3px);
}

/* Make the current page unmistakable while keeping the navbar compact. */
.navbar .navbar-nav > .nav-item > .nav-link:is(.active, [aria-current="page"]) {
  position: relative;
  color: #fff !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
}

.navbar .navbar-nav > .nav-item > .nav-link:is(.active, [aria-current="page"])::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.2rem;
  left: 0.75rem;
  height: 3px;
  background: linear-gradient(90deg, #fff, #7ee8fa);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(126, 232, 250, 0.55);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav > .nav-item > .nav-link:is(.active, [aria-current="page"]) {
    padding-inline: 0.75rem;
  }

  .navbar .navbar-nav > .nav-item > .nav-link:is(.active, [aria-current="page"])::after {
    right: auto;
    width: 2.5rem;
  }
}

.nav-link:hover, .nav-link:focus {
    color: #0466c8;
}



/* Style dropdown links and their hover state. */
.navbar .dropdown-item {
    font-size: 16px;
    color: #0466c8 !important;
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
    color: white !important;
    background: linear-gradient(to right, #0466c8, #004e92);
}

.navbar-nav .dropdown-menu {
    font-size: .9rem;
    margin-top: 3px;
    background-color: white;
    overflow: visible !important;
    width: auto;
}

.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: 0;
    margin-top:var(--bs-dropdown-spacer)
}

/* Align the navigation logo and brand lockup. */
.navbar-logo {
    margin-bottom: 10px;
}

.navbar-brand.navbar-brand-logo {
    margin-bottom: -7px;
}

/* Set the search-field text color. */
.aa-Autocomplete .aa-Form .aa-InputWrapper .aa-Input, .aa-DetachedFormContainer .aa-Form .aa-InputWrapper .aa-Input {
  color: #0466c8;
}

/* Style inactive and selected search results. */
.aa-DetachedOverlay li.aa-Item[aria-selected=false] .search-item.search-result-more, .aa-DetachedOverlay li.aa-Item[aria-selected=false] .search-item .search-result-section, .aa-DetachedOverlay li.aa-Item[aria-selected=false] .search-item .search-result-text, .aa-DetachedOverlay li.aa-Item[aria-selected=false] .search-item .search-result-title-container, .aa-DetachedOverlay li.aa-Item[aria-selected=false] .search-item .search-result-text-container, #quarto-search-results li.aa-Item[aria-selected=false] .search-item.search-result-more, #quarto-search-results li.aa-Item[aria-selected=false] .search-item .search-result-section, #quarto-search-results li.aa-Item[aria-selected=false] .search-item .search-result-text, #quarto-search-results li.aa-Item[aria-selected=false] .search-item .search-result-title-container, #quarto-search-results li.aa-Item[aria-selected=false] .search-item .search-result-text-container {
  color: #0466c8 !important;
}

.aa-DetachedOverlay li.aa-Item[aria-selected=true] .search-item.search-result-more, .aa-DetachedOverlay li.aa-Item[aria-selected=true] .search-item .search-result-section, .aa-DetachedOverlay li.aa-Item[aria-selected=true] .search-item .search-result-text, .aa-DetachedOverlay li.aa-Item[aria-selected=true] .search-item .search-result-title-container, .aa-DetachedOverlay li.aa-Item[aria-selected=true] .search-item .search-result-text-container, #quarto-search-results li.aa-Item[aria-selected=true] .search-item.search-result-more, #quarto-search-results li.aa-Item[aria-selected=true] .search-item .search-result-section, #quarto-search-results li.aa-Item[aria-selected=true] .search-item .search-result-text, #quarto-search-results  li.aa-Item[aria-selected=true] .search-item .search-result-title-container, #quarto-search-results li.aa-Item[aria-selected=true] .search-item .search-result-text-container {
  color: white !important;
  background: linear-gradient(to left, #0466c8, #004e92) !important;
}

.aa-DetachedOverlay li.aa-Item[aria-selected=true] .search-item, #quarto-search-results li.aa-Item[aria-selected=true] .search-item {
  background: linear-gradient(to left, #0466c8, #004e92) !important;
}

.aa-DetachedOverlay .aa-Item[aria-selected=false] .search-item p, #quarto-search-results .aa-Item[aria-selected=false] .search-item p {
  color: #0466c8;
}

.aa-DetachedOverlay .aa-Item[aria-selected=true] .search-item p, #quarto-search-results .aa-Item[aria-selected=true] .search-item p {
  color: white;
}

.aa-DetachedOverlay li.aa-Item[aria-selected="true"] .search-item mark.search-match, .aa-DetachedOverlay li.aa-Item[aria-selected="true"] .search-item .search-match.mark, #quarto-search-results li.aa-Item[aria-selected="true"] .search-item mark.search-match, #quarto-search-results li.aa-Item[aria-selected="true"] .search-item .search-match.mark {
    color: #fff;
    background-color: #9cc9fc;
}

.aa-DetachedOverlay li.aa-Item[aria-selected="false"] .search-item mark.search-match, .aa-DetachedOverlay li.aa-Item[aria-selected="false"] .search-item .search-match.mark, #quarto-search-results li.aa-Item[aria-selected="false"] .search-item mark.search-match, #quarto-search-results li.aa-Item[aria-selected="false"] .search-item .search-match.mark {
    color: #fff;
    background-color: #9cc9fc;
}


/* ==========================================================================
   WebR interactive code cells
   ========================================================================== */

/* Hide WebR status messages and Quarto code-link controls. */
[id*="qwebr-status-message-area"],
[class="quarto-code-links"]{
    display: none !important;
}

/* Frame WebR interactive cells and round their toolbars. */
[class*="qwebr-insertion-location"],
[class*="qwebr-interactive-area"] {
  border: 2px solid #0466c8 !important;
  border-radius: 10px !important;
  overflow: hidden;
}

[class*="qwebr-editor-toolbar"] {
  border-radius: 8px 8px 0 0 !important;
}


.monaco-editor .margin-view-overlays .line-numbers {
    box-sizing: border-box;
    cursor: default;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    height: 100%;
    position: absolute;
    text-align: left;
    vertical-align: middle;
    padding-left: 20px;
}


/* Move Monaco code closer to the line numbers */
.qwebr-console-area .monaco-scrollable-element.editor-scrollable {
  left: 45px !important;
  width: -webkit-fill-available !important;
}

/* Control button border color */
body.quarto-light .qwebr-button {
    background-color: #EEEEEE;
    color: #0466c8;
    border-color: #dee2e6;
    border: 1px solid #0466c8;
}

/* ==========================================================================
   Legacy Quarto trestles/about layout
   ========================================================================== */

/* Adjust the entity-column spacing at desktop and compact widths. */
@media (min-width: 991px) {
    div.quarto-about-trestles .about-entity {
    padding-right: 1em;
    padding-top: 7em;
    }
}

@media (max-width: 991px) {
    div.quarto-about-trestles .about-entity {
     padding-right: 1em;
    }
}

/* Size and align the trestles/about image. */
div.quarto-about-trestles .about-entity .about-image {
    display: block;
    /* border-radius: 15px; */
    margin-bottom: 50px;
    text-align: center;
}

@media (min-width: 991px) {
    div.quarto-about-trestles .about-entity .about-image {
        width: 100% !important;
         margin-left: 20px;
    }
}

@media (max-width: 991px) {
    div.quarto-about-trestles .about-entity .about-image {
        width: 75% !important;
    }
}

/* Style and animate social links in the trestles/about layout. */
div.quarto-about-trestles .about-entity .about-link {
  background-color: transparent !important; 
  color: transparent !important;
  border: 0px;
  border-color: transparent !important;
  display: inline-block;
  transition: transform 0.3s;
}

div.quarto-about-trestles .about-entity .about-link:hover {
  background-color: transparent !important; 
  color: transparent !important;
  border-color: transparent !important;
  transform: translateY(-5px);
}

/* Keep trestles/about social icons on one centered row below 992px. */
@media (max-width: 991px) {
    div.quarto-about-trestles .about-entity .about-links {
        flex-direction: row; /* Ensures the icons stay in one row */
        column-gap: .5em; /* Adjusts the space between icons */
        row-gap: 10px; /* Adjusts the space between rows, though wrapping won't be common */
        flex-wrap: nowrap; /* Prevents the icons from wrapping to the next line */
        justify-content: center; /* Centers the icons on the screen */
    }
}


/* ==========================================================================
   Global headings and links
   ========================================================================== */

/* Apply the primary blue to all document heading levels. */
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  color: #0466c8;
}

/* Style automatically generated heading numbers and append a period. */
.header-section-number {
    color: #0466c8;
}

.header-section-number::after {
  content: ".";
}


/* Style ordinary links and their hover state. */
a {
    color: #0466c8;
    overflow-wrap: break-word;
}


a:hover {
    color: #e63946 !important;
}

/* ==========================================================================
   Code blocks and syntax highlighting
   ========================================================================== */

/* Apply the primary blue to inline code and selected token types. */
code {
  color: #0466c8;
}

code span.sc {
  color: #0466c8;
  font-style: inherit;
}

code span.dv {
    color: #0466c8;
    font-style: inherit;
}


/* Style preformatted code containers. */
pre {
    background-color: rgba(233,236,239,.65);
    border: 1px solid rgba(233,236,239,.65);
    border-radius: .25rem;
    padding: initial;
    border: initial;
}

/* Place the copy button in the upper-right corner of code blocks. */
.code-copy-button {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    margin-top: 5px;
    margin-right: 5px;
    background-color: rgba(0,0,0,0) !important;
    z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Style footer links and apply a small hover enlargement. */
.nav-footer-left .footer-items .nav-link {
    display: inline-block;
    transition: transform 0.3s;
}

.nav-footer-right .footer-items .nav-link {
    color: #0466c8;
}

.nav-footer a {
    color: #0466c8;
}

.nav-footer .footer-items .nav-link:hover {
    transform: scale(1.1);
}


/* ==========================================================================
   Listing and post cards
   ========================================================================== */

/* Style Quarto grid cards and their text. */
.quarto-grid-item div.post-contents, .quarto-grid-item .card-attribution {
    color: white;
    font-family: "Inter" !important;
    font-weight: 300 !important;
}

.quarto-grid-item .card-title {
    font-family: "Inter";
}

.quarto-grid-item.card-left {
    border: 1.5px solid #004e92;
    background: linear-gradient(to bottom, #0466c8, #004e92);
    border-radius: 5px;
    color: white;
    transition: all 0.5s ease-in-out;
    position: relative;
}

.quarto-grid-item.card-left:hover {
    transform: scale(1.05); 
}

/* Fine-tune listing-card internal spacing. */
.quarto-grid-item div.post-contents {
    padding-top: 5px;
}

.quarto-grid-item .card-attribution.end {
    padding-top: 3px;
}

/* Style legacy post-listing links and cards. */
div.quarto-post a {
    color: red !important;
    font-weight: 300;
    font-family: Roboto;
    text-align: center;
}

.quarto-post.image-right {
    border: 3.5px solid #047abf;
    background: linear-gradient(to left, #0466c8, #004e92);
    border-radius: 15px;
    color: white;
    transition: all 0.5s ease-in-out;
    position: relative;
}

div.quarto-post {
    border-bottom: 3.5px solid #047abf !important;
}

.quarto-post.image-right:hover {
    transform: scale(1.05);
}


/* ==========================================================================
   Tabs, callouts, mathematical notation, and Webex exercises
   ========================================================================== */

/* Set tab-link and active-tab colors. */
.nav {
    --bs-nav-link-color: #0466c8;
}


.nav-tabs {
    --bs-nav-tabs-link-active-bg: #f5f3f4;
    --bs-nav-tabs-link-active-color: #0466c8;
}

/* Apply semantic left-border colors to note and warning callouts. */
div.callout-note.callout {
    border-left-color: #0466c8;
}

div.callout-warning.callout {
    border-left-color: #ba181b;
}




/* Increase the rendered MathJax text size. */
.MJX-TEX {
    font-family: MJXZERO, MJXTEX;
    font-size: 18px;
}




/* Style open Webex answer containers. */
.webex-solution.open {
    height: auto;
    border: 2px solid #0466c8;
    border-radius: 10px !important;
}

/* Prevent closed answers from producing horizontal scrollbars. */
@media (max-width: 1440px) {
  .webex-solution {
    overflow-x: hidden;
  }
}

/* Restore horizontal visibility after an answer is opened. */
@media (max-width: 1440px) {
  .webex-solution.open {
    overflow-x: visible;
  }
}



/*
.webex-solution button, .webex-check-button {
    background-color: #0466c8 !important;
    border-color: transparent !important;
    color: white;
}

.webex-solution.open {
    height: auto;
    border: 2px solid #0466c8;
    border-radius: 5px;
}

.webex-select, input.webex-solveme,
.unchecked .webex-radiogroup label.webex-incorrect,
.unchecked .webex-radiogroup label.webex-correct{
    text-align: center;
}
.webex-incorrect,
input.webex-solveme.webex-incorrect,
.webex-radiogroup label.webex-incorrect {
    text-align: center;
}
.webex-correct,
input.webex-solveme.webex-correct,
.webex-radiogroup label.webex-correct {
    text-align: center;
}
*/

/* ==========================================================================
   Mermaid diagrams and Quarto title metadata
   ========================================================================== */

/* Define the active Mermaid color palette. */
:root {
  --mermaid-label-fg-color: white !important;
  --mermaid-edge-color: #0466c8 !important;
  --mermaid-node-fg-color: #0466c8 !important;
  --mermaid-node-bg-color: #0466c8 !important;
}

/* Style the standard Quarto page title and description. */
.quarto-title-block.default .description {
    color: #0466c8;
}

.quarto-title-block.default .quarto-title .title {
    color: #0466c8;
    font-family: "Inter";
    margin-bottom: 3px !important;
}

/* Retain the original responsive title-spacing declarations.
   The later important 3px declaration remains the effective final value. */
@media (min-width: 991px) {
    .quarto-title-block.default .quarto-title .title {
    margin-bottom: 30px !important;
    }
}

@media (max-width: 991px) {
    .quarto-title-block.default .quarto-title .title {
    margin-bottom: 0px;
    }
}

/* Preserve the original final title-margin override. */
.quarto-title-block.default .quarto-title .title {
    margin-bottom: 3px !important;
}

/* ==========================================================================
   On-this-page table of contents
   ========================================================================== */

.sidebar nav[role="doc-toc"] {
  --toc-border-gap: 0.35rem;
  --toc-nested-indent: 0.65rem;
  --toc-blue: #0466c8;
  --toc-border: #dce3ec;
}

/* Main border begins below "On this page" */
.sidebar nav[role="doc-toc"] > ul {
  margin-left: 0 !important;
  padding-left: var(--toc-border-gap) !important;
  border-left: 1px solid var(--toc-border);
}

/* Indent nested lists without adding or moving borders */
.sidebar nav[role="doc-toc"] ul ul {
  margin-left: 0 !important;
  padding-left: var(--toc-nested-indent) !important;
  border-left: 0 !important;
}

/* Remove Quarto's original link borders and align numbered, wrapped titles. */
.sidebar nav[role="doc-toc"] a,
.sidebar nav[role="doc-toc"] a.active {
  position: relative;
  display: grid;
  align-items: baseline;
  column-gap: 0.25rem;

  padding-left: 0 !important;
  border-left: 0 !important;
  text-indent: 0;

  color: inherit;
  font-family: inherit;
  font-size: 13px;

  transition: color 0.22s ease;
}

/* Keep generated section numbers on one line with tabular numerals. */
.sidebar nav[role="doc-toc"] .header-section-number {
  width: auto;
  white-space: nowrap;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

/* Reserve an appropriate number-column width for top-level headings. */
.sidebar nav[role="doc-toc"] > ul > li > a {
  grid-template-columns: 1.6ch minmax(0, 1fr);
}

/* Reserve a wider number column for second-level headings. */
.sidebar nav[role="doc-toc"] > ul > li > ul > li > a {
  grid-template-columns: 3ch minmax(0, 1fr);
}

/* Reserve a wider number column for third-level headings. */
.sidebar nav[role="doc-toc"] > ul > li > ul > li > ul > li > a {
  grid-template-columns: 4.5ch minmax(0, 1fr);
}

/* Reserve a wider number column for fourth-level headings. */
.sidebar nav[role="doc-toc"] > ul > li > ul > li > ul > li > ul > li > a {
  grid-template-columns: 6.3ch minmax(0, 1fr);
}

/* Draw an animated active/hover indicator over the main TOC border. */
.sidebar nav[role="doc-toc"] a::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  z-index: 2;

  width: 2px;
  border-radius: 2px;
  background: var(--toc-blue);

  opacity: 0;
  transform: scaleY(0);
  transform-origin: center;

  transition:
    transform 0.22s ease,
    opacity 0.16s ease;
}

/* Align the top-level indicator with the main border. */
.sidebar nav[role="doc-toc"] > ul > li > a::before {
  left: calc(-1px - var(--toc-border-gap));
}

/* Return the second-level indicator to the main border. */
.sidebar nav[role="doc-toc"] > ul > li > ul > li > a::before {
  left: calc(
    -1px - var(--toc-border-gap) - var(--toc-nested-indent)
  );
}

/* Return the third-level indicator to the main border. */
.sidebar nav[role="doc-toc"] > ul > li > ul > li > ul > li > a::before {
  left: calc(
    -1px - var(--toc-border-gap)
    - var(--toc-nested-indent) - var(--toc-nested-indent)
  );
}

/* Return the fourth-level indicator to the main border. */
.sidebar nav[role="doc-toc"] > ul > li > ul > li > ul > li > ul > li > a::before {
  left: calc(
    -1px - var(--toc-border-gap)
    - var(--toc-nested-indent) - var(--toc-nested-indent)
    - var(--toc-nested-indent)
  );
}

/* Show the indicator and blue text when a TOC entry is active or hovered. */
.sidebar nav[role="doc-toc"] a.active,
.sidebar nav[role="doc-toc"] a:hover {
  color: var(--toc-blue);
}

.sidebar nav[role="doc-toc"] a.active::before,
.sidebar nav[role="doc-toc"] a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Preserve Quarto's original first- and second-level active/hover overrides. */
.sidebar nav[role="doc-toc"] ul > li > a.active,
.sidebar nav[role="doc-toc"] ul > li > ul > li > a.active,
.sidebar nav[role="doc-toc"] ul > li > a:hover,
.sidebar nav[role="doc-toc"] ul > li > ul > li > a:hover {
    border-left: 1px solid #0466c8;
    color: #0466c8 !important;
    transform: none;
}

/*
.sidebar-navigation a:hover {
  transform: scale(1.05);
}
*/



/* Keep inactive TOC numbers dark and active/hovered numbers blue. */
#TOC .nav-link .header-section-number {
  color: #222024;
  transition: color 0.2s ease;
}

#TOC .nav-link.active .header-section-number {
  color: #0466c8;
}

#TOC .nav-link:hover .header-section-number {
  color: #0466c8;
}


.sidebar.toc-left, .sidebar.margin-sidebar {
    margin-left: 0px;
}

/* Preserve the original second-level TOC-link normalization. */
.sidebar nav[role="doc-toc"] ul > li > ul > li > a {
    font-size: 13px;
    font-family: inherit;
    margin-left: 0;
    padding-left: 0rem;
    text-indent: 0rem;
}

/* ==========================================================================
   Global content utilities
   ========================================================================== */

/* Force muted Bootstrap text to white where this utility is used. */
.text-muted {
    --bs-text-opacity: 1;
    color: white !important;
}


/* Wrap long source-code lines rather than overflowing their containers. */
pre > code.sourceCode > span,
pre > code {
        word-break: break-word !important;
        white-space: pre-wrap !important;
        
}

/* Target comment lines of R chunk code */
code span.co {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}


/* Style standard Quarto tables. */
.table {
    border-top: 1px solid #cbd0d4;
    border-bottom: 1px solid #cbd0d4;
    vertical-align: middle;
}

.table > thead {
    background: #f2f2f2;
    vertical-align: middle;
}

/* Style active links in the left site-navigation sidebar. */
div.sidebar-item-container .active, div.sidebar-item-container .show > .nav-link, div.sidebar-item-container .sidebar-link > code {
    color: white;
    background: linear-gradient(to left, #0466c8, #004e92);
    border-radius: 3px;
    padding-left: 3px;
    height: 22px;
    padding-top: 3px;
}




/* Frame and vertically align the Jolla author layout. */
div.quarto-about-jolla img.round {
    border: 1px solid #033c73;
    margin-bottom: 0.5em;
}

div.quarto-about-jolla {
  margin-top: auto;
  margin-block: auto;
}




/* Center responsive video iframes. */
iframe {
    margin: auto;
    display: block;
    aspect-ratio: 16 / 9;
    width: 100% !important;
}

/* Center images by default. */
img {
    margin-right: auto;
    margin-left: auto;
    display: block;
}

/*
.webex-incorrect span::before, .webex-incorrect + .webex-icon::after {
    content: "\274e";
}
*/


/*
div.quarto-about-trestles .about-entity .about-links{
  justify-content: center;
}
*\


/* Image border */
.img-border {
  border: 3px solid #0466c8;
  padding: 4px;
  border-radius: 3px;
}

/* ==========================================================================
   AMRBiostats homepage
   ========================================================================== */

/* Homepage shell and shared design tokens. */
.amr-home {
  --amr-blue: #0466c8;
  --amr-blue-dark: #033c73;
  --amr-brand-gradient: linear-gradient(135deg, #033c73 0%, #0466c8 58%, #147ed5 100%);
  --amr-navy: #0f172a;
  --amr-text: #243044;
  --amr-muted: #64748b;
  --amr-line: #dce7f5;
  --amr-soft: #f4f9ff;
  --amr-teal: #10a7b6;
  --amr-coral: #e85d75;
  --amr-gold: #f4b942;
  --amr-card: #ffffff;
  --amr-shadow: 0 16px 44px rgba(2, 73, 171, 0.12);
  --amr-shadow-hover: 0 24px 58px rgba(2, 73, 171, 0.18);
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 22px 72px;
  color: var(--amr-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.amr-home) #title-block-header {
  display: none;
}

body:has(.amr-home) #quarto-document-content {
  padding-top: 0;
}

.amr-home *,
.amr-home *::before,
.amr-home *::after {
  box-sizing: border-box;
}

.amr-home a {
  text-decoration: none;
}

.amr-home a:hover,
.amr-home a:focus {
  color: inherit !important;
}

.amr-home svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared homepage buttons and icons. */
.amr-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 21px;
  border: 1px solid var(--amr-line);
  border-radius: 8px;
  color: var(--amr-blue) !important;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(2, 73, 171, 0.08);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.2;
  transform-origin: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.amr-home-button:visited {
  color: var(--amr-blue) !important;
}

.amr-home-button:hover,
.amr-home-button:focus {
  color: #ffffff !important;
  background: var(--amr-brand-gradient);
  border-color: transparent;
  transform: translateY(-3px) scale(1.045);
  box-shadow: var(--amr-shadow-hover);
}

.amr-home-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amr-blue), var(--amr-teal));
}

.amr-home-icon svg {
  width: 23px;
  height: 23px;
}

/* Homepage hero and brand lockup. */
.amr-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
  min-height: 560px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid var(--amr-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f5faff 54%, #eef8fb 100%);
  box-shadow: var(--amr-shadow);
  text-align: center;
}

.amr-home-hero::before {
  content: none;
}

.amr-home-copy {
  position: relative;
  z-index: 1;
  display: contents;
}

.amr-home-brand-lockup {
  position: relative;
  display: inline-grid;
  grid-column: 1;
  justify-items: center;
  width: min(100%, 620px);
  margin-inline: auto;
  padding: 18px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--amr-brand-gradient);
  box-shadow: 0 18px 42px rgba(4, 102, 200, 0.26);
  text-align: center;
}

.amr-home-brand-lockup::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  filter: blur(8px);
  transform: skewX(-16deg);
  animation: amr-home-title-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.amr-home-brand-mark {
  color: #ffffff;
  font-size: clamp(2.8rem, 5.8vw, 4rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.amr-home-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  width: 100%;
}

.amr-home-hero-text {
  display: grid;
  justify-items: center;
}

.amr-home-tagline {
  display: block;
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 20px;
  border: 1px solid var(--amr-line);
  border-radius: 12px;
  color: var(--amr-blue) !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(2, 73, 171, 0.08);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 850;
  line-height: 1.22;
  text-align: center;
  visibility: visible;
}

.amr-home-subtitle {
  max-width: 640px;
  margin: 0;
  padding-right: 50px;
  padding-left: 50px;
  color: var(--amr-muted);
  font-size: 1.1rem;
  line-height: 1.72;
  text-align: center;
}

.amr-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.amr-home-actions .amr-home-button:hover,
.amr-home-actions .amr-home-button:focus,
.amr-home-actions .amr-home-button:hover svg,
.amr-home-actions .amr-home-button:focus svg {
  color: #ffffff !important;
}

.amr-home-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--amr-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.amr-home-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.amr-home-proof svg {
  color: var(--amr-blue);
}

/* Animated analysis logo within the homepage hero. */
.amr-home-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(4, 102, 200, 0.14), inset 0 0 80px rgba(16, 167, 182, 0.12), 0 24px 54px rgba(2, 73, 171, 0.16);
}

.amr-home-stage::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(4, 102, 200, 0.22);
  border-radius: 50%;
  animation: amr-home-spin 28s linear infinite;
}

.amr-home-analysis-stage {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 26%, transparent 27%), radial-gradient(circle at 50% 48%, rgba(16, 167, 182, 0.12), transparent 43%), #ffffff;
  background-size: auto, auto, auto;
}

.amr-home-analysis-stage::after {
  content: none;
}

.amr-home-logo-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 43%;
  aspect-ratio: 1;
  padding: 6%;
  place-items: center;
  align-content: center;
  gap: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, rgba(4, 102, 200, 0.38), rgba(16, 167, 182, 0.26), rgba(232, 93, 117, 0.22)) border-box;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.72), 0 14px 34px rgba(2, 73, 171, 0.18);
  transform: translate(-50%, -50%);
  animation: amr-home-core 4.2s ease-in-out infinite;
}

.amr-home-logo-core img {
  display: block;
  width: 88%;
  height: auto;
  margin: 0;
}

.amr-home-logo-core strong {
  display: block;
  margin-top: -1px;
  color: var(--amr-blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.amr-home-chart-tile {
  position: absolute;
  z-index: 4;
  width: 23%;
  min-width: 58px;
  aspect-ratio: 1.12;
  padding: 5px;
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(2, 73, 171, 0.1);
  animation: amr-home-tile-bounce 4.8s ease-in-out infinite;
}

.amr-home-chart-tile strong {
  display: block;
  margin-bottom: 4px;
  color: var(--amr-blue-dark);
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.amr-home-chart-question { left: 40%; top: 8%; }
.amr-home-chart-data { right: 8%; top: 34%; animation-delay: .5s; }
.amr-home-chart-cleaning { right: 19%; bottom: 10%; animation-delay: 1s; }
.amr-home-chart-modeling { left: 19%; bottom: 10%; animation-delay: 1.5s; }
.amr-home-chart-reporting { left: 8%; top: 34%; animation-delay: 2s; }

.amr-home-spark-question,
.amr-home-spark-sheet,
.amr-home-spark-cleaning,
.amr-home-spark-regression,
.amr-home-spark-table {
  position: relative;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5faff);
}

.amr-home-spark-question {
  display: grid;
  place-items: center;
  color: var(--amr-blue);
  font-size: 1.45rem;
  font-weight: 950;
  animation: amr-home-question-pop 2.8s ease-in-out infinite;
}

.amr-home-spark-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 5px;
}

.amr-home-spark-sheet span {
  display: grid;
  min-width: 0;
  place-items: center;
  border-radius: 3px;
  color: var(--amr-blue-dark);
  background: rgba(4, 102, 200, 0.1);
  font-size: 0.42rem;
  font-weight: 850;
  animation: amr-home-cell-pulse 2.6s ease-in-out infinite;
}

.amr-home-spark-sheet span:nth-child(2n) {
  background: rgba(16, 167, 182, 0.12);
  animation-delay: .25s;
}

.amr-home-spark-sheet span:nth-child(3n) {
  color: var(--amr-coral);
  background: rgba(232, 93, 117, 0.1);
}

.amr-home-spark-cleaning {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px;
}

.amr-home-spark-cleaning span {
  min-width: 0;
  border-radius: 3px;
  background: rgba(4, 102, 200, 0.11);
  animation: amr-home-cell-pulse 2.4s ease-in-out infinite;
}

.amr-home-spark-cleaning span:nth-child(3),
.amr-home-spark-cleaning span:nth-child(7) {
  outline: 1px dashed rgba(232, 93, 117, .55);
  background: repeating-linear-gradient(45deg, rgba(232, 93, 117, .18) 0 3px, rgba(232, 93, 117, .04) 3px 6px);
  animation: amr-home-clean-flag 2.4s ease-in-out infinite;
}

.amr-home-spark-cleaning span:nth-child(2n) {
  background-color: rgba(16, 167, 182, 0.1);
  animation-delay: .25s;
}

.amr-home-spark-regression::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 12%;
  top: 47%;
  height: 2px;
  background: var(--amr-blue);
  box-shadow: 0 0 0 1px rgba(4, 102, 200, 0.05);
  transform: rotate(-18deg);
  animation: amr-home-regression-line 3s ease-in-out infinite;
}

.amr-home-spark-regression span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amr-teal);
  animation: amr-home-dot-clean 2.8s ease-in-out infinite;
}

.amr-home-spark-regression span:nth-child(1) { left: 18%; bottom: 23%; }
.amr-home-spark-regression span:nth-child(2) { left: 34%; bottom: 36%; animation-delay: .2s; }
.amr-home-spark-regression span:nth-child(3) { left: 53%; bottom: 52%; animation-delay: .4s; }
.amr-home-spark-regression span:nth-child(4) { left: 70%; bottom: 62%; background: var(--amr-blue); animation-delay: .6s; }

.amr-home-spark-table {
  display: block;
  padding: 4px;
}

.amr-home-mini-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 18px;
  overflow: hidden;
  border-top: 1px solid rgba(4, 102, 200, 0.34);
  border-left: 1px solid rgba(4, 102, 200, 0.34);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.amr-home-cell {
  border-right: 1px solid rgba(4, 102, 200, 0.34);
  border-bottom: 1px solid rgba(4, 102, 200, 0.34);
  background: rgba(4, 102, 200, 0.06);
  animation: amr-home-table-cell 3s ease-in-out infinite;
}

.amr-home-cell:nth-child(4n + 1) { background: rgba(16, 167, 182, 0.1); }
.amr-home-cell:nth-child(3n) { animation-delay: .25s; }

.amr-home-report-lines {
  display: grid;
  gap: 2px;
  margin-top: 3px;
}

.amr-home-report-lines span {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amr-teal), var(--amr-blue), rgba(4, 102, 200, 0.12));
  transform-origin: left;
  animation: amr-home-report-line 2.8s ease-in-out infinite;
}

.amr-home-report-lines span:nth-child(1) { width: 92%; }
.amr-home-report-lines span:nth-child(2) { width: 72%; background: linear-gradient(90deg, var(--amr-gold), var(--amr-blue), rgba(4, 102, 200, 0.08)); animation-delay: .24s; }
.amr-home-report-lines span:nth-child(3) { width: 58%; background: linear-gradient(90deg, var(--amr-coral), var(--amr-teal), rgba(16, 167, 182, 0.08)); animation-delay: .48s; }

/* Understand, Apply, Interpret summary strip. */
.amr-home-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.amr-home-strip article {
  padding: 18px 20px;
  border: 1px solid var(--amr-line);
  border-radius: 8px;
  background: var(--amr-card);
  box-shadow: 0 10px 28px rgba(2, 73, 171, 0.06);
}

.amr-home-strip .amr-home-icon {
  margin-bottom: 14px;
}

.amr-home-strip strong {
  display: block;
  color: var(--amr-blue);
  font-size: 1rem;
}

.amr-home-strip span {
  display: block;
  margin-top: 4px;
  color: var(--amr-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Shared homepage section headings and introductory text. */
.amr-home-section {
  padding-top: 58px;
}

.amr-home-eyebrow {
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 14px;
  border: 1px solid var(--amr-line);
  border-radius: 999px;
  color: var(--amr-blue-dark);
  background: var(--amr-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.amr-home-section > h2,
.amr-home-consult h2,
.amr-home-license h2 {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--amr-blue);
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.amr-home-lead {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--amr-muted);
  font-size: 1rem;
  line-height: 1.68;
  text-align: center;
}

/* Informational cards describing what the site contains. */
.amr-home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.amr-home-card {
  padding: 24px 20px;
  border: 1px solid var(--amr-line);
  border-radius: 8px;
  background: var(--amr-card);
  box-shadow: 0 10px 28px rgba(2, 73, 171, 0.06);
}

.amr-home-card h3 {
  margin: 16px 0 8px;
  color: var(--amr-blue);
  font-size: 1.12rem;
  font-weight: 850;
}

.amr-home-card p {
  margin: 0;
  color: var(--amr-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Clickable learning-path cards. */
.amr-home-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.amr-home-path {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--amr-line);
  border-radius: 8px;
  color: inherit;
  background: var(--amr-card);
  box-shadow: 0 10px 28px rgba(2, 73, 171, 0.06);
  transform-origin: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.amr-home-path:hover,
.amr-home-motion-ready .amr-home-path.amr-home-reveal.is-visible:hover {
  border-color: rgba(4, 102, 200, 0.24);
  box-shadow: var(--amr-shadow-hover);
  transform: translateY(-6px) scale(1.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.amr-home-path-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.amr-home-path-top > span {
  padding: 5px 10px;
  border: 1px solid var(--amr-line);
  border-radius: 999px;
  color: var(--amr-blue-dark);
  background: var(--amr-soft);
  font-size: 0.78rem;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.amr-home-path .amr-home-icon {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.amr-home-path:hover .amr-home-icon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amr-blue), var(--amr-teal));
  transform: translateY(-2px) scale(1.04);
}

.amr-home-path h3 {
  margin: 16px 0 8px;
  color: var(--amr-blue);
  font-size: 1.12rem;
  font-weight: 850;
}

.amr-home-path p {
  margin: 0;
  color: var(--amr-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.amr-home-path-visuals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.amr-home-path-visuals span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(4, 102, 200, 0.14);
  border-radius: 12px;
  color: var(--amr-blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96)), linear-gradient(135deg, rgba(4, 102, 200, 0.16), rgba(16, 167, 182, 0.16));
  box-shadow: 0 10px 22px rgba(2, 73, 171, 0.06);
  animation: amr-home-path-icon-float 3.4s ease-in-out infinite;
}

.amr-home-path-visuals span:nth-child(2) { animation-delay: 0.25s; }
.amr-home-path-visuals span:nth-child(3) { animation-delay: 0.5s; }
.amr-home-path-visuals span:nth-child(4) { animation-delay: 0.75s; }

.amr-home-path-visuals svg {
  width: 24px;
  height: 24px;
}

.amr-home-path strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--amr-blue);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.amr-home-path strong svg {
  transition: transform 160ms ease;
}

.amr-home-path:hover strong {
  color: #ffffff !important;
  background: var(--amr-brand-gradient);
  box-shadow: 0 14px 30px rgba(4, 102, 200, 0.22);
  transform: translateY(-1px) scale(1.03);
}

.amr-home-path:hover strong svg {
  transform: translateX(5px);
}

/* Consultation call-to-action card. */
.amr-home-consult {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 58px;
  padding: 34px;
  border: 1px solid var(--amr-line);
  border-radius: 8px;
  color: var(--amr-text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--amr-shadow);
  transform-origin: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.amr-home-consult:hover,
.amr-home-motion-ready .amr-home-consult.amr-home-reveal.is-visible:hover {
  border-color: rgba(4, 102, 200, 0.24);
  box-shadow: var(--amr-shadow-hover);
  transform: translateY(-6px) scale(1.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.amr-home-consult .amr-home-eyebrow {
  margin: 0;
  color: var(--amr-blue-dark) !important;
  text-align: left;
}

.amr-home-consult h2 {
  margin-left: 0;
  color: var(--amr-blue) !important;
  text-align: left;
}

.amr-home-consult p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--amr-muted);
  line-height: 1.62;
  text-align: left;
}

.amr-home .amr-home-button-light,
.amr-home .amr-home-button-light:visited {
  flex: 0 0 auto;
  color: var(--amr-blue) !important;
  background: #ffffff;
  border-color: var(--amr-line);
  box-shadow: 0 16px 34px rgba(3, 60, 115, 0.24);
}

.amr-home-consult:hover .amr-home-button-light,
.amr-home .amr-home-button-light:hover,
.amr-home .amr-home-button-light:focus {
  color: #ffffff !important;
  background: var(--amr-brand-gradient);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--amr-shadow-hover);
}

/* License and build-attribution panel. */
.amr-home-license {
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--amr-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 28px rgba(2, 73, 171, 0.06);
}

.amr-home-license h2 {
  max-width: none;
  margin: 0;
  font-size: 1.24rem;
  text-align: left;
}

.amr-home-license p {
  margin: 10px 0 0;
  color: var(--amr-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.amr-home-license a {
  color: var(--amr-blue);
}

.amr-home-license img {
  display: inline-block;
  margin: 14px 0 0;
}

.quarto-icon {
  width: 2.5em;
  height: 2.5em;
  vertical-align: -0.7em;
}

.R-icon {
  width: 3em;
  vertical-align: -0.7em;
}

/* Scroll-triggered homepage reveal motion. */
.amr-home-motion-ready .amr-home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: calc(var(--amr-delay, 0) * 80ms);
}

.amr-home-motion-ready .amr-home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.amr-home-motion-ready .amr-home-path.amr-home-reveal.is-visible,
.amr-home-motion-ready .amr-home-consult.amr-home-reveal.is-visible {
  transition: opacity 700ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

/* Homepage animation keyframes. */
@keyframes amr-home-title-glow {
  0%, 18% { left: -35%; opacity: 0; }
  35%, 68% { opacity: 1; }
  86%, 100% { left: 105%; opacity: 0; }
}

@keyframes amr-home-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes amr-home-core {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.72), 0 18px 46px rgba(2, 73, 171, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.82), 0 24px 64px rgba(16, 167, 182, 0.28); }
}

@keyframes amr-home-tile-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes amr-home-question-pop {
  0%, 100% { opacity: .86; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes amr-home-cell-pulse {
  0%, 100% { opacity: .72; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes amr-home-clean-flag {
  0%, 100% { opacity: .65; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes amr-home-regression-line {
  0%, 100% { transform: rotate(-18deg) scaleX(.82); }
  50% { transform: rotate(-18deg) scaleX(1); }
}

@keyframes amr-home-dot-clean {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes amr-home-report-line {
  0%, 100% { transform: scaleX(.45) translateY(0); }
  50% { transform: scaleX(1) translateY(-2px); }
}

@keyframes amr-home-table-cell {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}

@keyframes amr-home-path-icon-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

/* Homepage responsive adjustments, ordered from widest to narrowest. */
@media (max-width: 1200px) {
  .amr-home-stage { width: min(100%, 300px); }
  .amr-home-chart-tile { min-width: 56px; }
  .amr-home-hero { padding: 38px; }
}

@media (max-width: 920px) {
  .amr-home-hero {
    min-height: 0;
    padding: 34px 22px;
    gap: 20px;
  }

  .amr-home-hero-body {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    gap: 24px;
  }

  .amr-home-subtitle {
    margin-right: auto;
    margin-left: auto;
    padding-right: 18px;
    padding-left: 18px;
  }

  .amr-home-stage {
    justify-self: center;
    width: min(100%, 280px);
  }

  .amr-home-section {
    padding-top: 48px;
  }

  .amr-home-section > h2,
  .amr-home-consult h2 {
    font-size: 2rem;
  }

  .amr-home-card-grid,
  .amr-home-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amr-home-card,
  .amr-home-path {
    padding: 24px;
  }

  .amr-home-consult {
    gap: 20px;
    padding: 30px;
  }
}

@media (max-width: 760px) {
  .amr-home { padding: 0 14px 54px; }

  .amr-home-brand-lockup {
    width: min(100%, 560px);
    padding: 16px 20px;
  }

  .amr-home-section > h2,
  .amr-home-consult h2 { font-size: 1.75rem; }

  .amr-home-hero { padding: 36px 18px; }
  .amr-home-subtitle { padding-right: 0; padding-left: 0; text-align: center; }
  .amr-home-stage { width: min(100%, 270px); }

  .amr-home-chart-tile { min-width: 52px; padding: 4px; }
  .amr-home-chart-tile strong { font-size: 0.44rem; }

  .amr-home-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .amr-home-strip article {
    padding: 16px;
  }

  .amr-home-card-grid,
  .amr-home-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amr-home-card,
  .amr-home-path {
    padding: 22px;
  }

  .amr-home-consult {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }

  .amr-home-consult:hover { transform: translateY(-6px) scale(1.025); }

  .amr-home-license {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .amr-home-hero-body,
  .amr-home-strip,
  .amr-home-card-grid,
  .amr-home-paths {
    grid-template-columns: 1fr;
  }

  .amr-home-hero {
    gap: 22px;
  }

  .amr-home-section {
    padding-top: 42px;
  }

  .amr-home-card,
  .amr-home-path {
    min-height: auto;
  }

  .amr-home-path-top {
    align-items: flex-start;
  }

  .amr-home-consult .amr-home-button-light {
    width: 100%;
  }
}

@media (max-width: 480px) {
 .amr-home-brand-mark {
    max-width: 100%;
    font-size: clamp(1.85rem, 10vw, 2.5rem);
    white-space: nowrap;
  }


  .amr-home-brand-lockup {
     padding: 16px 12px;
    border-radius: 12px;
  }

  .amr-home-tagline {
    font-size: clamp(1.1rem, 7vw, 1.35rem);
    padding: 10px 14px;
  }

  .amr-home-subtitle { font-size: 1rem; }

  .amr-home-actions,
  .amr-home-button { width: 100%; }

  .amr-home-proof {
    gap: 10px;
  }

  .amr-home-stage { width: min(100%, 260px); }
  .amr-home-chart-tile { min-width: 50px; }

  .amr-home-spark-question,
  .amr-home-spark-sheet,
  .amr-home-spark-cleaning,
  .amr-home-spark-regression,
  .amr-home-spark-table { height: 30px; }

  .amr-home-eyebrow {
    font-size: 0.72rem;
  }

  .amr-home-section > h2,
  .amr-home-consult h2 {
    font-size: 1.55rem;
  }

  .amr-home-lead,
  .amr-home-consult p,
  .amr-home-license p {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amr-home-stage::after,
  .amr-home-brand-lockup::after,
  .amr-home-logo-core,
  .amr-home-chart-tile,
  .amr-home-spark-question,
  .amr-home-spark-sheet span,
  .amr-home-spark-cleaning span,
  .amr-home-spark-regression::before,
  .amr-home-spark-regression span,
  .amr-home-cell,
  .amr-home-report-lines span,
  .amr-home-path-visuals span {
    animation: none !important;
  }

  .amr-home-motion-ready .amr-home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Maths Refresher lesson components
   ========================================================================== */

/* Lesson introduction card and shared lesson design tokens. */
.amr-lesson-hero {
  --amr-lesson-blue: #0466c8;
  --amr-lesson-blue-deep: #033c73;
  --amr-lesson-muted: #5f6f8b;
  --amr-lesson-line: #dce9f8;
  --amr-lesson-soft: #f4f8ff;
  --amr-lesson-card: #ffffff;
  --amr-lesson-shadow: 0 18px 42px rgba(2, 73, 171, 0.1);
  --amr-lesson-copy-width: 68ch;

  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 42px 0px 34px;
  padding: 20px 20px 20px;
  border: 1px solid var(--amr-lesson-line);
  border-radius: 24px;
  background:
    radial-gradient(560px 300px at 90% -15%, rgba(4, 102, 200, 0.13), transparent 70%),
    linear-gradient(180deg, var(--amr-lesson-card), var(--amr-lesson-soft));
  box-shadow: var(--amr-lesson-shadow);
  overflow: visible;
  text-align: center;
}

/* Optional separator above the lesson card; retained as a disabled experiment. */
/*
.amr-lesson-hero::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 111%;
  height: 1px;
  background: var(--amr-lesson-line);
}
*/
/* Keep all lesson-card descendants within the card's box model. */
.amr-lesson-hero * {
  box-sizing: border-box;
}

.amr-lesson-inner {
  width: min(100%, 960px);
  margin-inline: auto;
  padding-top: -100px;
  text-align: center;
}

/* Compact lesson label used for headings such as "Learning outcomes". */
.amr-lesson-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 7px 18px;
  border: 1px solid var(--amr-lesson-line);
  border-radius: 999px;
  color: var(--amr-lesson-blue-deep);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: left;
}

.amr-lesson-eyebrow iconify-icon,
.amr-lesson-eyebrow .iconify,
.amr-lesson-eyebrow svg {
  display: block;
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--amr-lesson-blue);
  font-size: 1rem;
  line-height: 1;
}

.amr-lesson-eyebrow span {
  display: block;
  line-height: 1.2;
  font-size: 1.2rem;
}

/* Lesson-card title and its separator line. */
.amr-lesson-hero h2 {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 0;
  border-bottom: 0 !important;
  color: var(--amr-lesson-blue);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
}

.amr-lesson-hero h2::after {
  content: "";
  display: block;
  width: min(100%, var(--amr-lesson-copy-width));
  height: 1px;
  margin: 20px auto 0;
  background: var(--amr-lesson-line);
}

.amr-lesson-hero h2 .anchorjs-link {
  display: none !important;
}

/* Lesson subtitle, explanatory copy, and learning-outcome list. */
.amr-lesson-subtitle {
  margin: 12px auto 0;
  color: #172033;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.amr-lesson-copy {
  max-width: var(--amr-lesson-copy-width);
  margin-inline: auto;
  text-align: justify;
}

.amr-lesson-copy p {
  margin: 14px 0 0;
  color: var(--amr-lesson-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.amr-lesson-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 25px;
  color: var(--amr-lesson-muted);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
  padding-left: 40px;
}

.amr-lesson-points li::marker {
  var(--amr-lesson-muted);
}
/* Lesson-card adjustments for tablets and narrower screens. */
@media (max-width: 980px) {
  .amr-lesson-hero {
    padding: 30px 24px;
  }

  .amr-lesson-copy {
    text-align: left;
  }
}

/* Consolidated lesson-card adjustments for phones. */
@media (max-width: 520px) {
  .amr-lesson-hero {
    width: 100%;
    padding: 26px 18px;
    border-radius: 20px;
    margin-top: 22px;
  }

  .amr-lesson-hero h2 {
    font-size: clamp(1.85rem, 12vw, 2.45rem);
  }

  .amr-lesson-points {
    padding-left: 30px;
  }

  .amr-lesson-eyebrow {
    gap: 7px;
    padding: 7px 14px;
    font-size: 0.88rem;
  }

  .amr-lesson-eyebrow iconify-icon,
  .amr-lesson-eyebrow .iconify,
  .amr-lesson-eyebrow svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
    min-width: 0.95rem;
  }
  
  .amr-lesson-eyebrow span {
    margin-top: 3px;
  }
}

/* ==========================================================================
   Maths Refresher operation-order flowchart
   ========================================================================== */

/* Responsive horizontal flowchart and shared flowchart design tokens. */
.amr-operation-flow {
  --amr-flow-blue: #2f64b8;
  --amr-flow-green: #4f9650;
  --amr-flow-orange: #f47b00;
  --amr-flow-purple: #7d68af;
  --amr-flow-shadow: 0 16px 28px rgba(22, 54, 94, 0.16);
  display: grid;
  grid-template-columns:
    minmax(132px, 1fr) minmax(20px, 40px)
    minmax(132px, 1fr) minmax(20px, 40px)
    minmax(150px, 1.08fr) minmax(20px, 40px)
    minmax(150px, 1.08fr);
  align-items: center;
  justify-content: stretch;
  column-gap: clamp(6px, 1.2vw, 16px);
  width: 100%;
  margin: 1.7rem auto 1.8rem;
  overflow: visible;
  padding: 0.45rem 0.2rem 0.8rem;
}

.amr-operation-step {
  --amr-step-color: var(--amr-flow-blue);
  --amr-step-soft: rgba(47, 100, 184, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 188px;
  padding: 18px 13px 17px;
  border: 3px solid var(--amr-step-color);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--amr-step-color) 64%, #ffffff), var(--amr-step-soft));
  box-shadow: var(--amr-flow-shadow);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 32, 70, 0.25);
}

/* Assign a distinct semantic color to each operation step. */
.amr-operation-parentheses {
  --amr-step-color: var(--amr-flow-blue);
  --amr-step-soft: #82a6dd;
}

.amr-operation-exponents {
  --amr-step-color: var(--amr-flow-green);
  --amr-step-soft: #98c18c;
}

.amr-operation-multiply {
  --amr-step-color: var(--amr-flow-orange);
  --amr-step-soft: #ffc15c;
}

.amr-operation-addition {
  --amr-step-color: var(--amr-flow-purple);
  --amr-step-soft: #b7a6d6;
}

/* Style the icon, label, and operation code inside each step. */
.amr-operation-icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 76px);
  aspect-ratio: 1;
  margin-bottom: 14px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 3px 5px rgba(0, 29, 70, 0.26);
}

.amr-operation-icon sup {
  font-size: 0.52em;
  line-height: 0;
  position: relative;
  top: -0.35em;
}

.amr-operation-label {
  max-width: 12ch;
  font-size: clamp(1.08rem, 1.75vw, 1.55rem);
}

.amr-operation-code {
  margin-top: 12px;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
}

/* Draw and color the connectors between operation steps. */
.amr-operation-arrow {
  --amr-arrow-color: var(--amr-flow-blue);
  position: relative;
  width: 100%;
  height: 5px;
  background: var(--amr-arrow-color);
}

.amr-operation-arrow-parentheses {
  --amr-arrow-color: var(--amr-flow-blue);
}

.amr-operation-arrow-exponents {
  --amr-arrow-color: var(--amr-flow-green);
}

.amr-operation-arrow-multiply {
  --amr-arrow-color: var(--amr-flow-orange);
}

.amr-operation-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid var(--amr-arrow-color);
  transform: translateY(-50%);
}

/* Stack the flowchart vertically on compact screens. */
@media (max-width: 760px) {
  .amr-operation-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    overflow-x: visible;
    padding: 0.2rem 0;
  }

  .amr-operation-step,
  .amr-operation-step-wide {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 150px;
    padding: 16px 18px;
  }

  .amr-operation-icon {
    width: 58px;
    margin-bottom: 10px;
    font-size: 1.85rem;
  }

  .amr-operation-label {
    max-width: 16ch;
  }

  .amr-operation-arrow {
    align-self: center;
    flex: 0 0 28px;
    width: 5px;
    height: 28px;
  }

  .amr-operation-arrow::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    border-top: 18px solid var(--amr-arrow-color);
    border-right: 12px solid transparent;
    border-left: 12px solid transparent;
    border-bottom: 0;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Lesson content utilities
   ========================================================================== */

/* Reduce indentation for explicitly marked nested lists. */
.compact-nested-ul ul{
  padding-left: 20px;
}

.compact-nested-list ul ul {
  padding-left: 20px;
}

/* Tighten figure and caption spacing. */
.quarto-figure {
    position: relative;
    margin-bottom: 0.3em !important;
}

figure > figcaption.quarto-float-caption-bottom {
    margin-bottom: 0.7em;
    padding-bottom: 20px !important;
    text-align: center;
}

/* Allow wide tab-panel content to scroll on small screens. */
@media (max-width: 680px) {
  .panel-tabset .tab-pane {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Label groups of worked examples and exercises. */
.amr-practice-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 1rem 0 1rem;
  padding: 9px 16px;
  border: 1px solid var(--amr-lesson-line, #dce9f8);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: var(--amr-lesson-blue-deep, #033c73);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.amr-practice-eyebrow i {
  color: var(--amr-lesson-blue, #0466c8);
  font-size: 1.05rem;
}

@media (max-width: 520px) {
  .amr-practice-eyebrow {
    max-width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}


/* Adjust indentation of section headers and header numbers*/
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    color: #0466c8;
    display: flex;
}

.header-section-number {
    color: #0466c8;
    padding-right: 0.3em;
}





/* Set the default indentation of ordinary ordered and unordered lists. */
ul, ol {
  padding-left: 3rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
  padding-left: 1.25rem;
}


/* Adjust indentation of Callouts*/
.callout.callout-style-default .callout-body {
    padding-left: 0em;
    padding-right: .5em;
}


/* Style for adding a space before the next section */
.next-section {
  margin-top: 2rem;
}


/* Style indentation for list in Working examples tabset */
.tab-content > .tab-pane > ul,
.tab-content > .tab-pane > ol{
  padding-left: 2rem;
}


/* Ajust border radius for tabset */
.tab-content {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Hide caption of tabset */
#tabset-M11 > figure > figcaption,
#tabset-M12 > figure > figcaption {
  display: none;
}

#tabset-M11 > figure > div[aria-describedby] > p,
#tabset-M12 > figure > div[aria-describedby] > p{
  text-align: left;
}
