/* ============================================================
   MOBILE STYLES  —  max-width: 915px
   Desktop styles live in template.css and mainmenu.css.
   ============================================================ */

@media (max-width: 915px) {

  /* ── Container ───────────────────────────────────────────── */
  .container {
    box-shadow: none;
  }


  /* ── Site header ─────────────────────────────────────────── */
  #site-header {
    width: 100%;
  }

  #site-header-top {
    flex-direction: column;
    height: auto;
    padding: 15px 0 10px;
    align-items: center;
  }

  #site-logo-link {
    padding-left: 0;
  }

  #site-address {
    text-align: center;
    padding-right: 0;
    padding-top: 8px;
    font-size: 12px;
  }

  br.addr-br  { display: none; }
  .addr-sep   { display: inline; }


  /* ── Navigation ──────────────────────────────────────────── */
  #mainMenu {
    width: 100%;
    height: auto;
    display: block;
    justify-content: unset;
    align-items: unset;
  }

  #menu-toggle {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 15px;
    text-align: right;
    cursor: pointer;
    line-height: 1;
  }

  #main-menu-list {
    display: none;
    width: 100%;
    height: auto;
    margin: 0;
  }

  #main-menu-list.menu-open {
    display: block;
  }

  .menu li {
    float: none;
    display: block;
    height: auto;
    padding: 0;
    margin: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    line-height: 1;
  }

  .menu > li:last-child {
    border-right: none;
  }

  .menu a {
    padding: 10px 20px;
  }

  /* Sub-menus: static position, hidden until toggled */
  .menu li ul {
    position: static;
    left: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #024C78;
    display: none;
  }

  .menu li.sub-open > ul {
    display: block;
  }

  .menu li ul li {
    width: 100%;
    float: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .menu li ul li a {
    padding: 8px 20px 8px 35px;
    font-size: 14px;
  }


  /* ── Main layout ─────────────────────────────────────────── */

  /* Flex column on #main lets us reorder sidebar below content
     even when #left appears before #content in the DOM. */
  #main {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  #breadcrumbs {
    width: 100%;
    order: 1;
    margin-bottom: 0;
  }

  #breadcrumbs img {
    width: 100%;
    height: auto;
  }

  #content {
    order: 2;
    width: 100%;
    float: none;
    padding: 15px;
    box-sizing: border-box;
  }

  #content2 {
    order: 2;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Direct child #left (home, attorney profiles) goes below content */
  #main > #left {
    order: 3;
    width: 100%;
    float: none;
    margin: 0;
  }

  /* #left inside #content2 (practice area pages) */
  .practice-content {
    width: 100%;
    float: none;
    padding: 0 0 10px;
    box-sizing: border-box;
  }

  #content2 #left {
    width: 100%;
    float: none;
    margin: 0;
  }


  /* ── Sidebar elements ────────────────────────────────────── */
  #left h3 {
    margin: 15px 0 5px 0;
    padding-left: 15px;
  }

  #left h4 {
    margin: 15px 0 5px 0;
    padding-left: 15px;
  }

  #left ul {
    margin-left: 30px;
  }

  .sidebar-inner {
    width: 100%;
    margin-left: 0;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .sidebar-practice-nav,
  .attorney-nav {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .sidebar-practice-btn,
  .attorney-btn {
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
  }

  .sidebar-av-badge {
    width: auto;
    margin-left: 15px;
    margin-right: 15px;
  }

  .attorney-section-header {
    margin-left: 0;
  }

  .attorney-sidebar-content {
    width: 100%;
    margin-right: 0;
    padding: 0 15px;
    box-sizing: border-box;
  }


  /* ── Attorney contact table ──────────────────────────────── */
  /* Keep photo + info side by side at tablet widths.
     Only stack fully on narrow phones (see breakpoint below). */
  .attorney-contact-table {
    max-width: 100%;
  }

  .attorney-contact-table td {
    text-align: left;
    vertical-align: top;
  }


  /* ── Footer ──────────────────────────────────────────────── */
  #footer {
    width: 100%;
  }

  #footer-bar {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
    gap: 4px;
    text-align: center;
  }

  #footer-bar .footer-copyright {
    text-align: center;
  }

  #footer-disclaimer {
    padding: 10px 15px;
  }

}

/* ── Narrow phones: stack attorney contact table ─────────── */
@media (max-width: 500px) {

  .attorney-contact-table,
  .attorney-contact-table tbody,
  .attorney-contact-table tr {
    display: block;
    width: 100%;
  }

  .attorney-contact-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
  }

  .attorney-contact-table td.gap {
    display: none;
  }

  .attorney-photo {
    max-width: 150px;
  }

  .attorney-contact-table td.awards {
    text-align: center;
    max-width: 100%;
    padding-left: 0;
  }

  .attorney-contact-table td.awards img {
    max-width: 120px;
    height: auto;
  }

}
