/* ============================================================
   Mark Wroblewski Portfolio Theme
   main.css — Master Stylesheet
   Follows HubSpot CMS boilerplate ITCSS architecture
   ============================================================ */

/* Tools
   Animations, functions, and macros used throughout the project.
   Note: _macros.css must be imported individually into files that use macros.
*/

/* Generic
   Reset, normalize & box-sizing styles.
*/
/* ============================================================
   Reset
   Box-sizing rule applied globally.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* ============================================================
   Normalize
   Corrects inconsistencies across browsers.
   ============================================================ */

/* Document
   ========================================================================== */

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
   ========================================================================== */

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  padding: 0;
}

progress {
  vertical-align: baseline;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
   ========================================================================== */

details {
  display: block;
}

summary {
  display: list-item;
}

/* Objects
   Non-cosmetic design patterns: grid and layout classes.
*/


/* ============================================================
   Layout
   HubSpot 12-column fluid grid system.
   ============================================================ */

/* CSS variables */
:root {
  --column-gap:              2.13%;
  --column-width-multiplier: 8.333;
}

/* Mobile layout — all columns full-width by default */
.row-fluid {
  display:   flex;
  flex-wrap: wrap;
  width:     100%;
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width:      100%;
}

/* Desktop layout — flex columns by span number */
@media (min-width: 768px) {
  .row-fluid {
    flex-wrap:       nowrap;
    justify-content: space-between;
  }

  
    .row-fluid .span1 {
      width: calc(var(--column-width-multiplier) * 1% * 1 - var(--column-gap) * (11 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span2 {
      width: calc(var(--column-width-multiplier) * 1% * 2 - var(--column-gap) * (10 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span3 {
      width: calc(var(--column-width-multiplier) * 1% * 3 - var(--column-gap) * (9 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span4 {
      width: calc(var(--column-width-multiplier) * 1% * 4 - var(--column-gap) * (8 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span5 {
      width: calc(var(--column-width-multiplier) * 1% * 5 - var(--column-gap) * (7 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span6 {
      width: calc(var(--column-width-multiplier) * 1% * 6 - var(--column-gap) * (6 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span7 {
      width: calc(var(--column-width-multiplier) * 1% * 7 - var(--column-gap) * (5 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span8 {
      width: calc(var(--column-width-multiplier) * 1% * 8 - var(--column-gap) * (4 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span9 {
      width: calc(var(--column-width-multiplier) * 1% * 9 - var(--column-gap) * (3 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span10 {
      width: calc(var(--column-width-multiplier) * 1% * 10 - var(--column-gap) * (2 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span11 {
      width: calc(var(--column-width-multiplier) * 1% * 11 - var(--column-gap) * (1 * var(--column-width-multiplier) / 100));
    }
  
}
/* ============================================================
   Containers & DnD
   HubSpot drag-and-drop section and column layout wrappers.
   ============================================================ */

.content-wrapper {
  margin:  0 auto;
  padding: 0 1rem;
}

@media screen and (min-width: 1380px) {
  .content-wrapper {
    padding: 0;
  }
}

.dnd-section > .row-fluid {
  margin: 0 auto;
}

.dnd-section .dnd-column {
  padding: 0 1rem;
}

@media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
}

/* Elements
   Base HTML element styles: body, h1–h6, a, p, button, etc.
*/
/* ============================================================
   Typography
   Base HTML element typography styles.
   Specific sizes/colors driven by theme-overrides.css.
   ============================================================ */

/* Body
   Overflow-wrap prevents long words from breaking mobile layout.
   Long-break handling for CJK languages.
*/
body {
  line-height:   1.6;
  overflow-wrap: break-word;
}

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
  line-break:    strict;
  overflow-wrap: normal;
  word-break:    break-all;
}

/* Paragraphs */
p {
  font-size:     1rem;
  margin:        0 0 1.4rem;
}

/* Anchors */
a {
  cursor: pointer;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  margin:      0 0 1.4rem;
}

/* Lists */
ul,
ol {
  margin: 0 0 1.4rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0;
}

ul.no-list {
  list-style:  none;
  margin:      0;
  padding-left: 0;
}

/* Code blocks */
pre {
  overflow: auto;
}

code {
  vertical-align: bottom;
}

/* Blockquotes */
blockquote {
  border-left: 2px solid;
  margin:      0 0 1.4rem;
  padding-left: 0.7rem;
}

/* Horizontal rules */
hr {
  border:        none;
  border-bottom: 1px solid #CCC;
}

/* Images — alt text sizing */
img {
  font-size:  0.583rem;
  word-break: normal;
  max-width:  100%;
  height:     auto;
  display:    block;
}
/* ============================================================
   Buttons
   Base button element styles.
   Visual theming is handled in theme-overrides.css.
   ============================================================ */

button,
.button,
.hs-button {
  cursor:       pointer;
  display:      inline-block;
  text-align:   center;
  transition:   all 0.15s linear;
  white-space:  normal;
}

button:disabled,
.button:disabled,
.hs-button:disabled {
  background-color: #D0D0D0;
  border-color:     #D0D0D0;
  color:            #E6E6E6;
  cursor:           not-allowed;
}

/* No-button reset — strips all button styling */
.no-button,
.no-button:hover,
.no-button:focus,
.no-button:active {
  background:     none;
  border:         none;
  border-radius:  0;
  color:          initial;
  font-family:    inherit;
  font-size:      inherit;
  font-style:     inherit;
  font-weight:    inherit;
  letter-spacing: inherit;
  line-height:    inherit;
  margin-bottom:  0;
  padding:        0;
  text-align:     left;
  text-decoration: none;
  transition:     none;
}
/* ============================================================
   Forms
   Base form element styles.
   Visual theming (colors, borders, radius) driven by theme-overrides.css.
   ============================================================ */

/* Fields */
.hs-form-field {
  margin-bottom: 1.4rem;
}

/* Labels */
form label {
  display:       block;
  font-size:     0.875rem;
  margin-bottom: 0.35rem;
}

/* Form title */
.form-title {
  margin-bottom: 0;
}

/* Help / legend text */
form legend {
  font-size: 0.875rem;
}

/* Text inputs */
form input[type=text],
form input[type=search],
form input[type=email],
form input[type=password],
form input[type=tel],
form input[type=number],
form input[type=file],
form select,
form textarea {
  display:   inline-block;
  font-size: 0.875rem;
  padding:   0.7rem;
  width:     100%;
}

form textarea {
  resize: vertical;
}

form fieldset {
  max-width: 100% !important;
}

/* Checkbox & radio */
form .inputs-list {
  list-style:  none;
  margin:      0;
  padding:     0;
}

form .inputs-list > li {
  display: block;
  margin:  0.7rem 0;
}

form .inputs-list input,
form .inputs-list span {
  vertical-align: middle;
}

form input[type=checkbox],
form input[type=radio] {
  cursor:       pointer;
  margin-right: 0.35rem;
}

/* Date picker */
.hs-dateinput {
  position: relative;
}

.hs-dateinput:before {
  content:   '\01F4C5';
  position:  absolute;
  right:     10%;
  top:       50%;
  transform: translateY(-50%);
}

.fn-date-picker .pika-table thead th {
  color: #FFF;
}

.fn-date-picker td.is-selected .pika-button {
  border-radius: 0;
  box-shadow:    none;
}

.fn-date-picker td .pika-button:hover,
.fn-date-picker td .pika-button:focus {
  border-radius: 0 !important;
  color:         #FFF;
}

/* File picker */
form input[type=file] {
  background-color: transparent;
  border:           initial;
  padding:          initial;
}

/* Rich text inside forms */
form .hs-richtext,
form .hs-richtext p {
  font-size: 0.875rem;
  margin:    0 0 1.4rem;
}

form .hs-richtext img {
  max-width: 100% !important;
}

/* GDPR consent */
.legal-consent-container .hs-form-booleancheckbox-display > span,
.legal-consent-container .hs-form-booleancheckbox-display > span p {
  margin-left: 1rem !important;
}

/* Validation */
.hs-form-required {
  color: #EF6B51;
}

.hs-input.invalid.error {
  border-color: #EF6B51;
}

.hs-error-msg {
  color:      #EF6B51;
  margin-top: 0.35rem;
}

/* Submit button base */
form input[type=submit],
form .hs-button {
  cursor:      pointer;
  display:     inline-block;
  text-align:  center;
  transition:  all 0.15s linear;
  white-space: normal;
}

/* reCAPTCHA */
.grecaptcha-badge {
  margin: 0 auto;
}


  .body-container-wrapper .hs-search-field__button {
    padding: 15px;
  }

  .body-container-wrapper .hs-search-field__bar--button-inline .hs-search-field__button {
    margin-left:   6px;
    margin-bottom: 0;
  }

  .body-container-wrapper .hs-search-field__button svg {
    height: 15px;
    fill:   #fff;
  }

  .body-container-wrapper .hs-search-field__bar > form > .hs-search-field__input {
    padding: 10px;
  }

  .body-container-wrapper .hs-search-field__suggestions li a {
    color:           #494A52;
    padding:         0.35rem 0.7rem;
    text-decoration: none;
    transition:      background-color 0.3s;
  }

/* ============================================================
   Tables
   Base table element styles.
   Visual theming (colors, padding, borders) driven by theme-overrides.css.
   ============================================================ */

table {
  border-collapse: collapse;
  margin-bottom:   1.4rem;
  overflow-wrap:   break-word;
  width:           100%;
}

td,
th {
  vertical-align: top;
}

thead th {
  vertical-align: bottom;
}

/* Components
   Specific pieces of UI — global partial styling.
*/
/* ============================================================
   Header Component
   Styles for templates/partials/header.html
   Color tokens are set by theme-overrides.css.
   ============================================================ */

/* ----- DnD section padding reset (boilerplate requirement) ----- */
.header .dnd-section {
  padding: 0;
}

/* ============================================================
   SITE HEADER — sticky bar
   ============================================================ */
.body-wrapper {
  padding-top: 88px;
}

.site-header {
  position:            fixed;
  top:                 0;
  left:                0;
  right:               0;
  width:               100%;
  z-index:             1000;
  background:          rgba(255, 255, 255, 0.96);
  backdrop-filter:     blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:       1px solid rgba(0, 0, 0, 0.06);
  transition:          box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.09);
}

/* ============================================================
   HEADER CONTAINERS
   ============================================================ */
.header__container {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          88px;
  gap:             1.5rem;
  width: min(100% - 2rem, 1400px); /* wider than content */
  margin: 0 auto;
}

/* Keep boilerplate row classes intact for top/bottom DnD areas */
.header__row-1 {
  padding-top: 1rem;
}

.header__row-1,
.header__row-2 {
  align-items:     center;
  display:         flex;
  justify-content: flex-end;
  width:           100%;
}

@media (max-width: 1150px) and (min-width: 768px) {
  .header__column {
    width: 100%;
  }
}

/* ============================================================
   SKIP LINK — keyboard / screen-reader accessibility
   ============================================================ */
.header__skip {
  position:   absolute;
  height:     1px;
  left:       -1000px;
  overflow:   hidden;
  top:        -1000px;
  width:      1px;
}

.header__skip:hover,
.header__skip:focus,
.header__skip:active {
  background:    var(--color-accent, #E8622A);
  border-radius: var(--radius-sm, 8px);
  color:         #FFFFFF;
  font-size:     0.875rem;
  font-weight:   600;
  height:        auto;
  left:          1rem;
  overflow:      visible;
  padding:       0.5rem 1rem;
  top:           1rem;
  width:         auto;
  z-index:       9999;
}

/* ============================================================
   LOGO
   ============================================================ */
.header__logo,
.header__logo--main {
  align-items:     center;
  display:         flex;
  gap:             0.75rem;
  flex-shrink:     0;
  margin-right:    0;
  max-width:       320px;
  text-decoration: none;
  overflow:        hidden;
}

.header__name {
  font-size:      1.8rem;
  font-weight:    700;
  color:          var(--color-heading, #1A1A2E);
  letter-spacing: -0.01em;
  margin:         0;
  white-space:    nowrap;
  line-height:    1.2;
}

/* HubSpot logo module output */
.header__logo img,
.header__logo--main img {
  max-width: 100%;
  height:    auto;
}

/* Text fallback when logo image is not set */
.header__logo .logo-company-name {
  font-size:      1rem;
  font-weight:    700;
  color:          var(--color-heading, #1A1A2E);
  letter-spacing: -0.01em;
  margin:         0;
}

@media (max-width: 767px) {
  .header__logo,
  .header__logo--main {
    margin: 0 auto;
  }
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
/*.header__column {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
   flex:            1 1 auto;
  min-width:       0;
}*/

.header__navigation {
  display: flex;
  flex:    1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.nav-menu__list {
 align-items: center;
  display:     flex;
  justify-content: flex-end;
  gap:         0.25rem;
  list-style:  none;
  margin:      0;
  padding:     0;
  flex-wrap:   nowrap;
  width:       100%;
}

.nav-menu__link {
  border-radius:   var(--radius-sm, 8px);
  color:           var(--color-text, #4B5563);
  display:         inline-flex;
  align-items:     center;
  font-size:       0.975rem;
  font-weight:     600;
  padding:         8px 14px;
  text-decoration: none;
  transition:      color 0.15s ease, background-color 0.15s ease;
  white-space:     nowrap;
}

.nav-menu__link:hover,
.nav-menu__link.is-active {
  background-color: rgba(232, 98, 42, 0.07);
  color:            var(--color-accent, #E8622A);
}

.nav-menu__item--cta,
.nav-menu__cta {
  white-space: nowrap;
}

/* ============================================================
   MOBILE HAMBURGER TOGGLE
   ============================================================ */
.nav-toggle {
  align-items:     center;
  background:      none;
  border:          none;
  border-radius:   var(--radius-sm, 8px);
  cursor:          pointer;
  display:         none;
  flex-direction:  column;
  gap:             5px;
  height:          40px;
  justify-content: center;
  padding:         6px;
  transition:      background-color 0.15s ease;
  width:           40px;
}

.nav-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-toggle__bar {
  background:      var(--color-heading, #1A1A2E);
  border-radius:   2px;
  display:         block;
  height:          2px;
  transform-origin: center;
  transition:      transform 0.25s ease, opacity 0.25s ease;
  width:           22px;
}

/* Hamburger → X animation */
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity:   0;
  transform: scaleX(0);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Boilerplate toggle helper classes */
.header--toggle {
  cursor: pointer;
}

.header__close--toggle {
  display: none;
}

/* ============================================================
   SEARCH (optional — kept from boilerplate)
   ============================================================ */
.header__search {
  padding: 0 1rem;
  width:   auto;
}

.header__search .hs-search-field__input {
  height:  45px;
  padding: 0 0.7rem;
}

/* ============================================================
   MOBILE NAVIGATION  (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Header column houses both nav and toggle */
  .header__column {
    gap: 0;
  }

  /* Hide nav by default; show when .is-open is toggled by JS */
  .header__navigation {
    background:      rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom:   1px solid rgba(0, 0, 0, 0.06);
    box-shadow:      0 8px 24px rgba(0, 0, 0, 0.08);
    display:         block;
    left:            0;
    min-height:      calc(100vh - 68px);
    opacity:         0;
    padding:         1rem var(--container-pad, 1.5rem) 2rem;
    position:        fixed;
    right:           0;
    top:             68px;
    transform:       translateY(-10px);
    transition:      opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    visibility:      hidden;
    width:           100%;
    z-index:         999;
  }

  .header__navigation.is-open,
  .header__navigation.open {
    opacity:    1;
    transform:  translateY(0);
    visibility: visible;
  }

  .nav-menu__list {
    align-items:    stretch;
    flex-direction: column;
    gap:            0.25rem;
  }

  .nav-menu__link {
    font-size: 1rem;
    padding:   12px 16px;
  }

  .nav-menu__item--cta {
    margin-left: 0;
    margin-top:  0.5rem;
  }

  .nav-menu__cta {
    justify-content: center;
    width:           100%;
  }

  /* Boilerplate mobile open states */
  .header__container {
    flex-wrap: wrap;
    padding:   0;
  }

  .header__logo,
  .header__logo--main {
    margin: 0 auto;
  }

  .header__row-2 {
    justify-content: flex-end;
    padding:         0;
  }
}
/* ============================================================
   Default Modules
   HubSpot built-in module base styles: menu, CTA, logo, rich text.
   ============================================================ */

/* ----- Menu & Simple Menu ----- */
.hs-menu-wrapper ul {
  display:    flex;
  flex-wrap:  wrap;
  list-style: none;
  margin:     0;
  padding-left: 0;
}

/* Horizontal menu */
.hs-menu-wrapper.hs-menu-flow-horizontal .hs-menu-children-wrapper {
  flex-direction: column;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-horizontal ul {
    flex-direction: column;
  }
}

/* Vertical menu */
.hs-menu-wrapper.hs-menu-flow-vertical ul {
  flex-direction: column;
}

/* Flyouts */
.hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
  display: inline-flex;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-vertical ul {
    display: flex;
  }
}

.hs-menu-wrapper.flyouts .hs-item-has-children {
  position: relative;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper {
  left:     -9999px;
  opacity:  0;
  position: absolute;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper a {
  display:     block;
  white-space: nowrap;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
  left:    0;
  opacity: 1;
  top:     100%;
}

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
  left:    100%;
  opacity: 1;
  top:     0;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.flyouts .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
    left:     0;
    opacity:  1;
    position: relative;
    top:      auto;
  }
}

/* ----- CTA, Logo, and Rich Text Images ----- */
.hs_cos_wrapper_type_cta img,
.hs_cos_wrapper_type_logo img,
.hs_cos_wrapper_type_rich_text img {
  height:    auto;
  max-width: 100%;
}

/* Utilities
   Helper/override classes.
*/
/* ============================================================
   Helper Utilities
   Accessibility and override helper classes.
   ============================================================ */

/* Visually hidden — accessible to screen readers */
.show-for-sr {
  border:     0 !important;
  clip:       rect(0, 0, 0, 0) !important;
  height:     1px !important;
  overflow:   hidden !important;
  padding:    0 !important;
  position:   absolute !important;
  white-space: nowrap !important;
  width:      1px !important;
}

@media (max-width: 767px) {
  .show-for-sr--mobile {
    border:     0 !important;
    clip:       rect(0, 0, 0, 0) !important;
    height:     1px !important;
    overflow:   hidden !important;
    padding:    0 !important;
    position:   absolute !important;
    white-space: nowrap !important;
    width:      1px !important;
  }
}

/* ============================================================
   Back-to-top button
   ============================================================ */
.back-to-top {
  align-items:      center;
  background:       var(--color-accent, #E8622A);
  border-radius:    var(--radius-sm, 8px);
  bottom:           1.5rem;
  box-shadow:       0 4px 16px rgba(232, 98, 42, 0.35);
  color:            #ffffff;
  display:          flex;
  justify-content:  center;
  opacity:          0;
  pointer-events:   none;
  position:         fixed;
  right:            1.5rem;
  text-decoration:  none;
  transition:       opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  transform:        translateY(8px);
  width:            44px;
  height:           44px;
  z-index:          900;
}

.back-to-top.is-visible {
  opacity:        1;
  pointer-events: auto;
  transform:      translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 20px rgba(232, 98, 42, 0.5);
  transform:  translateY(-2px);
}

.back-to-top:focus-visible {
  outline:        2px solid var(--color-accent, #E8622A);
  outline-offset: 3px;
}

/* Screen-reader only (alias) */
.sr-only {
  position:   absolute;
  width:      1px;
  height:     1px;
  padding:    0;
  margin:     -1px;
  overflow:   hidden;
  clip:       rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}