/* ServicesDictionary v2.30.2 — sitewide mobile and tablet responsive layer.
 * Loaded after the visual systems so these rules consistently cover the public
 * site, directory, editorial pages, account templates and all front-end dashboards.
 */
:root { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html { max-width:100%; overflow-x:clip; scroll-padding-top:80px; }
body { max-width:100%; overflow-x:clip; }
img,svg,video,iframe { max-width:100%; }
input,select,textarea,button { max-width:100%; }
button,a,input,select,textarea { touch-action:manipulation; }
*,*::before,*::after { box-sizing:border-box; }

/* Shared content shells */
.sd-about-shell,.sd-contact-shell,.sd-directory-shell,.sd-service-detail-shell,
.sd-category-shell,.sd-blog-shell,.sd-search-shell,.sd-legal-shell,
.sd-submit-container,.sd-single-post-container,.sd-single-service-container,
.sd-author-archive,.sd-author-profile-inner,.sdx-shell,.sdx-container {
  min-width:0; max-width:100%;
}
.sd-about-page,.sd-contact-page,.sd-directory-page,.sd-service-detail-page,
.sd-category-archive,.sd-blog-archive,.sd-search-page,.sd-legal-page,
.sd-submit-container,.sd-author-archive { min-width:0; max-width:100%; overflow-x:clip; }
.sd-about-page :where(p,li,a,strong,span),.sd-contact-page :where(p,li,a,strong,span),
.sd-directory-page :where(p,li,a,strong,span),.sd-service-detail-page :where(p,li,a,strong,span),
.sd-blog-archive :where(p,li,a,strong,span),.sdx-article :where(p,li,a,strong,span) {
  overflow-wrap:anywhere;
}

/* Avoid squeezed input controls and keep tap targets comfortable. */
.sd-contact-form input,.sd-contact-form select,.sd-contact-form textarea,
.sd-directory-filters input,.sd-directory-filters select,
.sd-search-form input,.sd-submit-container input,.sd-submit-container select,
.sd-submit-container textarea,.sdpp-profile-form input,.sdpp-profile-form textarea,
.sdpp-profile-form select { min-width:0; max-width:100%; }
.sd-contact-form button,.sd-contact-submit-row button,.sd-directory-filters button,
.sd-submit-container button,.sdpp-button { min-height:44px; }

/* Standalone responsive navigation is defined in standalone-foundation.css. */

/* Directory, search and card grids */
.sd-directory-grid,.sd-search-service-grid,.sd-search-article-grid,
.sd-related-grid,.sd-author-article-grid,.sd-category-grid,
.sd-home-services-grid,.sd-home-blog-layout { min-width:0; }
.sd-directory-card,.sd-service-card,.sd-search-article-card,.sd-category-card,
.sd-related-card,.sd-author-article-card,.sd-home-blog-featured,.sd-home-blog-mini {
  min-width:0; max-width:100%;
}
.sd-directory-card__title,.sd-service-card__title,.sd-search-article-card h2,
.sd-author-article-card h2 { overflow-wrap:anywhere; }

/* Article reading experience */
.sd-single-post-container,.sdx-article-layout,.sd-post-layout,
.sd-article-layout,.sdx-article-grid { min-width:0; }
.sd-post-content,.sd-article-body,.sdx-article-body,.sd-author-article-body,
.sd-search-article-body { min-width:0; overflow-wrap:anywhere; }
.sd-post-content img,.sd-article-body img,.sdx-article-body img,
.sd-author-article-body img { height:auto; max-width:100%; }
.sd-post-content pre,.sd-article-body pre,.sdx-article-body pre,
.sd-author-article-body pre { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.sd-post-content table,.sd-article-body table,.sdx-article-body table { display:block; width:100%; max-width:100%; overflow-x:auto; }
.sd-post-sidebar,.sd-article-sidebar,.sdx-article-sidebar { min-width:0; }

/* Author profile and article archive */
.sd-author-profile-hero { min-width:0; }
.sd-author-profile-copy,.sd-author-profile-bio { min-width:0; overflow-wrap:anywhere; }
.sd-author-social-links { display:flex; flex-wrap:wrap; gap:8px; }
.sd-author-social-links a { min-height:40px; display:inline-flex; align-items:center; }

/* Provider/customer dashboards and service submission forms */
.sd-submit-layout,.sd-service-provider-profile,.sd-service-provider-profile-head,
.sd-saved-services,.sd-customer-dashboard,.sd-provider-dashboard,
.sd-dashboard-layout { min-width:0; max-width:100%; }
.sd-submit-sidebar { min-width:0; }
.sd-submit-container .sd-form-step,.sd-submit-container .sd-step-head { min-width:0; }
.sd-submit-container .sd-image-upload img { max-width:100%; height:auto; object-fit:contain; }
.sd-service-detail-save-form,.sd-service-save-form { max-width:100%; }

/* Homepage sections */
.sd-homepage,.sd-home-services-section,.sd-home-blog-section { min-width:0; max-width:100%; overflow-x:clip; }
.sd-home-services-section .sd-home-services-card,.sd-home-blog-section article { min-width:0; }

@media (max-width: 1024px) {
  .sd-contact-layout { grid-template-columns:minmax(0,1fr); }
  .sd-service-detail-layout { grid-template-columns:minmax(0,1fr) minmax(245px,.72fr); }
  .sd-submit-layout { grid-template-columns:minmax(0,1fr) minmax(240px,.65fr); }
  .sd-home-services-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 782px) {
  html { scroll-padding-top:64px; }
  .sd-contact-shell,.sd-directory-shell,.sd-service-detail-shell,
  .sd-category-shell,.sd-blog-shell,.sd-search-shell,.sd-legal-shell,
  .sd-about-shell { width:min(100% - 32px,100%); }
  .sd-contact-layout,.sd-directory-hero .sd-directory-shell,
  .sd-contact-hero .sd-contact-shell,.sd-service-detail-layout,
  .sd-submit-layout,.sd-legal-layout { grid-template-columns:minmax(0,1fr); }
  .sd-directory-grid,.sd-category-grid,.sd-search-service-grid,
  .sd-search-article-grid,.sd-related-grid,.sd-author-article-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .sd-directory-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sd-directory-search { grid-column:1/-1; }
  .sd-service-detail-sidebar { position:static; grid-row:auto; }
  .sd-submit-sidebar { position:static; }
  .sd-post-sidebar,.sd-article-sidebar,.sdx-article-sidebar { position:static; }
  .sd-contact-aside { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sd-legal-toc { position:static; }
  .sd-home-blog-layout { grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 600px) {
  .sd-contact-shell,.sd-directory-shell,.sd-service-detail-shell,
  .sd-category-shell,.sd-blog-shell,.sd-search-shell,.sd-legal-shell,
  .sd-about-shell { width:calc(100% - 28px); }
  .sd-directory-grid,.sd-category-grid,.sd-search-service-grid,
  .sd-search-article-grid,.sd-related-grid,.sd-author-article-grid,
  .sd-home-services-grid { grid-template-columns:minmax(0,1fr); }
  .sd-directory-filters { grid-template-columns:minmax(0,1fr); padding:12px; }
  .sd-directory-filters > *,.sd-directory-search { grid-column:1/-1; width:100%; }
  .sd-directory-filters input,.sd-directory-filters select,.sd-directory-filters button { width:100%; min-width:0; }
  .sd-contact-aside { grid-template-columns:minmax(0,1fr); }
  .sd-contact-hero h1,.sd-directory-hero h1,.sd-category-hero h1 { font-size:clamp(31px,9vw,40px); line-height:1.08; }
  .sd-contact-section-heading h2,.sd-directory-heading h2 { font-size:clamp(23px,7vw,29px); }
  .sd-directory-hero-stats { gap:12px 18px; }
  .sd-contact-form-wrap,.sd-service-detail-section,.sd-post-content,
  .sd-article-body,.sdx-article-body { padding:20px 16px; }
  .sd-contact-form-row { grid-template-columns:minmax(0,1fr); }
  .sd-contact-submit-row { align-items:stretch; flex-direction:column; }
  .sd-contact-submit-row button,.sd-contact-submit-row .sdpp-button { width:100%; }
  .sd-service-detail-heading { align-items:flex-start; flex-direction:column; }
  .sd-service-detail-meta { flex-wrap:wrap; }
  .sd-related-card { grid-template-columns:88px minmax(0,1fr); }
  .sd-related-image { width:88px; height:88px; }
  .sd-author-profile-inner { align-items:flex-start; flex-direction:column; gap:16px; }
  .sd-author-profile-avatar img { width:88px; height:88px; }
  .sd-author-social-links a { max-width:100%; overflow-wrap:anywhere; }
  .sd-post-meta,.sd-post-footer,.sd-article-byline { flex-wrap:wrap; gap:8px 12px; }
  .sd-article-title,.sd-post-title { font-size:clamp(28px,8vw,36px); line-height:1.12; }
  .sd-post-content table,.sd-article-body table,.sdx-article-body table { font-size:13px; }
  .sd-submit-container { padding-left:0; padding-right:0; }
  .sd-submit-header { padding:22px 18px; }
  .sd-submit-container .sd-form-submit-row { align-items:stretch; flex-direction:column; }
  .sd-submit-container .sd-form-submit-row button { width:100%; }
  .sd-image-upload { min-width:0; }
  .sd-image-upload input[type=file] { max-width:100%; }
}

@media (max-width: 380px) {
  .sd-contact-shell,.sd-directory-shell,.sd-service-detail-shell,
  .sd-category-shell,.sd-blog-shell,.sd-search-shell,.sd-legal-shell,
  .sd-about-shell { width:calc(100% - 22px); }
  .sd-contact-form-wrap,.sd-service-detail-section,.sd-post-content,
  .sd-article-body,.sdx-article-body { padding:17px 13px; }
  .sd-directory-card-body,.sd-service-card__body { padding:15px; }
  .sd-related-card { grid-template-columns:72px minmax(0,1fr); }
  .sd-related-image { width:72px; height:72px; }
}

/* Provider and customer account dashboards use legacy template class names. */
.provider-dashboard,.customer-dashboard,.dashboard-content,.dashboard-sidebar,
.dashboard-widgets,.dashboard-widget,.services-section { min-width:0; max-width:100%; }
.provider-dashboard .dashboard-stats,.customer-dashboard .dashboard-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.provider-dashboard .services-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.service-card.dashboard,.dashboard-widget,.sidebar-widget,.stat-card { min-width:0; }
.service-card.dashboard img { max-width:100%; height:auto; }
.service-actions,.account-actions { display:flex; flex-wrap:wrap; gap:8px; }
.service-actions .button,.account-actions .button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; }
.order-list li,.saved-services-list li { min-width:0; flex-wrap:wrap; overflow-wrap:anywhere; }
.order-list li > *, .saved-services-list li > * { min-width:0; }

@media(max-width:782px) {
  body.page-template-template-provider-dashboard .container,
  body.page-template-template-customer-dashboard .container,
  body.page-template-template-provider-dashboard #primary,
  body.page-template-template-customer-dashboard #primary {
    width:100%; max-width:100%; margin:0; padding-left:14px; padding-right:14px;
  }
  body.page-template-template-provider-dashboard .page-header,
  body.page-template-template-customer-dashboard .page-header { margin-top:22px; }
  .provider-dashboard,.customer-dashboard { padding-top:4px; }
  .dashboard-content { grid-template-columns:minmax(0,1fr); gap:18px; }
  .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:22px; }
  .stat-card { padding:16px; }
  .dashboard-widget,.sidebar-widget { padding:18px; }
  .provider-dashboard .services-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .services-section .section-header { align-items:flex-start; flex-wrap:wrap; gap:12px; }
  .services-section .section-header .button { min-height:44px; }
  .sdpp-provider-dashboard-checklist .sdpp-section-head { align-items:flex-start; flex-direction:column; }
  .sdpp-dashboard-checklists { grid-template-columns:minmax(0,1fr); }
  .dashboard-sidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.page-template-template-provider-dashboard .container,
  body.page-template-template-customer-dashboard .container,
  body.page-template-template-provider-dashboard #primary,
  body.page-template-template-customer-dashboard #primary { padding-left:12px; padding-right:12px; }
  .dashboard-stats { gap:8px; }
  .stat-card { padding:12px; }
  .stat-card h3 { font-size:10px; line-height:1.4; }
  .stat-number { font-size:25px; }
  .provider-dashboard .services-grid { grid-template-columns:minmax(0,1fr); }
  .service-card.dashboard { display:grid; grid-template-columns:104px minmax(0,1fr); flex-direction:initial; gap:0; }
  .service-card.dashboard .service-thumbnail { min-width:0; height:100%; min-height:110px; }
  .service-card.dashboard .service-thumbnail img { width:100%; height:100%; min-height:110px; object-fit:cover; }
  .service-card.dashboard .service-content { min-width:0; padding:13px; }
  .service-card.dashboard .service-content h3 { font-size:14px; overflow-wrap:anywhere; }
  .service-card.dashboard .service-meta { display:grid; gap:4px; }
  .service-actions,.account-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .service-actions .button,.account-actions .button { width:100%; padding-left:8px; padding-right:8px; font-size:11px; }
  .dashboard-sidebar { grid-template-columns:minmax(0,1fr); }
  .order-list li,.saved-services-list li { align-items:flex-start; flex-direction:column; }
  .order-list li .view-order,.saved-services-list li .sd-saved-service-remove { width:100%; }
  .sd-saved-service-remove button { min-height:42px; }
  .sdpp-profile-moderation-notice { grid-template-columns:32px minmax(0,1fr); }
}
@media(max-width:380px) {
  .dashboard-stats { grid-template-columns:minmax(0,1fr); }
  .service-card.dashboard { grid-template-columns:88px minmax(0,1fr); }
  .service-card.dashboard .service-thumbnail,.service-card.dashboard .service-thumbnail img { min-height:100px; }
  .service-card.dashboard .service-content { padding:10px; }
  .service-actions,.account-actions { grid-template-columns:minmax(0,1fr); }
}

/* Free Request a Quote entry point on the service directory. */
.sdx-request-quote-banner{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 22px;padding:22px 24px;border:1px solid #dce7f4;border-radius:16px;background:linear-gradient(115deg,#f4f8ff,#f8fbff)}
.sdx-request-quote-banner h2{margin:5px 0 6px;font-size:clamp(19px,2vw,24px);line-height:1.25}.sdx-request-quote-banner p{margin:0;color:#64748b;font-size:14px}.sdx-request-quote-banner .sdx-button{flex:0 0 auto}
@media(max-width:650px){.sdx-request-quote-banner{align-items:stretch;flex-direction:column;padding:18px}.sdx-request-quote-banner .sdx-button{width:100%;justify-content:center}}
