/* Mobile additions. Original desktop stylesheet is retained. */
.tgs-mobile-only, .tgs-menu-toggle { display: none; }
.tgs-site { --tgs-sticky-height: 104px; }

/* The existing desktop navigation disappears at 860px. Cover that gap too. */
@media (max-width: 860px) {
  .tgs-site > header .nav-wrap { flex-wrap: wrap; gap: 12px; }
  .tgs-site > header .logo { flex: 1; min-width: 0; }
  .tgs-site > header nav { order: 3; width: 100%; }
  .tgs-site > header nav ul { display: flex; flex-direction: column; gap: 0; }
  .tgs-site > header nav a { display: block; padding: 12px 6px; min-height: 48px; font-size: 16px; }
  .tgs-site > header nav a.active::after { bottom: 4px; }
  .tgs-menu-ready > header .tgs-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 10px 12px; border: 1px solid var(--azurite);
    background: var(--paper); color: var(--azurite); font: inherit; font-size: 16px;
    cursor: pointer; border-radius: 2px;
  }
  .tgs-menu-ready > header nav { display: none; }
  .tgs-menu-ready > header nav.is-open { display: block; max-height: 60vh; overflow-y: auto; }
  .tgs-site.admin-bar > header { top: 32px; }
}

@media (max-width: 768px) {
  .tgs-site { font-size: 18px; line-height: 1.8; max-width: 100%; padding-bottom: var(--tgs-sticky-height); }
  .tgs-site .tgs-mobile-only { display: block; }
  .tgs-site .tgs-desktop-only { display: none; }
  .tgs-site > header { position: sticky; top: 0; }
  .tgs-site.admin-bar > header { top: 46px; }
  .tgs-site .nav-wrap { padding: 10px 18px; }
  .tgs-site .logo { font-size: 16px; line-height: 1.55; letter-spacing: 0; }
  .tgs-site > header .nav-cta { display: none; }
  .tgs-site > header nav .tgs-mobile-only { display: list-item; }
  .tgs-site > header nav ul { margin: 0; }
  .tgs-site .hero, .tgs-site .page-hero { padding: 28px 18px 40px; }
  .tgs-site .hero { gap: 28px; grid-template-columns: minmax(0, 1fr); }
  .tgs-site .hero-eyebrow { margin-bottom: 16px; }
  .tgs-site .hero > *, .tgs-site .inner > *, .tgs-site .prose-layout > *,
  .tgs-site .card-grid > *, .tgs-site .highlight > *, .tgs-site .path-grid > * { min-width: 0; }
  .tgs-site h1 { font-size: 32px !important; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
  .tgs-site h2 { font-size: 26px !important; line-height: 1.55; letter-spacing: 0; }
  .tgs-site h3 { font-size: 22px !important; line-height: 1.6; }
  .tgs-site p { font-size: 18px !important; line-height: 1.8; text-align: left; }
  .tgs-site li { font-size: 17px; }
  .tgs-site .hero p.lead { margin-top: 16px; }
  .tgs-site .tgs-hero-date { margin-top: 14px; font-size: 17px !important; color: var(--azurite); }
  .tgs-site .tgs-hero-date strong { display: block; }
  .tgs-site .hero-cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
  .tgs-site section { padding: 44px 18px; }
  .tgs-site .section-head { margin-bottom: 24px; gap: 16px; }
  .tgs-site .section-head p { max-width: none; }
  .tgs-site .inner { width: 100%; min-width: 0; }
  .tgs-site .card-grid, .tgs-site .venue-list, .tgs-site .venue-detail-grid,
  .tgs-site .path-grid, .tgs-site .pricing-grid, .tgs-site .testimonial-grid,
  .tgs-site .value-grid, .tgs-site .profile-block, .tgs-site .prose-layout,
  .tgs-site .highlight, .tgs-site .trade-inner, .tgs-site .form-grid-2,
  .tgs-site .stats-bar { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tgs-site .card, .tgs-site .path-card, .tgs-site .venue-detail,
  .tgs-site .price-card, .tgs-site .testimonial, .tgs-site .bridge-card,
  .tgs-site .form-card { padding: 20px; min-width: 0; }
  .tgs-site .card:hover { transform: none; }
  .tgs-site .intro-panel, .tgs-site .bridge { grid-template-columns: minmax(0, 1fr); padding: 44px 18px; gap: 28px; }
  .tgs-site .authority-strip { margin: 0 18px 14px; padding: 18px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .tgs-site .authority-strip a { white-space: normal; }
  .tgs-site .btn, .tgs-site .card .go, .tgs-site .tgs-mobile-only.btn {
    display: flex; width: 100%; justify-content: center; align-items: center;
    min-height: 52px; padding: 14px 18px; font-size: 17px; line-height: 1.5;
    text-align: center; white-space: normal; overflow-wrap: anywhere;
  }
  .tgs-site .card .go { border: 1px solid var(--azurite); border-radius: 2px; }
  .tgs-site .trade-band .btn-primary, .tgs-site .sticky-cta a { background: #94501f; }
  .tgs-site .venue-row, .tgs-site .venue-detail .top-row,
  .tgs-site .spec-box .row, .tgs-site .contact-method, .tgs-site .testimonial .who {
    flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0;
  }
  .tgs-site .venue-row { padding: 20px; }
  .tgs-site .spec-box { padding: 22px; min-width: 0; }
  .tgs-site .spec-box .row .v { text-align: left; font-size: 18px; }
  .tgs-site .specimen-tag { flex-wrap: wrap; gap: 4px 8px; max-width: 100%; font-size: 14px; letter-spacing: .02em; }
  .tgs-site .pill { white-space: normal; font-size: 14px; }
  .tgs-site .breadcrumb { flex-wrap: wrap; font-size: 14px; }
  .tgs-site .side-nav { position: static; }
  .tgs-site .side-nav li a { min-height: 48px; font-size: 17px; padding: 10px 16px; }
  .tgs-site .prose h2 { scroll-margin-top: 130px; }
  .tgs-site .prose ul, .tgs-site .prose ol { font-size: 17px; }
  .tgs-site .prose p, .tgs-site .prose .callout, .tgs-site .faq-item .a { max-width: none; font-size: 18px; }
  .tgs-site .prose a:not(.btn), .tgs-site p a { text-decoration: underline; text-underline-offset: .2em; }
  .tgs-site .prose, .tgs-site .card, .tgs-site .venue-row, .tgs-site footer { overflow-wrap: anywhere; }
  .tgs-site .faq-item summary { min-height: 48px; gap: 14px; font-size: 18px; }
  .tgs-site .faq-item summary::after { flex-shrink: 0; }
  .tgs-site .process-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .tgs-site img { max-width: 100%; height: auto; }
  .tgs-site .hero-art img { aspect-ratio: 4 / 3; object-fit: cover; }
  .tgs-site .map-frame img { object-fit: contain; }
  .tgs-site .tgs-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tgs-site .tgs-table-scroll .data-table { min-width: 580px; margin: 8px 0 20px; font-size: 17px; }
  .tgs-site .data-table th { font-size: 16px; }
  .tgs-site .tgs-table-hint { font-size: 14px !important; margin: 10px 0 0; color: var(--ink-soft); }
  .tgs-site .tgs-contact-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  .tgs-site .form-row label { font-size: 17px; }
  .tgs-site .form-row input:not([type="checkbox"]):not([type="radio"]),
  .tgs-site .form-row select, .tgs-site .form-row textarea,
  .tgs-site #tucson-navi select, .tgs-site #tucson-navi textarea {
    width: 100%; min-width: 0; max-width: 100%; font-size: 17px !important; min-height: 52px; line-height: 1.6;
  }
  .tgs-site input[type="checkbox"], .tgs-site input[type="radio"] { flex-shrink: 0; width: 22px; height: 22px; }
  .tgs-site #tucson-navi { padding: 20px !important; margin: 24px 0 !important; }
  .tgs-site #tucson-navi button { width: 100%; min-height: 52px; }
  /* Published Contact1 wraps its form in pre/code. Limit this correction to forms. */
  .tgs-site .prose pre:has(.wpcf7), .tgs-site .prose pre:has(.wpcf7) > code {
    display: block; white-space: normal; font-family: inherit; font-size: inherit;
    min-width: 0; max-width: 100%; padding: 0; margin: 0;
  }
  .tgs-site .tucson-contact-grid { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; gap: 20px; }
  .tgs-site .tucson-contact-grid *, .tgs-site .wpcf7 { min-width: 0; }
  .tgs-site .tucson-contact-main { padding: 20px !important; }
  .tgs-site .tucson-form-row-2 { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  .tgs-site .tucson-contact-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .tgs-site .tucson-contact-main select, .tgs-site .tucson-contact-main textarea {
    max-width: 100% !important; width: 100% !important; font-size: 17px !important;
    min-height: 52px !important; height: auto !important; line-height: 1.6;
  }
  .tgs-site .tucson-contact-main textarea { min-height: 180px !important; }
  .tgs-site .tucson-contact-main input[type="checkbox"] { width: 22px !important; height: 22px !important; min-height: 22px !important; }
  .tgs-site .tucson-contact-main .wpcf7-acceptance label { display: flex !important; gap: 10px; align-items: flex-start; }
  .tgs-site .tucson-contact-main .wpcf7-list-item { margin-left: 0; }
  .tgs-site .tucson-label { font-size: 17px; }
  .tgs-site .tucson-contact-main .tucson-submit { white-space: normal; padding: 14px !important; }
  .tgs-site .tucson-required, .tgs-site .tucson-info-label, .tgs-site .tucson-privacy,
  .tgs-site .wpcf7-not-valid-tip, .tgs-site .wpcf7-list-item-label { font-size: 14px !important; }
  .tgs-site .tucson-contact-side strong { font-size: 17px; }
  .tgs-site .sticky-cta { display: flex; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) 78px; gap: 12px; }
  .tgs-site .sticky-cta span { font-size: 14px; line-height: 1.6; min-width: 0; flex: 1; }
  .tgs-site .sticky-cta a { display: flex; justify-content: center; align-items: center; font-size: 17px; min-height: 52px; padding: 12px 16px; flex-shrink: 0; }
  .tgs-site .cookieadmin_re_consent { bottom: calc(var(--tgs-sticky-height) / 2 - 25px) !important; left: 14px !important; }
  .tgs-site .cookieadmin_law_container { max-height: 75vh; overflow-y: auto; }
  .tgs-site footer { padding: 40px 18px 24px; }
  .tgs-site .footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tgs-site .footer-top a { display: inline-block; min-height: 44px; padding: 8px 0; font-size: 17px; }
  .tgs-site .footer-top li { margin-bottom: 0; }
  .tgs-site .footer-top h4 { font-size: 18px; margin-bottom: 8px; }
  .tgs-site .spec-box .k, .tgs-site .spec-box .heading, .tgs-site .highlight-list .label,
  .tgs-site .venue-row .type, .tgs-site .venue-detail .meta, .tgs-site .card .tag-no,
  .tgs-site .bridge-card .k, .tgs-site .side-nav .label, .tgs-site .timeline .t-label,
  .tgs-site .stat-cell .lbl, .tgs-site .process-list .dur, .tgs-site .price-card .badge,
  .tgs-site .form-row .req, .tgs-site .contact-method .m-label, .tgs-site .footer-bottom,
  .tgs-site .tgs-small-print { font-size: 14px !important; }
  .tgs-site .tgs-small-print { line-height: 1.8; }
  .tgs-site .spec-box .heading, .tgs-site .card .tag-no, .tgs-site .side-nav .label,
  .tgs-site .timeline .t-label { color: #94501f; }
  .tgs-site .intro-steps li::before { color: #f0c6a3; }
  .tgs-site :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--azurite); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper);
  }
  .tgs-site :is(.intro-panel, .bridge, footer, .sticky-cta) :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 5px var(--azurite); }
}
@media (min-width: 769px) and (max-width: 782px) {
  .tgs-site.admin-bar > header { top: 46px; }
}
@media (max-width: 600px) {
  /* WordPress admin bar scrolls away below 600px; do not leave an empty offset. */
  .tgs-site.admin-bar { position: static; }
  .tgs-site.admin-bar > header { position: relative; top: 0; }
}
@media (max-width: 480px) {
  .tgs-site .sticky-cta span { display: none; }
  .tgs-site .sticky-cta a { flex: 1; }
  .tgs-site h1 { font-size: 30px !important; }
  .tgs-site h2 { font-size: 25px !important; }
  .tgs-site h3 { font-size: 21px !important; }
}
