/* Block-markup rules: the patterns use core blocks (group, heading, paragraph, buttons, list, details, table). */
.wp-block-group:not(.ewdt-wrap) { margin-block: 0; }
.ewdt-pagebody > * { margin-block: 0; }
.ewdt-pagebody p:empty { display: none; }

/* Icon masks */
.ewdt-m { display: inline-block; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; flex: none; vertical-align: -.2em; }
.ewdt-card__ico { display: inline-grid; }
.ewdt-card__ico .ewdt-m { width: 26px; height: 26px; }
.ewdt-chips .ewdt-m { width: 16px; height: 16px; color: var(--orange); margin-right: 7px; vertical-align: -3px; }

/* Heroes made of blocks */
.ewdt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%); }
.ewdt-hero--page .ewdt-eyebrow, .ewdt-hero--home .ewdt-eyebrow { margin-bottom: 18px; }
.ewdt-hero h1.ewdt-hero__title { text-transform: uppercase; }
.ewdt-hero__copy > .wp-block-buttons { margin: 28px 0 24px; }
.ewdt-hero__art svg { display: block; width: 100%; height: auto; }
.ewdt-hero__pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.ewdt-hero__pills li { position: relative; padding-left: 22px; margin: 0; }
.ewdt-hero__pills li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; background: var(--orange); -webkit-mask: var(--m-check) center / contain no-repeat; mask: var(--m-check) center / contain no-repeat; }
.ewdt-hero__crumbs p { margin: 0; }

/* Buttons from the button block */
.ewdt-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.ewdt-b .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; }
.ewdt-b .wp-block-button__link:hover { transform: translateY(-2px); }
.ewdt-b--primary .wp-block-button__link { background: var(--orange); color: var(--ink); box-shadow: 0 8px 22px rgba(244, 119, 33, .35); }
.ewdt-b--primary .wp-block-button__link:hover { background: var(--amber); color: var(--ink); }
.ewdt-b--dark .wp-block-button__link { background: var(--ink); color: #fff; }
.ewdt-b--dark .wp-block-button__link:hover { background: var(--navy-2); color: #fff; }
.ewdt-b--ghost .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ewdt-b--ghost .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ewdt-b--ghost-dark .wp-block-button__link { background: transparent; border-color: var(--ink); color: var(--ink); }
.ewdt-b--ghost-dark .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.ewdt-center { display: flex; justify-content: center; margin-top: 36px; }
.ewdt-contact__info .ewdt-b--ghost-dark .wp-block-button__link { border-color: rgba(255, 255, 255, .4); color: #fff; }
.ewdt-contact__info .ewdt-b--ghost-dark .wp-block-button__link:hover { background: #fff; color: var(--ink); }
.ewdt-size .ewdt-btns { margin-top: auto; }
.ewdt-size .ewdt-b { width: 100%; }
.ewdt-size .ewdt-b .wp-block-button__link { width: 100%; }

/* Eyebrow inside head / dark sections */
.ewdt-head p.ewdt-eyebrow { color: var(--orange-d); }
.ewdt-section--dark .ewdt-eyebrow { color: var(--amber); }
.ewdt-section .ewdt-split > .wp-block-group > p.ewdt-eyebrow { margin-bottom: 18px; }
.ewdt-section--dark .ewdt-head--light p.ewdt-eyebrow { color: var(--amber); }

/* Stats */
.ewdt-stats > .ewdt-stat { background: rgba(12, 21, 32, .7); padding: 22px 24px; }
.ewdt-stats--stack > .ewdt-stat, .ewdt-split > .ewdt-stats > .ewdt-stat { background: var(--ink); }
.ewdt-split > .ewdt-stats { grid-template-columns: 1fr; background: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ewdt-stat p { margin: 0; color: #b9c8d8; font-size: .92rem; }
.ewdt-stat p.ewdt-stat__n { font: 800 3rem/1 var(--head); color: var(--amber); }

/* Cards, why, steps */
.ewdt-cards { display: grid; }
.ewdt-card h3 { margin-bottom: .35em; }
.ewdt-why > .ewdt-why__item { padding: 22px; border-radius: var(--radius); background: var(--sand); }
.ewdt-why .ewdt-card__ico { width: 44px; height: 44px; margin-bottom: 12px; }
.ewdt-why .ewdt-card__ico .ewdt-m { width: 24px; height: 24px; }
.ewdt-why__item h3 { font-size: 1.25rem; margin-bottom: .3em; }
.ewdt-why__item p { margin: 0; color: var(--steel); font-size: .96rem; }
.ewdt-why__item:hover .ewdt-card__ico { background: var(--orange); color: var(--ink); }
.ewdt-steps > .ewdt-step { position: relative; padding: 28px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.ewdt-section:not(.ewdt-section--dark) .ewdt-steps > .ewdt-step { background: var(--ink); }
.ewdt-step h3 { font-size: 1.35rem; color: #fff; }
.ewdt-step p { margin: 0; color: #b9c8d8; font-size: .96rem; }
.ewdt-step p.ewdt-steps__n { font: 800 3.2rem/1 var(--head); color: var(--orange); margin-bottom: 10px; }

/* Sizes */
.ewdt-size { position: relative; }
.ewdt-size > p.ewdt-size__flag { position: absolute; top: -14px; left: 28px; margin: 0; background: var(--orange); color: var(--ink); font: 800 .75rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.ewdt-size__specs { margin: 8px 0 18px; border-top: 1px solid var(--line); }
.ewdt-spec { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.ewdt-spec span { color: var(--steel); }
.ewdt-spec strong { text-align: right; }
.ewdt-size p.ewdt-size__best { margin: 4px 0 8px; color: var(--steel); letter-spacing: .1em; font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.ewdt-size ul.ewdt-checks { flex: 1; margin-bottom: 22px; }
.ewdt-size h3 { margin: 12px 0 .1em; }

/* Lists with icons */
ul.ewdt-checks, ul.ewdt-list-x { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
ul.ewdt-checks.wp-block-list li { position: relative; padding-left: 28px; margin: 0; display: block; }
ul.ewdt-checks.wp-block-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--orange-d); -webkit-mask: var(--m-check) center / contain no-repeat; mask: var(--m-check) center / contain no-repeat; }
ul.ewdt-checks--big.wp-block-list li { padding: 16px 20px 16px 52px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 1.1rem; }
ul.ewdt-checks--big.wp-block-list li::before { left: 20px; top: 1.15em; }
:root { --m-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.ewdt-yesno > div { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.ewdt-yesno > .ewdt-yesno__no { background: #fbeceb; }

/* FAQ details block */
.ewdt-faq > .wp-block-details { margin: 0; }
.ewdt-faq__item > :not(summary) { margin: 0; padding: 0 22px 20px; color: var(--steel); }
.ewdt-faq__item > p { padding-top: 0; }

/* Table */
.ewdt-table-wrap { margin: 0; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.ewdt-table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; }
.ewdt-table-wrap th, .ewdt-table-wrap td { padding: 16px 20px; text-align: left; border: 0; border-bottom: 1px solid var(--line); }
.ewdt-table-wrap thead th { background: var(--ink); color: #fff; font: 700 .85rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.ewdt-table-wrap tbody tr:hover { background: var(--sand); }
.ewdt-table-wrap tbody td:first-child { font: 800 1.4rem/1 var(--head); text-transform: uppercase; }
.ewdt-table-wrap tbody td:last-child { font: 800 1.5rem/1 var(--head); color: var(--orange-d); }

/* Contact */
.ewdt-contact__form > h2 { margin-bottom: .2em; }
.ewdt-info { margin: 0 0 18px; color: #c9d6e3; }
.ewdt-info small { display: block; color: #8ea2b6; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.ewdt-info a { color: #fff; font-weight: 700; text-decoration: none; }
.ewdt-info a:hover { color: var(--amber); }
.ewdt-contact__info > .wp-block-buttons { margin-top: 24px; }

/* Shortcode lists */
.ewdt-citygrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ewdt-citygrid a { display: block; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.ewdt-citygrid a:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); }
.ewdt-citygrid .ewdt-m { width: 28px; height: 28px; color: var(--orange); display: block; margin-bottom: 10px; }
.ewdt-citygrid strong { display: block; font: 800 1.35rem/1.1 var(--head); text-transform: uppercase; }
.ewdt-citygrid span { color: var(--orange-d); font-size: .9rem; font-weight: 600; }
.ewdt-chips li { margin: 0; }
.ewdt-minihead { font-size: 1.1rem; color: var(--steel); }

/* Page body wrapper */
.ewdt-pagebody { overflow-x: clip; }
.ewdt-pagebody .alignfull { width: 100%; max-width: none; }

/* Reveal (class based, JavaScript on only) */
.js .ewdt-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .ewdt-reveal.is-in { opacity: 1; transform: none; }
.ewdt-cards > .ewdt-reveal:nth-child(3n+2), .ewdt-sizes > .ewdt-reveal:nth-child(2), .ewdt-steps > .ewdt-reveal:nth-child(2) { transition-delay: .1s; }
.ewdt-cards > .ewdt-reveal:nth-child(3n+3), .ewdt-sizes > .ewdt-reveal:nth-child(3), .ewdt-steps > .ewdt-reveal:nth-child(3) { transition-delay: .2s; }
.ewdt-steps > .ewdt-reveal:nth-child(4) { transition-delay: .3s; }

@media (max-width: 1100px) {
	.ewdt-citygrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.ewdt-hero__grid .ewdt-hero__art { max-width: 420px; margin-inline: auto; order: -1; }
	.ewdt-hero__grid > .ewdt-hero__copy { order: 2; }
}
@media (max-width: 640px) {
	.ewdt-citygrid { grid-template-columns: 1fr 1fr; }
	.ewdt-hero__copy .ewdt-b, .ewdt-hero__copy .ewdt-b .wp-block-button__link { width: 100%; }
	.ewdt-table-wrap tbody td:first-child { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
	.js .ewdt-reveal { opacity: 1; transform: none; }
}
