/* ROY DIAMOND mobile-only refinement v14
   Desktop layout is intentionally untouched. */
@media (max-width: 700px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    font-size: 15px;
  }

  img,
  video,
  iframe,
  canvas,
  svg {
    max-width: 100%;
  }

  main,
  section,
  .section,
  .section-head,
  .card-row,
  .split-row,
  .process-row,
  .about-layout,
  .footer {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .topbar {
    padding: 8px 14px 8px 50px !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }

  .site-header {
    min-height: 86px !important;
    padding: 9px 52px !important;
  }

  .site-header .brand-logo-image {
    height: 70px !important;
    width: auto !important;
    max-width: min(250px, 72vw) !important;
  }

  .side-menu-toggle {
    left: 13px !important;
    top: 18px !important;
    width: 38px !important;
    height: 38px !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.78) !important;
  }

  .side-menu-toggle span {
    width: 22px !important;
    margin: 4px 0 !important;
  }

  .side-menu-panel {
    width: min(88vw, 320px) !important;
    max-width: 88vw !important;
  }

  .side-menu-head {
    padding: 22px 52px 16px 18px !important;
  }

  .side-menu-head strong {
    font-size: 20px !important;
  }

  .side-menu-links {
    padding: 12px !important;
  }

  .side-menu-links a {
    padding: 13px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .section {
    padding: 42px 16px !important;
  }

  .hero + .section {
    padding-top: 24px !important;
  }

  .section-head {
    width: 100% !important;
    margin: 0 auto 22px !important;
    padding-inline: 0 !important;
  }

  .section-head h1 {
    max-width: 100% !important;
    margin: 0 0 10px !important;
    font-size: clamp(27px, 8.7vw, 34px) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  .section-head h2,
  .about-text h1,
  .about-text h2,
  .loose-description h2,
  .certified-description-box h2,
  .custom-shape-description h2,
  .custom-jewellery-description h2,
  .round-detail-content h2,
  .fancy-description h2,
  .fancy-shapes-full-list h2,
  .important-buyer-note h2,
  .jewellery-description h2,
  .jewellery-categories-box h2,
  .metal-options-box h2,
  .stone-options-box h2,
  .manufacturing-process-section h2,
  .jewellery-manufacturing-section-title,
  .rd-contact-inquiry-head h2,
  .rd-contact-success h2,
  .policy-hero h1 {
    max-width: 100% !important;
    font-size: clamp(24px, 7.5vw, 30px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    margin-bottom: 8px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    letter-spacing: 1.5px !important;
  }

  p,
  li,
  .section-head p,
  .card p,
  .info-box p,
  .process-box p,
  .note-box p,
  .policy-card p,
  .policy-card li,
  .policy-contact-box p {
    font-size: 15px !important;
    line-height: 1.62 !important;
  }

  .card-row,
  .split-row,
  .process-row,
  .about-layout,
  .founders-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .card,
  .info-box,
  .process-box,
  .founder-card,
  .founders-section,
  .address-section,
  .note-box,
  .important-buyer-note,
  .loose-description,
  .certified-description-box,
  .certified-shapes-box,
  .gia-natural-box,
  .custom-shape-description,
  .custom-jewellery-description,
  .jewellery-description,
  .fancy-description,
  .jewellery-categories-box,
  .metal-options-box,
  .stone-options-box,
  .manufacturing-process-section,
  .policy-card,
  .policy-contact-box {
    width: 100% !important;
    min-width: 0 !important;
    padding: 19px 17px !important;
    border-radius: 18px !important;
  }

  .card h3,
  .info-box h3,
  .process-box h3,
  .founder-card h3,
  .note-box h3 {
    margin-bottom: 8px !important;
    font-size: clamp(18px, 5.6vw, 21px) !important;
    line-height: 1.25 !important;
  }

  .shape-grid,
  .certified-shape-grid,
  .fancy-shapes-full-grid,
  .jewellery-categories-grid,
  .metal-options-grid,
  .stone-options-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .shape-grid span,
  .certified-shape-grid span,
  .fancy-shapes-full-grid span,
  .fancy-shapes-full-grid a.shape-link,
  .jewellery-categories-grid span,
  .metal-options-grid span,
  .stone-options-grid span {
    width: auto !important;
    min-width: 0 !important;
    min-height: 56px !important;
    padding: 11px 8px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .manufacturing-process-list {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .manufacturing-process-list > * {
    min-width: 0 !important;
    padding: 14px 15px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }

  .about-layout {
    gap: 20px !important;
  }

  .about-visual {
    width: 100% !important;
    min-height: 260px !important;
    border-radius: 20px !important;
  }

  .stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .stats div {
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .stats strong {
    font-size: 20px !important;
  }

  .details-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    border-radius: 16px !important;
    -webkit-overflow-scrolling: touch;
  }

  .details-table th,
  .details-table td {
    padding: 13px 14px !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }

  .quote-form,
  .rd-contact-inquiry-card,
  .b2b-inquiry-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .form-row,
  .rd-contact-grid,
  .b2b-inquiry-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  input,
  select,
  textarea {
    min-height: 48px;
  }

  .hero-buttons,
  .cta-row {
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-buttons a,
  .cta-row a {
    width: 100% !important;
    max-width: 340px !important;
    min-width: 0 !important;
    padding: 13px 15px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .policy-page {
    padding-top: 40px !important;
  }

  .policy-hero {
    max-width: 100% !important;
    margin-bottom: 22px !important;
    text-align: left !important;
  }

  .policy-card h2,
  .policy-contact-box h2 {
    font-size: 21px !important;
    line-height: 1.28 !important;
  }

  .footer {
    padding: 30px 16px 92px !important;
    gap: 18px !important;
  }

  .footer-col,
  .footer > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  .footer-col h2,
  .footer-col h3,
  .footer h2,
  .footer h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  /* Homepage only: compact category heading and no wrapping on phones. */
  .home-diamond-categories .section-head {
    margin-bottom: 20px !important;
  }

  .home-diamond-categories .section-head h1 {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-size: clamp(21px, 7.5vw, 30px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 0 !important;
  }

  .home-diamond-categories .eyebrow {
    margin-bottom: 7px !important;
  }
}

@media (max-width: 360px) {
  .section {
    padding-inline: 13px !important;
  }

  .site-header {
    padding-inline: 48px !important;
  }

  .site-header .brand-logo-image {
    height: 64px !important;
    max-width: 70vw !important;
  }

  .section-head h1 {
    font-size: 27px !important;
  }

  .home-diamond-categories .section-head h1 {
    font-size: clamp(20px, 7.35vw, 26px) !important;
  }

  .shape-grid span,
  .certified-shape-grid span,
  .fancy-shapes-full-grid span,
  .fancy-shapes-full-grid a.shape-link,
  .jewellery-categories-grid span,
  .metal-options-grid span,
  .stone-options-grid span {
    font-size: 12.5px !important;
    padding-inline: 6px !important;
  }
}


/* V14: one-line, fluid, classic mobile page titles. */
@media (max-width: 700px) {
  h1.rd-page-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 9px !important;
    padding: 0 1px !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-align: center !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }

  h1.rd-page-title.rd-title-short {
    font-size: clamp(27px, 8.6vw, 34px) !important;
  }

  h1.rd-page-title.rd-title-medium {
    font-size: clamp(22px, 7.1vw, 30px) !important;
  }

  h1.rd-page-title.rd-title-long {
    font-size: clamp(17px, 5.5vw, 24px) !important;
    letter-spacing: -0.04em !important;
  }

  h1.rd-page-title.rd-title-xlong,
  h1.rd-page-title.rd-title-dynamic {
    font-size: clamp(13.5px, 4.35vw, 19px) !important;
    letter-spacing: -0.045em !important;
  }

  .section-head > .eyebrow,
  .policy-hero > .eyebrow,
  .about-text > .eyebrow,
  .rd-detail-content > .eyebrow {
    display: block !important;
    text-align: center !important;
  }

  .section-head:has(> h1.rd-page-title),
  .policy-hero:has(h1.rd-page-title) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .section-head:has(> h1.rd-page-title) > p,
  .policy-hero:has(h1.rd-page-title) > p {
    max-width: 36rem !important;
    margin: 7px auto 0 !important;
    text-align: center !important;
  }

  .about-text > h1.rd-page-title,
  .rd-detail-content > h1.rd-page-title {
    text-align: center !important;
  }
}

@media (max-width: 360px) {
  h1.rd-page-title {
    padding-inline: 0 !important;
  }

  h1.rd-page-title.rd-title-short {
    font-size: clamp(25px, 8.2vw, 29px) !important;
  }

  h1.rd-page-title.rd-title-medium {
    font-size: clamp(20px, 6.65vw, 24px) !important;
  }

  h1.rd-page-title.rd-title-long {
    font-size: clamp(16px, 5.15vw, 19px) !important;
  }

  h1.rd-page-title.rd-title-xlong,
  h1.rd-page-title.rd-title-dynamic {
    font-size: clamp(12.5px, 4.05vw, 15px) !important;
  }
}
