/* ---------- Root Variables ---------- */
:root {
    --bg: #252526;
    --panel: #2d2d30;
    --text: #e0e0e0;
    --hover: #424146;
    --accent: #b0b0b0;
    --article: #2A2A2B;
    --focus: #38373A;
    --logo: #7dc895;
    --ear: #007acc;
    --header: #252526;
    --menu: #2A2A2B;
    color-scheme: dark;
}

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---------- Global Reset & Body Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    overflow-x: hidden;
      font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--text);
}

/* ---------- Link Styles ---------- */
.link {
    color: #74b9ff;
    text-decoration: none;
}
.link:visited { color: #74b9ff; }
.link:hover { color: #74b9ff; text-decoration: underline; }
.link:active { color: #74b9ff; }

/* ---------- Header (Desktop) ---------- */
header {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    z-index: 1200;
    height: 60px;
    background-color: var(--header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

header .logo {
    font-family: "Raleway", sans-serif;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

header .logo i {
    font-size: 1rem;
    color: var(--text);
    background-color: transparent;
    padding: 0;
    border-radius: 0.2rem;
    margin-right: -3px;
}

.logo-image{
  width: 38px;
  height: 38px;
  margin-left: -13px;
  margin-right: -17px;
}

.a{
 font-weight: 600;
}

.u{
 font-weight: 300;
}

.i{
 font-weight: 400;
}

.d{
 font-weight: 500;
}

.e{
 font-weight: 500;

}

.guide-word {
  display: inline; /* or inline-block */
}
.guide-word span {
  display: inline; /* ensures no spacing */
}

/* ---------- Hamburger Button (Mobile Only) ---------- */
#hamburger {
    display: none;
    font-size: 2.2rem;
    margin-right: 0;
    margin-bottom: -10px;
    padding-bottom: 0;
    padding-left: 0;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

/* ---------- Sidebar (Desktop) ---------- */
nav#sidebar {
    position: fixed;
    top: 0;
    width: 240px;
    height: 100%;
    padding: 80px 20px 0 20px;
    background-color: var(--menu);
    line-height: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

nav#sidebar ul {
    list-style: none;
}

nav#sidebar ul li { margin: 0; }

nav#sidebar ul li a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--accent);
    border-radius: 0.3rem;
    -webkit-tap-highlight-color: transparent;
}



@media (hover: none) and (pointer: coarse) {
    nav#sidebar ul li a:focus {
        outline: none;
        background-color: var(--focus); /* match your tap color */
        color: var(--text);
    }
}

nav#sidebar ul li a.tap-active {
  background-color: var(--focus);
  color: var(--text);
  transition: background-color 0.2s;
}

nav#sidebar ul li a.active {
    background-color: var(--focus);
    color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
    nav#sidebar ul li a:hover {
        background-color: var(--hover);
        color: var(--text);
    }
}

nav#sidebar ul li a.no-decoration,
nav#sidebar ul li a.no-decoration:hover,
nav#sidebar ul li a.no-decoration:active,
nav#sidebar ul li a.no-decoration:focus,
nav#sidebar ul li a.no-decoration:focus-visible {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--test);
    border-radius: 0.3rem;
    -webkit-tap-highlight-color: transparent;

    /* Remove all visual feedback */
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    text-decoration: none !important;
}

nav#sidebar ul li.icon-item {
    display: inline-block;       /* Prevents 100% width */
    width: auto;                 /* Shrinks to fit the SVG */
    padding: 0;                  /* Remove the block padding */
}

.nav-icon{
    fill: var(--accent);
    height: 20px;
    width: 20px;
}

.nav-icon:hover{
    fill: var(--text);
    height: 20px;
    width: 20px;
}

/* ---------- Main Content (Desktop) ---------- */

.nested-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem; /* space between the two columns on desktop */
}

/* Keep indentation + bullets; remove only vertical gap between ULs */
.nested-columns ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0rem; /* default indentation */
  list-style: disc;
  list-style-position: outside;
}

/* Restore normal spacing between LI items */
.nested-columns ul li {
  margin-bottom: 0.5rem; /* adjust as needed */
}

.nested-columns ul li:last-child {
  margin-bottom: 0; /* clean ending */
}

@media (max-width: 768px) {
  .nested-columns {
    grid-template-columns: 1fr; 
    gap: 0; /* remove gap between the two ULs when stacked */
  }

  /* Keep UL indentation + bullets, but remove gap between ULs */
  .nested-columns ul {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Keep normal LI spacing */
  .nested-columns ul li {
    margin-bottom: 0.5rem;
  }

  .nested-columns ul li:last-child {
    margin-bottom: 0.5rem;
  }
}

.white{
   color: var(--text);
}



.table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0px solid #ccc;
  margin-bottom: 30px;
  margin-top: 20px;
}

.top {
border-top-left-radius: 0.6rem;
border-top-right-radius: 0.6rem;
}

.bottom {
border-bottom-left-radius: 0.6rem;
border-bottom-right-radius: 0.6rem; 
}

.orange{
color: #F8B683;
font-weight: 400;
font-size: 0.8rem;
}

.green{
color: #93D0A7;
font-weight: 400;
font-size: 0.8rem;
}

.red{
color: #DE7176;
font-weight: 400;
font-size: 0.8rem;
}



.row1 {
  background: rgb(176,176,176, 0.1);
  border: solid #b0b0b0;
  padding: 10px;
  border-width: 1px 1px 0 1px; 
  
  display: flex;
  align-items: center;      /* Vertically center icon and text */
  justify-content: center;  /* Center text container horizontally */


}

#copy-overlay {
  /* Positioning and Sizing for Full Screen Coverage */
  position: fixed;
  top: 0;
  left: 0;
  
  /* Use viewport units for true full-screen sizing */
  width: 100vw; 
  height: 100vh; 
  
  /* iOS-specific full height hack for better compatibility */
  min-height: -webkit-fill-available;
  
  /* Layout and Styling */
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  
  /* CRITICAL Fix: Force GPU layer for clean cleanup on fade-out */
  transform: translateZ(0); 
  
  /* Transitions and Initial State */
  opacity: 0;
  pointer-events: none; /* Allows clicks on elements underneath */
  transition: opacity 0.3s ease;
  
  /* Optional: Use padding to push *content* away from safe areas 
     if your message shouldn't be covered by the notch/home indicator. 
     The background will still cover the entire area. */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

#copy-overlay.show {
  opacity: 1;
  pointer-events: all; /* Blocks clicks while visible */
}

#copy-message {
  background-color: #333334;
  color: var(--text);
  padding: 20px 40px;
  border-radius: 5rem;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
}

.link-icon {
  display: inline-block;    /* keep it inline */
  vertical-align: middle;   /* align with text vertically */
  font-size: 13px;
  margin-left: 0px;         /* small space after text */
  color: var(--accent);
  cursor: pointer;
  margin-top: 0;            /* remove the margin-top that causes line break */
}

.link-icon:hover{
  color: var(--text);
}

.icon {
  position: absolute;       /* Take icon out of normal flow */
  left: 0;
  cursor: pointer;
}

.center-text {
  text-align: center;       /* Center the text inside its own div */
  width: 100%;              /* Take full width so centering works */
}

.row2 {
  background: rgb(0,172,70, 0.1);
  border: solid #00ac46;
  border-width: 0 1px 0 1px; /* top right bottom left */
}

.row3 {
  background: rgb(253,197,0, 0.1);
  border: solid #fdc500;
  border-width: 0 1px 0 1px; 
}

.row4 {
  background: rgb(253,140,0, 0.1);
  border: solid #fd8c00;
  border-width: 0 1px 0 1px; 
}

.row5 {
  background: rgb(220,0,0, 0.1);
  border: 1px solid #dc0000;
  border-width: 0 1px 1px 1px; 
}

.row2, .row3, .row4, .row5 {
padding:10px 20px 10px 20px;
}

.warning{
   background: rgb(220,0,0, 0.1);
  border: 1px solid #dc0000;
  border-width: 1px 1px 1px 1px; 
  border-radius: 0.6rem;
  padding:10px 20px 10px 20px;
  font-style: normal; 
  color: var(--accent);

}

.table ul li {
    margin: 0 0 0 0;
    padding-left: 0rem;
    list-style-position: outside;
    list-style-type: disc;
}

.table ul:last-child {
    margin: 0.5rem 0 0.8rem 1.4rem;
    padding-left: 0.5rem;
    list-style-position: outside;
    list-style-type: disc;
}

main {
    flex: 1 1 auto;
    margin-left: 240px;
    margin-top: 60px;
    margin-bottom: 2rem;
    padding: 0;
    position: relative;
    z-index: 100;
    background: var(--bg);
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

main article {
    max-width: 700px;
    margin: 0;
    padding: 23px 2rem;
    background: var(--bg);
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: var(--accent);
}

strong {
  font-weight: 600; /* browser default */
}

main article h1 { font-size: 1.1rem; font-weight: 400; margin: 0 0 0.6rem 0; color: var(--text); }
main article h2 { font-size: 0.9rem; font-weight: 500; margin: 0.7rem 0 0.6rem 0; color: var(--text); }
main article h3 { font-size: 0.9rem; font-weight: 700; margin: 1rem 0 0.6rem 0; color: var(--text); }

main article p { margin-bottom: 1rem; }


main article ul {
    margin: 0.5rem 0 1.2rem 1.4rem;
    padding-left: 0.5rem;
    list-style-position: outside;
    list-style-type: disc;
}

main article ul ul {
    margin: 0.5rem 0 0rem 1.4rem;
    padding-left: 0.5rem;
    list-style-position: outside;
    list-style-type: disc;
}

main article li { margin-bottom: 0.4rem; }

.page-break {
    display: block;
    position: relative;
    width: 100%;
    height: 1px;
    margin: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.image-row-1 {
  display: flex;
  gap: 0.8rem;            /* space between images */
  width: 100%;           /* fill the article */
  align-items: flex-start;
    margin-top:20px;
  margin-bottom: 20px;
}

.image-row-1 img {
  display: block;
  width: auto;          /* maintain aspect ratio */
  height: auto;         /* natural aspect ratio */
  max-width: 100%;      /* shrink to fit container */
  object-fit: contain;
  border-radius: 0.6rem;
}

.image-row {
  display: flex;
  gap: 0.8rem; /* optional spacing between images */
  margin-top:20px;
  margin-bottom: 20px;

}

.image-row img {
  width: 50%;        /* each image takes half of the row */
  height: auto;      /* keep aspect ratio */
  object-fit: cover; /* optional, keeps image visually nice */
  min-width: 0;      /* ensures images shrink properly in flex */
  border-radius: 0.6rem;
}

article img.half-width-image {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 1rem 0rem 1rem 0;
    padding: 0;
    border-radius: 0.6rem;
    background-color: var(--menu);
}

article img.full-width-image-silverstein {
    display: block;
    width: 100%;
    height: auto;
    margin: 1rem 0 1rem 0;
    padding: 0;
    border-radius: 0.6rem;
    background-color: var(--menu);
}

article img.full-width-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 1.3rem 0 0 0;
    padding: 0;
    border-radius: 0.6rem;
    background-color: var(--menu);
}

article img.full-width-image:last-child {
    margin-bottom: 2rem;
}

article img.full-width-image:first-child {
    margin-top: 1.5rem;
}

.quote {
    font-weight: 400;
    font-size: 0.9rem;
}

/* Responsive wrapper with preserved aspect ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio – adjust if needed */
  border-radius: 0.6rem;
  overflow: hidden; /* clips children */
}

/* Video fills the wrapper */
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* Critical for mobile Safari poster clipping */
  border-radius: inherit;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}


.custom-font {
  font-family: "Ephesis", cursive;
      font-size: 4rem;
      line-height: 70px;
}

.thomas {
   font-size: 1.2rem;

}
.centered-text {
      
    margin-top: 40px;
    margin-bottom: 50px;
    margin-left:-13px;
    font-weight: normal;
    text-align: center;

}

/* ---------- Mobile Styles (Max-width 768px) ---------- */
@media (max-width: 768px) {
    header { position: static; height: 70px; left: 0; }
    #hamburger { display: block; }
    header .logo { padding-left: 7px; font-size: 1.2rem; font-weight: 600;}
    header .logo i { font-size: 1.1rem; }


.link-icon {
  font-size: 14px; /* Adjust this to make the icon bigger or smaller */
  color: var(--accent);  /* Single color */
  cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* remove tap highlight */
  -webkit-touch-callout: none;              /* disable long-press menu */
  -webkit-user-select: none;                /* prevent text selection */
  user-select: none;                        /* standard */
  outline: none;                            /* remove focus outline */
  -webkit-appearance: none;                 /* remove default iOS button styling */
  background-color: initial;     
}

.link-icon:hover{
  font-size: 14px; /* Adjust this to make the icon bigger or smaller */
  color: var(--accent);  /* Single color */
  cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* remove tap highlight */
  -webkit-touch-callout: none;              /* disable long-press menu */
  -webkit-user-select: none;                /* prevent text selection */
  user-select: none;                        /* standard */
  outline: none;                            /* remove focus outline */
  -webkit-appearance: none;                 /* remove default iOS button styling */
  background-color: initial;     
}

 .logo-image{
  width: 46px;
  height: 46px;
  margin-left: -15px;
  margin-right: -19px;
  }

  /* Hamburger button lines */
#hamburger {
  position: relative;
  width: 18px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 0px;
  z-index: 1300;
}

#hamburger:focus {
          -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
}

/* Stack lines exactly in the center */
#hamburger span {
  display: block;
  position: absolute;  /* position relative to button */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 1px;
  transition: all 0.4s ease;
}

/* Position each line */
#hamburger span:nth-child(1) { top: 3.5px; }
#hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
#hamburger span:nth-child(3) { bottom: 3.5px; width: 60%; left: 0%; }

/* Animate to X with a little left shift */
#hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translate(0px, -50%) rotate(45deg); /* shift left by 2px */
}

#hamburger.active span:nth-child(2) {
  opacity: 0; /* middle line fades out */
}

#hamburger.active span:nth-child(3) {
  top: 50%;
  left: 0;             /* keep left-anchored so the growth looks natural */
  width: 100%;         /* expand to full width */
  transform: translate(0px, -50%) rotate(-45deg);
}

.border{
    background-color: rgba(255, 255, 255, 0.06);
    border: 0px solid;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    padding: 9px 11px 9px 11px; 
    margin-right:4px;

}
    main { margin: 0; margin-bottom: 4rem; height: auto; padding: 1rem; }

    /* Sidebar as full-screen scrollable menu */
    nav#sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        padding-top: 94px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        background-color: var(--bg);
        font-size: 1rem;
        line-height: 1.2rem;
        z-index: 1100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        font-weight: 400;
    }

    nav#sidebar.open { transform: translateY(0); }

    nav#sidebar ul li a {
        padding: 0.9rem 1rem 0.9rem 1.2rem;
     
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        border-radius: 0.5rem;
    }

    nav#sidebar ul li a.tap-active {
        background-color: rgba(255, 255, 255, 0.06);
        color: var(--text);
    }

    nav#sidebar ul li a.active {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

nav#sidebar ul li a.no-decoration,
nav#sidebar ul li a.no-decoration:hover,
nav#sidebar ul li a.no-decoration:active,
nav#sidebar ul li a.no-decoration:focus,
nav#sidebar ul li a.no-decoration:focus-visible {
    display: block;
    padding: 0.9rem 1rem 0.9rem 1.2rem;
    text-decoration: none;
    color: var(--test);
    border-radius: 0.3rem;
    -webkit-tap-highlight-color: transparent;

    /* Remove all visual feedback */
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    text-decoration: none !important;
}

.nav-icon{
    fill: var(--accent);
    height: 26px;
    width: 26px;
}

.nav-icon:hover{
    fill: var(--text);
    height: 26px;
    width: 26px;
}

.orange{
color: #F8B683;
font-weight: 400;
font-size: 0.9rem;
}

.green{
color: #93D0A7;
font-weight: 400;
font-size: 0.9rem;
}

.red{
color: #DE7176;
font-weight: 400;
font-size: 0.9rem;
}

    main article {
        max-width: 100%;
        padding: 0.5rem;
        margin-bottom: 0;
        background: transparent;
        border-radius: 0.6rem;
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.7rem;
    }

    main article h1 { font-size: 1.2rem; font-weight: 500; margin: 0 0 0.6rem 0; color: var(--text); line-height: 1.9rem;}
    main article h2 { font-size: 1.05rem; font-weight: 500; margin: 0.7rem 0 0.6rem 0; color: var(--text); line-height: 1.7rem;}
    main article h3 { font-size: 0.9rem; font-weight: 700; margin: 1rem 0 0.6rem 0; color: var(--text); }

    .custom-font {
     font-family: "Ephesis", cursive;
      font-size: 3.5rem;
      line-height: 70px;
}

    .quote {
    font-weight: 300;
    font-size: 1.05rem;
    }

    .link{
    font-weight: 400;
    }


.warning{
  padding:20px 20px 16px 20px;
}

.table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0px solid #ccc;
}

.row2, .row3, .row4, .row5{
padding:20px 20px 14px 20px;
}

html {
  scroll-behavior: smooth; /* smooth scrolling */
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #333334;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 0;
  color: transparent;

  opacity: 0;               /* hidden by default */
  pointer-events: none;      /* not clickable when hidden */
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 999;

  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

/* Arrow icon */
.back-to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
  transform: rotate(135deg);
  transition: border-color 0.3s ease;
  margin-top: 5px;
}

/* Hover/focus effects */
.back-to-top.show:hover,
.back-to-top.show:focus {
  transform: scale(1.1);
  outline: none;
}

.back-to-top.show:hover::before,
.back-to-top.show:focus::before {
  border-color: #fff;
}

/* Keep fully opaque when pressed/focused */
.back-to-top.show:active,
.back-to-top.show:focus {
  opacity: 1;
}

/* Visible state */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}



    article img.full-width-image { width: 100%; }

    /* ---------- HIDE SCROLLBARS ON MOBILE ---------- */
    body,
    html,
    main,
    main article,
    nav#sidebar {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    
  scroll-behavior: smooth;

    }

    body::-webkit-scrollbar,
    html::-webkit-scrollbar,
    main::-webkit-scrollbar,
    main article::-webkit-scrollbar,
    nav#sidebar::-webkit-scrollbar {
        display: none; /* Chrome, Safari, iOS */
    }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

article {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 0.1s;
}