/* Phones and tablets, one copy for every page (linked from _brand.html, after each page's
   own <style>, so it wins at equal weight; 25 Nov 2026, checked in Safari on the iPhone 17
   Pro simulator). Only sizes and spacing for touch: no colours, nothing on a desktop. */

/* A jump to an anchor (Add a note, a #section link) stops below the fixed site header
   instead of under it. */
html { scroll-padding-top: 84px; }

/* Touch screens: tap targets near Apple's 44 pt (they were 13-23 px). The hit area grows
   with padding; the look stays the same. */
@media (pointer: coarse) {
    /* Browse Data / Batches: the By experiment type · By materials type · By synthesis tabs */
    .sbd-tabs { gap: 0 18px; }
    .sbd-tab { padding: 15px 0; }
    /* the technique and material count chips */
    .sbd-badge { padding-top: 9px; padding-bottom: 9px; }
    /* footers */
    .site-footer-compact a, .site-footer .footer-links a { display: inline-block; padding: 10px 0; }
    .site-footer-compact { line-height: 1.4; }
    /* dataset page: the small "Copy" next to the upload ID */
    #view-mode .copy-id { padding: 8px 12px; }
}

/* Narrow screens: the upload switcher (Experiment data · Synthesis · Dataset release) reads
   "Synthesis", not "Synthesis (samples and recipe)" over three lines. */
@media (max-width: 640px) {
    .uk-long { display: none; }
}
