/* Padosi Clinic: tablet and desktop. The letterhead spreads into columns; the pad's body gets its margin rail. */

@media (min-width: 560px) {
  .actions-big .btn {
    flex: 0 1 auto;
  }

  .lh-branches {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .lh-today-list li {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
  }

  .lh-hours {
    grid-column: 2;
  }
}

@media (min-width: 760px) {
  :root {
    --gutter: 1.75rem;
    --header: 4.5rem;
  }

  body {
    font-size: 1.1875rem;
  }

  .header-call {
    padding: 0.45rem 0.9rem;
  }

  .header-call .num {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 1.15rem;
  }

  .show-small {
    display: none;
  }

  .hide-small {
    display: inline;
  }

  .logo .stamp-door {
    width: 26px;
    height: 26px;
  }

  .logo .stamp-local {
    font-size: 0.9rem;
  }

  .logo .stamp-name {
    font-size: 1.05rem;
  }

  .sheet-grid {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 2rem;
  }

  .rail {
    width: auto;
  }

  .sheet,
  .page-head {
    padding: 3rem 0;
  }

  .two {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: 2rem;
  }

  /* Day board and fee summary become real tables again. */
  .board thead,
  .fee-summary thead {
    display: table-header-group;
  }

  .board tbody,
  .fee-summary tbody {
    display: table-row-group;
  }

  .board tr,
  .fee-summary tr {
    display: table-row;
  }

  .board th,
  .board td,
  .fee-summary th,
  .fee-summary td {
    display: table-cell;
    padding: 0.75rem 0.9rem 0.75rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }

  .board thead th,
  .fee-summary thead th {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
    border-bottom: 2px solid var(--violet);
    padding-bottom: 0.4rem;
  }

  .board td[data-label]::before {
    content: none;
  }

  .board td.board-state {
    white-space: nowrap;
  }

  .fee-summary thead th.col-fee {
    text-align: right;
  }

  .rate-table thead {
    display: table-header-group;
  }

  .rate-table tbody {
    display: table-row-group;
  }

  .rate-table tr {
    display: table-row;
  }

  .rate-table th,
  .rate-table td {
    display: table-cell;
    padding: 0.7rem 1rem 0.7rem 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }

  .rate-table thead th {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
    padding-bottom: 0.4rem;
  }

  .rate-table .col-local {
    width: 30%;
    font-size: 1.05rem;
  }

  .rate-table .col-local:empty {
    display: table-cell;
  }

  .rate-table .col-fee {
    width: 11rem;
    text-align: right;
    padding-right: 0;
  }

  .week-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
  }

  .week-phone {
    display: none;
  }

  .week-table caption {
    text-align: left;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.3rem;
    padding-bottom: 0.4rem;
  }

  .week-table th,
  .week-table td {
    text-align: left;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 1rem;
  }

  .week-table thead th {
    border-bottom: 2px solid var(--violet);
    color: var(--violet);
    font-weight: 700;
  }

  .week-table tbody th a {
    font-weight: 700;
  }

  .week-table .is-today {
    background: var(--tint);
  }

  .slot {
    display: block;
    white-space: nowrap;
  }

  .branches {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 2.5rem;
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .doc-facts {
    grid-template-columns: repeat(2, max-content);
  }

  .em-numbers {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }

  .lh-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .lh-doc {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.6rem;
    padding: 1rem 1.25rem 1rem 0;
    border-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .form-grid {
    grid-template-columns: minmax(0, 40rem) minmax(16rem, 1fr);
    gap: 3.5rem;
  }

  .form-aside {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
    align-self: start;
  }
}

@media (min-width: 1100px) {
  :root {
    --header: 4.75rem;
  }

  body {
    font-size: 1.25rem;
  }

  .nav-wide {
    display: block;
    margin-right: 0.5rem;
  }

  .nav-wide ul {
    display: flex;
    gap: 0.25rem;
  }

  .nav-wide a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 3px solid transparent;
  }

  .nav-wide a:hover {
    border-bottom-color: var(--line);
  }

  .nav-wide a[aria-current="page"] {
    border-bottom-color: var(--violet);
    color: var(--violet);
  }

  .nav-small {
    display: none;
  }

  .logo {
    margin-right: auto;
  }

  .sheet-grid {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 3rem;
  }

  /* The letterhead: sheet head across the top, doctors in ruled columns, then headline + actions + today. */
  .lh-sheet {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas:
      "top top"
      "head act"
      "head now"
      "docs docs";
    gap: 0 4rem;
    padding: 2rem 0 2.5rem;
  }

  .lh-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mark branches"
      "kind branches";
    align-items: end;
    gap: 0.6rem 3rem;
    border-top: 0;
    padding: 0 0 1.25rem;
    border-bottom: 6px double var(--violet);
  }

  .lh-mark {
    display: block;
    grid-area: mark;
  }

  .lh-kind {
    grid-area: kind;
    margin: 0;
    font-size: 1.15rem;
  }

  .lh-branches {
    grid-area: branches;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    text-align: right;
  }

  .lh-branches li {
    align-items: flex-end;
    max-width: 19rem;
  }

  .lh-docs-wrap {
    padding: 2.5rem 0 0;
  }

  .lh-docs-label {
    margin-bottom: 0.6rem;
  }

  .lh-docs {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    border-top: 1px solid var(--violet);
  }

  .lh-doc {
    padding: 1.1rem 1.25rem 1.25rem;
    border-left: 1px solid var(--line);
  }

  .lh-doc:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .lh-doc-name {
    font-size: 1.3rem;
  }

  .lh-head {
    padding-top: 2rem;
  }

  .lh-head h1 {
    font-size: clamp(2.6rem, 1rem + 2.6vw, 3.9rem);
  }

  .lh-act {
    padding-top: 2.4rem;
  }

  .lh-now {
    padding-top: 1.5rem;
  }

  .lh-today-list li {
    grid-template-columns: 9.5rem 1fr;
  }
}

@media (min-width: 1700px) {
  :root {
    --wrap: 100rem;
  }

  .lh-doc {
    padding-right: 1.75rem;
    padding-left: 1.75rem;
  }
}
