/* ==========================================================================
   PKE-BUY Supporting Cluster Hub Styles (Bagged, Density, Roof Slope)
   Preserves "PKE IranYekan X" font untouched. Zero mobile overflow.
   ========================================================================== */

.pke-cl-card {
    margin: 28px 0;
    padding: clamp(18px, 2.6vw, 28px);
    background: #fff;
    border: 1px solid #e7e2da;
    border-top: 4px solid #ff9934;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.pke-cl-kicker {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff4e6;
    border: 1px solid #f5cfa2;
    color: #a84609;
    font-size: 12px !important;
    font-weight: 700;
    margin-bottom: 8px;
}

.pke-cl-card h2 {
    margin: 0 0 10px !important;
    font-size: clamp(18px, 2.1vw, 23px) !important;
    line-height: 1.5 !important;
    color: #242424 !important;
}

.pke-cl-lead {
    margin: 0 0 18px !important;
    padding: 13px 16px;
    background: #fff8ee;
    border-inline-start: 4px solid #ff9934;
    border-radius: 8px;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    color: #362f28 !important;
}

.pke-cl-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e7e2da;
    border-radius: 10px;
    background: #fff;
}

.pke-cl-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    margin: 0 !important;
}

.pke-cl-table caption {
    caption-side: top;
    padding: 10px 14px;
    text-align: start;
    font-size: 12.5px !important;
    color: #5c564f;
    background: #faf8f5;
    border-bottom: 1px solid #e7e2da;
}

.pke-cl-table thead th {
    background: #242424;
    color: #fff;
    padding: 11px 12px;
    text-align: start;
    font-size: 13px !important;
    font-weight: 700;
    white-space: nowrap;
}

.pke-cl-table tbody th,
.pke-cl-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #ede8e0;
    font-size: 13.5px !important;
    color: #2a2a2a;
    vertical-align: middle;
    white-space: nowrap;
}

.pke-cl-table tbody tr:hover {
    background: #fffaf2;
}

.pke-cl-table tbody th a {
    color: #242424 !important;
    font-weight: 800;
    text-decoration: none;
}

.pke-cl-table tbody th a:hover {
    color: #d97214 !important;
}

.pke-cl-price-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff6eb;
    border: 1px solid #ff9934;
    color: #242424 !important;
    font-size: 13px !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pke-cl-price-link:hover {
    background: #ff9934;
}

.pke-cl-save-col {
    color: #15803d !important;
    font-weight: 800;
}

.pke-cl-cta-bar {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #242424 0%, #312820 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.pke-cl-cta-bar strong {
    display: block;
    font-size: 15px !important;
    color: #fff;
    margin-bottom: 3px;
}

.pke-cl-cta-bar span {
    display: block;
    font-size: 13px !important;
    color: rgba(255, 255, 255, .82);
}

.pke-cl-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pke-cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13.5px !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.pke-cl-btn-primary {
    background: #ff9934;
    color: #1f1a15 !important;
}

.pke-cl-btn-primary:hover {
    background: #ffa94f;
}

.pke-cl-btn-dark {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff !important;
}

.pke-cl-btn-dark:hover {
    background: rgba(255, 255, 255, .22);
}

.pke-cl-spoke-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ede8e0;
}

.pke-cl-spoke-links a {
    color: #b45309 !important;
    font-size: 13.5px !important;
    font-weight: 700;
    text-decoration: none;
}

.pke-cl-spoke-links a:hover {
    text-decoration: underline;
}

/* Fix Materialize CSS & style #unit-converter (density) and .pke-ps-calculator (slope) */
.pke-weight-tool {
    margin: 26px 0;
    padding: clamp(18px, 2.5vw, 26px);
    background: #fff;
    border: 1px solid #e7e2da;
    border-top: 4px solid #ff9934;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.pke-weight-tool h2 {
    margin: 0 0 8px !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    color: #242424 !important;
}

.pke-weight-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 16px 0 18px;
}

@media (max-width: 640px) {
    .pke-weight-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pke-weight-fields label {
    display: block;
    font-size: 13.5px !important;
    font-weight: 700;
    color: #242424;
    margin: 0;
}

.pke-weight-tool input[type="text"],
.pke-ps-calculator input {
    display: revert !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 46px !important;
    padding: 0 12px !important;
    margin: 6px 0 0 !important;
    border: 1.5px solid #cfc6b8 !important;
    border-radius: 8px !important;
    background-color: #faf8f5 !important;
    color: #242424 !important;
    font-size: 14.5px !important;
    box-shadow: none !important;
}

.pke-weight-tool input[type="text"]:focus,
.pke-ps-calculator input:focus {
    outline: none !important;
    border-color: #ff9934 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 153, 52, .22) !important;
}

.pke-weight-tool button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #ff9934;
    color: #1f1a15;
    font-size: 14.5px !important;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s;
}

.pke-weight-tool button[type="submit"]:hover {
    background: #ffa94f;
}

.pke-weight-error {
    margin: 12px 0 0 !important;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c !important;
    font-size: 13.5px !important;
    font-weight: 700;
}

.pke-weight-results {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    background: linear-gradient(145deg, #242424 0%, #1a1816 100%);
    color: #fff;
    border-top: 3px solid #ff9934;
}

.pke-weight-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
}

.pke-weight-res-item {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 11px 13px;
}

.pke-weight-res-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 3px;
}

.pke-weight-res-item strong {
    display: block;
    font-size: 15px !important;
    color: #ffd09b;
    font-weight: 800;
}

.pke-weight-note {
    margin: 14px 0 8px !important;
    font-size: 13px !important;
    color: #666 !important;
}

/* Clean semantic styling for Gutenberg .wp-block-table inside density/bagged posts */
.pke20-editorial .wp-block-table {
    margin: 18px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pke20-editorial .wp-block-table table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 10px;
    overflow: hidden;
}

.pke20-editorial .wp-block-table caption {
    caption-side: top;
    text-align: start;
    padding: 8px 12px;
    font-size: 12.5px !important;
    color: #5c564f;
    background: #faf8f5;
    border: 1px solid #e7e2da;
    border-bottom: 0;
}

.pke20-editorial .wp-block-table thead th {
    background: #242424;
    color: #fff;
    padding: 10px 12px;
    text-align: start;
    font-size: 13.5px !important;
    white-space: nowrap;
}

.pke20-editorial .wp-block-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #ede8e0;
    font-size: 13.5px !important;
    color: #2a2a2a;
}

.pke20-editorial .wp-block-table tbody tr:nth-child(even) td {
    background: #faf8f5;
}

/* Full-width Corporate7 clean wrapper for Slope Experience (Post 1619) */
.pke20-page:has([data-pke-slope-hub="1"]) .pages-wrappers > article > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pke20-page:has([data-pke-slope-hub="1"]) .pke20-editorial {
    margin: 0 !important;
}

.pke20-page:has([data-pke-slope-hub="1"]) .pages-wrappers ~ .container {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin: 28px auto 48px;
    padding: 0;
}

.pke-ps-crumb {
    margin: 0 0 14px;
}

.pke-ps-crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.pke-ps-crumb li {
    color: rgba(255, 255, 255, .86) !important;
}

.pke-ps-crumb a {
    color: #ff9934 !important;
    text-decoration: none;
}

.pke-ps-crumb a:hover {
    text-decoration: underline;
}

.pke-cl-slope-wrap {
    padding-top: 0 !important;
}

/* ==========================================================================
   Pillar Editorial System (What Is Pumice 1327 & Future Pillar Articles)
   ========================================================================== */
.pke-pillar-answer {
    margin: 0 0 24px;
    padding: clamp(18px, 2.5vw, 24px);
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border: 1px solid #f2d5b1;
    border-inline-start: 5px solid #ff9934;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

.pke-pillar-answer-tag {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #242424;
    color: #ff9934;
    font-size: 12px !important;
    font-weight: 700;
}

.pke-pillar-answer p {
    margin: 0 0 14px !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    color: #242424 !important;
}

.pke-pillar-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pke-pillar-facts > div {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 8px;
}

.pke-pillar-facts span {
    display: block;
    font-size: 12px !important;
    color: #6b635a;
    margin-bottom: 3px;
}

.pke-pillar-facts strong {
    display: block;
    font-size: 13.5px !important;
    color: #242424;
    font-weight: 800;
}

.pke-pillar-toc {
    margin: 0 0 28px;
    padding: 16px 20px;
    background: #faf8f5;
    border: 1px solid #e7e2da;
    border-radius: 10px;
}

.pke-pillar-toc-title {
    display: block;
    font-size: 14.5px !important;
    font-weight: 800;
    color: #242424;
    margin-bottom: 10px;
}

.pke-pillar-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
    margin: 0 !important;
    padding-inline-start: 20px !important;
}

.pke-pillar-toc a {
    color: #362f28 !important;
    font-size: 13.5px !important;
    text-decoration: none;
}

.pke-pillar-toc a:hover {
    color: #d97214 !important;
    text-decoration: underline;
}

.pke-pillar-fig {
    margin: 20px 0 24px !important;
    background: #faf8f5;
    border: 1px solid #e7e2da;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.pke-pillar-fig img {
    display: block;
    width: 100%;
    max-width: 740px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}

.pke-pillar-fig figcaption {
    padding: 10px 14px;
    font-size: 12.5px !important;
    color: #5c564f;
    background: #f5f1eb;
    border-top: 1px solid #e7e2da;
}

.pke-pillar-note {
    margin: 18px 0 22px;
    padding: 14px 18px;
    background: #242424;
    color: #fff !important;
    border-inline-start: 4px solid #ff9934;
    border-radius: 10px;
}

.pke-pillar-note strong {
    color: #ff9934;
}

.pke-pillar-note p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
}

.pke-pillar-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.pke-pillar-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.pke-pillar-box {
    padding: 16px;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 10px;
}

.pke-pillar-box h3 {
    margin: 0 0 8px !important;
    font-size: 15.5px !important;
    color: #242424 !important;
}

.pke-pillar-box p {
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.8 !important;
    color: #4a443e !important;
}

.pke-pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff9934;
    color: #242424;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Interactive Selector & Calculator inside Pillar 1327 */
.pke-wip-sub {
    margin: 0 0 14px !important;
    font-size: 14px !important;
    color: #554e47 !important;
}

.pke-wip-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pke-wip-tab {
    padding: 9px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd6cb !important;
    background: #faf8f5 !important;
    color: #242424 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.pke-wip-tab:hover {
    border-color: #ff9934 !important;
    background: #fff4e6 !important;
}

.pke-wip-tab.is-active {
    background: #242424 !important;
    border-color: #242424 !important;
    color: #ff9934 !important;
}

.pke-wip-panel {
    padding: 18px;
    background: #faf8f5;
    border: 1px solid #e7e2da;
    border-radius: 10px;
}

.pke-wip-panel h3 {
    margin: 0 0 12px !important;
    font-size: 16.5px !important;
    color: #242424 !important;
}

.pke-wip-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.pke-wip-meta-row > div {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 8px;
}

.pke-wip-meta-row span {
    display: block;
    font-size: 12px !important;
    color: #6b635a;
}

.pke-wip-meta-row strong {
    display: block;
    font-size: 14px !important;
    color: #242424;
    margin-top: 2px;
}

.pke-wip-panel p {
    margin: 0 0 14px !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: #362f28 !important;
}

.pke-wip-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pke-wip-outline-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #d7cfc3;
    background: #fff;
    color: #242424 !important;
    font-size: 13px !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pke-wip-outline-btn:hover {
    border-color: #ff9934;
    color: #b85606 !important;
}

.pke-wip-calc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pke-wip-calc-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.pke-wip-calc-grid span {
    font-size: 12.5px !important;
    font-weight: 700;
    color: #362f28;
}

.pke-wip-calc-grid input,
.pke-wip-calc-grid select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1.5px solid #cfc6b9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #242424 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

.pke-wip-calc-grid input:focus,
.pke-wip-calc-grid select:focus {
    border-color: #ff9934 !important;
    outline: 2px solid rgba(255, 153, 52, .22) !important;
    outline-offset: 0 !important;
}

#qorveh-grades-live .pke-cl-table,
#pke-size-comparison .pke-cl-table,
#qorveh-dispatch-tool .pke-cl-table {
    min-width: 600px;
}

#qorveh-grades-live .pke-cl-table tbody td:nth-child(4),
#pke-size-comparison .pke-cl-table tbody td:nth-child(4) {
    white-space: normal !important;
    min-width: 170px;
    line-height: 1.65;
}

.pke-qd-panel {
    margin-bottom: 18px;
}

.pke-qd-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.pke-qd-stats > div {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 8px;
}

.pke-qd-stats span {
    display: block;
    font-size: 12px !important;
    color: #6b635a;
}

.pke-qd-stats strong {
    display: block;
    font-size: 13.5px !important;
    color: #242424;
    margin-top: 3px;
}

.pke-qd-table-wrap {
    margin-top: 14px;
}

@media (max-width: 780px) {
    .pke-qd-stats {
        grid-template-columns: 1fr;
    }
}

.pke-wip-calc-out {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.pke-wip-calc-stat {
    padding: 12px 14px;
    background: #faf8f5;
    border: 1px solid #e7e2da;
    border-radius: 8px;
}

.pke-wip-calc-stat.is-highlight {
    background: #242424;
    border-color: #242424;
}

.pke-wip-calc-stat span {
    display: block;
    font-size: 12px !important;
    color: #6b635a;
    margin-bottom: 4px;
}

.pke-wip-calc-stat.is-highlight span {
    color: rgba(255, 255, 255, .8);
}

.pke-wip-calc-stat strong {
    display: block;
    font-size: 14.5px !important;
    color: #242424;
    font-weight: 800;
}

.pke-wip-calc-stat.is-highlight strong {
    color: #ff9934;
}

.pke-wip-calc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.pke-wip-calc-foot small {
    font-size: 12.5px !important;
    color: #5c564f;
}

/* Pillar FAQ Accordion */
.pke-pillar-faq details {
    margin-bottom: 10px;
    border: 1px solid #e7e2da;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.pke-pillar-faq summary {
    padding: 14px 16px;
    font-size: 15px !important;
    font-weight: 700;
    color: #242424;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pke-pillar-faq summary::-webkit-details-marker {
    display: none;
}

.pke-pillar-faq summary::after {
    content: "+";
    font-size: 18px;
    font-weight: 800;
    color: #d97214;
    flex-shrink: 0;
}

.pke-pillar-faq details[open] summary {
    background: #fff9f0;
    border-bottom: 1px solid #f0e1cd;
}

.pke-pillar-faq details[open] summary::after {
    content: "−";
}

.pke-pillar-faq details p {
    margin: 0 !important;
    padding: 14px 16px;
    font-size: 14px !important;
    line-height: 1.9 !important;
    color: #3a342e !important;
}

.pke-pillar-review-box {
    margin-top: 26px;
    padding: 16px 20px;
    background: #faf8f5;
    border: 1px solid #e7e2da;
    border-radius: 10px;
    font-size: 13.5px !important;
    color: #4a443e;
}

@media (max-width: 900px) {
    .pke-pillar-facts,
    .pke-wip-calc-grid,
    .pke-wip-calc-out,
    .pke-pillar-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pke-pillar-toc ol,
    .pke-pillar-grid-2,
    .pke-wip-meta-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .pke-pillar-facts,
    .pke-wip-calc-grid,
    .pke-wip-calc-out,
    .pke-pillar-grid-3 {
        grid-template-columns: 1fr;
    }
}
