/* dns-table-1.css: the DNS record tables on the per-host setup guides
 * (2026-11-09, first used on /resources/godaddy-dns-google-workspace-microsoft-365).
 * Loaded through the page's toolStyles, which come BEFORE sharp-1.css, so every
 * selector carries :root body.ap main to win. Assets cache for hours: any change
 * goes in a new file name (dns-table-2.css), never this one.
 * Wide screens: a three column table. 600px and under: each row becomes a small
 * card and every cell shows its column name from data-label, so a long record
 * value wraps inside the card instead of pushing the page sideways. The markup
 * carries table roles so the stacked layout still reads as a table. */

:root body.ap main .prose table.dns-table {
  width: 100%;
  margin: 1.25rem 0 1.75rem;
  border-collapse: collapse;
  font-size: .98rem;
  line-height: 1.45;
}
:root body.ap main .prose table.dns-table th,
:root body.ap main .prose table.dns-table td {
  padding: .8rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--sh-line, #e2e7f0);
}
:root body.ap main .prose table.dns-table thead th {
  border-bottom: 2px solid var(--ap-hair, #d2d2d7);
  color: var(--sh-soft, #58647a);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}
:root body.ap main .prose table.dns-table td:first-child {
  width: 26%;
  font-weight: 650;
  color: var(--sh-ink, #0c1424);
}
:root body.ap main .prose table.dns-table td:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--sh-soft, #58647a);
  font-size: .85rem;
  font-weight: 450;
}
:root body.ap main .prose table.dns-table td:nth-child(2) { width: 22%; }
:root body.ap main .prose table.dns-table tbody tr:nth-child(odd) td { background: rgba(0, 102, 204, .035); }
:root body.ap main .prose table.dns-table code { font-size: .9em; }
/* One record value word per span: a line may break between words but never
   inside one, so "-all" never splits after its hyphen and reads as "all". */
:root body.ap main .prose table.dns-table .nb { white-space: nowrap; }

@media (max-width: 600px) {
  :root body.ap main .prose table.dns-table,
  :root body.ap main .prose table.dns-table tbody,
  :root body.ap main .prose table.dns-table tr,
  :root body.ap main .prose table.dns-table td {
    display: block;
    width: auto;
  }
  :root body.ap main .prose table.dns-table { border-collapse: separate; }
  /* The column names move into each cell; the header row stays for screen readers only. */
  :root body.ap main .prose table.dns-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  :root body.ap main .prose table.dns-table tr {
    margin: 0 0 12px;
    padding: 6px 0;
    border: 1px solid var(--sh-line, #e2e7f0);
    border-radius: 14px;
    background: #fff;
  }
  :root body.ap main .prose table.dns-table td,
  :root body.ap main .prose table.dns-table td:first-child,
  :root body.ap main .prose table.dns-table td:nth-child(2) {
    width: auto;
    padding: .45rem 1rem;
    border: 0;
    background: none;
  }
  /* apple.css rules a line over every prose cell; inside a card one quiet
     dashed line between Record, Name and Value is enough. */
  :root body.ap main .prose table.dns-table td:nth-child(n+2) { border-top: 1px dashed var(--sh-line, #e2e7f0); }
  :root body.ap main .prose table.dns-table tbody tr:nth-child(odd) td { background: none; }
  :root body.ap main .prose table.dns-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--sh-soft, #58647a);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
}
