/* TronTokenGenerator layout system (2026-09-24).
   One set of layout tokens for every page, loaded after tailwind.min.css.
   Two content widths only: --ttg-container for tools, pricing, the
   homepage and index pages, and --ttg-container-read for guides, legal
   pages and forms. Every page starts --ttg-page-top below the breadcrumb
   bar and ends --ttg-section-space above the footer.

     <div class="ttg-wrap [ttg-wrap--read] ttg-page">   page body
     <section class="ttg-band">                          homepage band
       <div class="ttg-wrap">                                                */
:root {
  --ttg-container: 68rem;            /* 1088px content column */
  --ttg-container-read: 44rem;       /* 704px reading column */
  --ttg-gutter: 1rem;
  --ttg-gutter-sm: 1.5rem;
  --ttg-gutter-lg: 2rem;
  --ttg-page-top: 4rem;
  --ttg-section-space: 4rem;
  --ttg-band-space: 5rem;
  --ttg-band-space-lg: 7rem;
}
.ttg-wrap {
  width: 100%;
  max-width: calc(var(--ttg-container) + 2 * var(--ttg-gutter-lg));
  margin-inline: auto;
  padding-inline: var(--ttg-gutter);
}
.ttg-wrap--read { max-width: calc(var(--ttg-container-read) + 2 * var(--ttg-gutter-lg)); }
@media (min-width: 640px) { .ttg-wrap { padding-inline: var(--ttg-gutter-sm); } }
@media (min-width: 1024px) { .ttg-wrap { padding-inline: var(--ttg-gutter-lg); } }
.ttg-page { padding-top: var(--ttg-page-top); padding-bottom: var(--ttg-section-space); }
.ttg-band { padding-block: var(--ttg-band-space); }
@media (min-width: 1024px) { .ttg-band { padding-block: var(--ttg-band-space-lg); } }
/* A band that ends the page gives the footer the same space as every other
   page, not its larger band padding. */
main > section.ttg-band:last-of-type { padding-bottom: var(--ttg-section-space); }
/* Long single words (the brand name in the about H1) wrap instead of pushing
   the page wider than a phone screen. */
h1, h2 { overflow-wrap: break-word; }
/* Breadcrumb bar is one fixed height, and pages without one reserve it. */
:root { --ttg-crumb-h: 2.625rem; }
.ttg-crumbs { min-height: var(--ttg-crumb-h); box-sizing: border-box; }
.ttg-crumb-spacer { height: var(--ttg-crumb-h); }


/* ── Master design (2026-10-03), ported from STC: tools sidebar, search, Your tokens, Next step card. ──
   Plain CSS, not Tailwind utilities: the compiled tailwind.min.css predates these classes. */
/* ── Tools sidebar (2026-10-03, ported from STL) ───────────────────────────
   Markup in includes/inc-sidebar.php. Below 1024px it is display:none and the
   mobile menu (same tool list) is used instead, so nothing here can affect
   phones or tablets. Collapsed state is .ttg-side-collapsed on <html>, set
   before paint from localStorage. Purple to teal, matching the STC nav CTA. */
.ttg-side-shell{display:block;width:100%}
.ttg-side-main{min-width:0}
/* The page shell zeroes the top margin of whatever follows the header. The
   page content now sits one level down, so the same rule is repeated here,
   keeping every page's first block exactly where it was. */
.ttg-side{display:none}
.ttg-price-chip{
  display:inline-flex;align-items:center;flex-shrink:0;white-space:nowrap;
  font-size:.6875rem;font-weight:600;line-height:1;letter-spacing:.01em;
  padding:.25rem .45rem;border-radius:.4rem;
  color:rgba(255,223,224,.88);background:rgba(255,31,61,.09);border:1px solid rgba(255,31,61,.22);
}
.ttg-price-chip--free{color:rgba(110,231,183,.95);background:rgba(16,185,129,.1);border-color:rgba(52,211,153,.25)}
@media (min-width:1024px){
  .ttg-side-shell{display:flex;align-items:flex-start}
  .ttg-side-main{flex:1 1 0%}
  .ttg-side{
    display:block;position:sticky;top:var(--ttg-nav-h,4rem);flex:0 0 16.5rem;width:16.5rem;
    height:calc(100vh - var(--ttg-nav-h,4rem));height:calc(100dvh - var(--ttg-nav-h,4rem));
    overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    padding:.9rem .7rem 1.5rem;position:sticky;z-index:2;
    background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01));
    border-right:1px solid rgba(255,255,255,.06);
    scrollbar-width:thin;scrollbar-color:transparent transparent;
    transition:flex-basis .2s ease,width .2s ease,padding .2s ease;
  }
  .ttg-side:hover{scrollbar-color:rgba(255,255,255,.16) transparent}
  .ttg-side::-webkit-scrollbar{width:6px}
  .ttg-side::-webkit-scrollbar-track{background:transparent}
  .ttg-side::-webkit-scrollbar-thumb{background:transparent;border-radius:6px}
  .ttg-side:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16)}
  .ttg-side-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0 0 0 .55rem;margin-bottom:.7rem}
  .ttg-side-title{font-size:.6875rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.5);white-space:nowrap}
  .ttg-side-toggle{
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
    width:1.75rem;height:1.75rem;margin:0;border-radius:.5rem;
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.6);cursor:pointer;font-size:.72rem;
    transition:background .15s,color .15s,border-color .15s;
  }
  .ttg-side-toggle:hover{background:rgba(255,31,61,.12);color:#fff;border-color:rgba(255,31,61,.35)}
  .ttg-side-toggle:focus-visible,.ttg-side-link:focus-visible{outline:2px solid rgba(255,31,61,.7);outline-offset:2px}
  .ttg-side-toggle i{transition:transform .2s ease}
  .ttg-side-group{
    margin:1.1rem .55rem .35rem;font-size:.625rem;font-weight:700;
    letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.34);white-space:nowrap;
  }
  .ttg-side ul{list-style:none;margin:0;padding:0}
  .ttg-side-link{
    display:flex;align-items:center;gap:.65rem;padding:.5rem .65rem;margin:1px 0;
    border-radius:.65rem;font-size:.8125rem;line-height:1.2;
    color:rgba(255,255,255,.7);text-decoration:none;white-space:nowrap;
    transition:background .15s,color .15s;
  }
  .ttg-side-link i{flex:0 0 1.1rem;text-align:center;font-size:.8rem;color:rgba(255,154,158,.72)}
  .ttg-side-link:hover{background:rgba(255,255,255,.06);color:#fff}
  .ttg-side-link.is-active{
    background:linear-gradient(90deg,rgba(147,51,234,.22),rgba(200,0,32,.12));
    color:#fff;font-weight:600;box-shadow:inset 2px 0 0 #ff1f3d;
  }
  .ttg-side-link.is-active i{color:#ffdfe0}
  .ttg-side-label{overflow:hidden;text-overflow:ellipsis}
  .ttg-side-free{margin-left:auto;font-size:.5625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(110,231,183,.85)}
  .ttg-side-price{margin-left:auto;flex-shrink:0;font-size:.625rem;font-weight:600;color:rgba(255,255,255,.38);font-variant-numeric:tabular-nums}
  .ttg-side-link:hover .ttg-side-price,.ttg-side-link.is-active .ttg-side-price{color:rgba(255,223,224,.8)}
  .ttg-side-feature{
    display:flex;align-items:center;gap:.7rem;padding:.6rem .65rem .6rem .6rem;margin-bottom:.25rem;
    border-radius:.8rem;text-decoration:none;white-space:nowrap;
    background:linear-gradient(135deg,rgba(255,31,61,.12),rgba(165,8,32,.06));
    border:1px solid rgba(255,31,61,.24);
    transition:background .15s,border-color .15s;
  }
  .ttg-side-feature:hover{background:linear-gradient(135deg,rgba(255,31,61,.18),rgba(165,8,32,.1));border-color:rgba(255,31,61,.42)}
  .ttg-side-feature.is-active{border-color:rgba(255,31,61,.6);box-shadow:0 0 0 1px rgba(255,31,61,.25) inset}
  .ttg-side-feature:focus-visible{outline:2px solid rgba(255,31,61,.7);outline-offset:2px}
  .ttg-side-feature-icon{
    flex:0 0 2rem;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:.6rem;
    background:linear-gradient(135deg,#ff1f3d,#a50820);color:#fff;font-size:.8rem;
    box-shadow:0 4px 12px rgba(200,0,32,.3);
  }
  .ttg-side-feature-text{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1 1 auto}
  .ttg-side-feature .ttg-side-label{font-size:.8125rem;font-weight:600;color:#fff;line-height:1.2}
  .ttg-side-feature-sub{font-size:.6875rem;font-weight:500;color:#ff9a9e;line-height:1.2;overflow:hidden;text-overflow:ellipsis}
  .ttg-side-feature-arrow{flex-shrink:0;font-size:.6rem;color:rgba(255,154,158,.6);transition:transform .15s}
  .ttg-side-feature:hover .ttg-side-feature-arrow{transform:translateX(2px);color:#ff9a9e}
  .ttg-side-all{margin-top:1rem;color:#ff9a9e}

  /* Collapsed: icon rail. Labels stay in the DOM but are visually hidden. */
  html.ttg-side-collapsed .ttg-side{flex-basis:4rem;width:4rem;padding-left:.5rem;padding-right:.5rem}
  html.ttg-side-collapsed .ttg-side-head{justify-content:center;padding:0}
  html.ttg-side-collapsed .ttg-side-title{display:none}
  html.ttg-side-collapsed .ttg-side-toggle i{transform:rotate(180deg)}
  html.ttg-side-collapsed .ttg-side-link{justify-content:center;padding:.6rem 0}
  html.ttg-side-collapsed .ttg-side-feature{justify-content:center;padding:.45rem 0;background:none;border-color:transparent}
  html.ttg-side-collapsed .ttg-side-feature-arrow{display:none}
  html.ttg-side-collapsed .ttg-side-feature-text,
  html.ttg-side-collapsed .ttg-side-label,
  html.ttg-side-collapsed .ttg-side-free,
  html.ttg-side-collapsed .ttg-side-price{
    position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
  }
  html.ttg-side-collapsed .ttg-side-group{
    height:1px;margin:.7rem .5rem;padding:0;overflow:hidden;font-size:0;background:rgba(255,255,255,.08);
  }
}
@media (prefers-reduced-motion:reduce){
  .ttg-side,.ttg-side-toggle i{transition:none}
}

/* ── Sidebar tool search (2026-10-03). 16px input so iOS does not zoom. ── */
@media (min-width:1024px){
  .ttg-side-search{position:relative;display:flex;align-items:center;margin:0 0 .6rem;border-radius:.65rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);transition:border-color .15s,background .15s}
  .ttg-side-search:focus-within{border-color:rgba(255,31,61,.5);background:rgba(255,255,255,.06)}
  .ttg-side-search > i{position:absolute;left:.7rem;font-size:.72rem;color:rgba(255,255,255,.4);pointer-events:none}
  .ttg-side-search input{flex:1;min-width:0;height:2.25rem;padding:0 3.2rem 0 2rem;border:0;background:transparent;color:#fff;font-size:16px;line-height:1;outline:none;-webkit-appearance:none;appearance:none}
  .ttg-side-search input::placeholder{color:rgba(255,255,255,.4);font-size:.8125rem}
  .ttg-side-search input::-webkit-search-cancel-button{display:none}
  .ttg-side-search kbd{position:absolute;right:.45rem;padding:.12rem .35rem;border-radius:.35rem;font:600 .625rem/1.2 system-ui,sans-serif;color:rgba(255,255,255,.45);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);pointer-events:none}
  .ttg-side-search:focus-within kbd{opacity:0}
  .ttg-side-empty{margin:.4rem .55rem .8rem;font-size:.75rem;color:rgba(255,255,255,.5)}
  .ttg-side-empty a{color:#ff9a9e}
  .ttg-side li[hidden],.ttg-side ul[hidden],.ttg-side .ttg-side-group[hidden]{display:none}
  #ttg-side-nav.is-searching .ttg-side-feature,#ttg-side-nav.is-searching .ttg-side-all{display:none}
  html.ttg-side-collapsed .ttg-side-search,html.ttg-side-collapsed .ttg-side-empty{display:none}
}

/* ── Sidebar "Your tokens" (2026-10-03). Shown only with a wallet connected. ── */
@media (min-width:1024px){
  .ttg-yours{margin:0 0 .8rem;padding:.6rem .55rem .5rem;border-radius:.8rem;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
  .ttg-yours[hidden]{display:none}
  .ttg-yours-head{display:flex;align-items:center;justify-content:space-between;margin:0 .1rem .4rem}
  .ttg-yours-title{margin:0;font-size:.625rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.5)}
  .ttg-yours-all{font-size:.6875rem;font-weight:600;color:#ff9a9e;text-decoration:none}
  .ttg-yours-all:hover{color:#ffc4c6;text-decoration:underline}
  .ttg-yours-list{list-style:none;margin:0;padding:0;display:grid;gap:.15rem}
  .ttg-yours-item{display:flex;align-items:center;gap:.25rem;min-height:36px}
  .ttg-yours-token{display:flex;align-items:center;gap:.45rem;flex:1;min-width:0;padding:.3rem .35rem;border-radius:.5rem;color:#fff;text-decoration:none;font-size:.8125rem;font-weight:600}
  .ttg-yours-token:hover{background:rgba(255,255,255,.06)}
  .ttg-yours-token img,.ttg-yours-nologo{width:22px;height:22px;flex:0 0 22px;border-radius:999px;object-fit:cover;background:rgba(255,255,255,.06)}
  .ttg-yours-nologo{display:inline-flex;align-items:center;justify-content:center;font-size:.6rem;color:rgba(255,255,255,.45)}
  .ttg-yours-sym{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ttg-yours-acts{display:flex;gap:.1rem;flex-shrink:0}
  .ttg-yours-act{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:.45rem;color:rgba(255,154,158,.75);font-size:.72rem;text-decoration:none}
  .ttg-yours-act:hover{background:rgba(255,31,61,.14);color:#fff}
  .ttg-yours-act:focus-visible,.ttg-yours-token:focus-visible{outline:2px solid rgba(255,31,61,.7);outline-offset:1px}
  .ttg-yours-none{padding:.35rem .35rem .2rem;font-size:.75rem;color:rgba(255,255,255,.6);line-height:1.4}
  .ttg-yours-none a{color:#ff9a9e;font-weight:600}
  .ttg-yours-more{margin:.35rem .35rem 0;font-size:.72rem}
  .ttg-yours-more a{color:#ff9a9e;text-decoration:none}
  .ttg-yours-more a:hover{text-decoration:underline}
  .ttg-side.is-searching .ttg-yours{display:none}
  html.ttg-side-collapsed .ttg-yours{display:none}
}

/* ── "Next step" card after a tool succeeds (2026-10-03). stl_tool_next() ── */
.stl-next{padding-top:0}
.stl-next-box{max-width:52rem;margin:0 auto;padding:1.25rem;border-radius:1.25rem;background:linear-gradient(135deg,rgba(255,31,61,.08),rgba(124,58,237,.08));border:1px solid rgba(255,31,61,.25);animation:stl-next-in .35s ease both}
.stl-next-eyebrow{margin:0 0 .25rem;font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ff9a9e}
.stl-next-title{margin:0 0 .9rem;font-size:1.25rem;font-weight:800;color:#fff}
.stl-next-grid{display:grid;gap:.6rem}
.stl-next-card{display:flex;align-items:center;gap:.85rem;min-height:56px;padding:.8rem .9rem;border-radius:.9rem;text-decoration:none;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);transition:background .15s,border-color .15s}
.stl-next-card:hover{background:rgba(255,255,255,.07);border-color:rgba(255,31,61,.4)}
.stl-next-card:focus-visible{outline:2px solid rgba(255,31,61,.7);outline-offset:2px}
.stl-next-icon{flex:0 0 2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;border-radius:.65rem;background:linear-gradient(135deg,#ff1f3d,#a50820);color:#fff;font-size:.85rem}
.stl-next-text{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.stl-next-name{font-size:.95rem;font-weight:700;color:#fff}
.stl-next-price{margin-left:.35rem;font-size:.7rem;font-weight:600;color:rgba(255,223,224,.85)}
.stl-next-why{font-size:.825rem;color:rgba(255,255,255,.6);line-height:1.4}
.stl-next-arrow{flex-shrink:0;font-size:.75rem;color:rgba(255,255,255,.35)}
.stl-next-card:hover .stl-next-arrow{color:#ff9a9e}
@media (min-width:768px){.stl-next-grid{grid-template-columns:1fr 1fr}.stl-next-box{padding:1.5rem}}
@keyframes stl-next-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.stl-next-box{animation:none}}

/* Cookie banner buttons (2026-10-03): centred when they stack under the text
   on phones, beside the text on the right from 640px, as before. */
.ttg-consent-actions{justify-content:center}
@media (min-width:640px){.ttg-consent-actions{justify-content:flex-end}}
