/* ==========================================================================
   My Web Domains — child theme styles (on top of the parent's main.css tokens)
   ========================================================================== */

.mwd-center { text-align: center; margin-top: 32px; }
.mwd-lead { font-size: 18px; color: var(--mwm-muted); }
.mwd-note { font-size: 13px; color: var(--mwm-muted); margin-top: 14px; text-align: center; }
.mwd-textlink { margin-left: 18px; font-weight: 600; }

/* ---------- Hero ---------- */
.mwd-hero { padding-bottom: 96px; }
.mwd-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.mwd-hero .mwm-badge__dot .mwm-icon { width: 15px; height: 15px; }
.mwd-hero__search .mwm-domain-search { border-color: transparent; box-shadow: 0 18px 40px rgba(0, 12, 51, .35); padding: 8px 8px 8px 22px; }
.mwd-hero__search .mwm-domain-search input { font-size: 18px; padding: 14px 4px; }
.mwd-hero__search .mwm-btn { padding: 15px 30px; }
.mwd-hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; }
.mwd-hero__chips li {
	padding: 6px 14px; border-radius: 999px; font-size: 14px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85);
}
.mwd-hero__chips strong { color: #fff; font-family: var(--mwm-font-head); margin-right: 4px; }
.mwd-hero__links { display: flex; flex-wrap: wrap; gap: 26px; margin: 22px 0 0; }
.mwd-hero__links a { color: #fff; font-weight: 600; }
.mwd-hero__links a:hover { color: var(--mwm-cyan); }
.mwd-hero__art { display: flex; justify-content: center; }
.mwd-hero__art img { width: min(520px, 100%); }
@media (max-width: 960px) {
	.mwd-hero__grid { grid-template-columns: 1fr; }
	.mwd-hero__art { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 600px) {
	.mwd-hero__art { display: none; }
	.mwd-hero__search .mwm-domain-search { padding: 8px; }
}

/* ---------- Transfer split ---------- */
.mwd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mwd-split h2 { margin-bottom: 14px; }
.mwd-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.mwd-steps li {
	counter-increment: s; position: relative; padding: 20px 22px 20px 78px;
	background: #fff; border: 1px solid var(--mwm-line); border-radius: var(--mwm-radius); box-shadow: var(--mwm-shadow);
	display: flex; flex-direction: column; gap: 2px;
}
.mwd-steps li::before {
	content: counter(s); position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 12px; background: var(--mwm-accent-100); color: var(--mwm-accent-600);
	font: 800 18px/40px var(--mwm-font-head); text-align: center;
}
.mwd-steps strong { font-family: var(--mwm-font-head); font-size: 17px; color: var(--mwm-navy); }
.mwd-steps span { color: var(--mwm-muted); }
@media (max-width: 900px) { .mwd-split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Resellers band ---------- */
.mwd-resellers { background: var(--mwm-hero-bg); color: #fff; position: relative; overflow: hidden; }
.mwd-resellers::before {
	content: ""; position: absolute; width: 700px; height: 700px; left: -260px; bottom: -320px;
	background: radial-gradient(circle, rgba(77, 217, 255, .22) 0%, rgba(77, 217, 255, 0) 65%); pointer-events: none;
}
.mwd-resellers .mwm-container { position: relative; }
.mwd-section__head--light h2 { color: #fff; }
.mwd-section__head--light p { color: rgba(255, 255, 255, .8) !important; }
.mwd-section__head--light .mwm-eyebrow { color: var(--mwm-cyan) !important; }
.mwd-resellers .mwd-note { color: rgba(255, 255, 255, .7); }

/* Tier cards (used on the home page and the Reseller Programme page) */
.mwd-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }
.mwd-tier {
	background: #fff; color: var(--mwm-ink); border: 1px solid var(--mwm-line); border-radius: 20px;
	padding: 26px 24px 24px; display: flex; flex-direction: column; box-shadow: var(--mwm-shadow);
}
.mwd-tier.is-featured { border: 2px solid var(--mwm-accent); box-shadow: 0 20px 44px rgba(38, 126, 255, .25); }
.mwd-tier__name { font-size: 1.15rem; margin: 0 0 4px !important; color: var(--mwm-navy); }
.mwd-tier__disc { margin: 0 0 6px !important; color: var(--mwm-muted); }
.mwd-tier__disc strong { font-family: var(--mwm-font-head); font-size: 2.4rem; font-weight: 800; color: var(--mwm-accent-600); letter-spacing: -.02em; margin-right: 4px; }
.mwd-tier__desc { color: var(--mwm-muted); margin: 0 0 14px !important; min-height: 1.6em; }
.mwd-tier__prices { list-style: none; padding: 0 !important; margin: 0 0 20px !important; border-top: 1px solid var(--mwm-line); }
.mwd-tier__prices li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--mwm-line); margin: 0 !important; }
.mwd-tier__prices li > span:first-child { font-family: var(--mwm-font-head); font-weight: 800; color: var(--mwm-navy); }
.mwd-tier__prices s { color: #98A2B8; font-size: 13px; margin-right: 4px; }
.mwd-tier__prices small { color: var(--mwm-muted); }
.mwd-tier .mwm-btn { margin-top: auto; }

/* API teaser */
.mwd-api { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .15); }
.mwd-api h3 { color: #fff; font-size: 1.5rem; }
.mwd-api p { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 24px 0 0; }
.mwd-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mwd-ticks li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .88); }
.mwd-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mwm-cyan); }
.mwd-ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 10px; border: solid var(--mwm-navy-800); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mwd-code {
	margin: 0; background: #06123A; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 22px 24px;
	color: #CFE0FF; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre;
}
.mwd-code .c { color: #6B7FB0; } .mwd-code .s { color: #7EE0B8; } .mwd-code .k { color: #4DD9FF; }
@media (max-width: 900px) { .mwd-api { grid-template-columns: 1fr; } }

/* ---------- Full price table ---------- */
.mwd-pricetable { margin-top: 28px; }
.mwd-pricetable__tools { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mwd-pricetable__search {
	display: flex; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 420px;
	border: 2px solid var(--mwm-line); border-radius: 999px; padding: 4px 16px; color: var(--mwm-muted); background: #fff;
}
.mwd-pricetable__search:focus-within { border-color: var(--mwm-accent); }
.mwd-pricetable__search input { border: 0; outline: 0; font: inherit; padding: 8px 0; flex: 1; min-width: 0; background: transparent; color: var(--mwm-ink); }
.mwd-chips { display: inline-flex; gap: 6px; background: var(--mwm-soft); padding: 5px; border-radius: 999px; }
.mwd-chips button { border: 0; background: transparent; font: 600 14px var(--mwm-font-body); color: var(--mwm-muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.mwd-chips button.is-active { background: var(--mwm-navy); color: #fff; }
.mwd-pricetable__scroll { border: 1px solid var(--mwm-line); border-radius: var(--mwm-radius); overflow: hidden; background: #fff; }
.mwd-pricetable table { width: 100%; border-collapse: collapse; margin: 0 !important; }
.mwd-pricetable th { background: var(--mwm-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mwm-muted); padding: 12px 18px !important; text-align: left; }
.mwd-pricetable td { padding: 12px 18px !important; border-bottom: 1px solid var(--mwm-line); vertical-align: middle; font-weight: 600; }
.mwd-pricetable tbody tr:last-child td { border-bottom: 0; }
.mwd-pricetable tbody tr:hover td { background: #FAFCFF; }
.mwd-pricetable td:last-child { text-align: right; }
.mwd-pricetable__tld { display: inline-flex; align-items: center; gap: 12px; }
.mwd-pricetable__tld strong { font-family: var(--mwm-font-head); font-size: 1.1rem; color: var(--mwm-navy); }
.mwd-pricetable__empty { padding: 24px; text-align: center; color: var(--mwm-muted); margin: 0; }
.mwd-btn-sm { padding: 8px 16px !important; font-size: 14px !important; }
@media (max-width: 700px) {
	.mwd-pricetable thead { display: none; }
	.mwd-pricetable tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; padding: 14px 16px; border-bottom: 1px solid var(--mwm-line); }
	.mwd-pricetable td { border: 0; padding: 0 !important; font-size: 14px; }
	.mwd-pricetable td:first-child, .mwd-pricetable td:last-child { grid-column: 1 / -1; text-align: left; }
	.mwd-pricetable td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--mwm-muted); text-transform: uppercase; letter-spacing: .05em; }
	.mwd-pricetable td:last-child .mwm-btn { width: 100%; }
	.mwd-pricetable tbody tr:hover td { background: transparent; }
}

/* ---------- API docs page ---------- */
.mwd-endpoint { display: block; background: var(--mwm-soft); border: 1px solid var(--mwm-line); border-radius: var(--mwm-radius-sm); padding: 12px 16px; font-size: 15px; color: var(--mwm-navy); word-break: break-all; }
.mwm-prose .wp-block-code { background: #06123A; color: #CFE0FF; border-radius: var(--mwm-radius-sm); padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; border: 0; }
.mwm-prose .wp-block-code code { background: none; color: inherit; padding: 0; }
.mwm-prose :not(pre) > code { background: var(--mwm-soft); border: 1px solid var(--mwm-line); padding: 1px 6px; border-radius: 6px; font-size: .9em; color: var(--mwm-navy); }
.mwd-doc-table { margin: 1.5em 0 !important; }
.mwd-doc-table table { font-size: 15px; width: 100%; }
.mwd-doc-table th { background: var(--mwm-soft); }
.mwd-doc-table td:first-child { white-space: nowrap; }
@media (max-width: 700px) { .mwd-doc-table { overflow-x: auto; } .mwd-doc-table td:first-child { white-space: normal; } }
.mwm-prose .mwd-note, .mwm-prose .mwd-tiers, .mwm-prose .mwd-pricetable { max-width: none; }
