/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

// ---- Modular shed spec sheet (only on modular-garden-sheds products) ----
function motton_in_modular_sheds($post_id) {
    $terms = get_the_terms($post_id, 'product_cat');
    if (!$terms || is_wp_error($terms)) { return false; }
    foreach ($terms as $t) {
        if ($t->slug === 'modular-garden-sheds') { return true; }
    }
    return false;
}
add_shortcode('motton_shed_specsheet', function () {
    if (!function_exists('is_product') || !is_product()) { return ''; }
    if (!motton_in_modular_sheds(get_the_ID())) { return ''; }
    return <<<'SPECHTML'
<style> ... </style>
<div class="motton-specx"> ... </div>. Nothing else is required — no external CSS, fonts or scripts.
  2. To rebrand, change the three variables at the top of .motton-specx (--ms-accent / --ms-ink / --ms-soft).
  3. All styles are namespaced under .motton-specx, so they will not clash with your theme.
-->
<style>
.motton-specx{
  --ms-ink:#161a1d;        /* headline / body colour */
  --ms-muted:#5b6670;      /* secondary text */
  --ms-line:#dde2e6;       /* rules */
  --ms-soft:#f6f7f8;       /* zebra rows */
  --ms-accent:#2f5d73;     /* brand accent */
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ms-ink);
  max-width:980px;
  margin:0 auto;
  padding:8px 0 0;
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.motton-specx *{box-sizing:border-box}
.motton-specx .ms-eyebrow{
  font-size:11.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ms-accent);
  font-weight:700;
  margin:0 0 10px;
}
.motton-specx h2{
  font-size:28px;
  line-height:1.25;
  font-weight:700;
  margin:0 0 14px;
  letter-spacing:-.01em;
  color:var(--ms-ink);
}
.motton-specx .ms-lead{
  font-size:16px;
  color:var(--ms-muted);
  margin:0 0 22px;
  max-width:760px;
}
.motton-specx .ms-lead strong{color:var(--ms-ink);font-weight:600}
.motton-specx .ms-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 34px;
}
.motton-specx .ms-chip{
  border:1px solid var(--ms-line);
  border-left:3px solid var(--ms-accent);
  background:#fff;
  padding:7px 12px;
  font-size:12.5px;
  color:var(--ms-muted);
  line-height:1.4;
}
.motton-specx .ms-chip b{color:var(--ms-ink);font-weight:600}
.motton-specx .ms-block{margin:0 0 38px}
.motton-specx h3{
  font-size:13px;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--ms-ink);
  margin:0 0 14px;
  padding-bottom:8px;
  border-bottom:2px solid var(--ms-ink);
  display:flex;
  align-items:baseline;
  gap:10px;
}
.motton-specx h3 span{
  font-size:11px;
  letter-spacing:.06em;
  color:var(--ms-accent);
  font-weight:700;
}
.motton-specx .ms-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.motton-specx table{
  width:100%;
  min-width:540px;
  border-collapse:collapse;
  font-size:14px;
}
.motton-specx thead th{
  background:var(--ms-ink);
  color:#fff;
  font-size:11.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:600;
  text-align:left;
  padding:11px 14px;
  white-space:nowrap;
}
.motton-specx tbody td{
  padding:11px 14px;
  border-bottom:1px solid var(--ms-line);
  vertical-align:top;
}
.motton-specx tbody tr:nth-child(even) td{background:var(--ms-soft)}
.motton-specx tbody tr:last-child td{border-bottom:2px solid var(--ms-ink)}
.motton-specx tbody td:first-child{
  font-weight:500;
  color:var(--ms-ink);
  width:44%;
}
.motton-specx tbody td:not(:first-child){
  color:#2b343b;
  font-variant-numeric:tabular-nums;
}
.motton-specx td em{
  font-style:normal;
  color:var(--ms-muted);
  font-size:12.5px;
  display:block;
  margin-top:2px;
}
.motton-specx .ms-notes{
  margin:0;
  padding:0;
  list-style:none;
  font-size:13px;
  color:var(--ms-muted);
}
.motton-specx .ms-notes li{
  position:relative;
  padding:0 0 8px 16px;
}
.motton-specx .ms-notes li::before{
  content:"—";
  position:absolute;
  left:0;
  top:0;
  color:var(--ms-accent);
}
.motton-specx .ms-foot{
  margin-top:26px;
  padding:16px 18px;
  background:var(--ms-ink);
  color:#e8ecef;
  font-size:13.5px;
  line-height:1.6;
}
.motton-specx .ms-foot b{color:#fff}
.motton-specx .ms-foot a{color:#fff;text-decoration:underline;text-underline-offset:2px}
@media (max-width:640px){
  .motton-specx h2{font-size:22px}
  .motton-specx .ms-lead{font-size:14.5px}
  .motton-specx table{font-size:12.5px;min-width:460px}
  .motton-specx thead th,.motton-specx tbody td{padding:9px 10px}
  .motton-specx tbody td:first-child{width:38%}
}
@media print{
  .motton-specx{max-width:100%}
  .motton-specx tbody tr:nth-child(even) td{background:#fff}
}
</style>
</head>
<body>
<div class="motton-specx">
  <p class="ms-eyebrow">Motton Metal &nbsp;·&nbsp; Modular Metal Sheds</p>
  <h2>Modular Metal Shed — Technical Specifications</h2>
  <p class="ms-lead">
    <strong>Modular by design.</strong> The shed is built from repeatable module increments, so
    <strong>both length and width can be extended or reduced</strong> to fit the site, the product line
    or the shipping plan — without re-tooling the panel and frame system. One platform covers compact
    garden units and extended multi-module footprints, with the same 25 mm composite wall panels,
    the same doors and the same hardware throughout.
  </p>
  <div class="ms-chips">
    <span class="ms-chip"><b>Modular length &amp; width</b> — sized in module increments</span>
    <span class="ms-chip"><b>2,000 mm</b> overall height</span>
    <span class="ms-chip"><b>25 mm</b> insulated composite wall panel</span>
    <span class="ms-chip"><b>E0</b> formaldehyde emission</span>
    <span class="ms-chip"><b>IP25</b> sealed panel joints</span>
    <span class="ms-chip"><b>15-year</b> corrosion resistance</span>
  </div>
  <div class="ms-block">
    <h3><span>01</span> Dimensions &amp; Modular Build</h3>
    <div class="ms-scroll">
    <table>
      <thead>
        <tr>
          <th>Parameter</th>
          <th>Metric</th>
          <th>Imperial</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Length &amp; width<em>Both axes are modular</em></td>
          <td colspan="2">Extendable or reducible in module increments — each added module repeats the same panel, frame and hardware set</td>
        </tr>
        <tr>
          <td>Overall external height</td>
          <td>2,000 mm</td>
          <td>78.7 in (6 ft 6.7 in)</td>
        </tr>
        <tr>
          <td>Internal clear height</td>
          <td>1,880 mm</td>
          <td>74.0 in</td>
        </tr>
        <tr>
          <td>Floor panel clearance from ground</td>
          <td>60 mm</td>
          <td>2.4 in</td>
        </tr>
        <tr>
          <td>Composite wall panel thickness<em>Insulated sandwich panel</em></td>
          <td>25 mm</td>
          <td>1.0 in</td>
        </tr>
        <tr>
          <td>Door opening width<em>Two standard options</em></td>
          <td>700 mm / 640 mm</td>
          <td>27.6 in / 25.2 in</td>
        </tr>
        <tr>
          <td>Door opening height<em>Excluding low-profile units</em></td>
          <td>1,830 mm</td>
          <td>72.0 in</td>
        </tr>
        <tr>
          <td>Window / vent diameter<em>Round opening</em></td>
          <td>300 mm</td>
          <td>11.8 in</td>
        </tr>
        <tr>
          <td>Window centre height from ground</td>
          <td>1,650 mm</td>
          <td>65.0 in</td>
        </tr>
        <tr>
          <td>Planter shelf height from ground</td>
          <td>1,000 mm</td>
          <td>39.4 in</td>
        </tr>
        <tr>
          <td>Planter shelf width</td>
          <td>150 mm</td>
          <td>5.9 in</td>
        </tr>
      </tbody>
    </table>
    </div>
  </div>
  <div class="ms-block">
    <h3><span>02</span> Performance &amp; Compliance</h3>
    <div class="ms-scroll">
    <table>
      <thead>
        <tr>
          <th>Property</th>
          <th>Rating</th>
          <th>Remarks</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Wind resistance</td>
          <td>Up to Beaufort 10</td>
          <td>≤ 102 km/h / 63 mph</td>
        </tr>
        <tr>
          <td>Snow resistance</td>
          <td>Up to 300 mm snow cover</td>
          <td>11.8 in</td>
        </tr>
        <tr>
          <td>Seismic resistance</td>
          <td>Seismic intensity 9</td>
          <td>Intensity scale, not Richter magnitude</td>
        </tr>
        <tr>
          <td>Fire rating</td>
          <td>Class A0</td>
          <td>Non-combustible material grade</td>
        </tr>
        <tr>
          <td>Formaldehyde emission</td>
          <td>E0 grade</td>
          <td>≤ 0.050 mg/m³</td>
        </tr>
        <tr>
          <td>Ingress protection</td>
          <td>IP25</td>
          <td>Panel joints protected against water jets</td>
        </tr>
        <tr>
          <td>Corrosion resistance</td>
          <td>15 years</td>
          <td>Coated panel system</td>
        </tr>
        <tr>
          <td>Thermal performance</td>
          <td>Interior–exterior ΔT ≤ 2 °C</td>
          <td>Under continuous direct sun exposure</td>
        </tr>
      </tbody>
    </table>
    </div>
  </div>
  <div class="ms-block">
    <h3><span>03</span> Notes</h3>
    <ul class="ms-notes">
      <li>All dimensions are nominal and subject to normal manufacturing tolerance. Final length, width and module count are fixed at order confirmation.</li>
      <li>Length and width are modular: each additional module adds the same panel, frame and hardware set, so a single product platform covers multiple footprint sizes.</li>
      <li>Imperial values are direct conversions and rounded; metric values govern.</li>
      <li>“Seismic intensity 9” refers to the seismic intensity scale used in Chinese structural codes, not to Richter magnitude 9.</li>
      <li>IP25: first digit 2 — protected against solid objects ≥ 12.5 mm; second digit 5 — protected against water jets from any direction.</li>
      <li>Fire and formaldehyde grades are quoted to the Chinese material classification system; ask our engineering team for the equivalent EN / ASTM classification if your market requires it.</li>
    </ul>
  </div>
  <div class="ms-foot">
    <b>Custom lengths, widths, layouts and finishes are available.</b> Motorized access, shelving,
    anchoring and private-label packaging can be specified per project. Contact Motton for a
    dimensioned drawing and quotation — <a href="https://www.mottonmetal.com">mottonmetal.com</a>
  </div>
</div>
SPECHTML;
});
