/**
 * Studio Licenses page (ticket 119): three levels Free / Affiliated / Official.
 * Ported from the approved draft docs/plans/2026-11-16-studio-licenses/
 * studio-licenses-frontend.html; every rule is scoped to .iy-sl so nothing
 * leaks into the theme. Colours are the insideyoga.org brand values.
 */
.iy-sl { --teal: #2E6164; --teal-band: rgba(46, 97, 100, .14); --gold: #A77637; --gold-band: rgba(167, 118, 55, .16); --card: #F5F5F7; --ink: #000000; --text: #666666; --muted: rgba(0, 0, 0, .5); --uline: #E0D7CA; --white: #FFFFFF; }
.iy-sl, .iy-sl *, .iy-sl *::before, .iy-sl *::after { box-sizing: border-box; }
.iy-sl { color: var(--text); font: 400 16px/1.6 Poppins, Helvetica, Arial, sans-serif; }
.iy-sl .wrap { max-width: 1120px; margin: 0 auto; padding: 64px 24px 72px; }
.iy-sl .iy-sl__header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.iy-sl h1 { font-size: clamp(34px, 4.6vw, 45px); line-height: 1.2; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.iy-sl h1 strong { font-weight: 700; }
.iy-sl h1 .u { text-decoration: underline; text-decoration-color: var(--uline); text-decoration-thickness: 6px; text-underline-offset: 7px; }
.iy-sl .intro { font-size: 17px; margin: 0; }
.iy-sl .levels { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 20px; row-gap: 0; padding-top: 14px; }
.iy-sl .level { background: var(--card); border-radius: 10px; position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.iy-sl .off { box-shadow: 0 0 0 2px var(--gold), 0 24px 54px rgba(90, 62, 26, .24); }
.iy-sl .head { color: var(--white); text-align: center; padding: 18px 20px 16px; border-radius: 10px 10px 0 0; display: flex; flex-direction: column; justify-content: center; }
.iy-sl .free .head { background: #6E7378; }
.iy-sl .free .fee { background: #E7E8EB; }
.iy-sl .free .fee b { color: #4A4E52; }
.iy-sl .aff .head { background: var(--teal); }
.iy-sl .off .head { background: linear-gradient(160deg, #B98C50, #8A5E28); padding-top: 24px; }
.iy-sl .crown { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2; box-shadow: 0 0 0 2px var(--gold); display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A5E28; background: #F7EBDC; border-radius: 50px; padding: 3px 12px; margin-bottom: 8px; }
.iy-sl .head h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0; }
.iy-sl .head p { font-size: 14px; margin: 2px 0 0; color: var(--white); }
.iy-sl .fee { text-align: center; padding: 14px 20px 15px; background: var(--teal-band); }
.iy-sl .off .fee { background: var(--gold-band); }
.iy-sl .fee small { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.iy-sl .fee b { display: block; font-size: 30px; line-height: 1.25; font-weight: 700; color: var(--teal); }
.iy-sl .off .fee b { color: var(--gold); }
.iy-sl ul { list-style: none; margin: 0; padding: 14px 22px 4px; }
.iy-sl ul { padding: 12px 14px 4px; }
.iy-sl li { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 5px 8px; margin: 2px 0; border-radius: 8px; font-size: 15px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.iy-sl li.new { background: rgba(46, 97, 100, .09); font-weight: 600; }
.iy-sl li.new .ico { background: var(--teal); color: var(--white); }
.iy-sl .off li.new { background: rgba(167, 118, 55, .13); }
.iy-sl .off li.new .ico { background: var(--gold); }
.iy-sl .ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #EFE6D9; color: var(--gold); }
.iy-sl .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iy-sl li.no { color: #9C9CA3; font-weight: 400; }
.iy-sl li.no .ico { background: #ECECEF; color: #C2C2C8; }
.iy-sl .foot { margin-top: auto; padding: 14px 22px 24px; }
.iy-sl .btn { display: block; text-align: center; text-decoration: none; font-size: 15px; font-weight: 700; border-radius: 50px; padding: 14px 20px; white-space: nowrap; }
.iy-sl .aff .btn, .iy-sl .off .btn { color: var(--white); background: var(--teal); }
.iy-sl .off .btn { background: #8A5E28; }
.iy-sl .nosign { text-align: center; font-size: 15px; font-weight: 600; color: var(--teal); padding: 14px 0; line-height: 24px; }
.iy-sl .fine a { color: var(--teal); font-weight: 600; }
.iy-sl .basic { display: flex; align-items: center; gap: 22px; max-width: 860px; margin: 44px auto 0; background: var(--card); border-radius: 10px; padding: 24px 28px; }
.iy-sl .basic .ico { width: 44px; height: 44px; }
.iy-sl .basic .ico svg { width: 22px; height: 22px; }
.iy-sl .basic div.txt { flex: 1; }
.iy-sl .basic h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.iy-sl .basic p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.iy-sl .basic .btn { flex: none; margin-top: 0; color: var(--white); background: var(--teal); padding: 14px 26px; }
.iy-sl .fine { text-align: center; font-size: 14px; color: var(--muted); max-width: 760px; margin: 32px auto 0; }
@media (max-width: 940px) {
	.iy-sl .wrap { padding: 44px 16px 48px; }
	.iy-sl .iy-sl__header { margin-bottom: 30px; }
	.iy-sl .levels { grid-template-columns: 1fr; gap: 16px; }
	.iy-sl li.no { display: none; }
	.iy-sl .levels { display: block; padding-top: 0; }
	.iy-sl .level { display: block; }
	.iy-sl .level + .level { margin-top: 30px; }
	.iy-sl .basic { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; margin-top: 36px; }
	.iy-sl .basic .btn { align-self: stretch; }
}

/* Inside the Divi page: neutralise the theme's list, heading and link styles. */
#main-content .iy-sl ul { list-style: none; margin: 0; padding: 12px 14px 4px; line-height: inherit; }
#main-content .iy-sl ul li { list-style: none; }
#main-content .iy-sl h1, #main-content .iy-sl h2, #main-content .iy-sl h3 { padding: 0; font-family: Poppins, Helvetica, Arial, sans-serif; }
#main-content .iy-sl .head h2 { color: #fff; }
#main-content .iy-sl p { padding: 0; }
#main-content .iy-sl a.btn { color: #fff; }

/* The block brings its own heading: hide the theme's page title and its gap. */
body:has(.iy-sl) #main-content .main_title { display: none; }
body:has(.iy-sl) #main-content .container { padding-top: 0; }
body:has(.iy-sl) #main-content .entry-content { padding-top: 0; }
