/* =============================================
   blockchainme.io — stylex.css
   Standalone CSS for index.html
   Mobile-first. Desktop: min-width 980px.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --brand-navy:    rgb(0, 0, 100);
  --brand-orange:  rgb(233, 105, 61);

  --sidebar-width: 260px;
  --sidebar-bg:    #f1f1f1;
  --nav-bar-h:     56px;
  --transition:    0.3s ease;

  --content-gap:   2rem;
  --sidebar-left:  0px;

  --ptl-bg:        #ffffff;
  --ptl-text:      #111111;
  --ptl-link:      #0000cc;
}

/* ── Base Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Trebuchet MS', 'Trebuchet', sans-serif;
  background-color: var(--brand-navy);
  color: snow;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   MOBILE NAV (hamburger bar — visible < 980px)
   ============================================= */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-bar-h);
  background-color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 2px solid var(--brand-orange);
}

.mobile-nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.mobile-nav-logo {
  display: block;
  height: 32px;
  width: auto;
}

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  top: var(--nav-bar-h);
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background-color: var(--sidebar-bg);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
}

.mobile-drawer.open { max-height: 80vh; }

.sidebar { display: none; }

/* =============================================
   MAIN CONTENT — mobile
   ============================================= */

.main-content {
  padding-top: calc(var(--nav-bar-h) + 1rem);
  display: block;
  min-height: 100vh;
}

/* ── ptl content block ── */
.ptl-content {
  background-color: var(--ptl-bg);
  color: var(--ptl-text);
  font-family: 'Trebuchet MS', 'Trebuchet', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 1rem 1.25rem 2rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.ptl-content a        { color: var(--ptl-link); }
.ptl-content a:hover  { color: var(--brand-orange); }

.ptl-content hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.75rem 0;
}

.ptl-h1 { font-size: 2rem; display: inline; }
.ptl-h2 { font-size: 1.5rem; display: inline; }

/* =============================================
   FOOTER (page bottom)
   ============================================= */

.site-footer {
  background-color: var(--brand-navy);
  border-top: 2px solid var(--brand-orange);
  padding: 1.25rem 1rem 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: snow;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--brand-orange); }

.footer-copy {
  color: #aaaacc;
  font-size: 0.8rem;
  margin: 0;
}

/* =============================================
   DESKTOP STYLES  (min-width: 980px)
   ============================================= */

@media (min-width: 980px) {

  .mobile-nav { display: none; }

  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    overflow: hidden;
    z-index: 500;
  }

  .sidebar-logo {
    margin-top: 2rem;
    padding: 0 1rem;
    text-align: center;
    flex-shrink: 0;
  }

  .imgLogo {
    display: block;
    width: 100%;
    max-width: 80px;
    margin: 0 auto;
  }

  .main-content {
    margin-left: calc(var(--sidebar-width) + var(--content-gap));
    padding-top: 0;
    min-height: 100vh;
  }

  .ptl-content {
    font-size: 1rem;
    padding: 2rem 2.5rem 3rem;
    max-width: 860px;
  }

  .site-footer {
    margin-left: calc(var(--sidebar-width) + var(--content-gap));
  }

  .site-footer .footer-links,
  .site-footer .footer-copy {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .mobile-nav, .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .site-footer { margin-left: 0; }
  a { color: inherit; text-decoration: none; }
}

/* =============================================
   AGREE BLOCK — checkbox + button (index.html)
   Optimised for iPhone mini (375px) and up.
   ============================================= */

.agree-block {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agree-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

/* Oversized tap-target — comfortable on iPhone mini (375px) */
.agree-checkbox {
  flex-shrink: 0;
  width: 1.75rem;      /* 28px — easy to tap on small screens */
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  margin-top: 0.1rem;
  accent-color: var(--brand-orange);
  cursor: pointer;
}

.agree-text {
  font-size: 1rem;
  color: var(--ptl-text);
  padding-top: 0.15rem; /* vertically aligns with checkbox centre */
}

/* Error message — hidden by default, shown via JS */
.agree-error {
  display: none;           /* JS sets display:block when needed */
  color: #cc0000;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  padding: 0.4rem 0.6rem;
  background: #fff0f0;
  border-left: 3px solid #cc0000;
  border-radius: 3px;
}

/* Full-width button — large enough for thumb on iPhone mini */
.agree-btn {
  display: block;
  width: 100%;
  max-width: 340px;
  padding: 1rem 1.25rem;   /* taller for thumb comfort */
  background-color: var(--brand-orange);
  color: #ffffff;
  font-family: 'Trebuchet MS', 'Trebuchet', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  /* Ensure minimum 44px tap target (Apple HIG) */
  min-height: 48px;
}

.agree-btn:hover,
.agree-btn:focus {
  background-color: var(--brand-navy);
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.agree-btn:active {
  transform: scale(0.97);
}

/* On wider screens, don't stretch the button so wide */
@media (min-width: 480px) {
  .agree-btn {
    width: auto;
    min-width: 240px;
  }
}
