/* dmc.crazyartzone.com — "Craft & Thread" theme (loaded after the inline styles in header.php; ad slots untouched) */
:root {
	--ink: #3a2e2a;
	--muted: #7d6d66;
	--rose: #d9577b;
	--rose-soft: #fbe3ea;
	--sage: #6fa58f;
	--sage-soft: #e3f1ea;
	--mustard: #f2c14e;
	--linen: #f8f3ec;
	--card: #fffdf9;
	--line: #efe6dc;
}

body {
	background-color: var(--linen);
	/* linen weave */
	background-image:
		repeating-linear-gradient(0deg, rgba(120,90,60,0.035) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(120,90,60,0.035) 0 1px, transparent 1px 4px);
	font-family: 'Nunito', 'Libre Franklin', helvetica, arial, sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: var(--ink);
}
h1, h2, h3 {
	font-family: 'Fredoka', 'Nunito', sans-serif;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: .2px;
}
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
a:link, a:visited { color: var(--rose); }
a:hover { color: var(--sage); }

/* ---------- top bar ---------- */
.header { box-shadow: 0 3px 14px rgba(58,46,42,0.08); }
.header::after {                      /* stitched line */
	content: ""; display: block; height: 3px;
	background: repeating-linear-gradient(90deg, var(--rose) 0 10px, transparent 10px 16px);
	opacity: .6;
}
.topnav { background: var(--card); padding: 6px 10px; }
.topnav a {
	color: var(--ink);
	font-weight: 700;
	font-size: 13.5px;
	padding: 8px 15px;
	margin: 2px 2px;
	border-radius: 999px;
	transition: background .2s, color .2s;
}
.topnav a:hover { background: var(--rose-soft); color: var(--rose); }
.topnav a.active, .topnav a.active:hover { background: var(--rose); color: #fff; }
.mobheader { background: var(--card); }
.mobmenu { background: var(--rose-soft); color: var(--rose); border-radius: 999px; }

/* ---------- main card ---------- */
#content {
	max-width: 980px;
	margin-top: 76px;
	padding: 26px 30px;
	border: 0;
	border-radius: 26px;
	background: var(--card);
	box-shadow: 0 10px 34px rgba(58,46,42,0.09);
	position: relative;
}
#content::before {                    /* dashed stitching inside the card */
	content: ""; position: absolute; inset: 10px;
	border: 2px dashed rgba(217,87,123,0.18);
	border-radius: 20px;
	pointer-events: none;
}

/* ---------- search forms ---------- */
.texto, input[type="text"] {
	font-family: inherit;
	font-size: 14px;
	padding: 9px 14px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: #fff;
	outline: none;
	width: auto; min-width: 150px;
	transition: border-color .2s, box-shadow .2s;
}
.texto:focus, input[type="text"]:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.submito, input[type="submit"], button {
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--rose);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(217,87,123,0.3);
	transition: transform .15s;
	width: auto !important;   /* pages set width:120px inline */
	white-space: nowrap;
}
.submito:hover, input[type="submit"]:hover { transform: translateY(-1px); }
.divform { border: 2px solid var(--line); border-radius: 0 18px 18px 18px; padding: 14px 12px 6px; background: #fff; }
.subnav a { border-radius: 14px 14px 0 0; font-weight: 700; }
.subnav .active { background: var(--rose-soft); color: var(--rose); }
.subnav a:hover { background: var(--sage-soft); }

/* ---------- tables ---------- */
.tableborder, .tableborder2 {
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 0 0 2px var(--line);
	background: #fff;
}
th, th.ntd {
	background: var(--sage-soft);
	color: #3f6b5a;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 11px 6px;
}
.ntd { border-bottom: 1px solid var(--line); padding: 8px 6px; font-size: 13.5px; }
tr:hover td.ntd { background: #fffaf3; }

/* thread swatches look like wound floss: rounded with a sheen */
.colorbox {
	height: 32px;
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 2px 5px rgba(58,46,42,0.15);
	background-image: repeating-linear-gradient(100deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 5px) !important;
	background-blend-mode: soft-light;
	transition: transform .15s;
}
tr:hover .colorbox { transform: scale(1.05); }

/* palette tiles */
.palette td div { border-radius: 9px; }
.notices { background: #fff6dc; border: 2px dashed var(--mustard); border-radius: 14px; padding: 10px 14px; }

/* ---------- click-to-copy ---------- */
.copyable { cursor: copy; font-family: ui-monospace, Consolas, monospace; }
.copyable:hover { color: var(--rose); text-decoration: underline dotted; }
.copytoast {
	position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
	background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
	font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; z-index: 2000;
	transition: opacity .2s, transform .2s;
}
.copytoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copytoast i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 8px; box-shadow: 0 0 0 2px #fff; }

/* ---------- bottom anchor ad (replaces the centre pop-up) ---------- */
.anchorad {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002;
	max-height: 30vh; overflow: hidden;
	background: #fff; border-radius: 16px 16px 0 0;
	box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
	transform: translateY(110%); transition: transform .35s ease;
}
.anchorad:has(ins.adsbygoogle[data-ad-status="filled"]) { transform: translateY(0); }
.anchorad-close {
	position: absolute; right: 10px; top: 6px; z-index: 2;
	width: 28px; height: 28px; line-height: 26px; text-align: center;
	border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 18px; cursor: pointer;
}
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

#footer { color: var(--muted); }

@media only screen and (max-width: 680px) {
	body { background-color: var(--linen); }
	#content { margin: 64px 8px 10px; padding: 16px 12px; border-radius: 20px; box-shadow: 0 6px 18px rgba(58,46,42,0.08); }
	#content::before { inset: 6px; border-radius: 16px; }
	.topnav { background: var(--card); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
}
