/* Reading/discovery additions. Deliberately scoped away from checkout/admin. */
.ed-measure-form, .ed-measure-form *, .ed-faq-tools, .ed-faq-tools * { box-sizing: border-box; }
#hoja-medidas { font-family: Inter, Arial, sans-serif; line-height: 1.6; }
#hoja-medidas .seo-eyebrow { color: #145a46; background: #e5f2eb; border-color: #aac5bc; }
#hoja-medidas a { color: #145a46; text-underline-offset: .2em; }
.container.article-hero-content { width: min(1280px, calc(100% - 40px)); }
[data-js-tools][hidden], [data-faq-empty][hidden], .faq-list > details[hidden], [data-connection-status][hidden], [data-action-status][hidden] { display: none !important; }
.ed-tool, .ed-discovery-form input, .ed-discovery-form select, #edFaqSearch, .ed-measure-form input, .ed-measure-form select, .ed-measure-form textarea { min-height: 44px; border: 1px solid #879f97; border-radius: 9px; padding: .65rem .9rem; background: #fff; color: #143d32; font: inherit; max-width: 100%; }
.ed-tool { cursor: pointer; font-weight: 650; text-decoration: none; }
.ed-tool:hover { background: #eaf6f1; }
.ed-tool:focus-visible, .ed-reading-tools a:focus-visible, .ed-discovery-form :focus-visible, .ed-measure-form :focus-visible { outline: 3px solid #075c46; outline-offset: 3px; }
.ed-tool-row, .ed-topic-links, .ed-blog-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: 1rem; }
.ed-topic-links a, .ed-blog-pagination a { padding: .65rem .9rem; border: 1px solid #aac5bc; border-radius: 9px; color: #164c3d; background: white; text-decoration: none; min-height: 44px; }
.ed-topic-links [aria-current], .ed-blog-pagination [aria-current] { color: #fff; background: #125c47; border-color: #125c47; }
.ed-discovery-form { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; padding: 1.4rem; border: 1px solid #bfd3cb; background: #f4faf7; border-radius: 16px; }
.ed-discovery-form > div { flex: 1 1 180px; }
.ed-discovery-form label, .ed-faq-tools label, .ed-measure-form label { display: block; font-weight: 650; margin-bottom: .5rem; }
.ed-discovery-form input, .ed-discovery-form select, #edFaqSearch { width: 100%; }
.ed-blog-pagination, .ed-blog-empty { grid-column: 1 / -1; }
.ed-blog-empty { padding: 2rem; border: 1px dashed #a3bdb2; border-radius: 16px; }
.ed-reading-tools { padding-block: 1.5rem; }
.ed-reading-tools nav:first-child { font-size: .9rem; line-height: 1.8; overflow-wrap: anywhere; }
.ed-reading-tools a, .article-content a:not(.btn), .ed-faq-link { text-decoration: underline; text-underline-offset: .2em; }
.ed-article-index { padding: 1.25rem 1.5rem; background: #eef7f2; border-left: 4px solid #12684e; border-radius: 4px 12px 12px 4px; }
.ed-article-index ol { columns: 2; padding-left: 1.5rem; margin-bottom: 0; }
.ed-article-index li { margin: .55rem 0; break-inside: avoid; }
.ed-heading-link { font-size: .65em; margin-left: .55rem; color: #306a55; }
.article-content { min-width: 0; }
.article-content > p, .article-editorial-section p { max-width: 72ch; line-height: 1.8; }
.ed-large-reading .article-content p, .ed-large-reading .article-content li { font-size: 1.25rem; }
.article-content h2[id], .faq-list details[id], #articulos, #hoja-medidas { scroll-margin-top: 140px; }
.article-table-wrap { max-width: 100%; overflow-x: auto; }
.article-table-wrap caption { text-align: left; font-weight: 700; padding: .8rem; }
.ed-faq-area { min-width: 0; }
.ed-faq-tools { padding: 1.25rem; margin-bottom: 1.5rem; border: 1px solid #bfd3cb; border-radius: 14px; background: #f4faf7; }
.ed-faq-link { display: inline-block; margin: .7rem 0; font-size: .9rem; }
.ed-product-tools { max-width: 1280px; margin: 1rem auto; padding-inline: 1rem; justify-content: flex-end; }
.ed-connection-status, .ed-action-status { position: fixed; z-index: 2000; left: 50%; transform: translateX(-50%); bottom: 95px; width: min(540px, calc(100% - 28px)); margin: 0; background: #123d30; color: #fff; padding: 1rem 1.25rem; border-radius: 12px; box-shadow: 0 8px 30px #0003; font-size: 1rem; }
.ed-connection-status { top: 12px; bottom: auto; }
.ed-measure-form { padding: clamp(1rem, 3vw, 2rem); border: 1px solid #aac5bc; border-radius: 18px; background: #f4faf7; }
.ed-measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.ed-measure-form fieldset { border: 0; padding: 0; margin: 1.5rem 0; min-width: 0; }
.ed-measure-form legend { font-weight: 750; padding: 0; margin-bottom: 1rem; }
.ed-measure-form input:not([type=checkbox]), .ed-measure-form textarea { width: 100%; }
.ed-measure-form label:has([type=checkbox]) { display: flex; align-items: center; gap: .75rem; font-weight: 400; }
.ed-measure-form input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; }
.ed-measure-form [aria-invalid=true] { border: 2px solid #a12222; }
.ed-measure-summary { white-space: pre-wrap; padding: 1rem; background: #fff; border-radius: 10px; border: 1px solid #bfd3cb; overflow-wrap: anywhere; }
.ed-measure-error { color: #971e1e; font-weight: 650; }
.ed-measure-note { font-size: .9rem; line-height: 1.6; }
@media (max-width: 600px) { .container.article-hero-content { width: calc(100% - 24px); } .ed-article-index ol { columns: 1; } .ed-measure-grid { grid-template-columns: 1fr; } .ed-product-tools { justify-content: flex-start; } .ed-discovery-form { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { .ed-tool, .ed-topic-links a { transition: none; } html { scroll-behavior: auto; } }
@media (forced-colors: active) { .ed-tool, .ed-topic-links a, .ed-discovery-form, .ed-article-index, .ed-measure-form { border: 1px solid CanvasText; } .ed-topic-links [aria-current] { outline: 2px solid Highlight; } }
@media print {
  body:has(.ed-reading-tools), body:has(.ed-product-tools), body:has(.ed-measure-form) { color: #000 !important; background: #fff !important; }
  body:has(.ed-reading-tools) :is(.ed-chrome-header,.ed-chrome-topbar,.ed-chrome-footer,.article-hero > img,.article-sidebar,.article-cta,.ed-article-index), body:has(.ed-product-tools) :is(.ed-chrome-header,.ed-chrome-topbar,.ed-chrome-footer,.product-3d,.product-related,.product-ssr-related), body:has(.ed-measure-form) :is(.ed-chrome-header,.ed-chrome-topbar,.ed-chrome-footer) { display: none !important; }
  .ed-tool-row, .ed-luxury-cookie, .ed-chrome-floating-actions, .ed-home-mobile-actions, .ed-product-mobile-bar, .ed-heading-link, .ed-connection-status, .ed-action-status { display: none !important; }
  .article-hero { min-height: 0 !important; background: #fff !important; color: #000 !important; padding: 0 !important; }
  .article-hero::before, .article-hero::after { display: none !important; }
  .article-hero h1, .article-hero p, .article-hero span { color: #000 !important; }
  .article-layout, .product-layout { display: block !important; }
  .article-content, .article-table-wrap { width: 100% !important; max-width: none; overflow: visible !important; }
  .article-table-wrap table { min-width: 0 !important; width: 100%; }
  h1,h2,h3 { break-after: avoid; } tr, .ed-measure-summary { break-inside: avoid; }
  .ed-measure-form textarea { height: auto; min-height: 80px; }
  .ed-measure-form { break-inside: auto; }
  body.ed-print-measure main > section:not(:has(#measureForm)) { display: none !important; }
  body:has(.ed-product-tools) main :is(button, select, input, .product-mobile-buybar) { display: none !important; }
}
