/*
Theme Name: Gateway Midwest
Theme URI: https://painstlouis.com
Description: Block child theme for Gateway Midwest Healthcare — St. Louis accident, injury and pain specialists. Design system lives in theme.json; this file carries only what theme.json cannot express.
Author: Gateway Midwest Healthcare
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gatewaymidwest
Tags: block-patterns, full-site-editing, medical
*/

/* ---------------------------------------------------------------------------
   Only rules theme.json genuinely cannot express live here. No design tokens,
   no colors that are not already presets, and never a `text-transform` on
   author text.
   --------------------------------------------------------------------------- */

/* Skip link — keyboard users land here first */
.gm-skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--wp--preset--color--graphite);
  color: var(--wp--preset--color--white);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* Sticky header that stays out of the way on short screens */
.gm-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--wp--preset--color--white);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
@media (max-height: 520px) { .gm-header { position: static; } }

/* The action bar: phone + appointment, always reachable on mobile */
.gm-actionbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Cards — used by service grids and condition indexes */
.gm-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  background: var(--wp--preset--color--white);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.gm-card:hover {
  border-color: var(--wp--preset--color--orange);
  transform: translateY(-2px);
  box-shadow: var(--wp--preset--shadow--card);
}
.gm-card :where(h3, h4) { margin-block-start: 0; }

/* An accent rule under section headings — the amber/orange bar from the logo */
.gm-rule > :where(h2, h3)::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin-block-start: .75rem;
  background: var(--wp--preset--color--orange);
}

/* FAQ disclosure: hide the default marker, supply our own so it flips */
.gm-faq details > summary { list-style: none; cursor: pointer; font-weight: 600; }
.gm-faq details > summary::-webkit-details-marker { display: none; }
.gm-faq details > summary::after {
  content: "+";
  float: inline-end;
  font-weight: 400;
  color: var(--wp--preset--color--orange-deep);
}
.gm-faq details[open] > summary::after { content: "\2013"; }

/* Tables scroll rather than breaking the page on mobile */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { min-width: 34rem; }
.wp-block-table :where(th, td) {
  border-color: var(--wp--preset--color--line);
  padding: .6rem .75rem;
}
.wp-block-table thead th {
  background: var(--wp--preset--color--surface);
  font-family: var(--wp--preset--font-family--head);
  font-weight: 600;
}

/* Measure — long clinical copy stays readable */
.gm-prose :where(p, ul, ol) { max-width: 68ch; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gm-card { transition: none; }
  .gm-card:hover { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Print: drop navigation chrome, keep the NAP */
@media print {
  .gm-header, .gm-actionbar, .wp-block-navigation { display: none !important; }
  body { font-size: 11pt; }
}
