/* tomasetti-mobile.css — shared mobile baseline for pack-owned HTML
   Link after portal styles: <link rel="stylesheet" href="/assets/tomasetti-mobile.css">
   Does not restyle Bill pine/gold or Nova kid look — only layout/overflow/touch. */

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

body {
  overflow-x: clip;
}

img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}

iframe, embed, object {
  max-width: 100%;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prefer comfortable tap targets on coarse pointers */
@media (pointer: coarse) {
  a, button, summary, [role="button"], .pressable, .cta, .nav-btn, .btn, .tab, .ai-chip-star {
    min-height: 44px;
  }
  input, select, textarea {
    font-size: 16px !important; /* iOS zoom guard */
  }
}

@media (max-width: 720px) {
  .shell,
  .wrap,
  .page,
  main,
  .container {
    max-width: 100%;
  }

  /* Common multi-column grids → stack or 2-col */
  .grid.dense {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Soften clip-path cutoffs that clip text on narrow screens */
  .hero,
  .mission-log,
  .ai-widget-card,
  .status-strip,
  .banner {
    clip-path: none !important;
    border-radius: 12px;
  }

  /* Forms full width */
  form,
  .todo-form,
  .filter-row {
    width: 100%;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-row .count {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .grid,
  .grid.dense,
  .services-grid,
  .completed-work-grid,
  .auth-grid,
  .portal-grid,
  .breanna-links,
  .todos-grid,
  .fav-grid,
  .house-ads {
    grid-template-columns: 1fr !important;
  }

  /* Hide decorative mascot strip on tiny phones when marked */
  .trio[data-mobile-hide],
  aside.trio {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   TOMASETTI PROFESSIONAL PUBLIC LAYER
   Opt in with <html data-tt-site="professional">. Family, Bill, and private
   portals do not opt in and keep their own visual systems.
   ======================================================================== */
html[data-tt-site="professional"] {
  --tt-paper: #f4f6f8;
  --tt-paper-2: #e9edf2;
  --tt-surface: #ffffff;
  --tt-ink: #161a22;
  --tt-muted: #596372;
  --tt-faint: #7e8996;
  --tt-line: #cfd7df;
  --tt-purple: #4b3b82;
  --tt-purple-deep: #30265f;
  --tt-purple-soft: #e8e4f3;
  --tt-blue: #318ca0;
  --tt-blue-soft: #e1f0f3;
  --tt-green: #2f745d;
  --tt-radius: 6px;
  --tt-shadow: 0 10px 28px rgba(30, 42, 58, .08);
  --tt-focus: #277d91;
  color: var(--tt-ink);
  background: var(--tt-paper);
}

html[data-tt-site="professional"] body {
  color: var(--tt-ink);
  background-color: var(--tt-paper);
  background-image: linear-gradient(rgba(75, 59, 130, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 59, 130, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}
html[data-tt-site="professional"] h1,
html[data-tt-site="professional"] h2,
html[data-tt-site="professional"] h3,
html[data-tt-site="professional"] h4 { color: var(--tt-ink); }
html[data-tt-site="professional"] p,
html[data-tt-site="professional"] li,
html[data-tt-site="professional"] label { color: var(--tt-muted); }
html[data-tt-site="professional"] a { color: var(--tt-purple); text-underline-offset: .18em; }
html[data-tt-site="professional"] a:hover { color: var(--tt-purple-deep); }
html[data-tt-site="professional"] :focus-visible { outline: 3px solid var(--tt-focus) !important; outline-offset: 3px !important; }
html[data-tt-site="professional"] .pride-bar,
html[data-tt-site="professional"] .pb,
html[data-tt-site="professional"] .t-pride { height: 4px; background: linear-gradient(90deg, var(--tt-purple), var(--tt-purple) 68%, var(--tt-blue)); }
html[data-tt-site="professional"] .node-rule { background: var(--tt-line); }
html[data-tt-site="professional"] .node-rule::after { background: var(--tt-paper); border-color: var(--tt-purple); }
html[data-tt-site="professional"] nav,
html[data-tt-site="professional"] header.brand-bar,
html[data-tt-site="professional"] .brand-bar {
  color: var(--tt-ink);
  background: rgba(244, 246, 248, .94) !important;
  border-color: var(--tt-line) !important;
  box-shadow: 0 1px 0 rgba(30, 42, 58, .05);
  backdrop-filter: blur(12px);
}
html[data-tt-site="professional"] nav a,
html[data-tt-site="professional"] .nav-brand,
html[data-tt-site="professional"] .brand,
html[data-tt-site="professional"] .nav-logo,
html[data-tt-site="professional"] .bb-name,
html[data-tt-site="professional"] .bb-brand { color: var(--tt-purple) !important; }
html[data-tt-site="professional"] .nav-links a,
html[data-tt-site="professional"] .nav-home,
html[data-tt-site="professional"] .nav-sub,
html[data-tt-site="professional"] .bb-tagline,
html[data-tt-site="professional"] .bb-sub,
html[data-tt-site="professional"] .nav-divider { color: var(--tt-muted) !important; }
html[data-tt-site="professional"] .nav-links a:hover,
html[data-tt-site="professional"] .nav-home:hover,
html[data-tt-site="professional"] .brand:hover,
html[data-tt-site="professional"] .nav-logo:hover { color: var(--tt-purple-deep) !important; background: var(--tt-purple-soft); }
html[data-tt-site="professional"] .hero,
html[data-tt-site="professional"] .section,
html[data-tt-site="professional"] section { border-color: var(--tt-line) !important; }
html[data-tt-site="professional"] .hero h1,
html[data-tt-site="professional"] .hero-h,
html[data-tt-site="professional"] .stt,
html[data-tt-site="professional"] .ds h2 { color: var(--tt-ink) !important; }
html[data-tt-site="professional"] .hero h1 .accent,
html[data-tt-site="professional"] .hero-h .accent,
html[data-tt-site="professional"] .hero .dot,
html[data-tt-site="professional"] .hero-sub strong { color: var(--tt-purple) !important; background: none !important; -webkit-text-fill-color: currentColor; }
html[data-tt-site="professional"] .hero-sub,
html[data-tt-site="professional"] .sts,
html[data-tt-site="professional"] .hero .sub,
html[data-tt-site="professional"] .section-sub { color: var(--tt-muted) !important; }
html[data-tt-site="professional"] .hero-note { color: var(--tt-purple) !important; background: var(--tt-purple-soft) !important; border-color: var(--tt-line) !important; }
html[data-tt-site="professional"] .hero-stat-num,
html[data-tt-site="professional"] .stat-num,
html[data-tt-site="professional"] .brand-stat-num { color: var(--tt-purple) !important; }
html[data-tt-site="professional"] .hero-stat-label,
html[data-tt-site="professional"] .brand-strip-item { color: var(--tt-muted) !important; }
html[data-tt-site="professional"] .btn,
html[data-tt-site="professional"] .cta,
html[data-tt-site="professional"] .bp1,
html[data-tt-site="professional"] .btn-primary,
html[data-tt-site="professional"] .bn,
html[data-tt-site="professional"] .bd,
html[data-tt-site="professional"] .nav-btn {
  border-radius: var(--tt-radius) !important;
  background: var(--tt-purple) !important;
  border: 1px solid var(--tt-purple) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html[data-tt-site="professional"] .btn:hover,
html[data-tt-site="professional"] .cta:hover,
html[data-tt-site="professional"] .bp1:hover,
html[data-tt-site="professional"] .btn-primary:hover,
html[data-tt-site="professional"] .bn:hover,
html[data-tt-site="professional"] .bd:hover,
html[data-tt-site="professional"] .nav-btn:hover { background: var(--tt-purple-deep) !important; border-color: var(--tt-purple-deep) !important; color: #fff !important; transform: translateY(-2px); }
html[data-tt-site="professional"] .btn-ghost,
html[data-tt-site="professional"] .bp2,
html[data-tt-site="professional"] .contact-email,
html[data-tt-site="professional"] .partner-link { background: transparent !important; border: 1px solid var(--tt-purple) !important; border-radius: var(--tt-radius) !important; color: var(--tt-purple) !important; box-shadow: none !important; }
html[data-tt-site="professional"] .btn-ghost:hover,
html[data-tt-site="professional"] .bp2:hover,
html[data-tt-site="professional"] .contact-email:hover,
html[data-tt-site="professional"] .partner-link:hover { background: var(--tt-purple-soft) !important; color: var(--tt-purple-deep) !important; }
html[data-tt-site="professional"] .card,
html[data-tt-site="professional"] .fcard,
html[data-tt-site="professional"] .pcard,
html[data-tt-site="professional"] .sandbox,
html[data-tt-site="professional"] .feature,
html[data-tt-site="professional"] .mc,
html[data-tt-site="professional"] .tc,
html[data-tt-site="professional"] .bc,
html[data-tt-site="professional"] .glass-card,
html[data-tt-site="professional"] .service-card,
html[data-tt-site="professional"] .showcase-card,
html[data-tt-site="professional"] .callout,
html[data-tt-site="professional"] .faq,
html[data-tt-site="professional"] .brand-stat,
html[data-tt-site="professional"] .stat-card,
html[data-tt-site="professional"] .partner-card,
html[data-tt-site="professional"] .info-box,
html[data-tt-site="professional"] .mode-btn,
html[data-tt-site="professional"] .vintage-toggle,
html[data-tt-site="professional"] .audio-type-btn,
html[data-tt-site="professional"] .db,
html[data-tt-site="professional"] .sc,
html[data-tt-site="professional"] .ub,
html[data-tt-site="professional"] .ap,
html[data-tt-site="professional"] .ep,
html[data-tt-site="professional"] .sc2,
html[data-tt-site="professional"] .ticket-block,
html[data-tt-site="professional"] .bb-logo {
  color: var(--tt-ink);
  background: var(--tt-surface) !important;
  border-color: var(--tt-line) !important;
  border-radius: var(--tt-radius) !important;
  box-shadow: var(--tt-shadow);
  backdrop-filter: none;
}
html[data-tt-site="professional"] .card:hover,
html[data-tt-site="professional"] .fcard:hover,
html[data-tt-site="professional"] .pcard:hover,
html[data-tt-site="professional"] .sandbox:hover,
html[data-tt-site="professional"] .feature:hover,
html[data-tt-site="professional"] .mc:hover,
html[data-tt-site="professional"] .tc:hover,
html[data-tt-site="professional"] .bc:hover,
html[data-tt-site="professional"] .glass-card:hover,
html[data-tt-site="professional"] .service-card:hover,
html[data-tt-site="professional"] .showcase-card:hover,
html[data-tt-site="professional"] .stat-card:hover,
html[data-tt-site="professional"] .partner-card:hover,
html[data-tt-site="professional"] .mode-btn:hover,
html[data-tt-site="professional"] .audio-type-btn:hover,
html[data-tt-site="professional"] .db:hover,
html[data-tt-site="professional"] .sc:hover,
html[data-tt-site="professional"] .ub:hover { border-color: var(--tt-purple) !important; background: var(--tt-purple-soft) !important; box-shadow: 0 12px 28px rgba(75, 59, 130, .12); }
html[data-tt-site="professional"] .card h3,
html[data-tt-site="professional"] .card h4,
html[data-tt-site="professional"] .fcard h3,
html[data-tt-site="professional"] .mc h3,
html[data-tt-site="professional"] .tc h3,
html[data-tt-site="professional"] .bc .bn,
html[data-tt-site="professional"] .feature b,
html[data-tt-site="professional"] .info-box b,
html[data-tt-site="professional"] .mode-lbl strong,
html[data-tt-site="professional"] .audio-type-btn,
html[data-tt-site="professional"] .db,
html[data-tt-site="professional"] .sc,
html[data-tt-site="professional"] .ub { color: var(--tt-ink) !important; }
html[data-tt-site="professional"] .card p,
html[data-tt-site="professional"] .fcard p,
html[data-tt-site="professional"] .mc p,
html[data-tt-site="professional"] .tc p,
html[data-tt-site="professional"] .bc .bp,
html[data-tt-site="professional"] .feature span,
html[data-tt-site="professional"] .info-box,
html[data-tt-site="professional"] .mode-lbl small,
html[data-tt-site="professional"] .audio-type-btn .at-sub,
html[data-tt-site="professional"] .ub .usub { color: var(--tt-muted) !important; }
html[data-tt-site="professional"] .tag,
html[data-tt-site="professional"] .cred,
html[data-tt-site="professional"] .nav-badge,
html[data-tt-site="professional"] .eyebrow,
html[data-tt-site="professional"] .section-label,
html[data-tt-site="professional"] .bb-tag,
html[data-tt-site="professional"] .tk-label { color: var(--tt-purple) !important; background: var(--tt-purple-soft) !important; border-color: var(--tt-line) !important; border-radius: 3px !important; }
html[data-tt-site="professional"] .tag-live,
html[data-tt-site="professional"] .tag.green { color: var(--tt-green) !important; background: var(--tt-blue-soft) !important; }
html[data-tt-site="professional"] .section-label::before { color: var(--tt-blue); }
html[data-tt-site="professional"] input,
html[data-tt-site="professional"] textarea,
html[data-tt-site="professional"] select { color: var(--tt-ink) !important; background: var(--tt-surface) !important; border-color: var(--tt-line) !important; }
html[data-tt-site="professional"] input::placeholder,
html[data-tt-site="professional"] textarea::placeholder { color: var(--tt-faint) !important; }
html[data-tt-site="professional"] input:focus,
html[data-tt-site="professional"] textarea:focus,
html[data-tt-site="professional"] select:focus { border-color: var(--tt-purple) !important; box-shadow: 0 0 0 3px rgba(75, 59, 130, .12) !important; }
html[data-tt-site="professional"] .sandbox-bar,
html[data-tt-site="professional"] .bxi { background: var(--tt-paper-2) !important; border-color: var(--tt-line) !important; }
html[data-tt-site="professional"] .pf,
html[data-tt-site="professional"] .nrp-bar-fill,
html[data-tt-site="professional"] .scroll-progress { background: var(--tt-blue) !important; box-shadow: none !important; }
html[data-tt-site="professional"] .ai-insight,
html[data-tt-site="professional"] .ap,
html[data-tt-site="professional"] .ep { background: var(--tt-purple-soft) !important; border-color: var(--tt-line) !important; }
html[data-tt-site="professional"] .ai-insight .ai-b,
html[data-tt-site="professional"] .ap .ab2,
html[data-tt-site="professional"] .ep .eprice,
html[data-tt-site="professional"] .sr .v,
html[data-tt-site="professional"] .tk-num { color: var(--tt-ink) !important; }
html[data-tt-site="professional"] .hero-glow,
html[data-tt-site="professional"] .orb-bg,
html[data-tt-site="professional"] .t-orb-bg { display: none !important; }
html[data-tt-site="professional"] footer { color: var(--tt-muted); border-color: var(--tt-line) !important; background: transparent; }
html[data-tt-site="professional"] footer a { color: var(--tt-purple); }
html[data-tt-site="professional"] .tomasetti-powered { color: var(--tt-muted); background: var(--tt-paper-2); border-top-color: var(--tt-line); }
@media (max-width: 760px) {
  html[data-tt-site="professional"] body { font-size: 16px; }
  html[data-tt-site="professional"] nav { flex-wrap: wrap; max-width: 100%; }
  html[data-tt-site="professional"] nav .nav-links { gap: .35rem; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  html[data-tt-site="professional"] nav .nav-links a,
  html[data-tt-site="professional"] .nav-home,
  html[data-tt-site="professional"] .nav-btn { min-height: 44px; }
  html[data-tt-site="professional"] header nav { width: 100%; max-width: 100%; flex-wrap: wrap; gap: .5rem; }
  html[data-tt-site="professional"] .sl { flex-wrap: wrap; gap: .35rem .75rem; }
  html[data-tt-site="professional"] .btn,
  html[data-tt-site="professional"] .cta,
  html[data-tt-site="professional"] .bp1,
  html[data-tt-site="professional"] .bp2 { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-tt-site="professional"] *,
  html[data-tt-site="professional"] *::before,
  html[data-tt-site="professional"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html[data-tt-site="professional"] *:hover { transform: none !important; }
}

/* Preserve meaning and contrast for stateful product controls after the shared layer. */
html[data-tt-site="professional"] .mode-btn.active,
html[data-tt-site="professional"] .db.selected,
html[data-tt-site="professional"] .sc.selected,
html[data-tt-site="professional"] .ub.selected,
html[data-tt-site="professional"] .audio-type-btn.selected,
html[data-tt-site="professional"] .vintage-toggle.active,
html[data-tt-site="professional"] .human-toggle.active,
html[data-tt-site="professional"] .ai-toggle.active {
  color: var(--tt-purple-deep) !important;
  background: var(--tt-purple-soft) !important;
  border-color: var(--tt-purple) !important;
  box-shadow: 0 0 0 2px rgba(75, 59, 130, .12) !important;
}
html[data-tt-site="professional"] .mode-btn.active .mode-ic,
html[data-tt-site="professional"] .db.selected .ic,
html[data-tt-site="professional"] .sc.selected .ck,
html[data-tt-site="professional"] .ub.selected .ic,
html[data-tt-site="professional"] .audio-type-btn.selected .at-icon {
  color: var(--tt-purple) !important;
}
html[data-tt-site="professional"] .bd,
html[data-tt-site="professional"] .bd:hover,
html[data-tt-site="professional"] .btn-success {
  background: var(--tt-green) !important;
  border-color: var(--tt-green) !important;
  color: #fff !important;
}
html[data-tt-site="professional"] .btn-secondary {
  background: transparent !important;
  border: 1px solid var(--tt-purple) !important;
  color: var(--tt-purple) !important;
}
html[data-tt-site="professional"] .contact-form button {
  background: var(--tt-purple) !important;
  border-color: var(--tt-purple) !important;
  color: #fff !important;
}
