/* Shared UX refinements for interactive tools. Does not replace Base.css. */
.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}

.ux-form .ux-identity{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0 0 4px}
.ux-form .ux-identity label{margin-top:0}
@media (max-width:600px){
  .ux-form .ux-identity{grid-template-columns:1fr}
}
.ux-form label{margin:16px 0 4px;font-size:.95rem;font-weight:600;color:var(--ink)}
.ux-form label .opt{font-weight:500;color:var(--ink-3)}
.ux-form input[type=text],
.ux-form input[type=number],
.ux-form input[type=search],
.ux-form select,
.ux-form textarea{min-height:44px;padding:.6em .75em;border-radius:var(--radius-sm,6px);border:1px solid var(--line-2,#8e8574);background:var(--paper,#fcfbf9);color:var(--ink);font:inherit;width:100%;box-sizing:border-box}
.ux-form textarea{min-height:10rem}
.ux-form .ux-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;font-weight:500}
.ux-form .ux-check input{width:20px;height:20px;min-height:0;flex-shrink:0}
.ux-form .ux-error{color:#8b2e1f;font-size:.88rem;margin:6px 0 0}
.ux-form .ux-hint{color:var(--ink-3);font-size:.85rem;margin:6px 0 0}
.ux-form [aria-invalid=true]{border-color:#8b2e1f}
.ux-form .ux-optional{margin:24px 0 0;border:1px solid var(--line,#e0dcd4);border-radius:var(--radius,10px);padding:4px 16px 16px;background:var(--surface,#fff)}
.ux-form .ux-optional>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--ink)}
.ux-form .ux-optional>summary:focus-visible{outline:2px solid var(--brand-2,#14707f);outline-offset:2px}
.ux-form .ux-msg{min-height:1.3em;margin:16px 0 0;font-size:.9rem}
.ux-form .btn{margin-top:16px}

.btn-share{font:inherit;font-size:.9rem;border-radius:var(--radius-sm,6px);border:1px solid var(--line-2,#8e8574);background:var(--surface,#fff);color:var(--ink,#16212a);cursor:pointer;padding:.55em 1em;min-height:44px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.btn-share:hover{background:var(--surface-2,#f4f2ee)}
.btn-share:focus-visible{outline:2px solid var(--brand-2,#14707f);outline-offset:2px}
.btn-share-primary{background:var(--brand,#0d4450);border-color:var(--brand,#0d4450);color:#fff}
.btn-share-primary:hover{background:var(--brand-2,#14707f);border-color:var(--brand-2,#14707f);color:#fff}

.pdna-why{margin:0 0 16px;padding:0;list-style:none}
.pdna-why li{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--line,#e0dcd4);font-size:.95rem}
.pdna-why li:last-child{border-bottom:0}
.pdna-next{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.pdna-downloads{margin:8px 0 0}
.pdna-downloads summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}
.pdna-downloads-list{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0}

#pub-dna.section{padding-block:32px}
#verify-id{min-height:44px}
.verify-form{margin:16px 0 24px;display:flex;gap:8px;flex-wrap:wrap}
.verify-form input{flex:1;min-width:min(100%,240px)}

@media (max-width:600px){
  .pdna-hide-sm{display:none}
}

/* —— Mobile website (320–414 and up to the hamburger breakpoint) —— */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.table-scroll table{min-width:0}
.pdna-card,.pdna-share,.pdna-verify-card{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.pdna-verify-list dd,.pdna-verified{overflow-wrap:anywhere}
.theme-btn{min-width:44px;min-height:44px}

.ux-nav-toggle{
  display:none;appearance:none;-webkit-appearance:none;
  width:44px;height:44px;margin:0;padding:0;flex-shrink:0;
  border:1px solid var(--line,#e0dcd4);border-radius:var(--radius-sm,6px);
  background:var(--surface,#fff);color:var(--ink,#16212a);cursor:pointer;
  align-items:center;justify-content:center;
}
.ux-nav-toggle:focus-visible{outline:2px solid var(--brand-2,#14707f);outline-offset:2px}
.ux-nav-toggle-bars,.ux-nav-toggle-bars:before,.ux-nav-toggle-bars:after{
  display:block;width:18px;height:2px;border-radius:1px;background:currentColor;position:relative;
}
.ux-nav-toggle-bars:before,.ux-nav-toggle-bars:after{content:"";position:absolute;left:0}
.ux-nav-toggle-bars:before{top:-6px}
.ux-nav-toggle-bars:after{top:6px}
html.ux-nav-open .ux-nav-toggle-bars{background:transparent}
html.ux-nav-open .ux-nav-toggle-bars:before{top:0;transform:rotate(45deg)}
html.ux-nav-open .ux-nav-toggle-bars:after{top:0;transform:rotate(-45deg)}

@media (max-width:880px){
  .site-header .bar{flex-wrap:wrap;gap:.65rem 1rem}
  .site-header nav{
    order:5;flex:1 1 100%;margin-left:0;min-width:100%;
    overflow:visible;scrollbar-width:auto;
  }
  .site-header nav ul{flex-wrap:wrap;gap:2px}
  .site-header nav a{min-height:44px;display:flex;align-items:center}
  .site-header .theme-btn{margin-left:auto}

  html.ux-nav-ready .ux-nav-toggle{display:inline-flex;margin-left:auto;order:2}
  html.ux-nav-ready .site-header .theme-btn{margin-left:0;order:3}
  html.ux-nav-ready .site-header nav{
    display:none;padding:4px 0 10px;border-top:1px solid var(--line,#e0dcd4);
  }
  html.ux-nav-ready .site-header nav.ux-nav-open{display:block}
  html.ux-nav-ready .site-header nav ul{flex-direction:column}
  html.ux-nav-ready .site-header nav a{padding:.7rem .75rem}
}

@media (max-width:480px){
  .grid.grid-2,.grid-2{grid-template-columns:1fr}
  .hero-search{flex-direction:column;align-items:stretch;max-width:none}
  .hero-search .btn,.hero-search button{width:100%;min-height:44px}
  .ux-form .btn,.ux-form .btn-primary{width:100%}
  .verify-form{flex-direction:column;align-items:stretch}
  .verify-form input{min-width:0;width:100%}
  .verify-form .btn{width:100%}
  .pdna-share-actions{flex-direction:column}
  .pdna-share-actions .btn-share{width:100%}
  .pdna-next .btn-share{width:100%;box-sizing:border-box}
  .pdna-verify-list{grid-template-columns:1fr;gap:2px 0}
  .pdna-verify-list dt{margin-top:8px}
  .pdna-share-preview{max-width:100%}
  .site-footer .about,footer .about{grid-column:auto}
}

/* Footer: even columns so Tools / Reference / About do not wrap unevenly. */
.site-footer .cols{
  grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr));
  gap:1.75rem 2rem;
  align-items:start;
}
.site-footer .about{
  grid-column:auto;
  padding-right:.5rem;
}
.site-footer .col h2{
  margin-bottom:.55rem;
}
.site-footer .col ul{
  gap:.45rem;
}
.site-footer .legal{
  display:grid;
  gap:.85rem;
}
.site-footer .legal p:not(.ux-origin){
  max-width:70ch;
  margin:0 auto;
  text-align:center;
}

.site-footer .legal p.ux-origin{
  max-width:42rem;
  margin-block:0;
  margin-inline:auto;
  text-align:center;
  line-height:1.55;
  overflow-wrap:anywhere;
}
@media (max-width:880px){
  .site-footer .cols{
    grid-template-columns:1fr 1fr;
    gap:1.5rem 1.25rem;
  }
  .site-footer .about{grid-column:1 / -1}
}
@media (max-width:520px){
  .site-footer .cols{grid-template-columns:1fr}
  .site-footer .about{grid-column:auto}
}
.site-footer .ux-origin-sign{
  display:block;
  margin-top:.4em;
  font-family:var(--font-display,Georgia,serif);
  font-style:italic;
  font-weight:500;
}
.site-footer .ux-origin-flag{
  display:inline-block;
  vertical-align:-0.08em;
  line-height:0;
}
.site-footer .ux-origin-flag svg{
  display:block;
  width:14px;
  height:9px;
  border:1px solid color-mix(in srgb, var(--ink-3,#5f6a75) 28%, transparent);
  border-radius:1px;
}

.site-header .bar .ux-trust{
  display:flex;
  align-items:baseline;
  gap:.45rem;
  flex-shrink:0;
  margin:0 0 0 .15rem;
  padding:0 .15rem 0 .85rem;
  border-left:1px solid var(--line,#e0dcd4);
  font-family:var(--font-ui,Inter,sans-serif);
  line-height:1;
  white-space:nowrap;
  color:var(--ink-3,#5f6a75);
}
.ux-trust-item{display:inline-flex;align-items:baseline;gap:.28rem}
.ux-trust-n{
  font-variant-numeric:tabular-nums;
  font-size:.82rem;
  font-weight:600;
  letter-spacing:-.015em;
  color:var(--ink,#16212a);
}
.ux-trust-k{
  font-size:.68rem;
  font-weight:400;
  letter-spacing:.02em;
  color:var(--ink-3,#5f6a75);
}
.ux-trust-sep{
  display:inline-block;
  width:1px;
  height:.7em;
  margin:0 .1rem;
  background:var(--line,#e0dcd4);
  align-self:center;
}
@media (max-width:880px){
  html.ux-nav-ready .site-header .bar .ux-trust{
    order:1;
    margin-left:auto;
    margin-right:0;
    padding-left:.7rem;
  }
  html.ux-nav-ready .ux-nav-toggle{margin-left:.35rem}
}
@media (max-width:400px){
  .ux-trust-k{display:none}
  .ux-trust-rating .ux-trust-k{display:inline}
}
@media (max-width:360px){
  .site-header .bar .ux-trust{display:none}
}

.pdna-review{
  border:1px solid var(--line,#e0dcd4);
  border-radius:var(--radius,10px);
  padding:16px;
  margin:0 0 24px;
  background:var(--surface,#fff);
}
.pdna-review-q{font-size:.95rem;font-weight:600;margin:0 0 10px;color:var(--ink,#16212a)}
.pdna-stars{display:flex;gap:4px;margin:0 0 12px}
.pdna-stars button{
  appearance:none;-webkit-appearance:none;
  width:44px;height:44px;margin:0;padding:0;
  border:0;background:transparent;color:var(--line-2,#8e8574);
  font-size:1.4rem;line-height:1;cursor:pointer;
}
.pdna-stars button.is-on{color:var(--accent,#a8501f)}
.pdna-stars button:focus-visible{outline:2px solid var(--brand-2,#14707f);outline-offset:2px;border-radius:4px}
.pdna-review label{display:block;margin:10px 0 4px;font-size:.88rem;font-weight:600}
.pdna-review label .opt{font-weight:500;color:var(--ink-3,#5f6a75)}
.pdna-review textarea,.pdna-review input[type=email]{
  width:100%;box-sizing:border-box;min-height:44px;padding:.55em .7em;
  border:1px solid var(--line-2,#8e8574);border-radius:6px;font:inherit;
  background:var(--paper,#fcfbf9);color:var(--ink,#16212a)
}
.pdna-review textarea{min-height:5.5rem;resize:vertical}
.pdna-review .ux-check{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:500;margin:8px 0}
.pdna-review .ux-check input{width:20px;height:20px;flex-shrink:0}
.pdna-review .btn-share{margin-top:8px}
.pdna-review-thanks{margin:0;font-size:.92rem;color:var(--ink-2,#4c5966)}
.pdna-review-err{margin:8px 0 0;font-size:.85rem;color:#8b2e1f}
.pdna-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media (prefers-reduced-motion:reduce){
  .ux-form .btn{transition:none}
  .ux-nav-toggle-bars:before,.ux-nav-toggle-bars:after{transition:none}
}

/* Founder note section — homepage, above footer */
.founder-note-section{
  padding:64px 0;
  border-top:1px solid var(--line,#e0dcd4);
  background:var(--surface,#fff);
}
.founder-note-inner{
  display:flex;
  gap:48px;
  align-items:flex-start;
}
.founder-note-body{
  flex:1 1 0;
  min-width:0;
}
.founder-note-eyebrow{
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--brand-2,#14707f);
  margin:0 0 20px;
}
.founder-note-quote{
  margin:0;
  padding:0 0 0 20px;
  border-left:3px solid var(--brand-2,#14707f);
}
.founder-note-quote p{
  font-size:1.05rem;
  line-height:1.75;
  color:var(--ink,#16212a);
  margin:0 0 1em;
  max-width:60ch;
}
.founder-note-quote p:last-child{margin-bottom:0}
.founder-card{
  flex:0 0 220px;
  width:220px;
  border:1px solid var(--line,#e0dcd4);
  border-radius:var(--radius,10px);
  padding:24px 20px;
  background:var(--surface-2,#f7f6f3);
  text-align:center;
}
[data-theme="dark"] .founder-card{background:var(--surface,#1a2229)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .founder-card{background:var(--surface,#1a2229)}
}
.founder-card-avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  border-radius:50%;
  background:var(--brand,#0d4450);
  color:var(--brand,#0d4450);
  margin:0 auto 14px;
  overflow:hidden;
}
.founder-card-avatar svg{color:#fff;width:64px;height:64px}
.founder-card-name{
  font-size:1rem;
  font-weight:700;
  color:var(--ink,#16212a);
  margin:0 0 3px;
  font-family:var(--font-display,Georgia,serif);
}
.founder-card-title{
  font-size:.8rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:var(--brand-2,#14707f);
  margin:0 0 14px;
}
.founder-card-bio{
  list-style:none;
  margin:0 0 14px;
  padding:0;
  text-align:left;
  border-top:1px solid var(--line,#e0dcd4);
  padding-top:14px;
}
.founder-card-bio li{
  font-size:.8rem;
  line-height:1.5;
  color:var(--ink-3,#5f6a75);
  padding:3px 0;
}
.founder-card-origin{
  font-size:.78rem;
  color:var(--ink-3,#5f6a75);
  margin:0 0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-wrap:wrap;
}
.founder-card-link{
  font-size:.82rem;
  font-weight:600;
  color:var(--brand-2,#14707f);
  text-decoration:none;
}
.founder-card-link:hover{text-decoration:underline}
@media (max-width:760px){
  .founder-note-inner{flex-direction:column;gap:32px}
  .founder-card{width:100%;box-sizing:border-box;text-align:left}
  .founder-card-avatar{margin:0 0 12px}
  .founder-card-origin{justify-content:flex-start}
}
@media (max-width:480px){
  .founder-note-section{padding:40px 0}
  .founder-note-quote{padding-left:14px}
  .founder-note-quote p{font-size:.97rem}
}

/* Hero 2-column layout: left = existing content, right = DNA trust panel */
.hero-inner{
  display:flex;
  gap:36px;
  align-items:flex-start;
}
.hero-body{
  flex:1 1 0;
  min-width:0;
}
.hero-dna-panel{
  flex:0 0 200px;
  width:200px;
  border:1px solid var(--line,#e0dcd4);
  border-radius:var(--radius,10px);
  padding:22px 20px;
  background:var(--surface,#fff);
  text-align:center;
  position:sticky;
  top:20px;
}
.hero-dna-panel.hidden{display:none}
.hero-dna-eyebrow{
  display:block;
  font-size:.72rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--brand-2,#14707f);
  margin-bottom:10px;
}
.hero-dna-n{
  display:block;
  font-size:2.4rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  line-height:1;
  color:var(--ink,#16212a);
  letter-spacing:-.03em;
}
.hero-dna-label{
  font-size:.78rem;
  color:var(--ink-3,#5f6a75);
  margin:.35em 0 0;
  line-height:1.3;
}
.hero-dna-divider{
  width:32px;
  height:1px;
  background:var(--line,#e0dcd4);
  margin:14px auto;
}
.hero-dna-rating .hero-dna-n{
  font-size:1.6rem;
}
@media (max-width:860px){
  .hero-inner{flex-direction:column-reverse;gap:20px}
  .hero-dna-panel{
    width:100%;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    gap:24px;
    text-align:left;
    padding:16px 20px;
    position:static;
  }
  .hero-dna-panel .hero-dna-eyebrow{margin-bottom:4px;display:block}
  .hero-dna-divider{width:1px;height:32px;margin:0}
}
@media (max-width:480px){
  .hero-inner{flex-direction:column;gap:0}
  .hero-dna-panel{margin-bottom:20px}
}
