/* 9themes storefront. Colours, fonts and sizes come from theme.json; this file adds the layout details. */

:root {
	--nt-line: var(--wp--preset--color--line);
	--nt-shadow: var(--wp--custom--shadow);
	--nt-radius: var(--wp--custom--radius);
	--nt-radius-lg: var(--wp--custom--radius-lg);
	--nt-ease: var(--wp--custom--ease);
}

@view-transition { navigation: auto; }

/* ---------- Basics ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; padding: .75rem 1rem; background: var(--wp--preset--color--ink); color: #fff; top: .5rem; left: .5rem; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--indigo); outline-offset: 3px; border-radius: 2px; }
img { height: auto; max-width: 100%; }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
main > .wp-block-group:first-child, main > .alignfull:first-child { margin-top: 0; }
main { margin-block: 0; }
body .is-layout-constrained > .alignwide { max-width: var(--wp--style--global--wide-size); }

/* "Example" tag for sample content */
.nt-example { display: inline-block; vertical-align: middle; margin: 0 0 0 .6rem; font: 600 .75rem/1 var(--wp--preset--font-family--body); letter-spacing: .01em; padding: .3em .6em; border: 1px dashed currentColor; border-radius: 4px; color: var(--wp--preset--color--body-text); }
p.nt-example { margin: 0; }

/* Quiet text link with indigo underline */
.nt-text-link a { font-weight: 600; text-decoration-color: var(--wp--preset--color--indigo); }

/* Outline button for dark backgrounds */
.wp-block-button.is-style-nt-on-dark .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.wp-block-button.is-style-nt-on-dark .wp-block-button__link:hover { border-color: #fff; background: transparent; }

/* White card block style */
.wp-block-group.is-style-nt-card { background: #fff; border: 1px solid var(--nt-line); border-radius: var(--nt-radius-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--nt-shadow); }

/* ---------- Header ---------- */
.nt-header { position: sticky; top: 0; z-index: 40; background: rgba(244,244,248,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.admin-bar .nt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nt-header { top: 46px; } }
.nt-header.is-scrolled { border-bottom-color: var(--nt-line); }
.nt-header-row { min-height: 72px; gap: clamp(12px, 2.5vw, 36px) !important; }
.nt-brand { gap: 0 !important; flex-shrink: 0; }
.nt-brand .wp-block-site-logo img { display: block; }
.nt-brand:has(.wp-block-site-logo img) .wp-block-site-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.nt-wordmark, .nt-footer-wordmark { font-size: 1.55rem; line-height: 1; }
.nt-wordmark a { color: var(--wp--preset--color--indigo); text-decoration: none; }
.nt-nav a { text-decoration: none; color: var(--wp--preset--color--ink); }
.nt-nav a:hover { color: var(--wp--preset--color--indigo); }
.nt-nav { margin-right: auto; }
.nt-header-tools { gap: 16px !important; }
.nt-header-search { width: clamp(180px, 18vw, 280px); }
.nt-header-search .wp-block-search__inside-wrapper { border: 1px solid var(--nt-line); background: #fff; border-radius: var(--nt-radius); padding: 0; }
.nt-header-search .wp-block-search__input { border: 0; background: transparent; height: 42px; padding: 0 12px; font-size: .92rem; min-width: 0; }
.nt-header-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--faint); padding: 0 10px; margin: 0; min-width: 44px; }
.nt-header-search:focus-within .wp-block-search__inside-wrapper { border-color: var(--wp--preset--color--indigo); }
.nt-signin a { text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 500; white-space: nowrap; }
.nt-signin a:hover { color: var(--wp--preset--color--indigo); }
.nt-header-cta .wp-block-button__link { padding: .75rem 1.1rem; white-space: nowrap; }
.nt-secure { margin: 0; color: var(--wp--preset--color--body-text); }
@media (max-width: 1180px) { .nt-header-search { display: none; } }
@media (max-width: 900px) { .nt-signin { display: none; } }
@media (max-width: 599px) {
	.nt-header-row { gap: 10px !important; }
	.nt-nav { order: 3; margin-right: 0; }
	.nt-header-tools { margin-left: auto; }
	.nt-header-cta .wp-block-button__link { padding: .65rem .9rem; font-size: .9rem; }
}
/* Mobile menu overlay */
.nt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--paper); padding: 24px clamp(16px, 4vw, 48px); }
.nt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.25rem; padding: .35rem 0; }

/* ---------- Section heads ---------- */
.nt-section-head { margin-bottom: clamp(28px, 4vw, 52px); gap: 16px 48px; }
.nt-section-head p { margin: .8rem 0 0; max-width: 34em; }
.nt-section-head .nt-text-link { margin: 0; }

/* ---------- Hero ---------- */
.nt-hero { position: relative; overflow: hidden; color: #C4C4D2; }
.nt-hero > *:not(.nt-ribbon) { position: relative; z-index: 1; }
.nt-ribbon { position: absolute; z-index: 0; right: -20%; top: -30%; width: 60%; height: 170%; transform: rotate(22deg); pointer-events: none;
	background: linear-gradient(90deg, var(--wp--preset--color--indigo) 0 30%, transparent 30% 37%, #3A3A46 37% 58%, transparent 58% 65%, var(--wp--preset--color--indigo-deep) 65% 82%, transparent 82%); }
.nt-hero h1 { letter-spacing: -.028em; line-height: 1; max-width: 11em; }
.nt-lede { color: #C4C4D2; max-width: 33em; margin-top: 1.5rem !important; }
.nt-hero-search { max-width: 560px; margin-top: 2rem !important; }
.nt-hero-search .wp-block-search__inside-wrapper { background: #fff; border: 0; border-radius: 8px; padding: 7px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
.nt-hero-search .wp-block-search__input { border: 0; height: 50px; font-size: 1.05rem; padding: 0 12px; color: var(--wp--preset--color--ink); }
.nt-hero-search .wp-block-search__button { margin: 0; border-radius: 5px; padding: 0 1.5rem; }
.nt-popular { color: #9A9AAD; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1.1rem !important; }
.nt-popular a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .3em .9em; }
.nt-popular a:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.nt-hero :focus-visible { outline-color: #A79FFF; }
.nt-hero-art { margin: 0 0 0 auto !important; }
.nt-hero-art img { aspect-ratio: 556 / 526; filter: drop-shadow(0 40px 50px rgba(0,0,0,.35)); }
@media (max-width: 781px) {
	.nt-ribbon { width: 130%; right: -70%; top: 50%; height: 110%; }
	.nt-hero-art { margin: 24px auto 0 !important; }
}

/* ---------- Theme cards (product grids) ---------- */
.nt-products .wc-block-product-template, .nt-products .wp-block-woocommerce-product-template { gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px) !important; }
.nt-products .wc-block-product, .nt-products li.product { text-align: left; }
.nt-frame { position: relative; background: #fff; border: 1px solid var(--nt-line); border-radius: var(--nt-radius-lg); overflow: hidden; box-shadow: var(--nt-shadow); padding-top: 22px; margin-bottom: 16px !important; transition: transform .4s var(--nt-ease), box-shadow .4s var(--nt-ease); }
.nt-frame::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; border-bottom: 1px solid #E6E6EE; background: radial-gradient(circle at 12px 50%, #D3D3DE 3px, transparent 3.5px), radial-gradient(circle at 24px 50%, #D3D3DE 3px, transparent 3.5px), radial-gradient(circle at 36px 50%, #D3D3DE 3px, transparent 3.5px), #F1F1F6; }
.nt-frame img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; border-radius: 0 !important; }
.wc-block-product:hover .nt-frame, .nt-frame:focus-within { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(31,31,36,.05), 0 50px 80px -40px rgba(23,20,58,.55); }
.nt-card-meta { gap: 16px !important; align-items: baseline !important; }
.nt-card-meta .wp-block-post-title { font-size: 1.6rem; line-height: 1.15; margin: 0; }
.nt-card-meta .wp-block-post-title a { text-decoration: none; }
.nt-card-meta .wp-block-post-title a:hover { color: var(--wp--preset--color--indigo); }
.nt-card-meta .nt-example { margin-left: .5rem; vertical-align: .35em; }
.nt-card-price, .nt-card-price .amount { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; color: var(--wp--preset--color--indigo); white-space: nowrap; margin: 0; }
.nt-card-terms { margin-top: .4rem !important; font-size: .88rem; }
.nt-card-terms a { color: var(--wp--preset--color--faint); text-decoration: none; }
.nt-card-terms a:hover { color: var(--wp--preset--color--ink); }

/* ---------- Categories (indigo) ---------- */
.nt-categories { color: #F2F0FF; }
.nt-on-indigo { color: #F2F0FF; }
.nt-cat-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #fff; }
.nt-cat-list li { margin: 0; }
.nt-cat-list a { display: grid; gap: 4px; padding: 24px 4px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.28); transition: padding .35s var(--nt-ease); }
.nt-cat-name { font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; color: #fff; transition: color .25s; }
.nt-cat-desc { color: #F2F0FF; font-size: .98rem; max-width: 30em; }
.nt-cat-list a:hover, .nt-cat-list a:focus-visible, .nt-cat-list a.is-active { padding-left: 16px; }
.nt-cat-list a:hover .nt-cat-name, .nt-cat-list a:focus-visible .nt-cat-name, .nt-cat-list a.is-active .nt-cat-name { color: var(--wp--preset--color--ink); }
.nt-categories :focus-visible { outline-color: #fff; }
.nt-cat-preview { position: sticky; top: 110px; align-self: flex-start; display: grid; }
.nt-cat-preview .nt-cat-img { grid-area: 1 / 1; opacity: 0; transition: opacity .3s; border-color: transparent; box-shadow: 0 40px 70px -30px rgba(20,16,70,.6); margin: 0 !important; }
.nt-cat-preview .nt-cat-img.is-active { opacity: 1; }
@media (max-width: 781px) { .nt-cat-preview { display: none; } }

/* ---------- Quality ---------- */
.nt-promises { margin-top: 2.2rem; display: grid; gap: 26px; }
.nt-promises p { margin: 0; padding-left: 20px; border-left: 2px solid var(--wp--preset--color--indigo); }
.nt-promises strong, .nt-points strong { display: block; color: var(--wp--preset--color--ink); }
.nt-sheet { background: #fff; border: 1px solid var(--nt-line); border-top: 6px solid var(--wp--preset--color--indigo); border-radius: var(--nt-radius-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--nt-shadow); }
.nt-sheet-head { padding-bottom: 20px; border-bottom: 1px solid var(--wp--preset--color--ink); }
.nt-sheet-head h3 { margin: 0; }
.nt-checks { list-style: none; margin: 0; padding: 0; }
.nt-checks li { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--nt-line); }
.nt-checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.nt-checks svg { margin-top: 3px; color: var(--wp--preset--color--indigo); }
.nt-checks strong { display: block; color: var(--wp--preset--color--ink); }
.nt-checks span { font-size: .93rem; }
.nt-checks em { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--wp--preset--color--indigo-deep); background: var(--wp--preset--color--indigo-soft); border-radius: 4px; padding: .2em .55em; }

/* ---------- Call to action (charcoal) ---------- */
.nt-cta { position: relative; overflow: hidden; color: #C4C4D2; }
.nt-cta::before { content: "9"; position: absolute; right: -.06em; top: 50%; transform: translateY(-52%); font: 800 clamp(22rem, 48vw, 46rem)/1 var(--wp--preset--font-family--body); color: transparent; -webkit-text-stroke: 2px rgba(91,79,233,.55); pointer-events: none; }
.nt-cta > * { position: relative; }
.nt-cta h2 { max-width: 13em; }
.nt-on-dark { color: #C4C4D2; max-width: 34em; }
.nt-points { margin-block: clamp(36px, 5vw, 64px) !important; gap: clamp(20px, 3vw, 40px) !important; }
.nt-points p { margin: 0; padding-top: 20px; border-top: 2px solid var(--wp--preset--color--indigo); }
.nt-points strong { color: #fff; margin-bottom: 6px; font-size: 1.05rem; }
.nt-cta .wp-block-button__link { padding: 1.05rem 1.6rem; }
.nt-cta :focus-visible { outline-color: #A79FFF; }

/* ---------- Footer ---------- */
.nt-footer { color: #A4A4B4; border-top: 6px solid var(--wp--preset--color--indigo); margin-top: 0 !important; }
.nt-footer a { color: #A4A4B4; text-decoration: none; }
.nt-footer a:hover { color: #fff; }
.nt-footer-wordmark a { color: #8E85FF; }
.nt-footer-cols p { max-width: 22em; }
.nt-footer-heading { font-family: var(--wp--preset--font-family--body); font-size: .92rem !important; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.nt-footer-links { list-style: none; padding: 0; display: grid; gap: 9px; font-size: .96rem; }
.nt-footer-bottom { margin-top: clamp(40px, 5vw, 64px) !important; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #8A8A9C; }
.nt-footer-bottom p { margin: 0; }
.nt-footer-bottom a + a { margin-left: 18px; }
.nt-footer :focus-visible { outline-color: #A79FFF; }

/* ---------- Page header band (shop, blog, pages) ---------- */
.nt-page-head { border-bottom: 1px solid var(--nt-line); }
.nt-page-head h1 { margin: 0; }
.nt-page-head .wp-block-term-description, .nt-page-head .nt-page-intro { max-width: 36em; margin-top: 1rem; }
.wc-block-breadcrumbs, .woocommerce-breadcrumb { font-size: .88rem; color: var(--wp--preset--color--faint); }
.wc-block-breadcrumbs a, .woocommerce-breadcrumb a { color: var(--wp--preset--color--faint); text-decoration: none; }
.wc-block-breadcrumbs a:hover, .woocommerce-breadcrumb a:hover { color: var(--wp--preset--color--indigo); }
.nt-shop-bar { gap: 12px 24px !important; padding-block: 18px; border-bottom: 1px solid var(--nt-line); margin-bottom: clamp(28px, 4vw, 48px) !important; }
.nt-shop-bar p, .nt-shop-bar .wc-block-product-results-count { margin: 0; font-size: .92rem; }
.nt-shop-bar select { border: 1px solid var(--nt-line); border-radius: var(--nt-radius); padding: .55rem .8rem; background: #fff; font: inherit; font-size: .92rem; }
.nt-cat-chips { gap: 8px !important; }
.nt-cat-chips a { display: inline-block; text-decoration: none; border: 1px solid var(--nt-line); border-radius: 999px; padding: .38em .95em; font-size: .92rem; color: var(--wp--preset--color--ink); background: #fff; }
.nt-cat-chips a:hover { border-color: var(--wp--preset--color--ink); }
.nt-cat-chips p { margin: 0; }

/* ---------- Single theme page ---------- */
.nt-product-top { gap: clamp(28px, 4vw, 56px) !important; }
.nt-product-gallery .woocommerce-product-gallery { margin: 0; }
.nt-product-gallery .woocommerce-product-gallery__wrapper { border: 1px solid var(--nt-line); border-radius: var(--nt-radius-lg); overflow: hidden; background: #fff; box-shadow: var(--nt-shadow); }
.nt-product-gallery .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 14px !important; padding: 0; }
.nt-product-gallery .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; list-style: none; }
.nt-product-gallery .flex-control-thumbs img { border: 1px solid var(--nt-line); border-radius: 8px; opacity: .7; transition: opacity .2s, border-color .2s; }
.nt-product-gallery .flex-control-thumbs img.flex-active, .nt-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--wp--preset--color--indigo); }
.nt-buy { position: sticky; top: 96px; background: #fff; border: 1px solid var(--nt-line); border-top: 6px solid var(--wp--preset--color--indigo); border-radius: var(--nt-radius-lg); padding: clamp(20px, 2.2vw, 28px) !important; box-shadow: var(--nt-shadow); }
.admin-bar .nt-buy { top: 128px; }
.nt-buy .wp-block-post-title { font-size: clamp(2rem, 2.6vw, 2.5rem); line-height: 1; margin: 0; }
.nt-buy .nt-example { vertical-align: .5em; }
.nt-buy .wp-block-post-terms { font-size: .88rem; margin: 0 0 .6rem; }
.nt-buy .wp-block-post-terms a { color: var(--wp--preset--color--faint); text-decoration: none; }
.nt-buy .wc-block-components-product-price, .nt-buy .price { font-family: var(--wp--preset--font-family--display); font-size: 1.7rem !important; color: var(--wp--preset--color--ink); }
.nt-buy .wp-block-post-excerpt__excerpt, .nt-buy .wc-block-components-product-summary { font-size: .98rem; margin: 0; }
.nt-buy form.cart { margin: 0; }
.nt-buy table.variations { width: 100%; border: 0; margin-bottom: 12px; }
.nt-buy table.variations th, .nt-buy table.variations td { display: block; border: 0; padding: 0; text-align: left; }
.nt-buy table.variations label { font-weight: 600; color: var(--wp--preset--color--ink); font-size: .95rem; }
.nt-buy table.variations select { width: 100%; margin-top: 8px; height: 48px; border: 1px solid var(--nt-line); border-radius: 8px; padding: 0 12px; font: inherit; background: #fff; }
.nt-buy .reset_variations { font-size: .85rem; }
.nt-buy .single_variation_wrap .woocommerce-variation-price { margin: 4px 0 10px; }
.nt-buy .quantity { display: none !important; }
.nt-buy .single_add_to_cart_button, .nt-buy button.single_add_to_cart_button { width: 100%; height: 50px; border: 0; border-radius: var(--nt-radius); background: var(--wp--preset--color--indigo); color: #fff; font: 600 1rem var(--wp--preset--font-family--body); cursor: pointer; }
.nt-buy .single_add_to_cart_button:hover { background: var(--wp--preset--color--indigo-deep); }
.nt-demo-link { margin: 8px 0 0; }
.nt-btn-quiet { display: flex; align-items: center; justify-content: center; height: 50px; border: 1px solid var(--nt-line); border-radius: var(--nt-radius); font-weight: 600; text-decoration: none; color: var(--wp--preset--color--ink); }
.nt-btn-quiet:hover { border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); }
.nt-assure { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; padding-top: 14px; margin-top: 4px !important; border-top: 1px solid var(--nt-line); }
.nt-details { gap: clamp(24px, 3vw, 40px) !important; margin-top: clamp(28px, 3vw, 44px) !important; }
.nt-detail-block { border-top: 2px solid var(--wp--preset--color--ink); padding-top: 18px; }
.nt-detail-block h2 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 12px; }
.nt-included { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.nt-included li { padding-left: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B4FE9' stroke-width='2.6'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat 0 .3em; }
.nt-facts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.nt-facts th, .nt-facts td { border: 0; padding: 5px 0; vertical-align: top; }
.nt-facts th { text-align: left; font-weight: 400; color: var(--wp--preset--color--faint); }
.nt-facts td { text-align: right; color: var(--wp--preset--color--ink); }
.nt-fine { font-size: .8rem; color: var(--wp--preset--color--faint); }
@media (max-width: 781px) { .nt-buy { position: static; } }

/* Description sections on theme pages */
.nt-features { color: #F2F0FF; }
.nt-feat-grid { gap: 36px clamp(20px, 3vw, 44px) !important; }
.nt-feat-grid p { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.4); color: #F2F0FF; }
.nt-feat-grid strong { display: block; color: #fff; font-size: 1.06rem; margin-bottom: 6px; }
.nt-compat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--wp--preset--color--ink); }
.nt-compat li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: center; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--nt-line); }
.nt-compat .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--wp--preset--color--indigo-soft); color: var(--wp--preset--color--indigo); transition: background-color .2s, color .2s; }
.nt-compat li:hover .ic { background: var(--wp--preset--color--indigo); color: #fff; }
.nt-compat strong { display: block; color: var(--wp--preset--color--ink); }
.nt-compat span span, .nt-compat small { font-size: .92rem; }
.nt-steps { list-style: none; padding: 0; margin: 0; counter-reset: nt; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 3vw, 44px); }
.nt-steps li { counter-increment: nt; border-top: 2px solid var(--wp--preset--color--indigo); padding-top: 18px; }
.nt-steps li::before { content: counter(nt); display: block; font: 400 2.6rem/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--indigo); margin-bottom: 16px; }
.nt-steps strong { display: block; color: var(--wp--preset--color--ink); font-size: 1.06rem; margin-bottom: 6px; }
@media (max-width: 900px) { .nt-compat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .nt-compat, .nt-steps { grid-template-columns: 1fr; } }

/* FAQ (details block) */
.nt-faq { border-top: 2px solid var(--wp--preset--color--ink); }
.wp-block-details { margin: 0; }
.wp-block-details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; font: 400 1.3rem/1.3 var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(var(--wp--preset--color--indigo), var(--wp--preset--color--indigo)) center / 14px 2px no-repeat, linear-gradient(var(--wp--preset--color--indigo), var(--wp--preset--color--indigo)) center / 2px 14px no-repeat; transition: transform .25s var(--nt-ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .8rem; max-width: 40em; }

/* ---------- Blog ---------- */
.nt-post-grid .wp-block-post { display: flex; flex-direction: column; }
.nt-post-grid .wp-block-post-featured-image { margin-bottom: 14px; }
.nt-post-grid .wp-block-post-featured-image img { border-radius: var(--nt-radius-lg); border: 1px solid var(--nt-line); aspect-ratio: 16 / 10; object-fit: cover; }
.nt-post-grid .wp-block-post-title { font-size: 1.55rem; line-height: 1.15; margin: .4rem 0; }
.nt-post-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--indigo); }
.wp-block-query-pagination { margin-top: clamp(32px, 4vw, 56px); }
.nt-article > * { margin-block: 1.1em; }
.nt-article h2:not(.wp-block-post-title) { font-size: var(--wp--preset--font-size--x-large); margin-top: 2em; }
.nt-article h3 { margin-top: 1.6em; }
.wp-block-post-featured-image img { object-position: top; }

/* ---------- WooCommerce: notices, cart, checkout, account ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: var(--nt-radius); }
.wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button { background: var(--wp--preset--color--indigo); color: #fff; border-radius: var(--nt-radius); font-weight: 600; }
.wc-block-components-button:not(.is-link):hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--wp--preset--color--indigo-deep); color: #fff; }
.wc-block-cart, .wc-block-checkout { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { text-decoration: none; }

/* ---------- Plugins page cards ---------- */
.nt-plugin-grid { gap: clamp(20px, 2.4vw, 32px) !important; }
.nt-plugin-grid > .wp-block-group { background: #fff; border: 1px solid var(--nt-line); border-radius: var(--nt-radius-lg); padding: 26px; }
.nt-plugin-grid h3 { font-size: 1.45rem; margin: .8rem 0 .4rem; }
.nt-status { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--wp--preset--color--indigo-deep); background: var(--wp--preset--color--indigo-soft); border-radius: 4px; padding: .25em .6em; margin: 0; }

/* ---------- Grids: exact columns on desktop ---------- */
@media (min-width: 782px) {
	.nt-cols-3.nt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.nt-cols-2.nt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.nt-points, .nt-feat-grid, .nt-plugin-grid { grid-template-columns: 1fr !important; }
	.nt-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
}

/* Template parts sit flush against each other */
.wp-site-blocks > * + * { margin-block-start: 0; }
.nt-search-light .wp-block-search__inside-wrapper { border: 1px solid var(--nt-line); box-shadow: none; }
.nt-compat small { display: block; font-size: .92rem; }
.nt-made-for { list-style: none; padding: 0; margin: 0; }
.nt-made-for li { padding: 12px 0; border-bottom: 1px solid var(--nt-line); color: var(--wp--preset--color--ink); font: 400 1.3rem/1.3 var(--wp--preset--font-family--display); }
.nt-detail-block h3 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.nt-draft { border: 1px dashed var(--wp--preset--color--faint); border-radius: var(--nt-radius); padding: 12px 16px; font-size: .92rem; }
@media (max-width: 781px) { .nt-cta::before { opacity: .35; } }

/* Plugin icons (CSS masks, so they survive content filters) */
.nt-compat .ic::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--nt-ic) center / contain no-repeat; mask: var(--nt-ic) center / contain no-repeat; }
.nt-compat .ic-woo { --nt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.3'/%3E%3Ccircle cx='9.5' cy='20' r='1.3'/%3E%3Ccircle cx='17.5' cy='20' r='1.3'/%3E%3C/svg%3E"); }
.nt-compat .ic-pay { --nt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13' height='10' rx='1.6'/%3E%3Cpath d='M2.5 9.5h13M5.5 13h3'/%3E%3Crect x='15.5' y='9' width='6' height='12' rx='1.4'/%3E%3Cpath d='M17.8 18.3h1.4'/%3E%3C/svg%3E"); }
.nt-compat .ic-seo { --nt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8M7.8 10.5h5.4M10.5 7.8v5.4'/%3E%3C/svg%3E"); }
.nt-compat .ic-rank { --nt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V14M10 20V9M16 20v-6'/%3E%3Cpath d='m3.5 9 5-4.5 4 3 7.5-5'/%3E%3Cpath d='M16.5 2.5H20V6'/%3E%3C/svg%3E"); }
.nt-compat .ic-form { --nt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.8'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.nt-compat .ic-lang { --nt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.5 3.9 5.5 3.9 9s-1.3 6.5-3.9 9c-2.6-2.5-3.9-5.5-3.9-9S9.4 5.5 12 3Z'/%3E%3C/svg%3E"); }
.nt-compat { margin-top: 1.6rem !important; }
