/* LeatherTradeHub Guide Experience v1.1.0: widen the complete guide body.
 * Extendable's constrained block layout otherwise caps even .alignwide wrappers
 * at its content width, so width:100% alone has no visible effect. */
body.page .entry-content.wp-block-post-content.is-layout-constrained > .lth-guide-wide,
body.page .wp-block-post-content.is-layout-constrained > .lth-guide-wide {
  box-sizing: border-box;
  width: min(68rem, calc(100vw - 3rem)) !important;
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 2rem 0 !important;
  padding-inline: 0 !important;
}
body.page .lth-guide-wide > :is(p,ul,ol,blockquote,h2,h3,h4,section,div),
body.page .lth-guide-wide > :is(p,ul,ol,blockquote,h2,h3,h4,section,div):not(.alignfull) {
  max-width: none !important;
}
body.page .lth-guide-wide :is(p,li) { overflow-wrap: break-word; }
/* The hub-and-spoke and citation sections are added after the guide body. */
body.page .entry-content.wp-block-post-content.is-layout-constrained > :is(.lth-hs-context,.lth-reference,.lth-demand-context),
body.page .wp-block-post-content.is-layout-constrained > :is(.lth-hs-context,.lth-reference,.lth-demand-context) {
  box-sizing: border-box;
  width: min(68rem, calc(100vw - 3rem)) !important;
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.page .lth-guide-wide > .lth-guide-supplier-panel,
body.page .lth-guide-wide .lth-guide-supplier-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  background: #faf7f0;
  border: 1px solid #d5c4a8;
  border-radius: 13px;
  padding: clamp(17px, 2.6vw, 28px);
  margin: 18px 0 32px !important;
  box-shadow: 0 4px 18px rgba(60, 37, 19, .045);
}
.lth-guide-supplier-panel h2 { margin: 0 0 10px; font-size: clamp(1.22rem, 2vw, 1.6rem); color: #58331c; }
.lth-guide-supplier-panel p {margin: .6rem 0;}
.lth-guide-supplier-panel ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; list-style: none; padding: 0; margin: 15px 0;
}
.lth-guide-supplier-panel li {margin: 0;}
.lth-guide-supplier-panel li a {
  display: block; padding: 14px 16px; text-decoration: none;
  background: #fff; border: 1px solid #dfcdb1; border-radius: 10px;
  color: #603920; min-height: 48px;
}
.lth-guide-supplier-panel li a:hover,.lth-guide-supplier-panel li a:focus-visible {
  border-color: #ad8547; outline-color: #ad8547; background: #fffdf9;
}
.lth-guide-supplier-panel .lth-guide-list-link {
  display: inline-block; background: #603920; color: #fff;
  border-radius: 7px; text-decoration: none;
  padding: 10px 16px; margin: 3px 8px 3px 0; font-weight: 700;
}
@media (max-width: 700px) {
  body.page .entry-content.wp-block-post-content.is-layout-constrained > .lth-guide-wide,
  body.page .wp-block-post-content.is-layout-constrained > .lth-guide-wide,
  body.page .entry-content.wp-block-post-content.is-layout-constrained > :is(.lth-hs-context,.lth-reference,.lth-demand-context),
  body.page .wp-block-post-content.is-layout-constrained > :is(.lth-hs-context,.lth-reference,.lth-demand-context) {
    width: calc(100vw - 1.5rem) !important;
  }
  .lth-guide-supplier-panel ul {grid-template-columns: 1fr;}
}

/* v1.2.0 — Authority guides use the Leather Trade Directory PHP template,
   unlike the standard WordPress guide pages. These are the rules needed there. */
body.single-ltd_authority .ltd-site-main > .ltd-shell.ltd-single,
body.single-ltd_authority .ltd-theme-heritage .ltd-shell.ltd-single {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
}
body.single-ltd_authority .ltd-single > .ltd-prose.ltd-authority,
body.single-ltd_authority article.ltd-prose.ltd-authority {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding: clamp(20px, 3.2vw, 48px) !important;
}
body.single-ltd_authority .ltd-authority .ltd-authority-hero-image { max-width: 100%; }
body.single-ltd_authority .ltd-authority .ltd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}
body.single-ltd_authority .ltd-authority .ltd-card-grid > * { min-width: 0; }
body.single-ltd_authority .ltd-authority .ltd-supplier-card { min-width: 0; overflow-wrap: anywhere; }
body.single-ltd_authority .lth-authority-suppliers {
  margin: 20px 0 36px; padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid #d5c4a8; border-radius: 11px; background: #f6f0e5;
}
body.single-ltd_authority .lth-authority-suppliers h2 {margin: 0 0 14px; font-size: clamp(1.4rem,2.3vw,2rem);}
body.single-ltd_authority .lth-authority-suppliers .ltd-card-grid {margin-top: 16px;}
body.single-ltd_authority .lth-authority-no-supplier .lth-guide-list-link {
  display: inline-block; margin-right: 18px; padding: 12px 18px;
  border-radius: 5px; color: #fff; background: #603920; text-decoration: none; font-weight: 700;
}
body.single-ltd_authority .lth-authority-cite {
  margin: 40px 0 30px; padding: 24px; border: 1px solid #d5c4a8;
  border-left: 4px solid #ad8547; background: #faf7f0; border-radius: 8px;
}
body.single-ltd_authority .lth-authority-cite h2 {margin: 8px 0 12px;}
body.single-ltd_authority .lth-authority-cite-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 15px; background: white; border-radius: 7px;
}
body.single-ltd_authority .lth-authority-cite-text {flex: 1 1 300px; overflow-wrap: anywhere;}
body.single-ltd_authority .lth-authority-cite-copy {
  background: #603920; color: #fff; border: none; border-radius: 5px;
  padding: 11px 18px; cursor: pointer; font: inherit; font-weight: 700;
}
@media (max-width: 720px) {
  body.single-ltd_authority .ltd-site-main > .ltd-shell.ltd-single,
  body.single-ltd_authority .ltd-theme-heritage .ltd-shell.ltd-single {width: calc(100% - 20px) !important;}
  body.single-ltd_authority .ltd-single > .ltd-prose.ltd-authority {padding: 17px !important;}
  body.single-ltd_authority .ltd-authority .ltd-card-grid {grid-template-columns: 1fr;}
}
