/* ==========================================================================
   IEP Digital Library — subscription storefront
   Black background · white text · IEP red accent (#C8102E)
   ========================================================================== */

.iep-dls {
	--dls-red: #C8102E;
	--dls-red-hi: #e0223f;
	--dls-bg: #000;
	--dls-surface: #0d0d0d;
	--dls-surface-2: #151515;
	--dls-border: #2a2a2a;
	--dls-text: #fff;
	--dls-muted: #a8a8a8;
	--dls-ok: #3fb950;
	--dls-serif: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
	color: var(--dls-text);
	font-family: inherit;
	line-height: 1.55;
	max-width: 1080px;
	width: 100%;
	margin: 0 auto 3em;
	box-sizing: border-box;
}
.iep-dls *, .iep-dls *::before, .iep-dls *::after { box-sizing: border-box; }
.iep-dls a { color: var(--dls-red-hi); }
.iep-dls p { margin: 0 0 .8em; }

/* ---------- type ---------- */
.iep-dls-eyebrow {
	font-family: var(--dls-serif); text-transform: uppercase; letter-spacing: .28em;
	font-size: .72rem; color: var(--dls-muted); margin: 0 0 .4em !important;
}
.iep-dls-title {
	font-family: var(--dls-serif); text-transform: uppercase; letter-spacing: .08em;
	font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin: 0 0 .4em; color: var(--dls-text); line-height: 1.2;
}
.iep-dls-title--sm { font-size: 1.15rem; letter-spacing: .1em; }
.iep-dls-lead { color: #d6d6d6; font-size: 1.05rem; max-width: 640px; }
.iep-dls-muted { color: var(--dls-muted); }
.iep-dls-small { font-size: .88rem; }
.iep-dls-strong { font-weight: 700; }
.iep-dls-big { font-size: 1.5rem; letter-spacing: .06em; font-family: var(--dls-serif); color: var(--dls-red-hi); }
.iep-dls-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--dls-muted); margin: 0 0 .3em !important; }
.iep-dls-center { text-align: center; }
.iep-dls-section-head { text-align: center; margin: 0 auto 2em; }
.iep-dls-section-head .iep-dls-lead { margin: 0 auto; }
.iep-dls-back { color: var(--dls-muted) !important; text-decoration: none; font-size: .9rem; }
.iep-dls-back:hover { color: var(--dls-text) !important; }

/* ---------- surfaces ---------- */
.iep-dls-card {
	background: var(--dls-surface); border: 1px solid var(--dls-border); border-radius: 4px;
	padding: 1.6em; margin: 0 0 1.4em; display: block; color: var(--dls-text);
}
.iep-dls-callout { border-left: 3px solid var(--dls-red); background: var(--dls-surface-2); padding: 1em 1.2em; margin: 1.4em 0; }
.iep-dls-callout p { margin: .3em 0 0; color: #d6d6d6; font-size: .95rem; }

/* ---------- buttons ---------- */
.iep-dls .iep-dls-btn, .iep-dls a.iep-dls-btn, .iep-dls button.iep-dls-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	background: var(--dls-red); color: #fff !important; border: 1px solid var(--dls-red);
	padding: .8em 1.6em; border-radius: 3px; font: inherit; font-weight: 700; font-size: .85rem;
	letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	transition: background .15s, border-color .15s, transform .15s;
}
.iep-dls .iep-dls-btn:hover, .iep-dls button.iep-dls-btn:hover { background: var(--dls-red-hi); border-color: var(--dls-red-hi); color: #fff !important; }
.iep-dls-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.iep-dls .iep-dls-btn--ghost, .iep-dls a.iep-dls-btn--ghost, .iep-dls button.iep-dls-btn--ghost { background: transparent; border-color: #555; }
.iep-dls .iep-dls-btn--ghost:hover, .iep-dls button.iep-dls-btn--ghost:hover { background: transparent; border-color: var(--dls-red); color: var(--dls-red-hi) !important; }
.iep-dls .iep-dls-btn--danger, .iep-dls button.iep-dls-btn--danger { background: transparent; border-color: #6b1b24; color: #ff8a97 !important; }
.iep-dls .iep-dls-btn--danger:hover, .iep-dls button.iep-dls-btn--danger:hover { background: #3a0c12; border-color: var(--dls-red); }
.iep-dls-btn--block { width: 100%; padding: 1.05em; font-size: .95rem; }
.iep-dls-btn--sm { padding: .55em 1em; font-size: .72rem; }
.iep-dls .iep-dls-btn--disabled { background: #1c1c1c; border-color: #2a2a2a; color: #666 !important; cursor: not-allowed; }
.iep-dls-actions { display: flex; flex-wrap: wrap; gap: .7em; margin: 1.2em 0 0 !important; }
.iep-dls-actions--center { justify-content: center; }

/* ---------- notices ---------- */
.iep-dls-notice { padding: .9em 1.1em; border-radius: 3px; margin: 0 0 1.2em; border-left: 3px solid #58a6ff; background: rgba(88,166,255,.08); }
.iep-dls-notice--ok { border-color: var(--dls-ok); background: rgba(63,185,80,.08); }
.iep-dls-notice--error { border-color: var(--dls-red); background: rgba(200,16,46,.14); }

/* ---------- plans ---------- */
.iep-dls-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6em; max-width: 860px; margin: 0 auto; }
.iep-dls-plan {
	position: relative; background: linear-gradient(180deg, #0f0f0f 0%, #000 100%);
	border: 1px solid var(--dls-red); outline: 1px solid rgba(200,16,46,.25); outline-offset: 5px;
	padding: 2.2em 1.8em 1.8em; text-align: center; display: flex; flex-direction: column;
}
.iep-dls-plan.is-featured { box-shadow: 0 0 0 1px var(--dls-red), 0 18px 50px rgba(200,16,46,.18); }
.iep-dls-plan.is-current { border-color: var(--dls-ok); outline-color: rgba(63,185,80,.25); }
.iep-dls-ribbon {
	position: absolute; top: -.85em; left: 50%; transform: translateX(-50%);
	background: var(--dls-red); color: #fff; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
	font-weight: 700; padding: .35em 1em; white-space: nowrap;
}
.iep-dls-plan.is-current .iep-dls-ribbon { background: var(--dls-ok); color: #000; }
.iep-dls-plan-kicker { font-family: var(--dls-serif); letter-spacing: .3em; text-transform: uppercase; font-size: .7rem; color: var(--dls-muted); margin: 0 0 .5em !important; }
.iep-dls-plan-name { font-family: var(--dls-serif); text-transform: uppercase; letter-spacing: .14em; font-size: 1.35rem; margin: 0 0 .3em; color: #fff; }
.iep-dls-plan-name::after { content: ""; display: block; width: 56px; height: 1px; background: var(--dls-red); margin: .6em auto 0; }
.iep-dls-summary .iep-dls-plan-name::after { margin-left: 0; }
.iep-dls-plan-price { font-family: var(--dls-serif); color: var(--dls-red-hi); font-size: 2.4rem; font-weight: 700; margin: .3em 0 .4em !important; letter-spacing: .04em; }
.iep-dls-plan-price span { font-size: .9rem; color: var(--dls-muted); letter-spacing: .1em; text-transform: uppercase; }
.iep-dls-plan-desc { color: #cfcfcf; font-size: .95rem; }
.iep-dls-features { list-style: none; padding: 0; margin: .6em 0 1.6em; text-align: left; flex: 1; }
.iep-dls-features li { padding: .45em 0 .45em 1.8em; position: relative; border-bottom: 1px solid #1d1d1d; font-size: .95rem; }
.iep-dls-features li::before { content: "✓"; position: absolute; left: .2em; color: var(--dls-red-hi); font-weight: 700; }

.iep-dls-how { list-style: none; counter-reset: dls; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2em; padding: 0; margin: 3em auto 0; max-width: 960px; }
.iep-dls-how li { counter-increment: dls; border-top: 1px solid var(--dls-border); padding-top: 1em; }
.iep-dls-how li::before { content: counter(dls, upper-roman); font-family: var(--dls-serif); color: var(--dls-red-hi); font-size: 1.4rem; display: block; margin-bottom: .2em; }
.iep-dls-how strong { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: .3em; }
.iep-dls-how span { color: var(--dls-muted); font-size: .92rem; }

/* ---------- checkout ---------- */
.iep-dls-checkout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6em; align-items: start; }
.iep-dls-summary { border-top: 3px solid var(--dls-red); }
.iep-dls-dl { margin: 1.2em 0 0; }
.iep-dls-dl dt { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--dls-muted); margin-top: .9em; }
.iep-dls .iep-dls-dl dd { margin: .2em 0 0; padding: 0; }
.iep-dls-group-label { margin: 1.2em 0 .5em !important; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--dls-muted); }
.iep-dls-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6em; }
.iep-dls-method { position: relative; cursor: pointer; display: block; }
.iep-dls-method input { position: absolute; opacity: 0; pointer-events: none; }
.iep-dls-method-box {
	display: flex; align-items: center; gap: .6em; padding: .85em 1em; border: 1px solid var(--dls-border);
	border-radius: 3px; background: var(--dls-surface-2); transition: border-color .15s, background .15s; font-weight: 600;
}
.iep-dls-method-box svg { color: var(--dls-muted); flex: none; }
.iep-dls-method:hover .iep-dls-method-box { border-color: #555; }
.iep-dls-method input:checked + .iep-dls-method-box { border-color: var(--dls-red); background: rgba(200,16,46,.12); box-shadow: inset 0 0 0 1px var(--dls-red); }
.iep-dls-method input:checked + .iep-dls-method-box svg { color: var(--dls-red-hi); }
.iep-dls-method input:focus-visible + .iep-dls-method-box { outline: 2px solid #fff; outline-offset: 2px; }
.iep-dls-agree { display: flex; gap: .7em; align-items: flex-start; margin: 0 0 1.2em; cursor: pointer; font-size: .95rem; }
.iep-dls-agree input { margin-top: .3em; accent-color: var(--dls-red); width: 18px; height: 18px; flex: none; }

/* ---------- order ---------- */
.iep-dls-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; flex-wrap: wrap; margin-bottom: 1.2em; }
.iep-dls-status { display: inline-block; padding: .35em .9em; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #444; color: #ddd; white-space: nowrap; }
.iep-dls-status--awaiting_payment { border-color: #b8860b; color: #f5c451; }
.iep-dls-status--payment_sent { border-color: #58a6ff; color: #9ecbff; }
.iep-dls-status--confirmed, .iep-dls-status--active { border-color: var(--dls-ok); color: #7ee28f; }
.iep-dls-status--cancelled, .iep-dls-status--expired { border-color: #555; color: #888; }
.iep-dls-status--grace { border-color: var(--dls-red); color: #ff8a97; }

.iep-dls-tracker { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.iep-dls-tracker li { position: relative; text-align: center; padding-top: 0; color: var(--dls-muted); font-size: .85rem; }
.iep-dls-tracker li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--dls-border); z-index: 0; }
.iep-dls-tracker li:first-child::before { display: none; }
.iep-dls-tracker li.is-done::before, .iep-dls-tracker li.is-current::before { background: var(--dls-red); }
.iep-dls-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--dls-border); background: #000; font-weight: 700; margin-bottom: .4em; color: var(--dls-muted); }
.iep-dls-tracker li.is-done .iep-dls-dot { background: var(--dls-red); border-color: var(--dls-red); color: #fff; }
.iep-dls-tracker li.is-current .iep-dls-dot { border-color: var(--dls-red); color: #fff; box-shadow: 0 0 0 4px rgba(200,16,46,.25); }
.iep-dls-tracker li.is-done, .iep-dls-tracker li.is-current { color: #fff; }
.iep-dls-step-label, .iep-dls-step-date { display: block; }
.iep-dls-step-date { color: var(--dls-muted); font-size: .75rem; }
.iep-dls-tracker--mini { margin: .8em 0 0; }
.iep-dls-tracker--mini .iep-dls-dot { width: 24px; height: 24px; font-size: .72rem; }
.iep-dls-tracker--mini li::before { top: 11px; }
.iep-dls-tracker--mini li { font-size: .72rem; }
@media (max-width: 520px) { .iep-dls-step-label { font-size: .7rem; } }

.iep-dls-instructions { border-top: 3px solid var(--dls-red); }
.iep-dls-wallet { display: flex; gap: 1.4em; align-items: flex-start; flex-wrap: wrap; }
.iep-dls-qr { background: #fff; padding: 8px; border-radius: 3px; width: 160px; height: 160px; object-fit: contain; }
.iep-dls-wallet-body { flex: 1 1 280px; min-width: 0; }
.iep-dls-copyrow { display: flex; gap: .5em; align-items: stretch; margin-bottom: .8em; }
.iep-dls-copyrow code {
	flex: 1; min-width: 0; overflow-wrap: anywhere; background: #000; border: 1px solid var(--dls-border);
	padding: .7em .8em; font-size: .9rem; color: #fff; border-radius: 3px;
}
.iep-dls-copy { background: var(--dls-surface-2); color: #fff; border: 1px solid #555; border-radius: 3px; padding: .5em .9em; cursor: pointer; font: inherit; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.iep-dls-copy:hover { border-color: var(--dls-red); }
.iep-dls-mail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; }
@media (max-width: 640px) { .iep-dls-mail { grid-template-columns: 1fr; } }
.iep-dls-address { font-style: normal; font-size: 1.1rem; line-height: 1.5; background: #000; border: 1px solid var(--dls-border); padding: .9em 1em; margin: 0 0 .6em; border-radius: 3px; }

.iep-dls-field { margin: 0 0 1em; }
.iep-dls-field label { display: block; font-weight: 600; margin-bottom: .35em; font-size: .92rem; }
.iep-dls input[type=text], .iep-dls textarea, .iep-dls select {
	width: 100%; padding: .7em .85em; font: inherit; background: #fff; color: #111; border: 1px solid #ccc; border-radius: 3px;
}
.iep-dls input:focus, .iep-dls textarea:focus, .iep-dls select:focus { outline: none; border-color: var(--dls-red); box-shadow: 0 0 0 3px rgba(200,16,46,.35); }
.iep-dls-more summary, .iep-dls-history summary { cursor: pointer; color: var(--dls-muted); font-weight: 600; }
.iep-dls-more[open] summary, .iep-dls-history[open] summary { margin-bottom: 1em; color: #fff; }
.iep-dls-inline { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; margin: 0 0 .8em; }
.iep-dls-inline select { width: auto; flex: 1 1 200px; }

/* ---------- panel ---------- */
.iep-dls-open-order { display: flex; justify-content: space-between; align-items: center; gap: 1.2em; flex-wrap: wrap; text-decoration: none; border-left: 3px solid #f5c451; }
.iep-dls-open-order > div { flex: 1 1 360px; }
.iep-dls-open-order:hover { border-color: var(--dls-red); }
.iep-dls-mysub { border-top: 3px solid var(--dls-red); }
.iep-dls-mysub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.iep-dls-mysub .iep-dls-plan-name::after { margin-left: 0; }
.iep-dls-meter { height: 6px; background: #1f1f1f; border-radius: 3px; overflow: hidden; margin: 1.2em 0 .5em; }
.iep-dls-meter span { display: block; height: 100%; background: var(--dls-red); }
.iep-dls-slots { margin: 1.2em 0 0; }
.iep-dls-slotbar { display: flex; gap: 6px; }
.iep-dls-slotbar span { flex: 1; height: 8px; background: #1f1f1f; border: 1px solid #333; }
.iep-dls-slotbar span.is-used { background: var(--dls-red); border-color: var(--dls-red); }
.iep-dls-shelf { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .8em; }
.iep-dls-shelf a { display: block; text-decoration: none; color: #ddd !important; font-size: .78rem; line-height: 1.3; }
.iep-dls-shelf img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--dls-border); display: block; margin-bottom: .35em; }
.iep-dls-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.iep-dls-table th, .iep-dls-table td { text-align: left; padding: .55em .5em; border-bottom: 1px solid var(--dls-border); }
.iep-dls-table th { color: var(--dls-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }

/* ---------- book chooser ---------- */
.iep-dls-books-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.4em; flex-wrap: wrap; margin-bottom: 1.4em; }
.iep-dls-counter { text-align: center; border: 1px solid var(--dls-red); padding: .7em 1.3em; min-width: 140px; }
.iep-dls-counter-num { display: block; font-family: var(--dls-serif); font-size: 2.2rem; color: var(--dls-red-hi); line-height: 1; }
.iep-dls-counter-num small { font-size: 1rem; color: var(--dls-muted); }
.iep-dls-counter-label { display: block; margin-top: .35em; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--dls-muted); }
.iep-dls-bookgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.6em 1.2em; }
.iep-dls-book { display: flex; flex-direction: column; gap: .6em; }
.iep-dls-book-cover { position: relative; display: block; border: 1px solid var(--dls-border); background: #111; transition: border-color .15s, transform .15s; }
.iep-dls-book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.iep-dls-book:hover .iep-dls-book-cover { border-color: #555; transform: translateY(-2px); }
.iep-dls-book.is-mine .iep-dls-book-cover { border-color: var(--dls-red); box-shadow: 0 0 0 1px var(--dls-red); }
.iep-dls-book-flag { position: absolute; left: 0; right: 0; bottom: 0; background: var(--dls-red); color: #fff; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: .4em; font-weight: 700; }
.iep-dls-book-flag--free { background: #fff; color: #000; }
.iep-dls-book-meta h3 { font-size: .95rem; margin: 0; line-height: 1.3; color: #fff; }
.iep-dls-book-meta p { font-size: .8rem; color: var(--dls-muted); margin: .2em 0 0; }
.iep-dls-book form { margin: 0; }
.iep-dls-book .iep-dls-btn { width: 100%; }

/* Themes (e.g. Twenty Twenty-One, Storefront) style every <button> with high
   specificity — keep ours on-brand. */
.iep-dls button.iep-dls-btn:not(.iep-dls-btn--ghost):not(.iep-dls-btn--danger) { background: var(--dls-red) !important; color: #fff !important; border-color: var(--dls-red) !important; }
.iep-dls button.iep-dls-btn:not(.iep-dls-btn--ghost):not(.iep-dls-btn--danger):hover { background: var(--dls-red-hi) !important; }
.iep-dls button.iep-dls-btn--ghost { background: transparent !important; color: #fff !important; border-color: #555 !important; }
.iep-dls button.iep-dls-btn--danger { background: transparent !important; color: #ff8a97 !important; border-color: #6b1b24 !important; }
.iep-dls button.iep-dls-copy { background: var(--dls-surface-2) !important; color: #fff !important; border: 1px solid #555 !important; }
@media (max-width: 600px) { .iep-dls.alignwide { padding-left: 16px; padding-right: 16px; } }

/* ---- v1.1: precious metals calculator ---- */
.iep-dls-metals-box { border-top: 1px solid var(--dls-border); margin-top: 1.4em; padding-top: 1.2em; }
.iep-dls-pay-form .iep-dls-metals-box { border: 1px solid var(--dls-border); background: var(--dls-surface-2); padding: 1em; margin: 1.2em 0 0; }
.iep-dls-metals-box[hidden] { display: none !important; }
.iep-dls-spot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .5em; margin: .4em 0 1em; }
.iep-dls button.iep-dls-spot {
	display: flex !important; flex-direction: column; align-items: flex-start; gap: .15em; text-align: left;
	background: #0a0a0a !important; color: #fff !important; border: 1px solid var(--dls-border) !important; border-radius: 4px !important;
	padding: .7em .8em !important; cursor: pointer; font: inherit !important; line-height: 1.25 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
	border-top: 3px solid #444 !important; min-height: 0 !important; width: 100%;
}
.iep-dls button.iep-dls-spot:hover { border-color: #555 !important; }
.iep-dls button.iep-dls-spot.is-active { border-color: var(--dls-red) !important; background: #140507 !important; }
.iep-dls button.iep-dls-spot--silver { border-top-color: #c9ced6 !important; }
.iep-dls button.iep-dls-spot--gold { border-top-color: #d4af37 !important; }
.iep-dls button.iep-dls-spot--platinum { border-top-color: #9fb7c9 !important; }
.iep-dls button.iep-dls-spot--palladium { border-top-color: #b8a9c9 !important; }
.iep-dls button.iep-dls-spot.is-active { border-top-color: var(--dls-red) !important; }
.iep-dls-spot-name { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dls-muted); }
.iep-dls-spot-price { font-weight: 700; font-size: 1.05rem; }
.iep-dls-spot-price small { font-weight: 400; color: var(--dls-muted); font-size: .75em; margin-left: .15em; }
.iep-dls-spot-need { font-size: .82rem; color: var(--dls-red-hi); font-weight: 600; }
.iep-dls-need { margin: 0 0 .8em !important; font-size: 1rem; }
.iep-dls-red { color: var(--dls-red-hi); }
.iep-dls-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.iep-dls-coins { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 !important; }
.iep-dls-coins th, .iep-dls-coins td { padding: .5em .6em; border-bottom: 1px solid var(--dls-border); text-align: left; background: transparent !important; color: inherit; }
.iep-dls-coins th { color: var(--dls-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.iep-dls-coins .num { text-align: right; white-space: nowrap; }
.iep-dls-coins td .iep-dls-small { display: block; font-size: .78rem; }
.iep-dls-coins tr.is-best td { background: rgba(200, 16, 46, .09) !important; }
.iep-dls-pill { display: inline-block; margin-left: .4em; background: var(--dls-red); color: #fff; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .15em .5em; border-radius: 999px; vertical-align: middle; }
.iep-dls-metals-foot { margin: .8em 0 0 !important; }
.iep-dls-metals.is-compact .iep-dls-coins { font-size: .86rem; }

/* ---- v1.1: printables ---- */
.iep-dls-print-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7em; margin-top: 1em; }
.iep-dls a.iep-dls-print {
	display: flex; flex-direction: column; gap: .3em; padding: 1em; text-decoration: none !important;
	border: 1px solid var(--dls-border); background: var(--dls-surface-2); color: #fff !important; border-radius: 4px; transition: border-color .15s, transform .15s;
}
.iep-dls a.iep-dls-print:hover { border-color: var(--dls-red); transform: translateY(-2px); }
.iep-dls-print svg { color: var(--dls-red-hi); }
.iep-dls-print-name { font-weight: 700; }
.iep-dls-print-desc { font-size: .82rem; color: var(--dls-muted); line-height: 1.35; }

/* ---- v1.2: embedded inside another layout (IEP Memberships account page) ---- */
.iep-dls.iep-dls--embedded,
.iepm-account-main .iep-dls {
	width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
	left: auto !important; right: auto !important; position: static !important; transform: none !important;
	padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; min-width: 0;
}
.iepm-account-main { min-width: 0; }
.iep-dls--embedded .iep-dls-plan-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
